(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors~b5906859"],{"00dc":function(t,e,i){(function(t){var r=i("58a2"),n=i("c24d"),h=i("561d");function f(e){var i=new t(n[e].prime,"hex"),r=new t(n[e].gen,"hex");return new h(i,r)}var a={binary:!0,hex:!0,base64:!0};function o(e,i,n,f){return t.isBuffer(i)||void 0===a[i]?o(e,"binary",i,n):(i=i||"binary",f=f||"binary",n=n||new t([2]),t.isBuffer(n)||(n=new t(n,f)),"number"===typeof e?new h(r(e,n),n,!0):(t.isBuffer(e)||(e=new t(e,i)),new h(e,n,!0)))}e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=f,e.createDiffieHellman=e.DiffieHellman=o}).call(this,i("1c35").Buffer)},"0184":function(t,e,i){"use strict";var r=i("da3e");function n(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==t.padding}t.exports=n,n.prototype._init=function(){},n.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},n.prototype._buffer=function(t,e){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-e),r=0;r0;r--)e+=this._buffer(t,e),i+=this._flushBuffer(n,i);return e+=this._buffer(t,e),n},n.prototype.final=function(t){var e,i;return t&&(e=this.update(t)),i="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(i):i},n.prototype._pad=function(t,e){if(0===e)return!1;while(e=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function o(t,e,i){var r=a(t,i);return i-1>=e&&(r|=a(t,i-1)<<4),r}function s(t,e,i,r){for(var n=0,h=Math.min(t.length,i),f=e;f=49?a-49+10:a>=17?a-17+10:a}return n}h.isBN=function(t){return t instanceof h||null!==t&&"object"===typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.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)f=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[h]|=f<>>26-a&67108863,a+=24,a>=26&&(a-=26,h++);else if("le"===i)for(n=0,h=0;n>>26-a&67108863,a+=24,a>=26&&(a-=26,h++);return this.strip()},h.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=o(t,e,r)<=18?(h-=18,f+=1,this.words[f]|=n>>>26):h+=8;else{var a=t.length-e;for(r=a%2===0?e+1:e;r=18?(h-=18,f+=1,this.words[f]|=n>>>26):h+=8}this.strip()},h.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 h=t.length-i,f=h%r,a=Math.min(h,h-f)+i,o=0,u=i;u1&&0===this.words[this.length-1])this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[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 m(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],h=0|e.words[0],f=n*h,a=67108863&f,o=f/67108864|0;i.words[0]=a;for(var s=1;s>>26,d=67108863&o,l=Math.min(s,e.length-1),c=Math.max(0,s-t.length+1);c<=l;c++){var m=s-c|0;n=0|t.words[m],h=0|e.words[c],f=n*h+d,u+=f/67108864|0,d=67108863&f}i.words[s]=0|d,o=0|u}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}h.prototype.toString=function(t,e){var i;if(t=t||10,e=0|e||1,16===t||"hex"===t){i="";for(var n=0,h=0,f=0;f>>24-n&16777215,n+=2,n>=26&&(n-=26,f--),i=0!==h||f!==this.length-1?u[6-o.length]+o+i:o+i}0!==h&&(i=h.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 s=d[t],c=l[t];i="";var m=this.clone();m.negative=0;while(!m.isZero()){var p=m.modn(c).toString(t);m=m.idivn(c),i=m.isZero()?p+i:u[s-p.length]+p+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")},h.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},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return r("undefined"!==typeof f),this.toArrayLike(f,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,i){var n=this.byteLength(),h=i||Math.max(1,n);r(n<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0"),this.strip();var f,a,o="le"===e,s=new t(h),u=this.clone();if(o){for(a=0;!u.isZero();a++)f=u.andln(255),u.iushrn(8),s[a]=f;for(;a=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},h.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},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.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)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.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)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.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()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.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,h=0;h>>26;for(;0!==n&&h>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ht.length?this.clone().iadd(t):t.clone().iadd(this)},h.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 h=0,f=0;f>26,this.words[f]=67108863&e;for(;0!==h&&f>26,this.words[f]=67108863&e;if(0===h&&f>>13,c=0|f[1],m=8191&c,p=c>>>13,b=0|f[2],v=8191&b,g=b>>>13,M=0|f[3],w=8191&M,y=M>>>13,_=0|f[4],k=8191&_,S=_>>>13,x=0|f[5],A=8191&x,B=x>>>13,E=0|f[6],q=8191&E,R=E>>>13,z=0|f[7],I=8191&z,Z=z>>>13,O=0|f[8],N=8191&O,L=O>>>13,T=0|f[9],D=8191&T,P=T>>>13,C=0|a[0],K=8191&C,U=C>>>13,j=0|a[1],H=8191&j,G=j>>>13,J=0|a[2],F=8191&J,V=J>>>13,Q=0|a[3],W=8191&Q,X=Q>>>13,Y=0|a[4],$=8191&Y,tt=Y>>>13,et=0|a[5],it=8191&et,rt=et>>>13,nt=0|a[6],ht=8191&nt,ft=nt>>>13,at=0|a[7],ot=8191&at,st=at>>>13,ut=0|a[8],dt=8191&ut,lt=ut>>>13,ct=0|a[9],mt=8191&ct,pt=ct>>>13;i.negative=t.negative^e.negative,i.length=19,r=Math.imul(d,K),n=Math.imul(d,U),n=n+Math.imul(l,K)|0,h=Math.imul(l,U);var bt=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(m,K),n=Math.imul(m,U),n=n+Math.imul(p,K)|0,h=Math.imul(p,U),r=r+Math.imul(d,H)|0,n=n+Math.imul(d,G)|0,n=n+Math.imul(l,H)|0,h=h+Math.imul(l,G)|0;var vt=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,K),n=Math.imul(v,U),n=n+Math.imul(g,K)|0,h=Math.imul(g,U),r=r+Math.imul(m,H)|0,n=n+Math.imul(m,G)|0,n=n+Math.imul(p,H)|0,h=h+Math.imul(p,G)|0,r=r+Math.imul(d,F)|0,n=n+Math.imul(d,V)|0,n=n+Math.imul(l,F)|0,h=h+Math.imul(l,V)|0;var gt=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(w,K),n=Math.imul(w,U),n=n+Math.imul(y,K)|0,h=Math.imul(y,U),r=r+Math.imul(v,H)|0,n=n+Math.imul(v,G)|0,n=n+Math.imul(g,H)|0,h=h+Math.imul(g,G)|0,r=r+Math.imul(m,F)|0,n=n+Math.imul(m,V)|0,n=n+Math.imul(p,F)|0,h=h+Math.imul(p,V)|0,r=r+Math.imul(d,W)|0,n=n+Math.imul(d,X)|0,n=n+Math.imul(l,W)|0,h=h+Math.imul(l,X)|0;var Mt=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(k,K),n=Math.imul(k,U),n=n+Math.imul(S,K)|0,h=Math.imul(S,U),r=r+Math.imul(w,H)|0,n=n+Math.imul(w,G)|0,n=n+Math.imul(y,H)|0,h=h+Math.imul(y,G)|0,r=r+Math.imul(v,F)|0,n=n+Math.imul(v,V)|0,n=n+Math.imul(g,F)|0,h=h+Math.imul(g,V)|0,r=r+Math.imul(m,W)|0,n=n+Math.imul(m,X)|0,n=n+Math.imul(p,W)|0,h=h+Math.imul(p,X)|0,r=r+Math.imul(d,$)|0,n=n+Math.imul(d,tt)|0,n=n+Math.imul(l,$)|0,h=h+Math.imul(l,tt)|0;var wt=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(A,K),n=Math.imul(A,U),n=n+Math.imul(B,K)|0,h=Math.imul(B,U),r=r+Math.imul(k,H)|0,n=n+Math.imul(k,G)|0,n=n+Math.imul(S,H)|0,h=h+Math.imul(S,G)|0,r=r+Math.imul(w,F)|0,n=n+Math.imul(w,V)|0,n=n+Math.imul(y,F)|0,h=h+Math.imul(y,V)|0,r=r+Math.imul(v,W)|0,n=n+Math.imul(v,X)|0,n=n+Math.imul(g,W)|0,h=h+Math.imul(g,X)|0,r=r+Math.imul(m,$)|0,n=n+Math.imul(m,tt)|0,n=n+Math.imul(p,$)|0,h=h+Math.imul(p,tt)|0,r=r+Math.imul(d,it)|0,n=n+Math.imul(d,rt)|0,n=n+Math.imul(l,it)|0,h=h+Math.imul(l,rt)|0;var yt=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(q,K),n=Math.imul(q,U),n=n+Math.imul(R,K)|0,h=Math.imul(R,U),r=r+Math.imul(A,H)|0,n=n+Math.imul(A,G)|0,n=n+Math.imul(B,H)|0,h=h+Math.imul(B,G)|0,r=r+Math.imul(k,F)|0,n=n+Math.imul(k,V)|0,n=n+Math.imul(S,F)|0,h=h+Math.imul(S,V)|0,r=r+Math.imul(w,W)|0,n=n+Math.imul(w,X)|0,n=n+Math.imul(y,W)|0,h=h+Math.imul(y,X)|0,r=r+Math.imul(v,$)|0,n=n+Math.imul(v,tt)|0,n=n+Math.imul(g,$)|0,h=h+Math.imul(g,tt)|0,r=r+Math.imul(m,it)|0,n=n+Math.imul(m,rt)|0,n=n+Math.imul(p,it)|0,h=h+Math.imul(p,rt)|0,r=r+Math.imul(d,ht)|0,n=n+Math.imul(d,ft)|0,n=n+Math.imul(l,ht)|0,h=h+Math.imul(l,ft)|0;var _t=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(I,K),n=Math.imul(I,U),n=n+Math.imul(Z,K)|0,h=Math.imul(Z,U),r=r+Math.imul(q,H)|0,n=n+Math.imul(q,G)|0,n=n+Math.imul(R,H)|0,h=h+Math.imul(R,G)|0,r=r+Math.imul(A,F)|0,n=n+Math.imul(A,V)|0,n=n+Math.imul(B,F)|0,h=h+Math.imul(B,V)|0,r=r+Math.imul(k,W)|0,n=n+Math.imul(k,X)|0,n=n+Math.imul(S,W)|0,h=h+Math.imul(S,X)|0,r=r+Math.imul(w,$)|0,n=n+Math.imul(w,tt)|0,n=n+Math.imul(y,$)|0,h=h+Math.imul(y,tt)|0,r=r+Math.imul(v,it)|0,n=n+Math.imul(v,rt)|0,n=n+Math.imul(g,it)|0,h=h+Math.imul(g,rt)|0,r=r+Math.imul(m,ht)|0,n=n+Math.imul(m,ft)|0,n=n+Math.imul(p,ht)|0,h=h+Math.imul(p,ft)|0,r=r+Math.imul(d,ot)|0,n=n+Math.imul(d,st)|0,n=n+Math.imul(l,ot)|0,h=h+Math.imul(l,st)|0;var kt=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(N,K),n=Math.imul(N,U),n=n+Math.imul(L,K)|0,h=Math.imul(L,U),r=r+Math.imul(I,H)|0,n=n+Math.imul(I,G)|0,n=n+Math.imul(Z,H)|0,h=h+Math.imul(Z,G)|0,r=r+Math.imul(q,F)|0,n=n+Math.imul(q,V)|0,n=n+Math.imul(R,F)|0,h=h+Math.imul(R,V)|0,r=r+Math.imul(A,W)|0,n=n+Math.imul(A,X)|0,n=n+Math.imul(B,W)|0,h=h+Math.imul(B,X)|0,r=r+Math.imul(k,$)|0,n=n+Math.imul(k,tt)|0,n=n+Math.imul(S,$)|0,h=h+Math.imul(S,tt)|0,r=r+Math.imul(w,it)|0,n=n+Math.imul(w,rt)|0,n=n+Math.imul(y,it)|0,h=h+Math.imul(y,rt)|0,r=r+Math.imul(v,ht)|0,n=n+Math.imul(v,ft)|0,n=n+Math.imul(g,ht)|0,h=h+Math.imul(g,ft)|0,r=r+Math.imul(m,ot)|0,n=n+Math.imul(m,st)|0,n=n+Math.imul(p,ot)|0,h=h+Math.imul(p,st)|0,r=r+Math.imul(d,dt)|0,n=n+Math.imul(d,lt)|0,n=n+Math.imul(l,dt)|0,h=h+Math.imul(l,lt)|0;var St=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(D,K),n=Math.imul(D,U),n=n+Math.imul(P,K)|0,h=Math.imul(P,U),r=r+Math.imul(N,H)|0,n=n+Math.imul(N,G)|0,n=n+Math.imul(L,H)|0,h=h+Math.imul(L,G)|0,r=r+Math.imul(I,F)|0,n=n+Math.imul(I,V)|0,n=n+Math.imul(Z,F)|0,h=h+Math.imul(Z,V)|0,r=r+Math.imul(q,W)|0,n=n+Math.imul(q,X)|0,n=n+Math.imul(R,W)|0,h=h+Math.imul(R,X)|0,r=r+Math.imul(A,$)|0,n=n+Math.imul(A,tt)|0,n=n+Math.imul(B,$)|0,h=h+Math.imul(B,tt)|0,r=r+Math.imul(k,it)|0,n=n+Math.imul(k,rt)|0,n=n+Math.imul(S,it)|0,h=h+Math.imul(S,rt)|0,r=r+Math.imul(w,ht)|0,n=n+Math.imul(w,ft)|0,n=n+Math.imul(y,ht)|0,h=h+Math.imul(y,ft)|0,r=r+Math.imul(v,ot)|0,n=n+Math.imul(v,st)|0,n=n+Math.imul(g,ot)|0,h=h+Math.imul(g,st)|0,r=r+Math.imul(m,dt)|0,n=n+Math.imul(m,lt)|0,n=n+Math.imul(p,dt)|0,h=h+Math.imul(p,lt)|0,r=r+Math.imul(d,mt)|0,n=n+Math.imul(d,pt)|0,n=n+Math.imul(l,mt)|0,h=h+Math.imul(l,pt)|0;var xt=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(D,H),n=Math.imul(D,G),n=n+Math.imul(P,H)|0,h=Math.imul(P,G),r=r+Math.imul(N,F)|0,n=n+Math.imul(N,V)|0,n=n+Math.imul(L,F)|0,h=h+Math.imul(L,V)|0,r=r+Math.imul(I,W)|0,n=n+Math.imul(I,X)|0,n=n+Math.imul(Z,W)|0,h=h+Math.imul(Z,X)|0,r=r+Math.imul(q,$)|0,n=n+Math.imul(q,tt)|0,n=n+Math.imul(R,$)|0,h=h+Math.imul(R,tt)|0,r=r+Math.imul(A,it)|0,n=n+Math.imul(A,rt)|0,n=n+Math.imul(B,it)|0,h=h+Math.imul(B,rt)|0,r=r+Math.imul(k,ht)|0,n=n+Math.imul(k,ft)|0,n=n+Math.imul(S,ht)|0,h=h+Math.imul(S,ft)|0,r=r+Math.imul(w,ot)|0,n=n+Math.imul(w,st)|0,n=n+Math.imul(y,ot)|0,h=h+Math.imul(y,st)|0,r=r+Math.imul(v,dt)|0,n=n+Math.imul(v,lt)|0,n=n+Math.imul(g,dt)|0,h=h+Math.imul(g,lt)|0,r=r+Math.imul(m,mt)|0,n=n+Math.imul(m,pt)|0,n=n+Math.imul(p,mt)|0,h=h+Math.imul(p,pt)|0;var At=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(D,F),n=Math.imul(D,V),n=n+Math.imul(P,F)|0,h=Math.imul(P,V),r=r+Math.imul(N,W)|0,n=n+Math.imul(N,X)|0,n=n+Math.imul(L,W)|0,h=h+Math.imul(L,X)|0,r=r+Math.imul(I,$)|0,n=n+Math.imul(I,tt)|0,n=n+Math.imul(Z,$)|0,h=h+Math.imul(Z,tt)|0,r=r+Math.imul(q,it)|0,n=n+Math.imul(q,rt)|0,n=n+Math.imul(R,it)|0,h=h+Math.imul(R,rt)|0,r=r+Math.imul(A,ht)|0,n=n+Math.imul(A,ft)|0,n=n+Math.imul(B,ht)|0,h=h+Math.imul(B,ft)|0,r=r+Math.imul(k,ot)|0,n=n+Math.imul(k,st)|0,n=n+Math.imul(S,ot)|0,h=h+Math.imul(S,st)|0,r=r+Math.imul(w,dt)|0,n=n+Math.imul(w,lt)|0,n=n+Math.imul(y,dt)|0,h=h+Math.imul(y,lt)|0,r=r+Math.imul(v,mt)|0,n=n+Math.imul(v,pt)|0,n=n+Math.imul(g,mt)|0,h=h+Math.imul(g,pt)|0;var Bt=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(D,W),n=Math.imul(D,X),n=n+Math.imul(P,W)|0,h=Math.imul(P,X),r=r+Math.imul(N,$)|0,n=n+Math.imul(N,tt)|0,n=n+Math.imul(L,$)|0,h=h+Math.imul(L,tt)|0,r=r+Math.imul(I,it)|0,n=n+Math.imul(I,rt)|0,n=n+Math.imul(Z,it)|0,h=h+Math.imul(Z,rt)|0,r=r+Math.imul(q,ht)|0,n=n+Math.imul(q,ft)|0,n=n+Math.imul(R,ht)|0,h=h+Math.imul(R,ft)|0,r=r+Math.imul(A,ot)|0,n=n+Math.imul(A,st)|0,n=n+Math.imul(B,ot)|0,h=h+Math.imul(B,st)|0,r=r+Math.imul(k,dt)|0,n=n+Math.imul(k,lt)|0,n=n+Math.imul(S,dt)|0,h=h+Math.imul(S,lt)|0,r=r+Math.imul(w,mt)|0,n=n+Math.imul(w,pt)|0,n=n+Math.imul(y,mt)|0,h=h+Math.imul(y,pt)|0;var Et=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,$),n=Math.imul(D,tt),n=n+Math.imul(P,$)|0,h=Math.imul(P,tt),r=r+Math.imul(N,it)|0,n=n+Math.imul(N,rt)|0,n=n+Math.imul(L,it)|0,h=h+Math.imul(L,rt)|0,r=r+Math.imul(I,ht)|0,n=n+Math.imul(I,ft)|0,n=n+Math.imul(Z,ht)|0,h=h+Math.imul(Z,ft)|0,r=r+Math.imul(q,ot)|0,n=n+Math.imul(q,st)|0,n=n+Math.imul(R,ot)|0,h=h+Math.imul(R,st)|0,r=r+Math.imul(A,dt)|0,n=n+Math.imul(A,lt)|0,n=n+Math.imul(B,dt)|0,h=h+Math.imul(B,lt)|0,r=r+Math.imul(k,mt)|0,n=n+Math.imul(k,pt)|0,n=n+Math.imul(S,mt)|0,h=h+Math.imul(S,pt)|0;var qt=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,r=Math.imul(D,it),n=Math.imul(D,rt),n=n+Math.imul(P,it)|0,h=Math.imul(P,rt),r=r+Math.imul(N,ht)|0,n=n+Math.imul(N,ft)|0,n=n+Math.imul(L,ht)|0,h=h+Math.imul(L,ft)|0,r=r+Math.imul(I,ot)|0,n=n+Math.imul(I,st)|0,n=n+Math.imul(Z,ot)|0,h=h+Math.imul(Z,st)|0,r=r+Math.imul(q,dt)|0,n=n+Math.imul(q,lt)|0,n=n+Math.imul(R,dt)|0,h=h+Math.imul(R,lt)|0,r=r+Math.imul(A,mt)|0,n=n+Math.imul(A,pt)|0,n=n+Math.imul(B,mt)|0,h=h+Math.imul(B,pt)|0;var Rt=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(D,ht),n=Math.imul(D,ft),n=n+Math.imul(P,ht)|0,h=Math.imul(P,ft),r=r+Math.imul(N,ot)|0,n=n+Math.imul(N,st)|0,n=n+Math.imul(L,ot)|0,h=h+Math.imul(L,st)|0,r=r+Math.imul(I,dt)|0,n=n+Math.imul(I,lt)|0,n=n+Math.imul(Z,dt)|0,h=h+Math.imul(Z,lt)|0,r=r+Math.imul(q,mt)|0,n=n+Math.imul(q,pt)|0,n=n+Math.imul(R,mt)|0,h=h+Math.imul(R,pt)|0;var zt=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(zt>>>26)|0,zt&=67108863,r=Math.imul(D,ot),n=Math.imul(D,st),n=n+Math.imul(P,ot)|0,h=Math.imul(P,st),r=r+Math.imul(N,dt)|0,n=n+Math.imul(N,lt)|0,n=n+Math.imul(L,dt)|0,h=h+Math.imul(L,lt)|0,r=r+Math.imul(I,mt)|0,n=n+Math.imul(I,pt)|0,n=n+Math.imul(Z,mt)|0,h=h+Math.imul(Z,pt)|0;var It=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(D,dt),n=Math.imul(D,lt),n=n+Math.imul(P,dt)|0,h=Math.imul(P,lt),r=r+Math.imul(N,mt)|0,n=n+Math.imul(N,pt)|0,n=n+Math.imul(L,mt)|0,h=h+Math.imul(L,pt)|0;var Zt=(s+r|0)+((8191&n)<<13)|0;s=(h+(n>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,r=Math.imul(D,mt),n=Math.imul(D,pt),n=n+Math.imul(P,mt)|0,h=Math.imul(P,pt);var Ot=(s+r|0)+((8191&n)<<13)|0;return s=(h+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,o[0]=bt,o[1]=vt,o[2]=gt,o[3]=Mt,o[4]=wt,o[5]=yt,o[6]=_t,o[7]=kt,o[8]=St,o[9]=xt,o[10]=At,o[11]=Bt,o[12]=Et,o[13]=qt,o[14]=Rt,o[15]=zt,o[16]=It,o[17]=Zt,o[18]=Ot,0!==s&&(o[19]=s,i.length++),i};function b(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,h=0;h>>26)|0,n+=f>>>26,f&=67108863}i.words[h]=a,r=f,f=n}return 0!==r?i.words[h]=r:i.length--,i.strip()}function v(t,e,i){var r=new g;return r.mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=m),h.prototype.mulTo=function(t,e){var i,r=this.length+t.length;return i=10===this.length&&10===t.length?p(this,t,e):r<63?m(this,t,e):r<1024?b(this,t,e):v(this,t,e),i},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=h.prototype._countBits(t)-1,r=0;r>=1;return r},g.prototype.permute=function(t,e,i,r,n,h){for(var f=0;f>>=1)n++;return 1<>>=13,i[2*f+1]=8191&h,h>>>=13;for(f=2*e;f>=26,e+=n/67108864|0,e+=h>>>26,this.words[i]=67108863&h}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=c(t);if(0===e.length)return new h(1);for(var i=this,r=0;r=0);var e,i=t%26,n=(t-i)/26,h=67108863>>>26-i<<26-i;if(0!==i){var f=0;for(e=0;e>>26-i}f&&(this.words[e]=f,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 h=t%26,f=Math.min((t-h)/26,this.length),a=67108863^67108863>>>h<f)for(this.length-=f,s=0;s=0&&(0!==u||s>=n);s--){var d=0|this.words[s];this.words[s]=u<<26-h|d>>>h,u=d&a}return o&&0!==u&&(o.words[o.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.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},h.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)-(o/67108864|0),this.words[n+i]=67108863&h}for(;n>26,this.words[n+i]=67108863&h;if(0===a)return this.strip();for(r(-1===a),a=0,n=0;n>26,this.words[n]=67108863&h;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var i=this.length-t.length,r=this.clone(),n=t,f=0|n.words[n.length-1],a=this._countBits(f);i=26-a,0!==i&&(n=n.ushln(i),r.iushln(i),f=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==e){o=new h(null),o.length=s+1,o.words=new Array(o.length);for(var u=0;u=0;l--){var c=67108864*(0|r.words[n.length+l])+(0|r.words[n.length+l-1]);c=Math.min(c/f|0,67108863),r._ishlnsubmul(n,c,l);while(0!==r.negative)c--,r.negative=0,r._ishlnsubmul(n,1,l),r.isZero()||(r.negative^=1);o&&(o.words[l]=c)}return o&&o.strip(),r.strip(),"div"!==e&&0!==i&&r.iushrn(i),{div:o||null,mod:r}},h.prototype.divmod=function(t,e,i){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(f=a.mod.neg(),i&&0!==f.negative&&f.iadd(t)),{div:n,mod:f}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(n=a.div.neg()),{div:n,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(f=a.mod.neg(),i&&0!==f.negative&&f.isub(t)),{div:a.div,mod:f}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,f,a},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.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),h=i.cmp(r);return h<0||1===n&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.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},h.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()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.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 h(1),f=new h(0),a=new h(0),o=new h(1),s=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++s;var u=i.clone(),d=e.clone();while(!e.isZero()){for(var l=0,c=1;0===(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0){e.iushrn(l);while(l-- >0)(n.isOdd()||f.isOdd())&&(n.iadd(u),f.isub(d)),n.iushrn(1),f.iushrn(1)}for(var m=0,p=1;0===(i.words[0]&p)&&m<26;++m,p<<=1);if(m>0){i.iushrn(m);while(m-- >0)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(d)),a.iushrn(1),o.iushrn(1)}e.cmp(i)>=0?(e.isub(i),n.isub(a),f.isub(o)):(i.isub(e),a.isub(n),o.isub(f))}return{a:a,b:o,gcd:i.iushln(s)}},h.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,f=new h(1),a=new h(0),o=i.clone();while(e.cmpn(1)>0&&i.cmpn(1)>0){for(var s=0,u=1;0===(e.words[0]&u)&&s<26;++s,u<<=1);if(s>0){e.iushrn(s);while(s-- >0)f.isOdd()&&f.iadd(o),f.iushrn(1)}for(var d=0,l=1;0===(i.words[0]&l)&&d<26;++d,l<<=1);if(d>0){i.iushrn(d);while(d-- >0)a.isOdd()&&a.iadd(o),a.iushrn(1)}e.cmp(i)>=0?(e.isub(i),f.isub(a)):(i.isub(e),a.isub(f))}return n=0===e.cmpn(1)?f:a,n.cmpn(0)<0&&n.iadd(t),n},h.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 h=e;e=i,i=h}else if(0===n||0===i.cmpn(1))break;e.isub(i)}while(1);return i.iushln(r)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0===(1&this.words[0])},h.prototype.isOdd=function(){return 1===(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,i=(t-e)/26,n=1<>>26,a&=67108863,this.words[f]=a}return 0!==h&&(this.words[f]=h,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.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},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new x(t)},h.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)},h.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var M={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new h(e,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=h._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 A(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new h(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)}w.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.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},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},n(y,w),y.prototype.split=function(t,e){for(var i=4194303,r=Math.min(t.length,9),n=0;n>>22,h=f}h>>>=22,t.words[n-10]=h,0===h&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(M[t])return M[t];var e;if("k256"===t)e=new y;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 M[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 h(1)).iushrn(2);return this.pow(t,i)}var n=this.m.subn(1),f=0;while(!n.isZero()&&0===n.andln(1))f++,n.iushrn(1);r(!n.isZero());var a=new h(1).toRed(this),o=a.redNeg(),s=this.m.subn(1).iushrn(1),u=this.m.bitLength();u=new h(2*u*u).toRed(this);while(0!==this.pow(u,s).cmp(o))u.redIAdd(o);var d=this.pow(u,n),l=this.pow(t,n.addn(1).iushrn(1)),c=this.pow(t,n),m=f;while(0!==c.cmp(a)){for(var p=c,b=0;0!==p.cmp(a);b++)p=p.redSqr();r(b=0;n--){for(var u=e.words[n],d=s-1;d>=0;d--){var l=u>>d&1;f!==r[0]&&(f=this.sqr(f)),0!==l||0!==a?(a<<=1,a|=l,o++,(o===i||0===n&&0===d)&&(f=this.mul(f,r[a]),o=0,a=0)):o=0}s=26}return f},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},h.mont=function(t){return new A(t)},n(A,x),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var 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),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)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new h(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),f=n;return n.cmp(this.m)>=0?f=n.isub(this.m):n.cmpn(0)<0&&(f=n.iadd(this.m)),f._forceRed(this)},A.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))},"4e2b":function(t,e,i){"use strict";var r=i("da3e"),n=i("3fb5"),h=i("5ee7"),f=i("0184");function a(){this.tmp=new Array(2),this.keys=null}function o(t){f.call(this,t);var e=new a;this._desState=e,this.deriveKeys(e,t.key)}n(o,f),t.exports=o,o.create=function(t){return new o(t)};var s=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];o.prototype.deriveKeys=function(t,e){t.keys=new Array(32),r.equal(e.length,this.blockSize,"Invalid key length");var i=h.readUInt32BE(e,0),n=h.readUInt32BE(e,4);h.pc1(i,n,t.tmp,0),i=t.tmp[0],n=t.tmp[1];for(var f=0;f>>1];i=h.r28shl(i,a),n=h.r28shl(n,a),h.pc2(i,n,t.keys,f)}},o.prototype._update=function(t,e,i,r){var n=this._desState,f=h.readUInt32BE(t,e),a=h.readUInt32BE(t,e+4);h.ip(f,a,n.tmp,0),f=n.tmp[0],a=n.tmp[1],"encrypt"===this.type?this._encrypt(n,f,a,n.tmp,0):this._decrypt(n,f,a,n.tmp,0),f=n.tmp[0],a=n.tmp[1],h.writeUInt32BE(i,f,r),h.writeUInt32BE(i,a,r+4)},o.prototype._pad=function(t,e){if(!1===this.padding)return!1;for(var i=t.length-e,r=e;r>>0,f=c}h.rip(a,f,r,n)},o.prototype._decrypt=function(t,e,i,r,n){for(var f=i,a=e,o=t.keys.length-2;o>=0;o-=2){var s=t.keys[o],u=t.keys[o+1];h.expand(f,t.tmp,0),s^=t.tmp[0],u^=t.tmp[1];var d=h.substitute(s,u),l=h.permute(d),c=f;f=(a^l)>>>0,a=c}h.rip(f,a,r,n)}},"561d":function(t,e,i){(function(e){var r=i("48e6"),n=i("7a10"),h=new n,f=new r(24),a=new r(11),o=new r(10),s=new r(3),u=new r(7),d=i("58a2"),l=i("11dc");function c(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this._pub=new r(t),this}function m(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this._priv=new r(t),this}t.exports=v;var p={};function b(t,e){var i=e.toString("hex"),r=[i,t.toString(16)].join("_");if(r in p)return p[r];var n,l=0;if(t.isEven()||!d.simpleSieve||!d.fermatTest(t)||!h.test(t))return l+=1,l+="02"===i||"05"===i?8:4,p[r]=l,l;switch(h.test(t.shrn(1))||(l+=2),i){case"02":t.mod(f).cmp(a)&&(l+=8);break;case"05":n=t.mod(o),n.cmp(s)&&n.cmp(u)&&(l+=8);break;default:l+=4}return p[r]=l,l}function v(t,e,i){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=c,this.setPrivateKey=m):this._primeCode=8}function g(t,i){var r=new e(t.toArray());return i?r.toString(i):r}Object.defineProperty(v.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!==typeof this._primeCode&&(this._primeCode=b(this.__prime,this.__gen)),this._primeCode}}),v.prototype.generateKeys=function(){return this._priv||(this._priv=new r(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},v.prototype.computeSecret=function(t){t=new r(t),t=t.toRed(this._prime);var i=t.redPow(this._priv).fromRed(),n=new e(i.toArray()),h=this.getPrime();if(n.lengtht)i.ishrn(1);if(i.isEven()&&i.iadd(o),i.testn(1)||i.iadd(s),e.cmp(s)){if(!e.cmp(u))while(i.mod(d).cmp(l))i.iadd(m)}else while(i.mod(h).cmp(c))i.iadd(m);if(f=i.shrn(1),v(f)&&v(i)&&g(f)&&g(i)&&a.test(f)&&a.test(i))return i}}},"5ee7":function(t,e,i){"use strict";e.readUInt32BE=function(t,e){var i=t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e];return i>>>0},e.writeUInt32BE=function(t,e,i){t[0+i]=e>>>24,t[1+i]=e>>>16&255,t[2+i]=e>>>8&255,t[3+i]=255&e},e.ip=function(t,e,i,r){for(var n=0,h=0,f=6;f>=0;f-=2){for(var a=0;a<=24;a+=8)n<<=1,n|=e>>>a+f&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>>a+f&1}for(f=6;f>=0;f-=2){for(a=1;a<=25;a+=8)h<<=1,h|=e>>>a+f&1;for(a=1;a<=25;a+=8)h<<=1,h|=t>>>a+f&1}i[r+0]=n>>>0,i[r+1]=h>>>0},e.rip=function(t,e,i,r){for(var n=0,h=0,f=0;f<4;f++)for(var a=24;a>=0;a-=8)n<<=1,n|=e>>>a+f&1,n<<=1,n|=t>>>a+f&1;for(f=4;f<8;f++)for(a=24;a>=0;a-=8)h<<=1,h|=e>>>a+f&1,h<<=1,h|=t>>>a+f&1;i[r+0]=n>>>0,i[r+1]=h>>>0},e.pc1=function(t,e,i,r){for(var n=0,h=0,f=7;f>=5;f--){for(var a=0;a<=24;a+=8)n<<=1,n|=e>>a+f&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>a+f&1}for(a=0;a<=24;a+=8)n<<=1,n|=e>>a+f&1;for(f=1;f<=3;f++){for(a=0;a<=24;a+=8)h<<=1,h|=e>>a+f&1;for(a=0;a<=24;a+=8)h<<=1,h|=t>>a+f&1}for(a=0;a<=24;a+=8)h<<=1,h|=t>>a+f&1;i[r+0]=n>>>0,i[r+1]=h>>>0},e.r28shl=function(t,e){return t<>>28-e};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,i,n){for(var h=0,f=0,a=r.length>>>1,o=0;o>>r[o]&1;for(o=a;o>>r[o]&1;i[n+0]=h>>>0,i[n+1]=f>>>0},e.expand=function(t,e,i){var r=0,n=0;r=(1&t)<<5|t>>>27;for(var h=23;h>=15;h-=4)r<<=6,r|=t>>>h&63;for(h=11;h>=3;h-=4)n|=t>>>h&63,n<<=6;n|=(31&t)<<1|t>>>31,e[i+0]=r>>>0,e[i+1]=n>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var i=0,r=0;r<4;r++){var h=t>>>18-6*r&63,f=n[64*r+h];i<<=4,i|=f}for(r=0;r<4;r++){h=e>>>18-6*r&63,f=n[256+64*r+h];i<<=4,i|=f}return i>>>0};var h=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,i=0;i>>h[i]&1;return e>>>0},e.padSplit=function(t,e,i){var r=t.toString(2);while(r.length=h;return n&&--r,r}function b(t,e){t=c(t);var i=n(e),f=t.length;if(f!==2*i)throw new TypeError('"'+e+'" signatures must be "'+2*i+'" bytes, saw "'+f+'"');var a=p(t,0,i),o=p(t,i,t.length),s=i-a,l=i-o,m=2+s+1+1+l,b=m