UNPKG

@swtc/serializer

Version:
1 lines 115 kB
import t from"inherits";import{Factory as i}from"@swtc/wallet";import{AMOUNT_CONSTS as r,isNumber as e,isCurrency as n,isCustomTum as s,isTumCode as o,isLetterNumer as h,isRelation as u,allNumeric as a,isFloat as l,convertHexToString as f,isString as c,isHexHASH256String as p,readAndSum as m,convertIntegerToByteArray as d,isHexInt64String as v,INVERSE_FIELDS_MAP as g,sort_fields as y,convertStringToHex as w,convertByteArrayToHex as M,get_ledger_entry_type as b,get_transaction_type as _,TYPES_MAP as T,FIELDS_MAP as S,funcAssert as A,TRANSACTION_TYPES as E,LEDGER_ENTRY_TYPES as B,METADATA as N,REQUIRED as O,get_transaction_result as k,hex_str_to_byte_array as D,get_char_from_num as x,SM3 as z}from"@swtc/common";function I(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var R,L;var j,P,C,q=function(){if(L)return R;L=1;var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===i.call(t)},s=function(r){if(!r||"[object Object]"!==i.call(r))return!1;var e,n=t.call(r,"constructor"),s=r.constructor&&r.constructor.prototype&&t.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!n&&!s)return!1;for(e in r);return void 0===e||t.call(r,e)},o=function(t,i){r&&"__proto__"===i.name?r(t,i.name,{enumerable:!0,configurable:!0,value:i.newValue,writable:!0}):t[i.name]=i.newValue},h=function(i,r){if("__proto__"===r){if(!t.call(i,r))return;if(e)return e(i,r).value}return i[r]};return R=function t(){var i,r,e,u,a,l,f=arguments[0],c=1,p=arguments.length,m=!1;for("boolean"==typeof f&&(m=f,f=arguments[1]||{},c=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});c<p;++c)if(null!=(i=arguments[c]))for(r in i)e=h(f,r),f!==(u=h(i,r))&&(m&&u&&(s(u)||(a=n(u)))?(a?(a=!1,l=e&&n(e)?e:[]):l=e&&s(e)?e:{},o(f,{name:r,newValue:t(m,l,u)})):void 0!==u&&o(f,{name:r,newValue:u}));return f},R}(),V=I(q),Z={},H={};function U(){if(P)return j;function t(t,i){if(!t)throw new Error(i||"Assertion failed")}return P=1,j=t,t.equal=function(t,i,r){if(t!=i)throw new Error(r||"Assertion failed: "+t+" != "+i)},j}function F(){if(C)return H;C=1;var i=U(),r=t;function e(t,i){return 55296==(64512&t.charCodeAt(i))&&(!(i<0||i+1>=t.length)&&56320==(64512&t.charCodeAt(i+1)))}function n(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function o(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}return H.inherits=r,H.toArray=function(t,i){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(i){if("hex"===i)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),s=0;s<t.length;s+=2)r.push(parseInt(t[s]+t[s+1],16))}else for(var n=0,s=0;s<t.length;s++){var o=t.charCodeAt(s);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=63&o|128):e(t,s)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++s)),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=63&o|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=63&o|128)}else for(s=0;s<t.length;s++)r[s]=0|t[s];return r},H.toHex=function(t){for(var i="",r=0;r<t.length;r++)i+=s(t[r].toString(16));return i},H.htonl=n,H.toHex32=function(t,i){for(var r="",e=0;e<t.length;e++){var s=t[e];"little"===i&&(s=n(s)),r+=o(s.toString(16))}return r},H.zero2=s,H.zero8=o,H.join32=function(t,r,e,n){var s=e-r;i(s%4==0);for(var o=new Array(s/4),h=0,u=r;h<o.length;h++,u+=4){var a;a="big"===n?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],o[h]=a>>>0}return o},H.split32=function(t,i){for(var r=new Array(4*t.length),e=0,n=0;e<t.length;e++,n+=4){var s=t[e];"big"===i?(r[n]=s>>>24,r[n+1]=s>>>16&255,r[n+2]=s>>>8&255,r[n+3]=255&s):(r[n+3]=s>>>24,r[n+2]=s>>>16&255,r[n+1]=s>>>8&255,r[n]=255&s)}return r},H.rotr32=function(t,i){return t>>>i|t<<32-i},H.rotl32=function(t,i){return t<<i|t>>>32-i},H.sum32=function(t,i){return t+i>>>0},H.sum32_3=function(t,i,r){return t+i+r>>>0},H.sum32_4=function(t,i,r,e){return t+i+r+e>>>0},H.sum32_5=function(t,i,r,e,n){return t+i+r+e+n>>>0},H.sum64=function(t,i,r,e){var n=t[i],s=e+t[i+1]>>>0,o=(s<e?1:0)+r+n;t[i]=o>>>0,t[i+1]=s},H.sum64_hi=function(t,i,r,e){return(i+e>>>0<i?1:0)+t+r>>>0},H.sum64_lo=function(t,i,r,e){return i+e>>>0},H.sum64_4_hi=function(t,i,r,e,n,s,o,h){var u=0,a=i;return u+=(a=a+e>>>0)<i?1:0,u+=(a=a+s>>>0)<s?1:0,t+r+n+o+(u+=(a=a+h>>>0)<h?1:0)>>>0},H.sum64_4_lo=function(t,i,r,e,n,s,o,h){return i+e+s+h>>>0},H.sum64_5_hi=function(t,i,r,e,n,s,o,h,u,a){var l=0,f=i;return l+=(f=f+e>>>0)<i?1:0,l+=(f=f+s>>>0)<s?1:0,l+=(f=f+h>>>0)<h?1:0,t+r+n+o+u+(l+=(f=f+a>>>0)<a?1:0)>>>0},H.sum64_5_lo=function(t,i,r,e,n,s,o,h,u,a){return i+e+s+h+a>>>0},H.rotr64_hi=function(t,i,r){return(i<<32-r|t>>>r)>>>0},H.rotr64_lo=function(t,i,r){return(t<<32-r|i>>>r)>>>0},H.shr64_hi=function(t,i,r){return t>>>r},H.shr64_lo=function(t,i,r){return(t<<32-r|i>>>r)>>>0},H}var K,G={};function $(){if(K)return G;K=1;var t=F(),i=U();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return G.BlockHash=r,r.prototype.update=function(i,r){if(i=t.toArray(i,r),this.pending?this.pending=this.pending.concat(i):this.pending=i,this.pendingTotal+=i.length,this.pending.length>=this._delta8){var e=(i=this.pending).length%this._delta8;this.pending=i.slice(i.length-e,i.length),0===this.pending.length&&(this.pending=null),i=t.join32(i,0,i.length-e,this.endian);for(var n=0;n<i.length;n+=this._delta32)this._update(i,n,n+this._delta32)}return this},r.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},r.prototype._pad=function(){var t=this.pendingTotal,i=this._delta8,r=i-(t+this.padLength)%i,e=new Array(r+this.padLength);e[0]=128;for(var n=1;n<r;n++)e[n]=0;if(t<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)e[n++]=0;e[n++]=0,e[n++]=0,e[n++]=0,e[n++]=0,e[n++]=t>>>24&255,e[n++]=t>>>16&255,e[n++]=t>>>8&255,e[n++]=255&t}else for(e[n++]=255&t,e[n++]=t>>>8&255,e[n++]=t>>>16&255,e[n++]=t>>>24&255,e[n++]=0,e[n++]=0,e[n++]=0,e[n++]=0,s=8;s<this.padLength;s++)e[n++]=0;return e},G}var J,W,X,Y,Q,tt,it,rt,et,nt,st,ot,ht={},ut={};function at(){if(J)return ut;J=1;var t=F().rotr32;function i(t,i,r){return t&i^~t&r}function r(t,i,r){return t&i^t&r^i&r}function e(t,i,r){return t^i^r}return ut.ft_1=function(t,n,s,o){return 0===t?i(n,s,o):1===t||3===t?e(n,s,o):2===t?r(n,s,o):void 0},ut.ch32=i,ut.maj32=r,ut.p32=e,ut.s0_256=function(i){return t(i,2)^t(i,13)^t(i,22)},ut.s1_256=function(i){return t(i,6)^t(i,11)^t(i,25)},ut.g0_256=function(i){return t(i,7)^t(i,18)^i>>>3},ut.g1_256=function(i){return t(i,17)^t(i,19)^i>>>10},ut}function lt(){if(Q)return Y;Q=1;var t=F(),i=$(),r=at(),e=U(),n=t.sum32,s=t.sum32_4,o=t.sum32_5,h=r.ch32,u=r.maj32,a=r.s0_256,l=r.s1_256,f=r.g0_256,c=r.g1_256,p=i.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function d(){if(!(this instanceof d))return new d;p.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}return t.inherits(d,p),Y=d,d.blockSize=512,d.outSize=256,d.hmacStrength=192,d.padLength=64,d.prototype._update=function(t,i){for(var r=this.W,p=0;p<16;p++)r[p]=t[i+p];for(;p<r.length;p++)r[p]=s(c(r[p-2]),r[p-7],f(r[p-15]),r[p-16]);var m=this.h[0],d=this.h[1],v=this.h[2],g=this.h[3],y=this.h[4],w=this.h[5],M=this.h[6],b=this.h[7];for(e(this.k.length===r.length),p=0;p<r.length;p++){var _=o(b,l(y),h(y,w,M),this.k[p],r[p]),T=n(a(m),u(m,d,v));b=M,M=w,w=y,y=n(g,_),g=v,v=d,d=m,m=n(_,T)}this.h[0]=n(this.h[0],m),this.h[1]=n(this.h[1],d),this.h[2]=n(this.h[2],v),this.h[3]=n(this.h[3],g),this.h[4]=n(this.h[4],y),this.h[5]=n(this.h[5],w),this.h[6]=n(this.h[6],M),this.h[7]=n(this.h[7],b)},d.prototype._digest=function(i){return"hex"===i?t.toHex32(this.h,"big"):t.split32(this.h,"big")},Y}function ft(){if(et)return rt;et=1;var t=F(),i=$(),r=U(),e=t.rotr64_hi,n=t.rotr64_lo,s=t.shr64_hi,o=t.shr64_lo,h=t.sum64,u=t.sum64_hi,a=t.sum64_lo,l=t.sum64_4_hi,f=t.sum64_4_lo,c=t.sum64_5_hi,p=t.sum64_5_lo,m=i.BlockHash,d=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=d,this.W=new Array(160)}function g(t,i,r,e,n){var s=t&r^~t&n;return s<0&&(s+=4294967296),s}function y(t,i,r,e,n,s){var o=i&e^~i&s;return o<0&&(o+=4294967296),o}function w(t,i,r,e,n){var s=t&r^t&n^r&n;return s<0&&(s+=4294967296),s}function M(t,i,r,e,n,s){var o=i&e^i&s^e&s;return o<0&&(o+=4294967296),o}function b(t,i){var r=e(t,i,28)^e(i,t,2)^e(i,t,7);return r<0&&(r+=4294967296),r}function _(t,i){var r=n(t,i,28)^n(i,t,2)^n(i,t,7);return r<0&&(r+=4294967296),r}function T(t,i){var r=e(t,i,14)^e(t,i,18)^e(i,t,9);return r<0&&(r+=4294967296),r}function S(t,i){var r=n(t,i,14)^n(t,i,18)^n(i,t,9);return r<0&&(r+=4294967296),r}function A(t,i){var r=e(t,i,1)^e(t,i,8)^s(t,i,7);return r<0&&(r+=4294967296),r}function E(t,i){var r=n(t,i,1)^n(t,i,8)^o(t,i,7);return r<0&&(r+=4294967296),r}function B(t,i){var r=e(t,i,19)^e(i,t,29)^s(t,i,6);return r<0&&(r+=4294967296),r}function N(t,i){var r=n(t,i,19)^n(i,t,29)^o(t,i,6);return r<0&&(r+=4294967296),r}return t.inherits(v,m),rt=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(t,i){for(var r=this.W,e=0;e<32;e++)r[e]=t[i+e];for(;e<r.length;e+=2){var n=B(r[e-4],r[e-3]),s=N(r[e-4],r[e-3]),o=r[e-14],h=r[e-13],u=A(r[e-30],r[e-29]),a=E(r[e-30],r[e-29]),c=r[e-32],p=r[e-31];r[e]=l(n,s,o,h,u,a,c,p),r[e+1]=f(n,s,o,h,u,a,c,p)}},v.prototype._update=function(t,i){this._prepareBlock(t,i);var e=this.W,n=this.h[0],s=this.h[1],o=this.h[2],l=this.h[3],f=this.h[4],m=this.h[5],d=this.h[6],v=this.h[7],A=this.h[8],E=this.h[9],B=this.h[10],N=this.h[11],O=this.h[12],k=this.h[13],D=this.h[14],x=this.h[15];r(this.k.length===e.length);for(var z=0;z<e.length;z+=2){var I=D,R=x,L=T(A,E),j=S(A,E),P=g(A,E,B,N,O),C=y(A,E,B,N,O,k),q=this.k[z],V=this.k[z+1],Z=e[z],H=e[z+1],U=c(I,R,L,j,P,C,q,V,Z,H),F=p(I,R,L,j,P,C,q,V,Z,H);I=b(n,s),R=_(n,s),L=w(n,s,o,l,f),j=M(n,s,o,l,f,m);var K=u(I,R,L,j),G=a(I,R,L,j);D=O,x=k,O=B,k=N,B=A,N=E,A=u(d,v,U,F),E=a(v,v,U,F),d=f,v=m,f=o,m=l,o=n,l=s,n=u(U,F,K,G),s=a(U,F,K,G)}h(this.h,0,n,s),h(this.h,2,o,l),h(this.h,4,f,m),h(this.h,6,d,v),h(this.h,8,A,E),h(this.h,10,B,N),h(this.h,12,O,k),h(this.h,14,D,x)},v.prototype._digest=function(i){return"hex"===i?t.toHex32(this.h,"big"):t.split32(this.h,"big")},rt}function ct(){return ot||(ot=1,ht.sha1=function(){if(X)return W;X=1;var t=F(),i=$(),r=at(),e=t.rotl32,n=t.sum32,s=t.sum32_5,o=r.ft_1,h=i.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function a(){if(!(this instanceof a))return new a;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return t.inherits(a,h),W=a,a.blockSize=512,a.outSize=160,a.hmacStrength=80,a.padLength=64,a.prototype._update=function(t,i){for(var r=this.W,h=0;h<16;h++)r[h]=t[i+h];for(;h<r.length;h++)r[h]=e(r[h-3]^r[h-8]^r[h-14]^r[h-16],1);var a=this.h[0],l=this.h[1],f=this.h[2],c=this.h[3],p=this.h[4];for(h=0;h<r.length;h++){var m=~~(h/20),d=s(e(a,5),o(m,l,f,c),p,r[h],u[m]);p=c,c=f,f=e(l,30),l=a,a=d}this.h[0]=n(this.h[0],a),this.h[1]=n(this.h[1],l),this.h[2]=n(this.h[2],f),this.h[3]=n(this.h[3],c),this.h[4]=n(this.h[4],p)},a.prototype._digest=function(i){return"hex"===i?t.toHex32(this.h,"big"):t.split32(this.h,"big")},W}(),ht.sha224=function(){if(it)return tt;it=1;var t=F(),i=lt();function r(){if(!(this instanceof r))return new r;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return t.inherits(r,i),tt=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(i){return"hex"===i?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")},tt}(),ht.sha256=lt(),ht.sha384=function(){if(st)return nt;st=1;var t=F(),i=ft();function r(){if(!(this instanceof r))return new r;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return t.inherits(r,i),nt=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(i){return"hex"===i?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")},nt}(),ht.sha512=ft()),ht}var pt,mt,dt,vt,gt={};var yt=(vt||(vt=1,function(t){var i=t;i.utils=F(),i.common=$(),i.sha=ct(),i.ripemd=function(){if(pt)return gt;pt=1;var t=F(),i=$(),r=t.rotl32,e=t.sum32,n=t.sum32_3,s=t.sum32_4,o=i.BlockHash;function h(){if(!(this instanceof h))return new h;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function u(t,i,r,e){return t<=15?i^r^e:t<=31?i&r|~i&e:t<=47?(i|~r)^e:t<=63?i&e|r&~e:i^(r|~e)}function a(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function l(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}t.inherits(h,o),gt.ripemd160=h,h.blockSize=512,h.outSize=160,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,i){for(var o=this.h[0],h=this.h[1],d=this.h[2],v=this.h[3],g=this.h[4],y=o,w=h,M=d,b=v,_=g,T=0;T<80;T++){var S=e(r(s(o,u(T,h,d,v),t[f[T]+i],a(T)),p[T]),g);o=g,g=v,v=r(d,10),d=h,h=S,S=e(r(s(y,u(79-T,w,M,b),t[c[T]+i],l(T)),m[T]),_),y=_,_=b,b=r(M,10),M=w,w=S}S=n(this.h[1],d,b),this.h[1]=n(this.h[2],v,_),this.h[2]=n(this.h[3],g,y),this.h[3]=n(this.h[4],o,w),this.h[4]=n(this.h[0],h,M),this.h[0]=S},h.prototype._digest=function(i){return"hex"===i?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return gt}(),i.hmac=function(){if(dt)return mt;dt=1;var t=F(),i=U();function r(i,e,n){if(!(this instanceof r))return new r(i,e,n);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(e,n))}return mt=r,r.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var r=t.length;r<this.blockSize;r++)t.push(0);for(r=0;r<t.length;r++)t[r]^=54;for(this.inner=(new this.Hash).update(t),r=0;r<t.length;r++)t[r]^=106;this.outer=(new this.Hash).update(t)},r.prototype.update=function(t,i){return this.inner.update(t,i),this},r.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)},mt}(),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160}(Z)),Z),wt=I(yt),Mt=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,bt=Math.ceil,_t=Math.floor,Tt="[BigNumber Error] ",St=Tt+"Number primitive has more than 15 significant digits: ",At=1e14,Et=14,Bt=9007199254740991,Nt=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Ot=1e7,kt=1e9;function Dt(t){var i=0|t;return t>0||t===i?i:i-1}function xt(t){for(var i,r,e=1,n=t.length,s=t[0]+"";e<n;){for(i=t[e++]+"",r=Et-i.length;r--;i="0"+i);s+=i}for(n=s.length;48===s.charCodeAt(--n););return s.slice(0,n+1||1)}function zt(t,i){var r,e,n=t.c,s=i.c,o=t.s,h=i.s,u=t.e,a=i.e;if(!o||!h)return null;if(r=n&&!n[0],e=s&&!s[0],r||e)return r?e?0:-h:o;if(o!=h)return o;if(r=o<0,e=u==a,!n||!s)return e?0:!n^r?1:-1;if(!e)return u>a^r?1:-1;for(h=(u=n.length)<(a=s.length)?u:a,o=0;o<h;o++)if(n[o]!=s[o])return n[o]>s[o]^r?1:-1;return u==a?0:u>a^r?1:-1}function It(t,i,r,e){if(t<i||t>r||t!==_t(t))throw Error(Tt+(e||"Argument")+("number"==typeof t?t<i||t>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function Rt(t){var i=t.c.length-1;return Dt(t.e/Et)==i&&t.c[i]%2!=0}function Lt(t,i){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(i<0?"e":"e+")+i}function jt(t,i,r){var e,n;if(i<0){for(n=r+".";++i;n+=r);t=n+t}else if(++i>(e=t.length)){for(n=r,i-=e;--i;n+=r);t+=n}else i<e&&(t=t.slice(0,i)+"."+t.slice(i));return t}var Pt,Ct=function t(i){var r,e,n,s,o,h,u,a,l,f,c=E.prototype={constructor:E,toString:null,valueOf:null},p=new E(1),m=20,d=4,v=-7,g=21,y=-1e7,w=1e7,M=!1,b=1,_=0,T={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},S="0123456789abcdefghijklmnopqrstuvwxyz",A=!0;function E(t,i){var r,s,o,h,u,a,l,f,c=this;if(!(c instanceof E))return new E(t,i);if(null==i){if(t&&!0===t._isBigNumber)return c.s=t.s,void(!t.c||t.e>w?c.c=c.e=null:t.e<y?c.c=[c.e=0]:(c.e=t.e,c.c=t.c.slice()));if((a="number"==typeof t)&&0*t==0){if(c.s=1/t<0?(t=-t,-1):1,t===~~t){for(h=0,u=t;u>=10;u/=10,h++);return void(h>w?c.c=c.e=null:(c.e=h,c.c=[t]))}f=String(t)}else{if(!Mt.test(f=String(t)))return n(c,f,a);c.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(h=f.indexOf("."))>-1&&(f=f.replace(".","")),(u=f.search(/e/i))>0?(h<0&&(h=u),h+=+f.slice(u+1),f=f.substring(0,u)):h<0&&(h=f.length)}else{if(It(i,2,S.length,"Base"),10==i&&A)return k(c=new E(t),m+c.e+1,d);if(f=String(t),a="number"==typeof t){if(0*t!=0)return n(c,f,a,i);if(c.s=1/t<0?(f=f.slice(1),-1):1,E.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(St+t)}else c.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(r=S.slice(0,i),h=u=0,l=f.length;u<l;u++)if(r.indexOf(s=f.charAt(u))<0){if("."==s){if(u>h){h=l;continue}}else if(!o&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){o=!0,u=-1,h=0;continue}return n(c,String(t),a,i)}a=!1,(h=(f=e(f,i,10,c.s)).indexOf("."))>-1?f=f.replace(".",""):h=f.length}for(u=0;48===f.charCodeAt(u);u++);for(l=f.length;48===f.charCodeAt(--l););if(f=f.slice(u,++l)){if(l-=u,a&&E.DEBUG&&l>15&&(t>Bt||t!==_t(t)))throw Error(St+c.s*t);if((h=h-u-1)>w)c.c=c.e=null;else if(h<y)c.c=[c.e=0];else{if(c.e=h,c.c=[],u=(h+1)%Et,h<0&&(u+=Et),u<l){for(u&&c.c.push(+f.slice(0,u)),l-=Et;u<l;)c.c.push(+f.slice(u,u+=Et));u=Et-(f=f.slice(u)).length}else u-=l;for(;u--;f+="0");c.c.push(+f)}}else c.c=[c.e=0]}function B(t,i,r,e){var n,s,o,h,u;if(null==r?r=d:It(r,0,8),!t.c)return t.toString();if(n=t.c[0],o=t.e,null==i)u=xt(t.c),u=1==e||2==e&&(o<=v||o>=g)?Lt(u,o):jt(u,o,"0");else if(s=(t=k(new E(t),i,r)).e,h=(u=xt(t.c)).length,1==e||2==e&&(i<=s||s<=v)){for(;h<i;u+="0",h++);u=Lt(u,s)}else if(i-=o+(2===e&&s>o),u=jt(u,s,"0"),s+1>h){if(--i>0)for(u+=".";i--;u+="0");}else if((i+=s-h)>0)for(s+1==h&&(u+=".");i--;u+="0");return t.s<0&&n?"-"+u:u}function N(t,i){for(var r,e,n=1,s=new E(t[0]);n<t.length;n++)(!(e=new E(t[n])).s||(r=zt(s,e))===i||0===r&&s.s===i)&&(s=e);return s}function O(t,i,r){for(var e=1,n=i.length;!i[--n];i.pop());for(n=i[0];n>=10;n/=10,e++);return(r=e+r*Et-1)>w?t.c=t.e=null:r<y?t.c=[t.e=0]:(t.e=r,t.c=i),t}function k(t,i,r,e){var n,s,o,h,u,a,l,f=t.c,c=Nt;if(f){t:{for(n=1,h=f[0];h>=10;h/=10,n++);if((s=i-n)<0)s+=Et,o=i,u=f[a=0],l=_t(u/c[n-o-1]%10);else if((a=bt((s+1)/Et))>=f.length){if(!e)break t;for(;f.length<=a;f.push(0));u=l=0,n=1,o=(s%=Et)-Et+1}else{for(u=h=f[a],n=1;h>=10;h/=10,n++);l=(o=(s%=Et)-Et+n)<0?0:_t(u/c[n-o-1]%10)}if(e=e||i<0||null!=f[a+1]||(o<0?u:u%c[n-o-1]),e=r<4?(l||e)&&(0==r||r==(t.s<0?3:2)):l>5||5==l&&(4==r||e||6==r&&(s>0?o>0?u/c[n-o]:0:f[a-1])%10&1||r==(t.s<0?8:7)),i<1||!f[0])return f.length=0,e?(i-=t.e+1,f[0]=c[(Et-i%Et)%Et],t.e=-i||0):f[0]=t.e=0,t;if(0==s?(f.length=a,h=1,a--):(f.length=a+1,h=c[Et-s],f[a]=o>0?_t(u/c[n-o]%c[o])*h:0),e)for(;;){if(0==a){for(s=1,o=f[0];o>=10;o/=10,s++);for(o=f[0]+=h,h=1;o>=10;o/=10,h++);s!=h&&(t.e++,f[0]==At&&(f[0]=1));break}if(f[a]+=h,f[a]!=At)break;f[a--]=0,h=1}for(s=f.length;0===f[--s];f.pop());}t.e>w?t.c=t.e=null:t.e<y&&(t.c=[t.e=0])}return t}function D(t){var i,r=t.e;return null===r?t.toString():(i=xt(t.c),i=r<=v||r>=g?Lt(i,r):jt(i,r,"0"),t.s<0?"-"+i:i)}return E.clone=t,E.ROUND_UP=0,E.ROUND_DOWN=1,E.ROUND_CEIL=2,E.ROUND_FLOOR=3,E.ROUND_HALF_UP=4,E.ROUND_HALF_DOWN=5,E.ROUND_HALF_EVEN=6,E.ROUND_HALF_CEIL=7,E.ROUND_HALF_FLOOR=8,E.EUCLID=9,E.config=E.set=function(t){var i,r;if(null!=t){if("object"!=typeof t)throw Error(Tt+"Object expected: "+t);if(t.hasOwnProperty(i="DECIMAL_PLACES")&&(It(r=t[i],0,kt,i),m=r),t.hasOwnProperty(i="ROUNDING_MODE")&&(It(r=t[i],0,8,i),d=r),t.hasOwnProperty(i="EXPONENTIAL_AT")&&((r=t[i])&&r.pop?(It(r[0],-kt,0,i),It(r[1],0,kt,i),v=r[0],g=r[1]):(It(r,-kt,kt,i),v=-(g=r<0?-r:r))),t.hasOwnProperty(i="RANGE"))if((r=t[i])&&r.pop)It(r[0],-kt,-1,i),It(r[1],1,kt,i),y=r[0],w=r[1];else{if(It(r,-kt,kt,i),!r)throw Error(Tt+i+" cannot be zero: "+r);y=-(w=r<0?-r:r)}if(t.hasOwnProperty(i="CRYPTO")){if((r=t[i])!==!!r)throw Error(Tt+i+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw M=!r,Error(Tt+"crypto unavailable");M=r}else M=r}if(t.hasOwnProperty(i="MODULO_MODE")&&(It(r=t[i],0,9,i),b=r),t.hasOwnProperty(i="POW_PRECISION")&&(It(r=t[i],0,kt,i),_=r),t.hasOwnProperty(i="FORMAT")){if("object"!=typeof(r=t[i]))throw Error(Tt+i+" not an object: "+r);T=r}if(t.hasOwnProperty(i="ALPHABET")){if("string"!=typeof(r=t[i])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(Tt+i+" invalid: "+r);A="0123456789"==r.slice(0,10),S=r}}return{DECIMAL_PLACES:m,ROUNDING_MODE:d,EXPONENTIAL_AT:[v,g],RANGE:[y,w],CRYPTO:M,MODULO_MODE:b,POW_PRECISION:_,FORMAT:T,ALPHABET:S}},E.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!E.DEBUG)return!0;var i,r,e=t.c,n=t.e,s=t.s;t:if("[object Array]"=={}.toString.call(e)){if((1===s||-1===s)&&n>=-kt&&n<=kt&&n===_t(n)){if(0===e[0]){if(0===n&&1===e.length)return!0;break t}if((i=(n+1)%Et)<1&&(i+=Et),String(e[0]).length==i){for(i=0;i<e.length;i++)if((r=e[i])<0||r>=At||r!==_t(r))break t;if(0!==r)return!0}}}else if(null===e&&null===n&&(null===s||1===s||-1===s))return!0;throw Error(Tt+"Invalid BigNumber: "+t)},E.maximum=E.max=function(){return N(arguments,-1)},E.minimum=E.min=function(){return N(arguments,1)},E.random=(s=9007199254740992,o=Math.random()*s&2097151?function(){return _t(Math.random()*s)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var i,r,e,n,s,h=0,u=[],a=new E(p);if(null==t?t=m:It(t,0,kt),n=bt(t/Et),M)if(crypto.getRandomValues){for(i=crypto.getRandomValues(new Uint32Array(n*=2));h<n;)(s=131072*i[h]+(i[h+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),i[h]=r[0],i[h+1]=r[1]):(u.push(s%1e14),h+=2);h=n/2}else{if(!crypto.randomBytes)throw M=!1,Error(Tt+"crypto unavailable");for(i=crypto.randomBytes(n*=7);h<n;)(s=281474976710656*(31&i[h])+1099511627776*i[h+1]+4294967296*i[h+2]+16777216*i[h+3]+(i[h+4]<<16)+(i[h+5]<<8)+i[h+6])>=9e15?crypto.randomBytes(7).copy(i,h):(u.push(s%1e14),h+=7);h=n/7}if(!M)for(;h<n;)(s=o())<9e15&&(u[h++]=s%1e14);for(n=u[--h],t%=Et,n&&t&&(s=Nt[Et-t],u[h]=_t(n/s)*s);0===u[h];u.pop(),h--);if(h<0)u=[e=0];else{for(e=-1;0===u[0];u.splice(0,1),e-=Et);for(h=1,s=u[0];s>=10;s/=10,h++);h<Et&&(e-=Et-h)}return a.e=e,a.c=u,a}),E.sum=function(){for(var t=1,i=arguments,r=new E(i[0]);t<i.length;)r=r.plus(i[t++]);return r},e=function(){var t="0123456789";function i(t,i,r,e){for(var n,s,o=[0],h=0,u=t.length;h<u;){for(s=o.length;s--;o[s]*=i);for(o[0]+=e.indexOf(t.charAt(h++)),n=0;n<o.length;n++)o[n]>r-1&&(null==o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}return function(e,n,s,o,h){var u,a,l,f,c,p,v,g,y=e.indexOf("."),w=m,M=d;for(y>=0&&(f=_,_=0,e=e.replace(".",""),p=(g=new E(n)).pow(e.length-y),_=f,g.c=i(jt(xt(p.c),p.e,"0"),10,s,t),g.e=g.c.length),l=f=(v=i(e,n,s,h?(u=S,t):(u=t,S))).length;0==v[--f];v.pop());if(!v[0])return u.charAt(0);if(y<0?--l:(p.c=v,p.e=l,p.s=o,v=(p=r(p,g,w,M,s)).c,c=p.r,l=p.e),y=v[a=l+w+1],f=s/2,c=c||a<0||null!=v[a+1],c=M<4?(null!=y||c)&&(0==M||M==(p.s<0?3:2)):y>f||y==f&&(4==M||c||6==M&&1&v[a-1]||M==(p.s<0?8:7)),a<1||!v[0])e=c?jt(u.charAt(1),-w,u.charAt(0)):u.charAt(0);else{if(v.length=a,c)for(--s;++v[--a]>s;)v[a]=0,a||(++l,v=[1].concat(v));for(f=v.length;!v[--f];);for(y=0,e="";y<=f;e+=u.charAt(v[y++]));e=jt(e,l,u.charAt(0))}return e}}(),r=function(){function t(t,i,r){var e,n,s,o,h=0,u=t.length,a=i%Ot,l=i/Ot|0;for(t=t.slice();u--;)h=((n=a*(s=t[u]%Ot)+(e=l*s+(o=t[u]/Ot|0)*a)%Ot*Ot+h)/r|0)+(e/Ot|0)+l*o,t[u]=n%r;return h&&(t=[h].concat(t)),t}function i(t,i,r,e){var n,s;if(r!=e)s=r>e?1:-1;else for(n=s=0;n<r;n++)if(t[n]!=i[n]){s=t[n]>i[n]?1:-1;break}return s}function r(t,i,r,e){for(var n=0;r--;)t[r]-=n,n=t[r]<i[r]?1:0,t[r]=n*e+t[r]-i[r];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(e,n,s,o,h){var u,a,l,f,c,p,m,d,v,g,y,w,M,b,_,T,S,A=e.s==n.s?1:-1,B=e.c,N=n.c;if(!(B&&B[0]&&N&&N[0]))return new E(e.s&&n.s&&(B?!N||B[0]!=N[0]:N)?B&&0==B[0]||!N?0*A:A/0:NaN);for(v=(d=new E(A)).c=[],A=s+(a=e.e-n.e)+1,h||(h=At,a=Dt(e.e/Et)-Dt(n.e/Et),A=A/Et|0),l=0;N[l]==(B[l]||0);l++);if(N[l]>(B[l]||0)&&a--,A<0)v.push(1),f=!0;else{for(b=B.length,T=N.length,l=0,A+=2,(c=_t(h/(N[0]+1)))>1&&(N=t(N,c,h),B=t(B,c,h),T=N.length,b=B.length),M=T,y=(g=B.slice(0,T)).length;y<T;g[y++]=0);S=N.slice(),S=[0].concat(S),_=N[0],N[1]>=h/2&&_++;do{if(c=0,(u=i(N,g,T,y))<0){if(w=g[0],T!=y&&(w=w*h+(g[1]||0)),(c=_t(w/_))>1)for(c>=h&&(c=h-1),m=(p=t(N,c,h)).length,y=g.length;1==i(p,g,m,y);)c--,r(p,T<m?S:N,m,h),m=p.length,u=1;else 0==c&&(u=c=1),m=(p=N.slice()).length;if(m<y&&(p=[0].concat(p)),r(g,p,y,h),y=g.length,-1==u)for(;i(N,g,T,y)<1;)c++,r(g,T<y?S:N,y,h),y=g.length}else 0===u&&(c++,g=[0]);v[l++]=c,g[0]?g[y++]=B[M]||0:(g=[B[M]],y=1)}while((M++<b||null!=g[0])&&A--);f=null!=g[0],v[0]||v.splice(0,1)}if(h==At){for(l=1,A=v[0];A>=10;A/=10,l++);k(d,s+(d.e=l+a*Et-1)+1,o,f)}else d.e=a,d.r=+f;return d}}(),h=/^(-?)0([xbo])(?=\w[\w.]*$)/i,u=/^([^.]+)\.$/,a=/^\.([^.]+)$/,l=/^-?(Infinity|NaN)$/,f=/^\s*\+(?=[\w.])|^\s+|\s+$/g,n=function(t,i,r,e){var n,s=r?i:i.replace(f,"");if(l.test(s))t.s=isNaN(s)?null:s<0?-1:1;else{if(!r&&(s=s.replace(h,function(t,i,r){return n="x"==(r=r.toLowerCase())?16:"b"==r?2:8,e&&e!=n?t:i}),e&&(n=e,s=s.replace(u,"$1").replace(a,"0.$1")),i!=s))return new E(s,n);if(E.DEBUG)throw Error(Tt+"Not a"+(e?" base "+e:"")+" number: "+i);t.s=null}t.c=t.e=null},c.absoluteValue=c.abs=function(){var t=new E(this);return t.s<0&&(t.s=1),t},c.comparedTo=function(t,i){return zt(this,new E(t,i))},c.decimalPlaces=c.dp=function(t,i){var r,e,n,s=this;if(null!=t)return It(t,0,kt),null==i?i=d:It(i,0,8),k(new E(s),t+s.e+1,i);if(!(r=s.c))return null;if(e=((n=r.length-1)-Dt(this.e/Et))*Et,n=r[n])for(;n%10==0;n/=10,e--);return e<0&&(e=0),e},c.dividedBy=c.div=function(t,i){return r(this,new E(t,i),m,d)},c.dividedToIntegerBy=c.idiv=function(t,i){return r(this,new E(t,i),0,1)},c.exponentiatedBy=c.pow=function(t,i){var r,e,n,s,o,h,u,a,l=this;if((t=new E(t)).c&&!t.isInteger())throw Error(Tt+"Exponent not an integer: "+D(t));if(null!=i&&(i=new E(i)),o=t.e>14,!l.c||!l.c[0]||1==l.c[0]&&!l.e&&1==l.c.length||!t.c||!t.c[0])return a=new E(Math.pow(+D(l),o?t.s*(2-Rt(t)):+D(t))),i?a.mod(i):a;if(h=t.s<0,i){if(i.c?!i.c[0]:!i.s)return new E(NaN);(e=!h&&l.isInteger()&&i.isInteger())&&(l=l.mod(i))}else{if(t.e>9&&(l.e>0||l.e<-1||(0==l.e?l.c[0]>1||o&&l.c[1]>=24e7:l.c[0]<8e13||o&&l.c[0]<=9999975e7)))return s=l.s<0&&Rt(t)?-0:0,l.e>-1&&(s=1/s),new E(h?1/s:s);_&&(s=bt(_/Et+2))}for(o?(r=new E(.5),h&&(t.s=1),u=Rt(t)):u=(n=Math.abs(+D(t)))%2,a=new E(p);;){if(u){if(!(a=a.times(l)).c)break;s?a.c.length>s&&(a.c.length=s):e&&(a=a.mod(i))}if(n){if(0===(n=_t(n/2)))break;u=n%2}else if(k(t=t.times(r),t.e+1,1),t.e>14)u=Rt(t);else{if(0===(n=+D(t)))break;u=n%2}l=l.times(l),s?l.c&&l.c.length>s&&(l.c.length=s):e&&(l=l.mod(i))}return e?a:(h&&(a=p.div(a)),i?a.mod(i):s?k(a,_,d,void 0):a)},c.integerValue=function(t){var i=new E(this);return null==t?t=d:It(t,0,8),k(i,i.e+1,t)},c.isEqualTo=c.eq=function(t,i){return 0===zt(this,new E(t,i))},c.isFinite=function(){return!!this.c},c.isGreaterThan=c.gt=function(t,i){return zt(this,new E(t,i))>0},c.isGreaterThanOrEqualTo=c.gte=function(t,i){return 1===(i=zt(this,new E(t,i)))||0===i},c.isInteger=function(){return!!this.c&&Dt(this.e/Et)>this.c.length-2},c.isLessThan=c.lt=function(t,i){return zt(this,new E(t,i))<0},c.isLessThanOrEqualTo=c.lte=function(t,i){return-1===(i=zt(this,new E(t,i)))||0===i},c.isNaN=function(){return!this.s},c.isNegative=function(){return this.s<0},c.isPositive=function(){return this.s>0},c.isZero=function(){return!!this.c&&0==this.c[0]},c.minus=function(t,i){var r,e,n,s,o=this,h=o.s;if(i=(t=new E(t,i)).s,!h||!i)return new E(NaN);if(h!=i)return t.s=-i,o.plus(t);var u=o.e/Et,a=t.e/Et,l=o.c,f=t.c;if(!u||!a){if(!l||!f)return l?(t.s=-i,t):new E(f?o:NaN);if(!l[0]||!f[0])return f[0]?(t.s=-i,t):new E(l[0]?o:3==d?-0:0)}if(u=Dt(u),a=Dt(a),l=l.slice(),h=u-a){for((s=h<0)?(h=-h,n=l):(a=u,n=f),n.reverse(),i=h;i--;n.push(0));n.reverse()}else for(e=(s=(h=l.length)<(i=f.length))?h:i,h=i=0;i<e;i++)if(l[i]!=f[i]){s=l[i]<f[i];break}if(s&&(n=l,l=f,f=n,t.s=-t.s),(i=(e=f.length)-(r=l.length))>0)for(;i--;l[r++]=0);for(i=At-1;e>h;){if(l[--e]<f[e]){for(r=e;r&&!l[--r];l[r]=i);--l[r],l[e]+=At}l[e]-=f[e]}for(;0==l[0];l.splice(0,1),--a);return l[0]?O(t,l,a):(t.s=3==d?-1:1,t.c=[t.e=0],t)},c.modulo=c.mod=function(t,i){var e,n,s=this;return t=new E(t,i),!s.c||!t.s||t.c&&!t.c[0]?new E(NaN):!t.c||s.c&&!s.c[0]?new E(s):(9==b?(n=t.s,t.s=1,e=r(s,t,0,3),t.s=n,e.s*=n):e=r(s,t,0,b),(t=s.minus(e.times(t))).c[0]||1!=b||(t.s=s.s),t)},c.multipliedBy=c.times=function(t,i){var r,e,n,s,o,h,u,a,l,f,c,p,m,d,v,g=this,y=g.c,w=(t=new E(t,i)).c;if(!(y&&w&&y[0]&&w[0]))return!g.s||!t.s||y&&!y[0]&&!w||w&&!w[0]&&!y?t.c=t.e=t.s=null:(t.s*=g.s,y&&w?(t.c=[0],t.e=0):t.c=t.e=null),t;for(e=Dt(g.e/Et)+Dt(t.e/Et),t.s*=g.s,(u=y.length)<(f=w.length)&&(m=y,y=w,w=m,n=u,u=f,f=n),n=u+f,m=[];n--;m.push(0));for(d=At,v=Ot,n=f;--n>=0;){for(r=0,c=w[n]%v,p=w[n]/v|0,s=n+(o=u);s>n;)r=((a=c*(a=y[--o]%v)+(h=p*a+(l=y[o]/v|0)*c)%v*v+m[s]+r)/d|0)+(h/v|0)+p*l,m[s--]=a%d;m[s]=r}return r?++e:m.splice(0,1),O(t,m,e)},c.negated=function(){var t=new E(this);return t.s=-t.s||null,t},c.plus=function(t,i){var r,e=this,n=e.s;if(i=(t=new E(t,i)).s,!n||!i)return new E(NaN);if(n!=i)return t.s=-i,e.minus(t);var s=e.e/Et,o=t.e/Et,h=e.c,u=t.c;if(!s||!o){if(!h||!u)return new E(n/0);if(!h[0]||!u[0])return u[0]?t:new E(h[0]?e:0*n)}if(s=Dt(s),o=Dt(o),h=h.slice(),n=s-o){for(n>0?(o=s,r=u):(n=-n,r=h),r.reverse();n--;r.push(0));r.reverse()}for((n=h.length)-(i=u.length)<0&&(r=u,u=h,h=r,i=n),n=0;i;)n=(h[--i]=h[i]+u[i]+n)/At|0,h[i]=At===h[i]?0:h[i]%At;return n&&(h=[n].concat(h),++o),O(t,h,o)},c.precision=c.sd=function(t,i){var r,e,n,s=this;if(null!=t&&t!==!!t)return It(t,1,kt),null==i?i=d:It(i,0,8),k(new E(s),t,i);if(!(r=s.c))return null;if(e=(n=r.length-1)*Et+1,n=r[n]){for(;n%10==0;n/=10,e--);for(n=r[0];n>=10;n/=10,e++);}return t&&s.e+1>e&&(e=s.e+1),e},c.shiftedBy=function(t){return It(t,-9007199254740991,Bt),this.times("1e"+t)},c.squareRoot=c.sqrt=function(){var t,i,e,n,s,o=this,h=o.c,u=o.s,a=o.e,l=m+4,f=new E("0.5");if(1!==u||!h||!h[0])return new E(!u||u<0&&(!h||h[0])?NaN:h?o:1/0);if(0==(u=Math.sqrt(+D(o)))||u==1/0?(((i=xt(h)).length+a)%2==0&&(i+="0"),u=Math.sqrt(+i),a=Dt((a+1)/2)-(a<0||a%2),e=new E(i=u==1/0?"5e"+a:(i=u.toExponential()).slice(0,i.indexOf("e")+1)+a)):e=new E(u+""),e.c[0])for((u=(a=e.e)+l)<3&&(u=0);;)if(s=e,e=f.times(s.plus(r(o,s,l,1))),xt(s.c).slice(0,u)===(i=xt(e.c)).slice(0,u)){if(e.e<a&&--u,"9999"!=(i=i.slice(u-3,u+1))&&(n||"4999"!=i)){+i&&(+i.slice(1)||"5"!=i.charAt(0))||(k(e,e.e+m+2,1),t=!e.times(e).eq(o));break}if(!n&&(k(s,s.e+m+2,0),s.times(s).eq(o))){e=s;break}l+=4,u+=4,n=1}return k(e,e.e+m+1,d,t)},c.toExponential=function(t,i){return null!=t&&(It(t,0,kt),t++),B(this,t,i,1)},c.toFixed=function(t,i){return null!=t&&(It(t,0,kt),t=t+this.e+1),B(this,t,i)},c.toFormat=function(t,i,r){var e,n=this;if(null==r)null!=t&&i&&"object"==typeof i?(r=i,i=null):t&&"object"==typeof t?(r=t,t=i=null):r=T;else if("object"!=typeof r)throw Error(Tt+"Argument not an object: "+r);if(e=n.toFixed(t,i),n.c){var s,o=e.split("."),h=+r.groupSize,u=+r.secondaryGroupSize,a=r.groupSeparator||"",l=o[0],f=o[1],c=n.s<0,p=c?l.slice(1):l,m=p.length;if(u&&(s=h,h=u,u=s,m-=s),h>0&&m>0){for(s=m%h||h,l=p.substr(0,s);s<m;s+=h)l+=a+p.substr(s,h);u>0&&(l+=a+p.slice(s)),c&&(l="-"+l)}e=f?l+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?f.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):l}return(r.prefix||"")+e+(r.suffix||"")},c.toFraction=function(t){var i,e,n,s,o,h,u,a,l,f,c,m,v=this,g=v.c;if(null!=t&&(!(u=new E(t)).isInteger()&&(u.c||1!==u.s)||u.lt(p)))throw Error(Tt+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+D(u));if(!g)return new E(v);for(i=new E(p),l=e=new E(p),n=a=new E(p),m=xt(g),o=i.e=m.length-v.e-1,i.c[0]=Nt[(h=o%Et)<0?Et+h:h],t=!t||u.comparedTo(i)>0?o>0?i:l:u,h=w,w=1/0,u=new E(m),a.c[0]=0;f=r(u,i,0,1),1!=(s=e.plus(f.times(n))).comparedTo(t);)e=n,n=s,l=a.plus(f.times(s=l)),a=s,i=u.minus(f.times(s=i)),u=s;return s=r(t.minus(e),n,0,1),a=a.plus(s.times(l)),e=e.plus(s.times(n)),a.s=l.s=v.s,c=r(l,n,o*=2,d).minus(v).abs().comparedTo(r(a,e,o,d).minus(v).abs())<1?[l,n]:[a,e],w=h,c},c.toNumber=function(){return+D(this)},c.toPrecision=function(t,i){return null!=t&&It(t,1,kt),B(this,t,i,2)},c.toString=function(t){var i,r=this,n=r.s,s=r.e;return null===s?n?(i="Infinity",n<0&&(i="-"+i)):i="NaN":(null==t?i=s<=v||s>=g?Lt(xt(r.c),s):jt(xt(r.c),s,"0"):10===t&&A?i=jt(xt((r=k(new E(r),m+s+1,d)).c),r.e,"0"):(It(t,2,S.length,"Base"),i=e(jt(xt(r.c),s,"0"),10,t,n,!0)),n<0&&r.c[0]&&(i="-"+i)),i},c.valueOf=c.toJSON=function(){return D(this)},c._isBigNumber=!0,c[Symbol.toStringTag]="BigNumber",c[Symbol.for("nodejs.util.inspect.custom")]=c.valueOf,null!=i&&E.set(i),E}(),qt={exports:{}};var Vt=(Pt||(Pt=1,function(t,i){function r(t,i){if(!t)throw new Error(i||"Assertion failed")}function e(t,i){t.super_=i;var r=function(){};r.prototype=i.prototype,t.prototype=new r,t.prototype.constructor=t}function n(t,i,r){if(n.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==i&&"be"!==i||(r=i,i=10),this._init(t||0,i||10,r||"be"))}var s;"object"==typeof t?t.exports=n:i.BN=n,n.BN=n,n.wordSize=26;try{s=require("buffer").Buffer}catch(t){}function o(t,i,r){for(var e=0,n=Math.min(t.length,r),s=i;s<n;s++){var o=t.charCodeAt(s)-48;e<<=4,e|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return e}function h(t,i,r,e){for(var n=0,s=Math.min(t.length,r),o=i;o<s;o++){var h=t.charCodeAt(o)-48;n*=e,n+=h>=49?h-49+10:h>=17?h-17+10:h}return n}n.isBN=function(t){return t instanceof n||null!==t&&"object"==typeof t&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,i){return t.cmp(i)>0?t:i},n.min=function(t,i){return t.cmp(i)<0?t:i},n.prototype._init=function(t,i,e){if("number"==typeof t)return this._initNumber(t,i,e);if("object"==typeof t)return this._initArray(t,i,e);"hex"===i&&(i=16),r(i===(0|i)&&i>=2&&i<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===i?this._parseHex(t,n):this._parseBase(t,i,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),i,e)},n.prototype._initNumber=function(t,i,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):t<9007199254740992?(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3):(r(t<=9999999999999900),this.words=[67108863&t,t/67108864&67108863,2],this.length=3),"le"===e&&this._initArray(this.toArray(),i,e)},n.prototype._initArray=function(t,i,e){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var s,o,h=0;if("be"===e)for(n=t.length-1,s=0;n>=0;n-=3)o=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[s]|=o<<h&67108863,this.words[s+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,s++);else if("le"===e)for(n=0,s=0;n<t.length;n+=3)o=t[n]|t[n+1]<<8|t[n+2]<<16,this.words[s]|=o<<h&67108863,this.words[s+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,s++);return this.strip()},n.prototype._parseHex=function(t,i){this.length=Math.ceil((t.length-i)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var e,n,s=0;for(r=t.length-6,e=0;r>=i;r-=6)n=o(t,r,r+6),this.words[e]|=n<<s&67108863,this.words[e+1]|=n>>>26-s&4194303,(s+=24)>=26&&(s-=26,e++);r+6!==i&&(n=o(t,i,r+6),this.words[e]|=n<<s&67108863,this.words[e+1]|=n>>>26-s&4194303),this.strip()},n.prototype._parseBase=function(t,i,r){this.words=[0],this.length=1;for(var e=0,n=1;n<=67108863;n*=i)e++;e--,n=n/i|0;for(var s=t.length-r,o=s%e,u=Math.min(s,s-o)+r,a=0,l=r;l<u;l+=e)a=h(t,l,l+e,i),this.imuln(n),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==o){var f=1;for(a=h(t,l,t.length,i),l=0;l<o;l++)f*=i;this.imuln(f),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}},n.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],a=[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 f(t,i,r){r.negative=i.negative^t.negative;var e=t.length+i.length|0;r.length=e,e=e-1|0;var n=0|t.words[0],s=0|i.words[0],o=n*s,h=67108863&o,u=o/67108864|0;r.words[0]=h;for(var a=1;a<e;a++){for(var l=u>>>26,f=67108863&u,c=Math.min(a,i.length-1),p=Math.max(0,a-t.length+1);p<=c;p++){var m=a-p|0;l+=(o=(n=0|t.words[m])*(s=0|i.words[p])+f)/67108864|0,f=67108863&o}r.words[a]=0|f,u=0|l}return 0!==u?r.words[a]=0|u:r.length--,r.strip()}n.prototype.toString=function(t,i){var e;if(i=0|i||1,16===(t=t||10)||"hex"===t){e="";for(var n=0,s=0,o=0;o<this.length;o++){var h=this.words[o],f=(16777215&(h<<n|s)).toString(16);e=0!=(s=h>>>24-n&16777215)||o!==this.length-1?u[6-f.length]+f+e:f+e,(n+=2)>=26&&(n-=26,o--)}for(0!==s&&(e=s.toString(16)+e);e.length%i!==0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(t===(0|t)&&t>=2&&t<=36){var c=a[t],p=l[t];e="";var m=this.clone();for(m.negative=0;!m.isZero();){var d=m.modn(p).toString(t);e=(m=m.idivn(p)).isZero()?d+e:u[c-d.length]+d+e}for(this.isZero()&&(e="0"+e);e.length%i!==0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3!==this.length||1!==this.words[2]&&2!==this.words[2]?this.length>2&&r(!1,"Number can only safely store up to 54 bits"):t+=4503599627370496+67108864*this.words[1],0!==this.negative?-t:t},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(t,i){return r(void 0!==s),this.toArrayLike(s,t,i)},n.prototype.toArray=function(t,i){return this.toArrayLike(Array,t,i)},n.prototype.toArrayLike=function(t,i,e){var n=this.byteLength(),s=e||Math.max(1,n);r(n<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0"),this.strip();var o,h,u="le"===i,a=new t(s),l=this.clone();if(u){for(h=0;!l.isZero();h++)o=l.andln(255),l.iushrn(8),a[h]=o;for(;h<s;h++)a[h]=0}else{for(h=0;h<s-n;h++)a[h]=0;for(h=0;!l.isZero();h++)o=l.andln(255),l.iushrn(8),a[s-h-1]=o}return a},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var i=t,r=0;return i>=4096&&(r+=13,i>>>=13),i>=64&&(r+=7,i>>>=7),i>=8&&(r+=4,i>>>=4),i>=2&&(r+=2,i>>>=2),r+i},n.prototype._zeroBits=function(t){if(0===t)return 26;var i=t,r=0;return 8191&i||(r+=13,i>>>=13),127&i||(r+=7,i>>>=7),15&i||(r+=4,i>>>=4),3&i||(r+=2,i>>>=2),1&i||r++,r},n.prototype.bitLength=function(){var t=this.words[this.length-1],i=this._countBits(t);return 26*(this.length-1)+i},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var r=this._zeroBits(this.words[i]);if(t+=r,26!==r)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return 0!==this.negative},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},n.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},n.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},n.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},n.prototype.iuand=function(t){var i;i=this.length>t.length?t:this;for(var r=0;r<i.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=i.length,this.strip()},n.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},n.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},n.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},n.prototype.iuxor=function(t){var i,r;this.length>t.length?(i=this,r=t):(i=t,r=this);for(var e=0;e<r.length;e++)this.words[e]=i.words[e]^r.words[e];if(this!==i)for(;e<i.length;e++)this.words[e]=i.words[e];return this.length=i.length,this.strip()},n.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},n.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},n.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},n.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var i=0|Math.ceil(t/26),e=t%26;this._expand(i),e>0&&i--;for(var n=0;n<i;n++)this.words[n]=67108863&~this.words[n];return e>0&&(this.words[n]=~this.words[n]&67108863>>26-e),this.strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,i){r("number"==typeof t&&t>=0);var e=t/26|0,n=t%26;return this._expand(e+1),this.words[e]=i?this.words[e]|1<<n:this.words[e]&~(1<<n),this.strip()},n.prototype.iadd=function(t){var i,r,e;if(0!==this.negative&&0===t.negative)return this.negative=0,i=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,i=this.isub(t),t.negative=1,i._normSign();this.length>t.length?(r=this,e=t):(r=t,e=this);for(var n=0,s=0;s<e.length;s++)i=(0|r.words[s])+(0|e.words[s])+n,this.words[s]=67108863&i,n=i>>>26;for(;0!==n&&s<r.length;s++)i=(0|r.words[s])+n,this.words[s]=67108863&i,n=i>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},n.prototype.add=function(t){var i;return 0!==t.negative&&0===this.negative?(t.negative=0,i=this.sub(t),t.negative^=1,i):0===t.negative&&0!==this.negative?(this.negative=0,i=t.sub(this),this.negative=1,i):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},n.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var i=this.iadd(t);return t.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,e,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,e=t):(r=t,e=this);for(var s=0,o=0;o<e.length;o++)s=(i=(0|r.words[o])-(0|e.words[o])+s)>>26,this.words[o]=67108863&i;for(;0!==s&&o<r.length;o++)s=(i=(0|r.words[o])+s)>>26,this.words[o]=67108863&i;if(0===s&&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()},n.prototype.sub=function(t){return this.clone().isub(t)};var c=function(t,i,r){var e,n,s,o=t.words,h=i.words,u=r.words,a=0,l=0|o[0],f=8191&l,c=l>>>13,p=0|o[1],m=8191&p,d=p>>>13,v=0|o[2],g=8191&v,y=v>>>13,w=0|o[3],M=8191&w,b=w>>>13,_=0|o[4],T=8191&_,S=_>>>13,A=0|o[5],E=8191&A,B=A>>>13,N=0|o[6],O=8191&N,k=N>>>13,D=0|o[7],x=8191&D,z=D>>>13,I=0|o[8],R=8191&I,L=I>>>13,j=0|o[9],P=8191&j,C=j>>>13,q=0|h[0],V=8191&q,Z=q>>>13,H=0|h[1],U=8191&H,F=H>>>13,K=0|h[2],G=8191&K,$=K>>>13,J=0|h[3],W=8191&J,X=J>>>13,Y=0|h[4],Q=8191&Y,tt=Y>>>13,it=0|h[5],rt=8191&it,et=it>>>13,nt=0|h[6],st=8191&nt,ot=nt>>>13,ht=0|h[7],ut=8191&ht,at=ht>>>13,lt=0|h[8],ft=8191&lt,ct=lt>>>13,pt=0|h[9],mt=8191&pt,dt=pt>>>13;r.negative=t.negative^i.negative,r.length=19;var vt=(a+(e=Math.imul(f,V))|0)+((8191&(n=(n=Math.imul(f,Z))+Math.imul(c,V)|0))<<13)|0;a=((s=Math.imul(c,Z))+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,e=Math.imul(m,V),n=(n=Math.imul(m,Z))+Math.imul(d,V)|0,s=Math.imul(d,Z);var gt=(a+(e=e+Math.imul(f,U)|0)|0)+((8191&(n=(n=n+Math.imul(f,F)|0)+Math.imul(c,U)|0))<<13)|0;a=((s=s+Math.imul(c,F)|0)+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,e=Math.imul(g,V),n=(n=Math.imul(g,Z))+Math.imul(y,V)|0,s=Math.imul(y,Z),e=e+Math.imul(m,U)|0,n=(n=n+Math.imul(m,F)|0)+Math.imul(d,U)|0,s=s+Math.imul(d,F)|0;var yt=(a+(e=e+Math.imul(f,G)|0)|0)+((8191&(n=(n=n+Math.imul(f,$)|0)+Math.imul(c,G)|0))<<13)|0;a=((s=s+Math.imul(c,$)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,e=Math.imul(M,V),n=(n=Math.imul(M,Z))+Math.imul(b,V)|0,s=Math.imul(b,Z),e=e+Math.imul(g,U)|0,n=(n=n+Math.imul(g,F)|0)+Math.imul(y,U)|0,s=s+Math.imul(y,F)|0,e=e+Math.imul(m,G)|0,n=(n=n+Math.imul(m,$)|0)+Math.imul(d,G)|0,s=s+Math.imul(d,$)|0;var wt=(a+(e=e+Math.imul(f,W)|0)|0)+((8191&(n=(n=n+Math.imul(f,X)|0)+Math.imul(c,W)|0))<<13)|0;a=((s=s+Math.imul(c,X)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,e=Math.imul(T,V),n=(n=Math.imul(T,Z))+Math.imul(S,V)|0,s=Math.imul(S,Z),e=e