(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors~f9ca8911"],{"0106":function(t,e,i){(function(t){(function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var h;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{h="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:i(11).Buffer}catch(R){}function s(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function a(t,e,i){var r=s(t,i);return i-1>=e&&(r|=s(t,i-1)<<4),r}function u(t,e,i,r){for(var n=0,o=Math.min(t.length,i),h=e;h=49?s-49+10:s>=17?s-17+10:s}return n}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,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"===typeof t)return this._initNumber(t,e,i);if("object"===typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var n=0;"-"===t[0]&&(n++,this.negative=1),n=0;n-=3)h=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=h<>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===i)for(n=0,o=0;n>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)n=a(t,e,r)<=18?(o-=18,h+=1,this.words[h]|=n>>>26):o+=8;else{var s=t.length-e;for(r=s%2===0?e+1:e;r=18?(o-=18,h+=1,this.words[h]|=n>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=e)r++;r--,n=n/e|0;for(var o=t.length-i,h=o%r,s=Math.min(o,o-h)+i,a=0,l=i;l1&&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},o.prototype.inspect=function(){return(this.red?""};var l=["","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"],f=[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];function c(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}function p(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],h=n*o,s=67108863&h,a=h/67108864|0;i.words[0]=s;for(var u=1;u>>26,f=67108863&a,d=Math.min(u,e.length-1),c=Math.max(0,u-t.length+1);c<=d;c++){var p=u-c|0;n=0|t.words[p],o=0|e.words[c],h=n*o+f,l+=h/67108864|0,f=67108863&h}i.words[u]=0|f,a=0|l}return 0!==a?i.words[u]=0|a:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(t=t||10,e=0|e||1,16===t||"hex"===t){i="";for(var n=0,o=0,h=0;h>>24-n&16777215,n+=2,n>=26&&(n-=26,h--),i=0!==o||h!==this.length-1?l[6-a.length]+a+i:a+i}0!==o&&(i=o.toString(16)+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var u=f[t],c=d[t];i="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(c).toString(t);p=p.idivn(c),i=p.isZero()?m+i:l[u-m.length]+m+i}this.isZero()&&(i="0"+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof h),this.toArrayLike(h,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength(),o=i||Math.max(1,n);r(n<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var h,s,a="le"===e,u=new t(o),l=this.clone();if(a){for(s=0;!l.isZero();s++)h=l.andln(255),l.iushrn(8),u[s]=h;for(;s=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0===(8191&e)&&(i+=13,e>>>=13),0===(127&e)&&(i+=7,e>>>=7),0===(15&e)&&(i+=4,e>>>=4),0===(3&e)&&(i+=2,e>>>=2),0===(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.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 e;e=this.length>t.length?t:this;for(var i=0;it.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){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var r=0;rt.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){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var n=0;n0&&(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,e){r("number"===typeof t&&t>=0);var i=t/26|0,n=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,r=t):(i=t,r=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,r=t):(i=t,r=this);for(var o=0,h=0;h>26,this.words[h]=67108863&e;for(;0!==o&&h>26,this.words[h]=67108863&e;if(0===o&&h>>13,c=0|h[1],p=8191&c,m=c>>>13,g=0|h[2],w=8191&g,v=g>>>13,y=0|h[3],M=8191&y,b=y>>>13,_=0|h[4],k=8191&_,S=_>>>13,x=0|h[5],E=8191&x,R=x>>>13,B=0|h[6],T=8191&B,A=B>>>13,j=0|h[7],q=8191&j,L=j>>>13,O=0|h[8],I=8191&O,C=O>>>13,P=0|h[9],W=8191&P,U=P>>>13,D=0|s[0],Z=8191&D,F=D>>>13,H=0|s[1],N=8191&H,z=H>>>13,K=0|s[2],V=8191&K,J=K>>>13,G=0|s[3],Q=8191&G,X=G>>>13,Y=0|s[4],$=8191&Y,tt=Y>>>13,et=0|s[5],it=8191&et,rt=et>>>13,nt=0|s[6],ot=8191&nt,ht=nt>>>13,st=0|s[7],at=8191&st,ut=st>>>13,lt=0|s[8],ft=8191<,dt=lt>>>13,ct=0|s[9],pt=8191&ct,mt=ct>>>13;i.negative=t.negative^e.negative,i.length=19,r=Math.imul(f,Z),n=Math.imul(f,F),n=n+Math.imul(d,Z)|0,o=Math.imul(d,F);var gt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,Z),n=Math.imul(p,F),n=n+Math.imul(m,Z)|0,o=Math.imul(m,F),r=r+Math.imul(f,N)|0,n=n+Math.imul(f,z)|0,n=n+Math.imul(d,N)|0,o=o+Math.imul(d,z)|0;var wt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(w,Z),n=Math.imul(w,F),n=n+Math.imul(v,Z)|0,o=Math.imul(v,F),r=r+Math.imul(p,N)|0,n=n+Math.imul(p,z)|0,n=n+Math.imul(m,N)|0,o=o+Math.imul(m,z)|0,r=r+Math.imul(f,V)|0,n=n+Math.imul(f,J)|0,n=n+Math.imul(d,V)|0,o=o+Math.imul(d,J)|0;var vt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(M,Z),n=Math.imul(M,F),n=n+Math.imul(b,Z)|0,o=Math.imul(b,F),r=r+Math.imul(w,N)|0,n=n+Math.imul(w,z)|0,n=n+Math.imul(v,N)|0,o=o+Math.imul(v,z)|0,r=r+Math.imul(p,V)|0,n=n+Math.imul(p,J)|0,n=n+Math.imul(m,V)|0,o=o+Math.imul(m,J)|0,r=r+Math.imul(f,Q)|0,n=n+Math.imul(f,X)|0,n=n+Math.imul(d,Q)|0,o=o+Math.imul(d,X)|0;var yt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(k,Z),n=Math.imul(k,F),n=n+Math.imul(S,Z)|0,o=Math.imul(S,F),r=r+Math.imul(M,N)|0,n=n+Math.imul(M,z)|0,n=n+Math.imul(b,N)|0,o=o+Math.imul(b,z)|0,r=r+Math.imul(w,V)|0,n=n+Math.imul(w,J)|0,n=n+Math.imul(v,V)|0,o=o+Math.imul(v,J)|0,r=r+Math.imul(p,Q)|0,n=n+Math.imul(p,X)|0,n=n+Math.imul(m,Q)|0,o=o+Math.imul(m,X)|0,r=r+Math.imul(f,$)|0,n=n+Math.imul(f,tt)|0,n=n+Math.imul(d,$)|0,o=o+Math.imul(d,tt)|0;var Mt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(E,Z),n=Math.imul(E,F),n=n+Math.imul(R,Z)|0,o=Math.imul(R,F),r=r+Math.imul(k,N)|0,n=n+Math.imul(k,z)|0,n=n+Math.imul(S,N)|0,o=o+Math.imul(S,z)|0,r=r+Math.imul(M,V)|0,n=n+Math.imul(M,J)|0,n=n+Math.imul(b,V)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(w,Q)|0,n=n+Math.imul(w,X)|0,n=n+Math.imul(v,Q)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,n=n+Math.imul(p,tt)|0,n=n+Math.imul(m,$)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(f,it)|0,n=n+Math.imul(f,rt)|0,n=n+Math.imul(d,it)|0,o=o+Math.imul(d,rt)|0;var bt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(T,Z),n=Math.imul(T,F),n=n+Math.imul(A,Z)|0,o=Math.imul(A,F),r=r+Math.imul(E,N)|0,n=n+Math.imul(E,z)|0,n=n+Math.imul(R,N)|0,o=o+Math.imul(R,z)|0,r=r+Math.imul(k,V)|0,n=n+Math.imul(k,J)|0,n=n+Math.imul(S,V)|0,o=o+Math.imul(S,J)|0,r=r+Math.imul(M,Q)|0,n=n+Math.imul(M,X)|0,n=n+Math.imul(b,Q)|0,o=o+Math.imul(b,X)|0,r=r+Math.imul(w,$)|0,n=n+Math.imul(w,tt)|0,n=n+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,it)|0,n=n+Math.imul(p,rt)|0,n=n+Math.imul(m,it)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(f,ot)|0,n=n+Math.imul(f,ht)|0,n=n+Math.imul(d,ot)|0,o=o+Math.imul(d,ht)|0;var _t=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(q,Z),n=Math.imul(q,F),n=n+Math.imul(L,Z)|0,o=Math.imul(L,F),r=r+Math.imul(T,N)|0,n=n+Math.imul(T,z)|0,n=n+Math.imul(A,N)|0,o=o+Math.imul(A,z)|0,r=r+Math.imul(E,V)|0,n=n+Math.imul(E,J)|0,n=n+Math.imul(R,V)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(k,Q)|0,n=n+Math.imul(k,X)|0,n=n+Math.imul(S,Q)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(M,$)|0,n=n+Math.imul(M,tt)|0,n=n+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(w,it)|0,n=n+Math.imul(w,rt)|0,n=n+Math.imul(v,it)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,n=n+Math.imul(p,ht)|0,n=n+Math.imul(m,ot)|0,o=o+Math.imul(m,ht)|0,r=r+Math.imul(f,at)|0,n=n+Math.imul(f,ut)|0,n=n+Math.imul(d,at)|0,o=o+Math.imul(d,ut)|0;var kt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(I,Z),n=Math.imul(I,F),n=n+Math.imul(C,Z)|0,o=Math.imul(C,F),r=r+Math.imul(q,N)|0,n=n+Math.imul(q,z)|0,n=n+Math.imul(L,N)|0,o=o+Math.imul(L,z)|0,r=r+Math.imul(T,V)|0,n=n+Math.imul(T,J)|0,n=n+Math.imul(A,V)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(E,Q)|0,n=n+Math.imul(E,X)|0,n=n+Math.imul(R,Q)|0,o=o+Math.imul(R,X)|0,r=r+Math.imul(k,$)|0,n=n+Math.imul(k,tt)|0,n=n+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(M,it)|0,n=n+Math.imul(M,rt)|0,n=n+Math.imul(b,it)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(w,ot)|0,n=n+Math.imul(w,ht)|0,n=n+Math.imul(v,ot)|0,o=o+Math.imul(v,ht)|0,r=r+Math.imul(p,at)|0,n=n+Math.imul(p,ut)|0,n=n+Math.imul(m,at)|0,o=o+Math.imul(m,ut)|0,r=r+Math.imul(f,ft)|0,n=n+Math.imul(f,dt)|0,n=n+Math.imul(d,ft)|0,o=o+Math.imul(d,dt)|0;var St=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(W,Z),n=Math.imul(W,F),n=n+Math.imul(U,Z)|0,o=Math.imul(U,F),r=r+Math.imul(I,N)|0,n=n+Math.imul(I,z)|0,n=n+Math.imul(C,N)|0,o=o+Math.imul(C,z)|0,r=r+Math.imul(q,V)|0,n=n+Math.imul(q,J)|0,n=n+Math.imul(L,V)|0,o=o+Math.imul(L,J)|0,r=r+Math.imul(T,Q)|0,n=n+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,o=o+Math.imul(A,X)|0,r=r+Math.imul(E,$)|0,n=n+Math.imul(E,tt)|0,n=n+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(k,it)|0,n=n+Math.imul(k,rt)|0,n=n+Math.imul(S,it)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(M,ot)|0,n=n+Math.imul(M,ht)|0,n=n+Math.imul(b,ot)|0,o=o+Math.imul(b,ht)|0,r=r+Math.imul(w,at)|0,n=n+Math.imul(w,ut)|0,n=n+Math.imul(v,at)|0,o=o+Math.imul(v,ut)|0,r=r+Math.imul(p,ft)|0,n=n+Math.imul(p,dt)|0,n=n+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0,r=r+Math.imul(f,pt)|0,n=n+Math.imul(f,mt)|0,n=n+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var xt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(W,N),n=Math.imul(W,z),n=n+Math.imul(U,N)|0,o=Math.imul(U,z),r=r+Math.imul(I,V)|0,n=n+Math.imul(I,J)|0,n=n+Math.imul(C,V)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(q,Q)|0,n=n+Math.imul(q,X)|0,n=n+Math.imul(L,Q)|0,o=o+Math.imul(L,X)|0,r=r+Math.imul(T,$)|0,n=n+Math.imul(T,tt)|0,n=n+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(E,it)|0,n=n+Math.imul(E,rt)|0,n=n+Math.imul(R,it)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(k,ot)|0,n=n+Math.imul(k,ht)|0,n=n+Math.imul(S,ot)|0,o=o+Math.imul(S,ht)|0,r=r+Math.imul(M,at)|0,n=n+Math.imul(M,ut)|0,n=n+Math.imul(b,at)|0,o=o+Math.imul(b,ut)|0,r=r+Math.imul(w,ft)|0,n=n+Math.imul(w,dt)|0,n=n+Math.imul(v,ft)|0,o=o+Math.imul(v,dt)|0,r=r+Math.imul(p,pt)|0,n=n+Math.imul(p,mt)|0,n=n+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(W,V),n=Math.imul(W,J),n=n+Math.imul(U,V)|0,o=Math.imul(U,J),r=r+Math.imul(I,Q)|0,n=n+Math.imul(I,X)|0,n=n+Math.imul(C,Q)|0,o=o+Math.imul(C,X)|0,r=r+Math.imul(q,$)|0,n=n+Math.imul(q,tt)|0,n=n+Math.imul(L,$)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(T,it)|0,n=n+Math.imul(T,rt)|0,n=n+Math.imul(A,it)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(E,ot)|0,n=n+Math.imul(E,ht)|0,n=n+Math.imul(R,ot)|0,o=o+Math.imul(R,ht)|0,r=r+Math.imul(k,at)|0,n=n+Math.imul(k,ut)|0,n=n+Math.imul(S,at)|0,o=o+Math.imul(S,ut)|0,r=r+Math.imul(M,ft)|0,n=n+Math.imul(M,dt)|0,n=n+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(w,pt)|0,n=n+Math.imul(w,mt)|0,n=n+Math.imul(v,pt)|0,o=o+Math.imul(v,mt)|0;var Rt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(W,Q),n=Math.imul(W,X),n=n+Math.imul(U,Q)|0,o=Math.imul(U,X),r=r+Math.imul(I,$)|0,n=n+Math.imul(I,tt)|0,n=n+Math.imul(C,$)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(q,it)|0,n=n+Math.imul(q,rt)|0,n=n+Math.imul(L,it)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(T,ot)|0,n=n+Math.imul(T,ht)|0,n=n+Math.imul(A,ot)|0,o=o+Math.imul(A,ht)|0,r=r+Math.imul(E,at)|0,n=n+Math.imul(E,ut)|0,n=n+Math.imul(R,at)|0,o=o+Math.imul(R,ut)|0,r=r+Math.imul(k,ft)|0,n=n+Math.imul(k,dt)|0,n=n+Math.imul(S,ft)|0,o=o+Math.imul(S,dt)|0,r=r+Math.imul(M,pt)|0,n=n+Math.imul(M,mt)|0,n=n+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var Bt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(W,$),n=Math.imul(W,tt),n=n+Math.imul(U,$)|0,o=Math.imul(U,tt),r=r+Math.imul(I,it)|0,n=n+Math.imul(I,rt)|0,n=n+Math.imul(C,it)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(q,ot)|0,n=n+Math.imul(q,ht)|0,n=n+Math.imul(L,ot)|0,o=o+Math.imul(L,ht)|0,r=r+Math.imul(T,at)|0,n=n+Math.imul(T,ut)|0,n=n+Math.imul(A,at)|0,o=o+Math.imul(A,ut)|0,r=r+Math.imul(E,ft)|0,n=n+Math.imul(E,dt)|0,n=n+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0,r=r+Math.imul(k,pt)|0,n=n+Math.imul(k,mt)|0,n=n+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(W,it),n=Math.imul(W,rt),n=n+Math.imul(U,it)|0,o=Math.imul(U,rt),r=r+Math.imul(I,ot)|0,n=n+Math.imul(I,ht)|0,n=n+Math.imul(C,ot)|0,o=o+Math.imul(C,ht)|0,r=r+Math.imul(q,at)|0,n=n+Math.imul(q,ut)|0,n=n+Math.imul(L,at)|0,o=o+Math.imul(L,ut)|0,r=r+Math.imul(T,ft)|0,n=n+Math.imul(T,dt)|0,n=n+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0,r=r+Math.imul(E,pt)|0,n=n+Math.imul(E,mt)|0,n=n+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var At=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(W,ot),n=Math.imul(W,ht),n=n+Math.imul(U,ot)|0,o=Math.imul(U,ht),r=r+Math.imul(I,at)|0,n=n+Math.imul(I,ut)|0,n=n+Math.imul(C,at)|0,o=o+Math.imul(C,ut)|0,r=r+Math.imul(q,ft)|0,n=n+Math.imul(q,dt)|0,n=n+Math.imul(L,ft)|0,o=o+Math.imul(L,dt)|0,r=r+Math.imul(T,pt)|0,n=n+Math.imul(T,mt)|0,n=n+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var jt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(W,at),n=Math.imul(W,ut),n=n+Math.imul(U,at)|0,o=Math.imul(U,ut),r=r+Math.imul(I,ft)|0,n=n+Math.imul(I,dt)|0,n=n+Math.imul(C,ft)|0,o=o+Math.imul(C,dt)|0,r=r+Math.imul(q,pt)|0,n=n+Math.imul(q,mt)|0,n=n+Math.imul(L,pt)|0,o=o+Math.imul(L,mt)|0;var qt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,r=Math.imul(W,ft),n=Math.imul(W,dt),n=n+Math.imul(U,ft)|0,o=Math.imul(U,dt),r=r+Math.imul(I,pt)|0,n=n+Math.imul(I,mt)|0,n=n+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Lt=(u+r|0)+((8191&n)<<13)|0;u=(o+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(W,pt),n=Math.imul(W,mt),n=n+Math.imul(U,pt)|0,o=Math.imul(U,mt);var Ot=(u+r|0)+((8191&n)<<13)|0;return u=(o+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,a[0]=gt,a[1]=wt,a[2]=vt,a[3]=yt,a[4]=Mt,a[5]=bt,a[6]=_t,a[7]=kt,a[8]=St,a[9]=xt,a[10]=Et,a[11]=Rt,a[12]=Bt,a[13]=Tt,a[14]=At,a[15]=jt,a[16]=qt,a[17]=Lt,a[18]=Ot,0!==u&&(a[19]=u,i.length++),i};function g(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0,n+=h>>>26,h&=67108863}i.words[o]=s,r=h,h=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}function w(t,e,i){var r=new v;return r.mulp(t,e,i)}function v(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var i,r=this.length+t.length;return i=10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?g(this,t,e):w(this,t,e),i},v.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,r=0;r>=1;return r},v.prototype.permute=function(t,e,i,r,n,o){for(var h=0;h>>=1)n++;return 1<>>=13,i[2*h+1]=8191&o,o>>>=13;for(h=2*e;h>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),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 e=c(t);if(0===e.length)return new o(1);for(var i=this,r=0;r=0);var e,i=t%26,n=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var h=0;for(e=0;e>>26-i}h&&(this.words[e]=h,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e=0),n=e?(e-e%26)/26:0;var o=t%26,h=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<h)for(this.length-=h,u=0;u=0&&(0!==l||u>=n);u--){var f=0|this.words[u];this.words[u]=l<<26-o|f>>>o,l=f&s}return a&&0!==l&&(a.words[a.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,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){r("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26,n=1<=0);var e=t%26,i=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var n=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[n+i]=67108863&o}for(;n>26,this.words[n+i]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.length-t.length,r=this.clone(),n=t,h=0|n.words[n.length-1],s=this._countBits(h);i=26-s,0!==i&&(n=n.ushln(i),r.iushln(i),h=0|n.words[n.length-1]);var a,u=r.length-n.length;if("mod"!==e){a=new o(null),a.length=u+1,a.words=new Array(a.length);for(var l=0;l=0;d--){var c=67108864*(0|r.words[n.length+d])+(0|r.words[n.length+d-1]);c=Math.min(c/h|0,67108863),r._ishlnsubmul(n,c,d);while(0!==r.negative)c--,r.negative=0,r._ishlnsubmul(n,1,d),r.isZero()||(r.negative^=1);a&&(a.words[d]=c)}return a&&a.strip(),r.strip(),"div"!==e&&0!==i&&r.iushrn(i),{div:a||null,mod:r}},o.prototype.divmod=function(t,e,i){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(n=s.div.neg()),"div"!==e&&(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(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,h,s},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 e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),n=t.andln(1),o=i.cmp(r);return o<0||1===n&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,i=0,n=this.length-1;n>=0;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var n=new o(1),h=new o(0),s=new o(0),a=new o(1),u=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++u;var l=i.clone(),f=e.clone();while(!e.isZero()){for(var d=0,c=1;0===(e.words[0]&c)&&d<26;++d,c<<=1);if(d>0){e.iushrn(d);while(d-- >0)(n.isOdd()||h.isOdd())&&(n.iadd(l),h.isub(f)),n.iushrn(1),h.iushrn(1)}for(var p=0,m=1;0===(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0){i.iushrn(p);while(p-- >0)(s.isOdd()||a.isOdd())&&(s.iadd(l),a.isub(f)),s.iushrn(1),a.iushrn(1)}e.cmp(i)>=0?(e.isub(i),n.isub(s),h.isub(a)):(i.isub(e),s.isub(n),a.isub(h))}return{a:s,b:a,gcd:i.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var n,h=new o(1),s=new o(0),a=i.clone();while(e.cmpn(1)>0&&i.cmpn(1)>0){for(var u=0,l=1;0===(e.words[0]&l)&&u<26;++u,l<<=1);if(u>0){e.iushrn(u);while(u-- >0)h.isOdd()&&h.iadd(a),h.iushrn(1)}for(var f=0,d=1;0===(i.words[0]&d)&&f<26;++f,d<<=1);if(f>0){i.iushrn(f);while(f-- >0)s.isOdd()&&s.iadd(a),s.iushrn(1)}e.cmp(i)>=0?(e.isub(i),h.isub(s)):(i.isub(e),s.isub(h))}return n=0===e.cmpn(1)?h:s,n.cmpn(0)<0&&n.iadd(t),n},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var r=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);do{while(e.isEven())e.iushrn(1);while(i.isEven())i.iushrn(1);var n=e.cmp(i);if(n<0){var o=e;e=i,i=o}else if(0===n||0===i.cmpn(1))break;e.isub(i)}while(1);return i.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,i=(t-e)/26,n=1<>>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 e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),r(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:nt.length)return 1;if(this.length=0;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){rn&&(e=1);break}}return e},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 this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},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 x(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(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 r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function M(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){x.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)}M.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},M.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),e=i.bitLength()}while(e>this.n);var r=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},M.prototype.split=function(t,e){t.iushrn(this.n,0,e)},M.prototype.imulK=function(t){return t.imul(this.k)},n(b,M),b.prototype.split=function(t,e){for(var i=4194303,r=Math.min(t.length,9),n=0;n>>22,o=h}o>>>=22,t.words[n-10]=o,0===o&&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 e=0,i=0;i>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new _;else if("p192"===t)e=new k;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return y[t]=e,e},x.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}var n=this.m.subn(1),h=0;while(!n.isZero()&&0===n.andln(1))h++,n.iushrn(1);r(!n.isZero());var s=new o(1).toRed(this),a=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,u).cmp(a))l.redIAdd(a);var f=this.pow(l,n),d=this.pow(t,n.addn(1).iushrn(1)),c=this.pow(t,n),p=h;while(0!==c.cmp(s)){for(var m=c,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g=0;n--){for(var l=e.words[n],f=u-1;f>=0;f--){var d=l>>f&1;h!==r[0]&&(h=this.sqr(h)),0!==d||0!==s?(s<<=1,s|=d,a++,(a===i||0===n&&0===f)&&(h=this.mul(h,r[s]),a=0,s=0)):a=0}u=26}return h},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},n(E,x),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).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)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),h=n;return n.cmp(this.m)>=0?h=n.isub(this.m):n.cmpn(0)<0&&(h=n.iadd(this.m)),h._forceRed(this)},E.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,i("62e4")(t))},"0960":function(t,e,i){t.exports=i("b19a")},"0f2c":function(t,e,i){var r=i("2aee"),n=i("f460"),o=i("83d5"),h=i("0106"),s=i("a958"),a=i("98e6"),u=i("5291"),l=i("8707").Buffer;function f(t,e){var i=t.modulus.byteLength(),r=a("sha1").update(l.alloc(0)).digest(),h=r.length;if(0!==e[0])throw new Error("decryption error");var s=e.slice(1,h+1),u=e.slice(h+1),f=o(s,n(u,h)),d=o(u,n(f,i-h-1));if(c(r,d.slice(0,h)))throw new Error("decryption error");var p=h;while(0===d[p])p++;if(1!==d[p++])throw new Error("decryption error");return d.slice(p)}function d(t,e,i){var r=e.slice(0,2),n=2,o=0;while(0!==e[n++])if(n>=e.length){o++;break}var h=e.slice(2,n-1);if(("0002"!==r.toString("hex")&&!i||"0001"!==r.toString("hex")&&i)&&o++,h.length<8&&o++,o)throw new Error("decryption error");return e.slice(n)}function c(t,e){t=l.from(t),e=l.from(e);var i=0,r=t.length;t.length!==e.length&&(i++,r=Math.min(t.length,e.length));var n=-1;while(++nc||new h(e).cmp(a.modulus)>=0)throw new Error("decryption error");o=i?u(new h(e),a):s(e,a);var p=l.alloc(c-o.length);if(o=l.concat([p,o],c),4===n)return f(a,o);if(1===n)return d(a,o,i);if(3===n)return o;throw new Error("unknown padding")}},"11dc":function(t,e,i){"use strict";(function(e,r){var n=65536,o=4294967295;function h(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var s=i("8707").Buffer,a=e.crypto||e.msCrypto;function u(t,e){if(t>o)throw new RangeError("requested too many random bytes");var i=s.allocUnsafe(t);if(t>0)if(t>n)for(var h=0;h0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";var e=this.head,i=""+e.data;while(e=e.next)i+=t+e.data;return i},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);var e=n.allocUnsafe(t>>>0),i=this.head,r=0;while(i)h(i.data,e,r),r+=i.data.length,i=i.next;return e},t}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},6442:function(t,e,i){e.publicEncrypt=i("ad25"),e.privateDecrypt=i("0f2c"),e.privateEncrypt=function(t,i){return e.publicEncrypt(t,i,!0)},e.publicDecrypt=function(t,i){return e.privateDecrypt(t,i,!0)}},"75cc":function(t,e,i){"use strict";(function(t,r){function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=i("8707"),h=i("11dc"),s=o.Buffer,a=o.kMaxLength,u=t.crypto||t.msCrypto,l=Math.pow(2,32)-1;function f(t,e){if("number"!==typeof t||t!==t)throw new TypeError("offset must be a number");if(t>l||t<0)throw new TypeError("offset must be a uint32");if(t>a||t>e)throw new RangeError("offset out of range")}function d(t,e,i){if("number"!==typeof t||t!==t)throw new TypeError("size must be a number");if(t>l||t<0)throw new TypeError("size must be a uint32");if(t+e>i||t>a)throw new RangeError("buffer too small")}function c(e,i,r,n){if(!s.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof i)n=i,i=0,r=e.length;else if("function"===typeof r)n=r,r=e.length-i;else if("function"!==typeof n)throw new TypeError('"cb" argument must be a function');return f(i,e.length),d(r,i,e.length),p(e,i,r,n)}function p(t,e,i,n){if(r.browser){var o=t.buffer,s=new Uint8Array(o,e,i);return u.getRandomValues(s),n?void r.nextTick((function(){n(null,t)})):t}if(!n){var a=h(i);return a.copy(t,e),t}h(i,(function(i,r){if(i)return n(i);r.copy(t,e),n(null,t)}))}function m(e,i,r){if("undefined"===typeof i&&(i=0),!s.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return f(i,e.length),void 0===r&&(r=e.length-i),d(r,i,e.length),p(e,i,r)}u&&u.getRandomValues||!r.browser?(e.randomFill=c,e.randomFillSync=m):(e.randomFill=n,e.randomFillSync=n)}).call(this,i("c8ba"),i("4362"))},"780f":function(t,e,i){"use strict";t.exports=o;var r=i("27bf"),n=Object.create(i("3a7c"));function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}n.inherits=i("3fb5"),n.inherits(o,r),o.prototype._transform=function(t,e,i){i(null,t)}},"7d2a":function(t,e){var i=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!==typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!==typeof e)throw new TypeError("Key length not a number");if(e<0||e>i||e!==e)throw new TypeError("Bad key length")}},"83d5":function(t,e){t.exports=function(t,e){var i=t.length,r=-1;while(++r=6?"utf-8":"binary"}else r="utf-8";t.exports=r}).call(this,i("c8ba"),i("4362"))},a099:function(t,e,i){e.pbkdf2=i("206d"),e.pbkdf2Sync=i("e07b")},ad25:function(t,e,i){var r=i("2aee"),n=i("11dc"),o=i("98e6"),h=i("f460"),s=i("83d5"),a=i("0106"),u=i("5291"),l=i("a958"),f=i("8707").Buffer;function d(t,e){var i=t.modulus.byteLength(),r=e.length,u=o("sha1").update(f.alloc(0)).digest(),l=u.length,d=2*l;if(r>i-d-2)throw new Error("message too long");var c=f.alloc(i-r-d-2),p=i-l-1,m=n(l),g=s(f.concat([u,c,f.alloc(1,1),e],p),h(m,p)),w=s(m,h(g,l));return new a(f.concat([f.alloc(1),w,g],i))}function c(t,e,i){var r,n=e.length,o=t.modulus.byteLength();if(n>o-11)throw new Error("message too long");return r=i?f.alloc(o-n-3,255):p(o-n-3),new a(f.concat([f.from([0,i?1:2]),r,f.alloc(1),e],o))}function p(t){var e,i=f.allocUnsafe(t),r=0,o=n(2*t),h=0;while(r=0)throw new Error("data too long for modulus")}return i?l(o,h):u(o,h)}},ad71:function(t,e,i){"use strict";(function(e,r){var n=i("966d");t.exports=_;var o,h=i("e3db");_.ReadableState=b;i("faa1").EventEmitter;var s=function(t,e){return t.listeners(e).length},a=i("429b"),u=i("8707").Buffer,l=("undefined"!==typeof e?e:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function f(t){return u.from(t)}function d(t){return u.isBuffer(t)||t instanceof l}var c=Object.create(i("3a7c"));c.inherits=i("3fb5");var p=i(2),m=void 0;m=p&&p.debuglog?p.debuglog("stream"):function(){};var g,w=i("5e1a"),v=i("4681");c.inherits(_,a);var y=["error","close","destroy","pause","resume"];function M(t,e,i){if("function"===typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?h(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}function b(t,e){o=o||i("b19a"),t=t||{};var r=e instanceof o;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,h=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(h||0===h)?h:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(g||(g=i("7d72").StringDecoder),this.decoder=new g(t.encoding),this.encoding=t.encoding)}function _(t){if(o=o||i("b19a"),!(this instanceof _))return new _(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function k(t,e,i,r,n){var o,h=t._readableState;null===e?(h.reading=!1,A(t,h)):(n||(o=x(h,e)),o?t.emit("error",o):h.objectMode||e&&e.length>0?("string"===typeof e||h.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=f(e)),r?h.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):S(t,h,e,!0):h.ended?t.emit("error",new Error("stream.push() after EOF")):(h.reading=!1,h.decoder&&!i?(e=h.decoder.write(e),h.objectMode||0!==e.length?S(t,h,e,!1):L(t,h)):S(t,h,e,!1))):r||(h.reading=!1));return E(h)}function S(t,e,i,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",i),t.read(0)):(e.length+=e.objectMode?1:i.length,r?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&j(t)),L(t,e)}function x(t,e){var i;return d(e)||"string"===typeof e||void 0===e||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i}function E(t){return!t.ended&&(t.needReadable||t.length=R?t=R:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function T(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=B(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function A(t,e){if(!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,j(t)}}function j(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(m("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?n.nextTick(q,t):q(t))}function q(t){m("emit readable"),t.emit("readable"),U(t)}function L(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(O,t,e))}function O(t,e){var i=e.length;while(!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):i=Z(t,e.buffer,e.decoder),i);var i}function Z(t,e,i){var r;return to.length?o.length:t;if(h===o.length?n+=o:n+=o.slice(0,t),t-=h,0===t){h===o.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=o.slice(h));break}++r}return e.length-=r,n}function H(t,e){var i=u.allocUnsafe(t),r=e.head,n=1;r.data.copy(i),t-=r.data.length;while(r=r.next){var o=r.data,h=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,h),t-=h,0===t){h===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(h));break}++n}return e.length-=n,i}function N(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,n.nextTick(z,e,t))}function z(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function K(t,e){for(var i=0,r=t.length;i=e.highWaterMark||e.ended))return m("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):j(this),null;if(t=T(t,e),0===t&&e.ended)return 0===e.length&&N(this),null;var r,n=e.needReadable;return m("need readable",n),(0===e.length||e.length-t0?D(t,e):null,null===r?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&N(this)),null!==r&&this.emit("data",r),r},_.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},_.prototype.pipe=function(t,e){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t);break}o.pipesCount+=1,m("pipe count=%d opts=%j",o.pipesCount,e);var h=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,a=h?l:b;function u(t,e){m("onunpipe"),t===i&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,c())}function l(){m("onend"),t.end()}o.endEmitted?n.nextTick(a):i.once("end",a),t.on("unpipe",u);var f=I(i);t.on("drain",f);var d=!1;function c(){m("cleanup"),t.removeListener("close",v),t.removeListener("finish",y),t.removeListener("drain",f),t.removeListener("error",w),t.removeListener("unpipe",u),i.removeListener("end",l),i.removeListener("end",b),i.removeListener("data",g),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||f()}var p=!1;function g(e){m("ondata"),p=!1;var r=t.write(e);!1!==r||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==K(o.pipes,t))&&!d&&(m("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),i.pause())}function w(e){m("onerror",e),b(),t.removeListener("error",w),0===s(t,"error")&&t.emit("error",e)}function v(){t.removeListener("finish",y),b()}function y(){m("onfinish"),t.removeListener("close",v),b()}function b(){m("unpipe"),i.unpipe(t)}return i.on("data",g),M(t,"error",w),t.once("close",v),t.once("finish",y),t.emit("pipe",i),o.flowing||(m("pipe resume"),i.resume()),t},_.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o>>32-e}function m(t,e,i,r,n,o,h,s){return p(t+(e^i^r)+o+h|0,s)+n|0}function g(t,e,i,r,n,o,h,s){return p(t+(e&i|~e&r)+o+h|0,s)+n|0}function w(t,e,i,r,n,o,h,s){return p(t+((e|~i)^r)+o+h|0,s)+n|0}function v(t,e,i,r,n,o,h,s){return p(t+(e&r|i&~r)+o+h|0,s)+n|0}function y(t,e,i,r,n,o,h,s){return p(t+(e^(i|~r))+o+h|0,s)+n|0}n(c,o),c.prototype._update=function(){for(var t=h,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,c=0|this._e,M=0|this._a,b=0|this._b,_=0|this._c,k=0|this._d,S=0|this._e,x=0;x<80;x+=1){var E,R;x<16?(E=m(i,r,n,o,c,t[s[x]],f[0],u[x]),R=y(M,b,_,k,S,t[a[x]],d[0],l[x])):x<32?(E=g(i,r,n,o,c,t[s[x]],f[1],u[x]),R=v(M,b,_,k,S,t[a[x]],d[1],l[x])):x<48?(E=w(i,r,n,o,c,t[s[x]],f[2],u[x]),R=w(M,b,_,k,S,t[a[x]],d[2],l[x])):x<64?(E=v(i,r,n,o,c,t[s[x]],f[3],u[x]),R=g(M,b,_,k,S,t[a[x]],d[3],l[x])):(E=y(i,r,n,o,c,t[s[x]],f[4],u[x]),R=m(M,b,_,k,S,t[a[x]],d[4],l[x])),i=c,c=o,o=p(n,10),n=r,r=E,M=S,S=k,k=p(_,10),_=b,b=R}var B=this._b+n+k|0;this._b=this._c+o+S|0,this._c=this._d+c+M|0,this._d=this._e+i+b|0,this._e=this._a+r+_|0,this._a=B},c.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=r.alloc?r.alloc(20):new r(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=c},c2ae:function(t,e,i){t.exports=i("e372").PassThrough},d17b:function(t,e,i){t.exports=i("e372").Transform},dc14:function(t,e,i){"use strict";(function(e,r){var n=i("966d");function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){C(e,t)}}t.exports=y;var h,s=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?setImmediate:n.nextTick;y.WritableState=v;var a=Object.create(i("3a7c"));a.inherits=i("3fb5");var u={deprecate:i("b7d1")},l=i("429b"),f=i("8707").Buffer,d=("undefined"!==typeof r?r:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function c(t){return f.from(t)}function p(t){return f.isBuffer(t)||t instanceof d}var m,g=i("4681");function w(){}function v(t,e){h=h||i("b19a"),t=t||{};var r=e instanceof h;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,s=t.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){R(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(t){if(h=h||i("b19a"),!m.call(y,this)&&!(this instanceof h))return new y(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),l.call(this)}function M(t,e){var i=new Error("write after end");t.emit("error",i),n.nextTick(e,i)}function b(t,e,i,r){var o=!0,h=!1;return null===i?h=new TypeError("May not write null values to stream"):"string"===typeof i||void 0===i||e.objectMode||(h=new TypeError("Invalid non-string/buffer chunk")),h&&(t.emit("error",h),n.nextTick(r,h),o=!1),o}function _(t,e,i){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=f.from(e,i)),e}function k(t,e,i,r,n,o){if(!i){var h=_(e,r,n);r!==h&&(i=!0,n="buffer",r=h)}var s=e.objectMode?1:r.length;e.length+=s;var a=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,i){i(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,i){var r=this._writableState;"function"===typeof t?(i=t,t=null,e=null):"function"===typeof e&&(i=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||I(this,r,i)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,i("4362"),i("c8ba"))},e07b:function(t,e,i){var r=i("5a76"),n=i("b5ca"),o=i("69f2"),h=i("8707").Buffer,s=i("7d2a"),a=i("9f9d"),u=i("8be6"),l=h.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(t,e,i){var r=c(t),n="sha512"===t||"sha384"===t?128:64;e.length>n?e=r(e):e.length