coinwind/public/static/js/chunk-libs.981aefd5.js

100 lines
2.6 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"0034":function(t){t.exports=JSON.parse('{"name":"muirGlacier","comment":"HF to delay the difficulty bomb","url":"https://eips.ethereum.org/EIPS/eip-2384","status":"Final","gasConfig":{},"gasPrices":{},"vm":{},"pow":{"difficultyBombDelay":{"v":9000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},"00d7":function(t,e,r){"use strict";var n=r("ba10"),i=function(t){var e,r,i=new Promise((function(){e=arguments[0],r=arguments[1]}));if(t)return{resolve:e,reject:r,eventEmitter:i};var o=new n;return i._events=o._events,i.emit=o.emit,i.on=o.on,i.once=o.once,i.off=o.off,i.listeners=o.listeners,i.addListener=o.addListener,i.removeListener=o.removeListener,i.removeAllListeners=o.removeAllListeners,{resolve:e,reject:r,eventEmitter:i}};i.resolve=function(t){var e=i(!0);return e.resolve(t),e.eventEmitter},t.exports=i},"00dc":function(t,e,r){(function(t){var n=r("58a2"),i=r("c24d"),o=r("561d");function s(e){var r=new t(i[e].prime,"hex"),n=new t(i[e].gen,"hex");return new o(r,n)}var a={binary:!0,hex:!0,base64:!0};function u(e,r,i,s){return t.isBuffer(r)||void 0===a[r]?u(e,"binary",r,i):(r=r||"binary",s=s||"binary",i=i||new t([2]),t.isBuffer(i)||(i=new t(i,s)),"number"===typeof e?new o(n(e,i),i,!0):(t.isBuffer(e)||(e=new t(e,r)),new o(e,i,!0)))}e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=s,e.createDiffieHellman=e.DiffieHellman=u}).call(this,r("b639").Buffer)},"0106":function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s=r(19).Buffer}catch(E){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var s=t.charCodeAt(o)-48;n<<=4,n|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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"],l=[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],c=[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){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?h[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=l[t],d=c[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:h[f-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function v(t,e,r){var n=new g;return n.mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?m(this,t,e):v(this,t,e),r},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},g.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=f(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(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 b(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 w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){S.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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(w,b),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,b),i(_,b),i(k,b),k.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}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 w;else if("p224"===t)e=new M;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("62e4")(t))},"0145":function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},"0184":function(t,e,r){"use strict";var n=r("da3e");function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var r=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n<r;n++)this.buffer[this.bufferOff+n]=t[e+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(t){var e=0,r=0,n=(this.bufferOff+t.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,i,r),r+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return i},i.prototype._updateDecrypt=function(t){for(var e=0,r=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)e+=this._buffer(t,e),r+=this._flushBuffer(i,r);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,r;return t&&(e=this.update(t)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(r):r},i.prototype._pad=function(t,e){if(0===e)return!1;while(e<t.length)t[e++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},i.prototype._unpad=function(t){return t},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},"01f9":function(t,e,r){"use strict";var n=r("2d00"),i=r("5ca1"),o=r("2aba"),s=r("32e9"),a=r("84f2"),u=r("41a0"),h=r("7f20"),l=r("38fd"),c=r("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",m="values",v=function(){return this};t.exports=function(t,e,r,g,y,b,w){u(r,e,g);var M,_,k,S=function(t){if(!f&&t in O)return O[t];switch(t){case p:return function(){return new r(this,t)};case m:return function(){return new r(this,t)}}return function(){return new r(this,t)}},x=e+" Iterator",E=y==m,A=!1,O=t.prototype,T=O[c]||O[d]||y&&O[y],C=T||S(y),P=y?E?S("entries"):C:void 0,B="Array"==e&&O.entries||T;if(B&&(k=l(B.call(new t)),k!==Object.prototype&&k.next&&(h(k,x,!0),n||"function"==typeof k[c]||s(k,c,v))),E&&T&&T.name!==m&&(A=!0,C=function(){return T.call(this)}),n&&!w||!f&&!A&&O[c]||s(O,c,C),a[e]=C,a[x]=v,y)if(M={values:E?C:S(m),keys:b?C:S(p),entries:P},w)for(_ in M)_ in O||o(O,_,M[_]);else i(i.P+i.F*(f||A),e,M);return M}},"0211":function(t,e,r){var n=e;n._reverse=function(t){var e={};return Object.keys(t).forEach((function(r){(0|r)==r&&(r|=0);var n=t[r];e[n]=r})),e},n.der=r("8b71")},"0222":function(t){t.exports=JSON.parse('{"identity":0,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"blake3":30,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,"x11":4352,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}')},"02f4":function(t,e,r){var n=r("4588"),i=r("be13");t.exports=function(t){return function(e,r){var o,s,a=String(i(e)),u=n(r),h=a.length;return u<0||u>=h?t?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===h||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,r){"use strict";var n=r("02f4")(!0);t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},"05f0":function(t,e,r){"use strict";var n=r("d113").codes.ERR_INVALID_OPT_VALUE;function i(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}function o(t,e,r,o){var s=i(e,o,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){var a=o?r:"highWaterMark";throw new n(a,s)}return Math.floor(s)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},"0632":function(t,e,r){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var n=r("b639"),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,r){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"===typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},"06c5":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r("6b75");function i(t,e){if(t){if("string"===typeof t)return Object(n["a"])(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n["a"])(t,e):void 0}}},"0706":function(module,exports){var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(t){return function(t,e,r){t[e]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(t),(function(e){r[e]=t[e]})),forEach(globals,(function(e){t[e]&&(r[e]=t[e])}));var o=Object_keys(r),s=n.call(r,this.code);return forEach(Object_keys(r),(function(e){(e in t||-1===indexOf(o,e))&&(t[e]=r[e])})),forEach(globals,(function(e){e in t||defineProp(t,e,r[e])})),document.body.removeChild(e),s},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),(function(r){t[r]=e[r]})),r},forEach(Object_keys(Script.prototype),(function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}})),exports.isContext=function(t){return t instanceof Context},exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"===typeof t&&forEach(Object_keys(t),(function(r){e[r]=t[r]})),e}},"07f2":function(t,e,r){"use strict";var n=r("c3c0"),i=r("6eed");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},"087f":function(t,e,r){var n=r("3fb5"),i=r("b672"),o=r("8707").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function u(){this.init(),this._w=a,i.call(this,64,56)}function h(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function c(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=e[u-3]^e[u-8]^e[u-14]^e[u-16];for(var f=0;f<80;++f){var d=~~(f/20),p=h(r)+c(d,n,i,o)+a+e[f]+s[d]|0;a=o,o=i,i=l(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},"0924":function(t,e,r){"use strict";(function(e,n){var i=r("c063"),o=r("7789"),s=r("0c3d"),a=r("1ecd"),u=r("1c46"),h=r("9f6a"),l=r("2ad0"),c=r("5ba3"),f=r("c044"),{TransactionFactory:d}=r("ced0"),p=r("67aa").default,m=r("67aa").Hardfork,v=function(t){return"undefined"===typeof t||null===t},g=function(){var t=this;i.packageInit(this,arguments),delete this.BatchRequest,delete this.extend;var e=[new o({name:"getNetworkId",call:"net_version",params:0,outputFormatter:parseInt}),new o({name:"getChainId",call:"eth_chainId",params:0,outputFormatter:c.hexToNumber}),new o({name:"getGasPrice",call:"eth_gasPrice",params:0}),new o({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[function(t){if(c.isAddress(t))return t;throw new Error("Address "+t+' is not a valid address to get the "transactionCount".')},function(){return"latest"}]}),new o({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[function(t){return t?c.toHex(t):"latest"},function(){return!1}]})];this._ethereumCall={},e.forEach(e=>{e.attachToObject(t._ethereumCall),e.setRequestManager(t._requestManager)}),this.wallet=new M(this)};function y(t){if(t.common&&t.chain&&t.hardfork)return new Error("Please provide the @ethereumjs/common object or the chain and hardfork property but not all together.");if(t.chain&&!t.hardfork||t.hardfork&&!t.chain)return new Error('When specifying chain and hardfork, both values must be defined. Received "chain": '+t.chain+', "hardfork": '+t.hardfork);if(!t.gas&&!t.gasLimit&&!t.maxPriorityFeePerGas&&!t.maxFeePerGas)return new Error('"gas" is missing');if(t.gas&&t.gasPrice){if(t.gas<0||t.gasPrice<0)return new Error("Gas or gasPrice is lower than 0")}else if(t.maxPriorityFeePerGas<0||t.maxFeePerGas<0)return new Error("maxPriorityFeePerGas or maxFeePerGas is lower than 0");return t.nonce<0||t.chainId<0?new Error("Nonce or chainId is lower than 0"):void 0}function b(t){const e=void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas;let r;if(r=void 0!==t.type?c.toHex(t.type):void 0===t.type&&e?"0x2":"0x0",void 0!==t.gasPrice&&("0x2"===r||e))throw Error("eip-1559 transactions don't support gasPrice");if(("0x1"===r||"0x0"===r)&&e)throw Error("pre-eip-1559 transaction don't support maxFeePerGas/maxPriorityFeePerGas");return e||t.common&&t.common.hardfork&&t.common.hardfork.toLowerCase()===m.London||t.hardfork&&t.hardfork.toLowerCase()===m.London?r="0x2":(t.accessList||t.common&&t.common.hardfork&&t.common.hardfork.toLowerCase()===m.Berlin||t.hardfork&&t.hardfork.toLowerCase()===m.Berlin)&&(r="0x1"),r}function w(t,e){return new Promise((r,n)=>{try{e.type<"0x2"&&void 0!==e.gasPrice?r({gasPrice:e.gasPrice}):Promise.all([t._ethereumCall.getBlockByNumber(),t._ethereumCall.getGasPrice()]).then(t=>{const[n,i]=t;if("0x2"===e.type&&n&&n.baseFeePerGas){let t,i;e.gasPrice?(t=e.gasPrice,i=e.gasPrice,delete e.gasPrice):(t=e.maxPriorityFeePerGas||"0x3B9ACA00",i=e.maxFeePerGas||c.toHex(c.toBN(n.baseFeePerGas).mul(c.toBN(2)).add(c.toBN(t)))),r({maxFeePerGas:i,maxPriorityFeePerGas:t})}else{if(e.maxPriorityFeePerGas||e.maxFeePerGas)throw Error("Network doesn't support eip-1559");r({gasPrice:i})}})}catch(i){n(i)}})}function M(t){this._accounts=t,this.length=0,this.defaultKeyName="web3js_wallet"}function _(t){var e;try{e=window[t];var r="__storage_test__";return e.setItem(r,r),e.removeItem(r),!0}catch(n){return n&&(22===n.code||1014===n.code||"QuotaExceededError"===n.name||"NS_ERROR_DOM_QUOTA_REACHED"===n.name)&&e&&0!==e.length}}g.prototype._addAccountFunctions=function(t){var e=this;return t.signTransaction=function(r,n){return e.signTransaction(r,t.privateKey,n)},t.sign=function(r){return e.sign(r,t.privateKey)},t.encrypt=function(r,n){return e.encrypt(t.privateKey,r,n)},t},g.prototype.create=function(t){return this._addAccountFunctions(s.create(t||c.randomHex(32)))},g.prototype.privateKeyToAccount=function(t,e){if(t.startsWith("0x")||(t="0x"+t),!e&&66!==t.length)throw new Error("Private key must be 32 bytes long");return this._addAccountFunctions(s.fromPrivate(t))},g.prototype.signTransaction=function(t,e,r){var i=this,o=!1,s={},a=!(!t||!(t.chain&&t.hardfork||t.common));if(r=r||function(){},!t)return o=new Error("No transaction object given!"),r(o),Promise.reject(o);function u(t){const i=y(t);if(i)return r(i),Promise.reject(i);try{var o=f.formatters.inputCallFormatter(Object.assign({},t));o.data=o.data||"0x",o.value=o.value||"0x",o.gasLimit=o.gasLimit||o.gas,"0x1"===o.type&&void 0===o.accessList&&(o.accessList=[]),a?(o.common&&(s.common=p.forCustomChain(o.common.baseChain||"mainnet",{name:o.common.customChain.name||"custom-network",networkId:o.common.customChain.networkId,chainId:o.common.customChain.chainId},o.common.hardfork||m.London),delete o.common),o.chain&&(s.chain=o.chain,delete o.chain),o.hardfork&&(s.hardfork=o.hardfork,delete o.hardfork)):(s.common=p.forCustomChain("mainnet",{name:"custom-network",networkId:o.networkId,chainId:o.chainId},o.hardfork||m.London),delete o.networkId),e.startsWith("0x")&&(e=e.substring(2));var u=d.fromTxData(o,s),h=u.sign(n.from(e,"hex")),l=h.validate(!0);if(l.length>0){let t="Signer Error: ";for(const e of l)t+=`${t} ${e}.`;throw new Error(t)}var v=h.serialize().toString("hex"),g="0x"+v,b=c.keccak256(g),w={messageHash:"0x"+n.from(h.getMessageToSign(!0)).toString("hex"),v:"0x"+n.from(h.v).toString("hex"),r:"0x"+n.from(h.r).toString("hex"),s:"0x"+n.from(h.s).toString("hex"),rawTransaction:g,transactionHash:b};return r(null,w),w}catch(M){return r(M),Promise.reject(M)}}return t.type=b(t),void 0!==t.nonce&&void 0!==t.chainId&&(void 0!==t.gasPrice||void 0!==t.maxFeePerGas&&void 0!==t.maxPriorityFeePerGas)&&a?Promise.resolve(u(t)):Promise.all([v(t.chainId)?i._ethereumCall.getChainId():t.chainId,v(t.nonce)?i._ethereumCall.getTransactionCount(i.privateKeyToAccount(e).address):t.nonce,v(a)?i._ethereumCall.getNetworkId():1,w(i,t)]).then((function(e){if(v(e[0])||v(e[1])||v(e[2])||v(e[3]))throw new Error('One of the values "chainId", "networkId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(e));return u({...t,chainId:e[0],nonce:e[1],networkId:e[2],...e[3]})}))},g.prototype.recoverTransaction=function(t,e={}){const r=n.from(t.slice(2),"hex"),i=d.fromSerializedData(r);return c.toChecksumAddress(i.getSenderAddress().toString("hex"))},g.prototype.hashMessage=function(t){var e=c.isHexStrict(t)?t:c.utf8ToHex(t),r=c.hexToBytes(e),i=n.from(r),o="Ethereum Signed Message:\n"+r.length,s=n.from(o),u=n.concat([s,i]);return a.keccak256s(u)},g.prototype.sign=function(t,e){if(e.startsWith("0x")||(e="0x"+e),66!==e.length)throw new Error("Private key must be 32 bytes long");var r=this.hashMessage(t),n=s.sign(r,e),i=s.decodeSignature(n);return{message:t,messageHash:r,v:i[0],r:i[1],s:i[2],signature:n}},g.prototype.recover=function(t,e,r){var n=[].slice.apply(arguments);return t&&"object"===typeof t?this.recover(t.messageHash,s.encodeSignature([t.v,t.r,t.s]),!0):(r||(t=this.hashMessage(t)),n.length>=4?(r=n.slice(-1)[0],r="boolean"===typeof r&&!!r,this.recover(t,s.encodeSignature(n.slice(1,4)),r)):s.recover(t,e))},g.prototype.decrypt=function(t,e,r){if("string"!==typeof e)throw new Error("No password given.");var i,o,s=t&&"object"===typeof t?t:JSON.parse(r?t.toLowerCase():t);if(3!==s.version)throw new Error("Not a valid V3 wallet");if("scrypt"===s.crypto.kdf)o=s.crypto.kdfparams,i=h.syncScrypt(n.from(e),n.from(o.salt,"hex"),o.n,o.r,o.p,o.dklen);else{if("pbkdf2"!==s.crypto.kdf)throw new Error("Unsupported key derivation scheme");if(o=s.crypto.kdfparams,"hmac-sha256"!==o.prf)throw new Error("Unsupported parameters to PBKDF2");i=u.pbkdf2Sync(n.from(e),n.from(o.salt,"hex"),o.c,o.dklen,"sha256")}var a=n.from(s.crypto.ciphertext,"hex"),l=c.sha3(n.from([...i.slice(16,32),...a])).replace("0x","");if(l!==s.crypto.mac)throw new Error("Key derivation failed - possibly wrong password");var f=u.createDecipheriv(s.crypto.cipher,i.slice(0,16),n.from(s.crypto.cipherparams.iv,"hex")),d="0x"+n.from([...f.update(a),...f.final()]).toString("hex");return this.privateKeyToAccount(d,!0)},g.prototype.encrypt=function(t,e,r){var i=this.privateKeyToAccount(t,!0);r=r||{};var o,s=r.salt||u.randomBytes(32),a=r.iv||u.randomBytes(16),f=r.kdf||"scrypt",d={dklen:r.dklen||32,salt:s.toString("hex")};if("pbkdf2"===f)d.c=r.c||262144,d.prf="hmac-sha256",o=u.pbkdf2Sync(n.from(e),n.from(d.salt,"hex"),d.c,d.dklen,"sha256");else{if("scrypt"!==f)throw new Error("Unsupported kdf");d.n=r.n||8192,d.r=r.r||8,d.p=r.p||1,o=h.syncScrypt(n.from(e),n.from(d.salt,"hex"),d.n,d.r,d.p,d.dklen)}var p=u.createCipheriv(r.cipher||"aes-128-ctr",o.slice(0,16),a);if(!p)throw new Error("Unsupported cipher");var m=n.from([...p.update(n.from(i.privateKey.replace("0x",""),"hex")),...p.final()]),v=c.sha3(n.from([...o.slice(16,32),...m])).replace("0x","");return{version:3,id:l.v4({random:r.uuid||u.randomBytes(16)}),address:i.address.toLowerCase().replace("0x",""),crypto:{ciphertext:m.toString("hex"),cipherparams:{iv:a.toString("hex")},cipher:r.cipher||"aes-128-ctr",kdf:f,kdfparams:d,mac:v.toString("hex")}}},M.prototype._findSafeIndex=function(t){return t=t||0,this.hasOwnProperty(t)?this._findSafeIndex(t+1):t},M.prototype._currentIndexes=function(){var t=Object.keys(this),e=t.map((function(t){return parseInt(t)})).filter((function(t){return t<9e20}));return e},M.prototype.create=function(t,e){for(var r=0;r<t;++r)this.add(this._accounts.create(e).privateKey);return this},M.prototype.add=function(t){return"string"===typeof t&&(t=this._accounts.privateKeyToAccount(t)),this[t.address]?this[t.address]:(t=this._accounts.privateKeyToAccount(t.privateKey),t.index=this._findSafeIndex(),this[t.index]=t,this[t.address]=t,this[t.address.toLowerCase()]=t,this.length++,t)},M.prototype.remove=function(t){var e=this[t];return!(!e||!e.address)&&(this[e.address].privateKey=null,delete this[e.address],this[e.address.toLowerCase()].privateKey=null,delete this[e.address.toLowerCase()],this[e.index].privateKey=null,delete this[e.index],this.length--,!0)},M.prototype.clear=function(){var t=this,e=this._currentIndexes();return e.forEach((function(e){t.remove(e)})),this},M.prototype.encrypt=function(t,e){var r=this,n=this._currentIndexes(),i=n.map((function(n){return r[n].encrypt(t,e)}));return i},M.prototype.decrypt=function(t,e){var r=this;return t.forEach((function(t){var n=r._accounts.decrypt(t,e);if(!n)throw new Error("Couldn't decrypt accounts. Password wrong?");r.add(n)})),this},M.prototype.save=function(t,e){return localStorage.setItem(e||this.defaultKeyName,JSON.stringify(this.encrypt(t))),!0},M.prototype.load=function(t,e){var r=localStorage.getItem(e||this.defaultKeyName);if(r)try{r=JSON.parse(r)}catch(n){}return this.decrypt(r||[],t)},_("localStorage")||(delete M.prototype.save,delete M.prototype.load),t.exports=g}).call(this,r("c8ba"),r("b639").Buffer)},"092d":function(t,e,r){"use strict";function n(t){var e=t.parentNode;e&&e.removeChild(t)}r.d(e,"a",(function(){return n}))},"0960":function(t,e,r){t.exports=r("b19a")},"097d":function(t,e,r){"use strict";var n=r("5ca1"),i=r("8378"),o=r("7726"),s=r("ebd6"),a=r("bcaa");n(n.P+n.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return a(e,t()).then((function(){return r}))}:t,r?function(r){return a(e,t()).then((function(){throw r}))}:t)}})},"09dc":function(t,e,r){"use strict";t.exports=l;var n=r("9d8a").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r("e666");function h(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(t){if(!(this instanceof l))return new l(t);u.call(this,t),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function c(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(e,r){f(t,e,r)}))}function f(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new a;if(t._transformState.transforming)throw new s;return t.push(null)}r("3fb5")(l,u),l.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},l.prototype._transform=function(t,e,r){r(new i("_transform()"))},l.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},l.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},"09f5":function(t,e,r){var n=r("39f5"),i=r("8707").Buffer,o=r("6430"),s=r("3fb5");function a(t,e,r,s){o.call(this),this._cipher=new n.AES(e),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._mode=t}s(a,o),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},"09fa":function(t,e,r){var n=r("4588"),i=r("9def");t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=i(e);if(e!==r)throw RangeError("Wrong length!");return r}},"0a06":function(t,e,r){"use strict";var n=r("c532"),i=r("30b5"),o=r("f6b4"),s=r("5270"),a=r("4a7b");function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=a(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[s,void 0],r=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)r=r.then(e.shift(),e.shift());return r},u.prototype.getUri=function(t){return t=a(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,r){return this.request(n.merge(r||{},{method:t,url:e}))}})),n.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,r,i){return this.request(n.merge(i||{},{method:t,url:e,data:r}))}})),t.exports=u},"0a49":function(t,e,r){var n=r("9b43"),i=r("626a"),o=r("4bf8"),s=r("9def"),a=r("cd1c");t.exports=function(t,e){var r=1==t,u=2==t,h=3==t,l=4==t,c=6==t,f=5==t||c,d=e||a;return function(e,a,p){for(var m,v,g=o(e),y=i(g),b=n(a,p,3),w=s(y.length),M=0,_=r?d(e,w):u?d(e,0):void 0;w>M;M++)if((f||M in y)&&(m=y[M],v=b(m,M,g),t))if(r)_[M]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return M;case 2:_.push(m)}else if(l)return!1;return c?-1:h||l?l:_}}},"0ae3":function(t,e,r){"use strict";t.exports=i;var n=r("09dc");function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r("3fb5")(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},"0b16":function(t,e,r){"use strict";var n=r("1985"),i=r("35e8");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=M,e.resolve=k,e.resolveObject=S,e.format=_,e.Url=o;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(h),c=["'"].concat(l),f=["%","/","?",";","#"].concat(c),d=["/","?","#"],p=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=r("b383");function M(t,e,r){if(t&&i.isObject(t)&&t instanceof o)return t;var n=new o;return n.parse(t,e,r),n}function _(t){return i.isString(t)&&(t=M(t)),t instanceof o?t.format():o.prototype.format.call(t)}function k(t,e){return M(t,!1,!0).resolve(e)}function S(t,e){return t?M(t,!1,!0).resolveObject(e):e}o.prototype.parse=function(t,e,r){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),a=-1!==o&&o<t.indexOf("#")?"?":"#",h=t.split(a),l=/\\/g;h[0]=h[0].replace(l,"/"),t=h.join(a);var M=t;if(M=M.trim(),!r&&1===t.split("#").length){var _=u.exec(M);if(_)return this.path=M,this.href=M,this.pathname=_[1],_[2]?(this.search=_[2],this.query=e?w.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var k=s.exec(M);if(k){k=k[0];var S=k.toLowerCase();this.protocol=S,M=M.substr(k.length)}if(r||k||M.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===M.substr(0,2);!x||k&&y[k]||(M=M.substr(2),this.slashes=!0)}if(!y[k]&&(x||k&&!b[k])){for(var E,A,O=-1,T=0;T<d.length;T++){var C=M.indexOf(d[T]);-1!==C&&(-1===O||C<O)&&(O=C)}A=-1===O?M.lastIndexOf("@"):M.lastIndexOf("@",O),-1!==A&&(E=M.slice(0,A),M=M.slice(A+1),this.auth=decodeURIComponent(E)),O=-1;for(T=0;T<f.length;T++){C=M.indexOf(f[T]);-1!==C&&(-1===O||C<O)&&(O=C)}-1===O&&(O=M.length),this.host=M.slice(0,O),M=M.slice(O),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var B=this.hostname.split(/\./),I=(T=0,B.length);T<I;T++){var R=B[T];if(R&&!R.match(m)){for(var N="",j=0,L=R.length;j<L;j++)R.charCodeAt(j)>127?N+="x":N+=R[j];if(!N.match(m)){var U=B.slice(0,T),D=B.slice(T+1),F=R.match(v);F&&(U.push(F[1]),D.unshift(F[2])),D.length&&(M="/"+D.join(".")+M),this.hostname=U.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var z=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+z,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==M[0]&&(M="/"+M))}if(!g[S])for(T=0,I=c.length;T<I;T++){var H=c[T];if(-1!==M.indexOf(H)){var $=encodeURIComponent(H);$===H&&($=escape(H)),M=M.split(H).join($)}}var V=M.indexOf("#");-1!==V&&(this.hash=M.substr(V),M=M.slice(0,V));var K=M.indexOf("?");if(-1!==K?(this.search=M.substr(K),this.query=M.substr(K+1),e&&(this.query=w.parse(this.query)),M=M.slice(0,K)):e&&(this.search="",this.query={}),M&&(this.pathname=M),b[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){z=this.pathname||"";var W=this.search||"";this.path=z+W}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,s="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(s=w.stringify(this.query));var a=this.search||s&&"?"+s||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||b[e])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})),a=a.replace("#","%23"),e+o+r+a+n},o.prototype.resolve=function(t){return this.resolveObject(M(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(i.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var r=new o,n=Object.keys(this),s=0;s<n.length;s++){var a=n[s];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),h=0;h<u.length;h++){var l=u[h];"protocol"!==l&&(r[l]=t[l])}return b[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!b[t.protocol]){for(var c=Object.keys(t),f=0;f<c.length;f++){var d=c[f];r[d]=t[d]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||y[t.protocol])r.pathname=t.pathname;else{var p=(t.pathname||"").split("/");while(p.length&&!(t.host=p.shift()));t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var m=r.pathname||"",v=r.search||"";r.path=m+v}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var g=r.pathname&&"/"===r.pathname.charAt(0),w=t.host||t.pathname&&"/"===t.pathname.charAt(0),M=w||g||r.host&&t.pathname,_=M,k=r.pathname&&r.pathname.split("/")||[],S=(p=t.pathname&&t.pathname.split("/")||[],r.protocol&&!b[r.protocol]);if(S&&(r.hostname="",r.port=null,r.host&&(""===k[0]?k[0]=r.host:k.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),M=M&&(""===p[0]||""===k[0])),w)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,k=p;else if(p.length)k||(k=[]),k.pop(),k=k.concat(p),r.search=t.search,r.query=t.query;else if(!i.isNullOrUndefined(t.search)){if(S){r.hostname=r.host=k.shift();var x=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");x&&(r.auth=x.shift(),r.host=r.hostname=x.shift())}return r.search=t.search,r.query=t.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!k.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=k.slice(-1)[0],A=(r.host||t.host||k.length>1)&&("."===E||".."===E)||""===E,O=0,T=k.length;T>=0;T--)E=k[T],"."===E?k.splice(T,1):".."===E?(k.splice(T,1),O++):O&&(k.splice(T,1),O--);if(!M&&!_)for(;O--;O)k.unshift("..");!M||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),A&&"/"!==k.join("/").substr(-1)&&k.push("");var C=""===k[0]||k[0]&&"/"===k[0].charAt(0);if(S){r.hostname=r.host=C?"":k.length?k.shift():"";x=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");x&&(r.auth=x.shift(),r.host=r.hostname=x.shift())}return M=M||r.host&&k.length,M&&!C&&k.unshift(""),k.length?r.pathname=k.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},"0b1e":function(t){t.exports=JSON.parse('{"name":"EIP-3541","comment":"Reject new contracts starting with the 0xEF byte","url":"https://eips.ethereum.org/EIPS/eip-3541","status":"Draft","minimumHardfork":"berlin","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},"0b21":function(t,e,r){var n=r("5ca1");n(n.S,"Math",{sign:r("96fb")})},"0be1":function(t,e,r){"use strict";const n=r("0222"),i=new Map;for(const o in n){const t=n[o];i.set(t,o)}t.exports=Object.freeze(i)},"0be8":function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},"0bfb":function(t,e,r){"use strict";var n=r("cb7c");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0c30":function(t,e,r){"use strict";(function(t){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.baToJSON=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToHex=e.bufferToInt=e.toBuffer=e.unpadHexString=e.unpadArray=e.unpadBuffer=e.setLengthRight=e.setLengthLeft=e.zeros=void 0;var i=n(r("399f")),o=r("9a12"),s=r("29b1");e.zeros=function(e){return t.allocUnsafe(e).fill(0)};var a=function(t,r,n){var i=e.zeros(r);return n?t.length<r?(t.copy(i),i):t.slice(0,r):t.length<r?(t.copy(i,r-t.length),i):t.slice(-r)};e.setLengthLeft=function(t,e){return s.assertIsBuffer(t),a(t,e,!1)},e.setLengthRight=function(t,e){return s.assertIsBuffer(t),a(t,e,!0)};var u=function(t){var e=t[0];while(t.length>0&&"0"===e.toString())t=t.slice(1),e=t[0];return t};e.unpadBuffer=function(t){return s.assertIsBuffer(t),u(t)},e.unpadArray=function(t){return s.assertIsArray(t),u(t)},e.unpadHexString=function(t){return s.assertIsHexString(t),t=o.stripHexPrefix(t),u(t)},e.toBuffer=function(e){if(null===e||void 0===e)return t.allocUnsafe(0);if(t.isBuffer(e))return t.from(e);if(Array.isArray(e)||e instanceof Uint8Array)return t.from(e);if("string"===typeof e){if(!o.isHexString(e))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+e);return t.from(o.padToEven(o.stripHexPrefix(e)),"hex")}if("number"===typeof e)return o.intToBuffer(e);if(i.default.isBN(e))return e.toArrayLike(t);if(e.toArray)return t.from(e.toArray());if(e.toBuffer)return t.from(e.toBuffer());throw new Error("invalid type")},e.bufferToInt=function(t){return new i.default(e.toBuffer(t)).toNumber()},e.bufferToHex=function(t){return t=e.toBuffer(t),"0x"+t.toString("hex")},e.fromSigned=function(t){return new i.default(t).fromTwos(256)},e.toUnsigned=function(e){return t.from(e.toTwos(256).toArray())},e.addHexPrefix=function(t){return"string"!==typeof t||o.isHexPrefixed(t)?t:"0x"+t},e.baToJSON=function(r){if(t.isBuffer(r))return"0x"+r.toString("hex");if(r instanceof Array){for(var n=[],i=0;i<r.length;i++)n.push(e.baToJSON(r[i]));return n}}}).call(this,r("b639").Buffer)},"0c3d":function(t,e,r){(function(e){const n=r("7be5"),i=r("63c1"),o=r("3337"),s=(r("ed14"),new o.ec("secp256k1")),{keccak256:a,keccak256s:u}=r("1ecd"),h=t=>{const e=a(n.concat(n.random(32),t||n.random(32))),r=n.concat(n.concat(n.random(32),e),n.random(32)),i=a(r);return c(i)},l=t=>{const e=u(t.slice(2));let r="0x";for(let n=0;n<40;n++)r+=parseInt(e[n+2],16)>7?t[n+2].toUpperCase():t[n+2];return r},c=t=>{const r=new e(t.slice(2),"hex"),n=s.keyFromPrivate(r),i="0x"+n.getPublic(!1,"hex").slice(2),o=a(i),u=l("0x"+o.slice(-40));return{address:u,privateKey:t}},f=([t,e,r])=>n.flatten([e,r,t]),d=t=>[n.slice(64,n.length(t),t),n.slice(0,32,t),n.slice(32,64,t)],p=t=>(r,o)=>{const a=s.keyFromPrivate(new e(o.slice(2),"hex")).sign(new e(r.slice(2),"hex"),{canonical:!0});return f([i.fromString(n.fromNumber(t+a.recoveryParam)),n.pad(32,n.fromNat("0x"+a.r.toString(16))),n.pad(32,n.fromNat("0x"+a.s.toString(16)))])},m=p(27),v=(t,r)=>{const i=d(r),o={v:n.toNumber(i[0]),r:i[1].slice(2),s:i[2].slice(2)},u=s.recoverPubKey(new e(t.slice(2),"hex"),o,o.v<2?o.v:1-o.v%2),h="0x"+u.encode("hex",!1).slice(2),c=a(h),f=l("0x"+c.slice(-40));return f};t.exports={create:h,toChecksum:l,fromPrivate:c,sign:m,makeSigner:p,recover:v,encodeSignature:f,decodeSignature:d}}).call(this,r("b639").Buffer)},"0cbb":function(t,e,r){"use strict";var n,i=e,o=r("7d92"),s=r("4136"),a=r("f3a3"),u=a.assert;function h(t){"short"===t.type?this.curve=new s.short(t):"edwards"===t.type?this.curve=new s.edwards(t):this.curve=new s.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,u(this.g.validate(),"Invalid curve"),u(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var r=new h(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=h,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r("409b")}catch(c){n=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},"0d58":function(t,e,r){var n=r("ce10"),i=r("e11e");t.exports=Object.keys||function(t){return n(t,i)}},"0d6d":function(t,e,r){var n=r("d3f4"),i=r("67ab").onFreeze;r("5eda")("freeze",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},"0da4":function(t,e,r){"use strict";var n=r("da3e"),i=r("3fb5"),o={};function s(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}function a(t){function e(e){t.call(this,e),this._cbcInit()}i(e,t);for(var r=Object.keys(o),n=0;n<r.length;n++){var s=r[n];e.prototype[s]=o[s]}return e.create=function(t){return new e(t)},e}e.instantiate=a,o._cbcInit=function(){var t=new s(this.options.iv);this._cbcState=t},o._update=function(t,e,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,s=i.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)s[a]^=t[e+a];o._update.call(this,s,0,r,n);for(a=0;a<this.blockSize;a++)s[a]=r[n+a]}else{o._update.call(this,t,e,r,n);for(a=0;a<this.blockSize;a++)r[n+a]^=s[a];for(a=0;a<this.blockSize;a++)s[a]=t[e+a]}}},"0dc4":function(t){t.exports=JSON.parse('{"name":"ropsten","chainId":3,"networkId":3,"defaultHardfork":"istanbul","consensus":{"type":"pow","algorithm":"ethash","ethash":{}},"comment":"PoW test network","url":"https://github.com/ethereum/ropsten","genesis":{"hash":"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d","timestamp":null,"gasLimit":16777216,"difficulty":1048576,"nonce":"0x0000000000000042","extraData":"0x3535353535353535353535353535353535353535353535353535353535353535","stateRoot":"0x217b0bbcfb72e2d57e28f33cb361b9983513177755dc3f33ce3e7022ed62b77b"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x30c7ddbc"},{"name":"homestead","block":0,"forkHash":"0x30c7ddbc"},{"name":"dao","block":null,"forkHash":null},{"name":"tangerineWhistle","block":0,"forkHash":"0x30c7ddbc"},{"name":"spuriousDragon","block":10,"forkHash":"0x63760190"},{"name":"byzantium","block":1700000,"forkHash":"0x3ea159c7"},{"name":"constantinople","block":4230000,"forkHash":"0x97b544f3"},{"name":"petersburg","block":4939394,"forkHash":"0xd6e2149b"},{"name":"istanbul","block":6485846,"forkHash":"0x4bc66396"},{"name":"muirGlacier","block":7117117,"forkHash":"0x6727ef90"},{"name":"berlin","block":9812189,"forkHash":"0xa157d377"},{"name":"london","block":10499401,"forkHash":"0x7119b6b3"}],"bootstrapNodes":[{"ip":"52.176.7.10","port":30303,"id":"30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606","location":"","comment":"US-Azure geth"},{"ip":"52.176.100.77","port":30303,"id":"865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c","location":"","comment":"US-Azure parity"},{"ip":"52.232.243.152","port":30303,"id":"6332792c4a00e3e4ee0926ed89e0d27ef985424d97b6a45bf0f23e51f0dcb5e66b875777506458aea7af6f9e4ffb69f43f3778ee73c81ed9d34c51c4b16b0b0f","location":"","comment":"Parity"},{"ip":"192.81.208.223","port":30303,"id":"94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09","location":"","comment":"@gpip"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.ropsten.ethdisco.net"]}')},"0df6":function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0ed4":function(t,e){function r(t,e){return e?{statusCode:e.statusCode,headers:e.headers,method:t.method,url:t.url,rawRequest:e.rawRequest?e.rawRequest:e}:null}t.exports=r},"0f2c":function(t,e,r){var n=r("2aee"),i=r("f460"),o=r("83d5"),s=r("0106"),a=r("a958"),u=r("98e6"),h=r("5291"),l=r("8707").Buffer;function c(t,e){var r=t.modulus.byteLength(),n=u("sha1").update(l.alloc(0)).digest(),s=n.length;if(0!==e[0])throw new Error("decryption error");var a=e.slice(1,s+1),h=e.slice(s+1),c=o(a,i(h,s)),f=o(h,i(c,r-s-1));if(d(n,f.slice(0,s)))throw new Error("decryption error");var p=s;while(0===f[p])p++;if(1!==f[p++])throw new Error("decryption error");return f.slice(p)}function f(t,e,r){var n=e.slice(0,2),i=2,o=0;while(0!==e[i++])if(i>=e.length){o++;break}var s=e.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,s.length<8&&o++,o)throw new Error("decryption error");return e.slice(i)}function d(t,e){t=l.from(t),e=l.from(e);var r=0,n=t.length;t.length!==e.length&&(r++,n=Math.min(t.length,e.length));var i=-1;while(++i<n)r+=t[i]^e[i];return r}t.exports=function(t,e,r){var i;i=t.padding?t.padding:r?1:4;var o,u=n(t),d=u.modulus.byteLength();if(e.length>d||new s(e).cmp(u.modulus)>=0)throw new Error("decryption error");o=r?h(new s(e),u):a(e,u);var p=l.alloc(d-o.length);if(o=l.concat([p,o],d),4===i)return c(u,o);if(1===i)return f(u,o,r);if(3===i)return o;throw new Error("unknown padding")}},"0f88":function(t,e,r){var n,i=r("7726"),o=r("32e9"),s=r("ca5a"),a=s("typed_array"),u=s("view"),h=!(!i.ArrayBuffer||!i.DataView),l=h,c=0,f=9,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(c<f)(n=i[d[c++]])?(o(n.prototype,a,!0),o(n.prototype,u,!0)):l=!1;t.exports={ABV:h,CONSTR:l,TYPED:a,VIEW:u}},"10a9":function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(2).Buffer}catch(A){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,l=r;l<a;l+=n)u=h(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var c=1;for(u=h(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],c=[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],f=[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 d(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?l[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],d=f[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:l[h-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function v(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function g(t,e,r){var n=new y;return n.mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?v(this,t,e):g(this,t,e),r},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},y.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=d(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function w(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 M(){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=o._prime(t);this.m=e.p,this.prime=e}else n(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)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(M,w),M.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,w),i(k,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new M;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 b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(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 r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},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)},i(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 r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._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,r("62e4")(t))},"10ad":function(t,e,r){"use strict";var n,i=r("7726"),o=r("0a49")(0),s=r("2aba"),a=r("67ab"),u=r("7333"),h=r("643e"),l=r("d3f4"),c=r("b39a"),f=r("b39a"),d=!i.ActiveXObject&&"ActiveXObject"in i,p="WeakMap",m=a.getWeak,v=Object.isExtensible,g=h.ufstore,y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(t){if(l(t)){var e=m(t);return!0===e?g(c(this,p)).get(t):e?e[this._i]:void 0}},set:function(t,e){return h.def(c(this,p),t,e)}},w=t.exports=r("e0b8")(p,y,b,h,!0,!0);f&&d&&(n=h.getConstructor(y,p),u(n.prototype,b),a.NEED=!0,o(["delete","has","get","set"],(function(t){var e=w.prototype,r=e[t];s(e,t,(function(e,i){if(l(e)&&!v(e)){this._f||(this._f=new n);var o=this._f[t](e,i);return"set"==t?this:o}return r.call(this,e,i)}))})))},1168:function(t,e,r){t.exports=r("ba0c").version},1169:function(t,e,r){var n=r("2d95");t.exports=Array.isArray||function(t){return"Array"==n(t)}},"116d":function(t,e,r){t.exports=r("b4e8")},"11dc":function(t,e,r){"use strict";(function(e,n){var i=65536,o=4294967295;function s(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var a=r("8707").Buffer,u=e.crypto||e.msCrypto;function h(t,e){if(t>o)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(t);if(t>0)if(t>i)for(var s=0;s<t;s+=i)u.getRandomValues(r.slice(s,s+i));else u.getRandomValues(r);return"function"===typeof e?n.nextTick((function(){e(null,r)})):r}u&&u.getRandomValues?t.exports=h:t.exports=s}).call(this,r("c8ba"),r("f28c"))},"11e9":function(t,e,r){var n=r("52a7"),i=r("4630"),o=r("6821"),s=r("6a99"),a=r("69a8"),u=r("c69a"),h=Object.getOwnPropertyDescriptor;e.f=r("9e1e")?h:function(t,e){if(t=o(t),e=s(e,!0),u)try{return h(t,e)}catch(r){}if(a(t,e))return i(!n.f.call(t,e),t[e])}},1325:function(t,e,r){"use strict";r.d(e,"b",(function(){return s})),r.d(e,"a",(function(){return a})),r.d(e,"d",(function(){return u})),r.d(e,"c",(function(){return h}));var n=r("a142"),i=!1;if(!n["h"])try{var o={};Object.defineProperty(o,"passive",{get:function(){i=!0}}),window.addEventListener("test-passive",null,o)}catch(l){}function s(t,e,r,o){void 0===o&&(o=!1),n["h"]||t.addEventListener(e,r,!!i&&{capture:!1,passive:o})}function a(t,e,r){n["h"]||t.removeEventListener(e,r)}function u(t){t.stopPropagation()}function h(t,e){("boolean"!==typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&u(t)}},1355:function(t,e,r){"use strict";(function(t){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)},o=this&&this.__read||function(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{while((void 0===e||e-- >0)&&!(n=o.next()).done)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o["return"])&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var s=r("5b66"),a=r("4b26"),u=r("6f3d"),h=r("be6a"),l=1,c=t.from(l.toString(16).padStart(2,"0"),"hex"),f=function(e){function r(t,r){var n,o;void 0===r&&(r={});var a=e.call(this,i(i({},t),{type:l}))||this;a.DEFAULT_HARDFORK="berlin";var c=t.chainId,f=t.accessList,d=t.gasPrice;if(a.common=a._getCommon(r.common,c),a.chainId=a.common.chainIdBN(),!a.common.isActivatedEIP(2930))throw new Error("EIP-2930 not enabled on Common");a.activeCapabilities=a.activeCapabilities.concat([2718,2930]);var p=h.AccessLists.getAccessListData(null!==f&&void 0!==f?f:[]);if(a.accessList=p.accessList,a.AccessListJSON=p.AccessListJSON,h.AccessLists.verifyAccessList(a.accessList),a.gasPrice=new s.BN(s.toBuffer(""===d?"0x":d)),a._validateCannotExceedMaxInteger({gasPrice:a.gasPrice}),a.v&&!a.v.eqn(0)&&!a.v.eqn(1))throw new Error("The y-parity of the transaction should either be 0 or 1");if(a.common.gteHardfork("homestead")&&(null===(n=a.s)||void 0===n?void 0:n.gt(u.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var m=null===(o=null===r||void 0===r?void 0:r.freeze)||void 0===o||o;return m&&Object.freeze(a),a}return n(r,e),Object.defineProperty(r.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),r.fromTxData=function(t,e){return void 0===e&&(e={}),new r(t,e)},r.fromSerializedTx=function(t,e){if(void 0===e&&(e={}),!t.slice(0,1).equals(c))throw new Error("Invalid serialized tx input: not an EIP-2930 transaction (wrong tx type, expected: "+l+", received: "+t.slice(0,1).toString("hex"));var n=s.rlp.decode(t.slice(1));if(!Array.isArray(n))throw new Error("Invalid serialized tx input: must be array");return r.fromValuesArray(n,e)},r.fromRlpSerializedTx=function(t,e){return void 0===e&&(e={}),r.fromSerializedTx(t,e)},r.fromValuesArray=function(t,e){if(void 0===e&&(e={}),8!==t.length&&11!==t.length)throw new Error("Invalid EIP-2930 transaction. Only expecting 8 values (for unsigned tx) or 11 values (for signed tx).");var n=o(t,11),i=n[0],a=n[1],u=n[2],h=n[3],l=n[4],c=n[5],f=n[6],d=n[7],p=n[8],m=n[9],v=n[10],g=[];return new r({chainId:new s.BN(i),nonce:a,gasPrice:u,gasLimit:h,to:l,value:c,data:f,accessList:null!==d&&void 0!==d?d:g,v:void 0!==p?new s.BN(p):void 0,r:m,s:v},e)},r.prototype.getDataFee=function(){var t=e.prototype.getDataFee.call(this);return t.iaddn(h.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),t},r.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},r.prototype.raw=function(){return[s.bnToUnpaddedBuffer(this.chainId),s.bnToUnpaddedBuffer(this.nonce),s.bnToUnpaddedBuffer(this.gasPrice),s.bnToUnpaddedBuffer(this.gasLimit),void 0!==this.to?this.to.buf:t.from([]),s.bnToUnpaddedBuffer(this.value),this.data,this.accessList,void 0!==this.v?s.bnToUnpaddedBuffer(this.v):t.from([]),void 0!==this.r?s.bnToUnpaddedBuffer(this.r):t.from([]),void 0!==this.s?s.bnToUnpaddedBuffer(this.s):t.from([])]},r.prototype.serialize=function(){var e=this.raw();return t.concat([c,s.rlp.encode(e)])},r.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var r=this.raw().slice(0,8),n=t.concat([c,s.rlp.encode(r)]);return e?s.keccak256(n):n},r.prototype.hash=function(){if(!this.isSigned())throw new Error("Cannot call hash method if transaction is not signed");return s.keccak256(this.serialize())},r.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},r.prototype.getSenderPublicKey=function(){var t;if(!this.isSigned())throw new Error("Cannot call this method if transaction is not signed");var e=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(t=this.s)||void 0===t?void 0:t.gt(u.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var r=this,n=r.yParity,i=r.r,o=r.s;try{return s.ecrecover(e,n.addn(27),s.bnToUnpaddedBuffer(i),s.bnToUnpaddedBuffer(o))}catch(a){throw new Error("Invalid Signature")}},r.prototype._processSignature=function(t,e,n){var i={common:this.common};return r.fromTxData({chainId:this.chainId,nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new s.BN(t-27),r:new s.BN(e),s:new s.BN(n)},i)},r.prototype.toJSON=function(){var t=h.AccessLists.getAccessListJSON(this.accessList);return{chainId:s.bnToHex(this.chainId),nonce:s.bnToHex(this.nonce),gasPrice:s.bnToHex(this.gasPrice),gasLimit:s.bnToHex(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:s.bnToHex(this.value),data:"0x"+this.data.toString("hex"),accessList:t,v:void 0!==this.v?s.bnToHex(this.v):void 0,r:void 0!==this.r?s.bnToHex(this.r):void 0,s:void 0!==this.s?s.bnToHex(this.s):void 0}},r}(a.BaseTransaction);e.default=f}).call(this,r("b639").Buffer)},"13e2":function(t,e,r){"use strict";var n=r("c3c0"),i=r("edc9"),o=r("aa56"),s=n.rotl32,a=n.sum32,u=n.sum32_5,h=o.ft_1,l=i.BlockHash,c=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(f,l),t.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=s(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],f=this.h[3],d=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=u(s(i,5),h(p,o,l,f),d,r[n],c[p]);d=f,f=l,l=s(o,30),o=i,i=m}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],f),this.h[4]=a(this.h[4],d)},f.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},1421:function(t,e,r){"use strict";function n(t){return"string"===typeof t?document.querySelector(t):t()}function i(t){var e=void 0===t?{}:t,r=e.ref,i=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,e=this.getContainer,o=r?this.$refs[r]:this.$el;e?t=n(e):this.$parent&&(t=this.$parent.$el),t&&t!==o.parentNode&&t.appendChild(o),i&&i.call(this)}}}}r.d(e,"a",(function(){return i}))},1455:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r("509b");function i(t){return"string"===typeof t&&(!!/^(0x)?[0-9a-f]{512}$/i.test(t)&&!(!/^(0x)?[0-9a-f]{512}$/.test(t)&&!/^(0x)?[0-9A-F]{512}$/.test(t)))}function o(t,e){"object"===typeof e&&e.constructor===Uint8Array&&(e=n.bytesToHex(e));const r=n.keccak256(e).replace("0x","");for(let n=0;n<12;n+=4){const e=(parseInt(r.substr(n,2),16)<<8)+parseInt(r.substr(n+2,2),16)&2047,i=s(t.charCodeAt(t.length-1-Math.floor(e/4))),o=1<<e%4;if((i&o)!==o)return!1}return!0}function s(t){if(t>=48&&t<=57)return t-48;if(t>=65&&t<=70)return t-55;if(t>=97&&t<=102)return t-87;throw new Error("invalid bloom")}function a(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!c(e))throw new Error(`Invalid ethereum address given: "${e}"`);const r=n.padLeft(e,64);return o(t,r)}function u(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!c(e))throw new Error(`Invalid contract address given: "${e}"`);return o(t,e)}function h(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!l(e))throw new Error("Invalid topic");return o(t,e)}function l(t){return"string"===typeof t&&(!!/^(0x)?[0-9a-f]{64}$/i.test(t)&&!(!/^(0x)?[0-9a-f]{64}$/.test(t)&&!/^(0x)?[0-9A-F]{64}$/.test(t)))}function c(t){return"string"===typeof t&&(!!t.match(/^(0x)?[0-9a-fA-F]{40}$/)||!!t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}e.isBloom=i,e.isInBloom=o,e.isUserEthereumAddressInBloom=a,e.isContractAddressInBloom=u,e.isTopicInBloom=h,e.isTopic=l,e.isAddress=c},1495:function(t,e,r){var n=r("86cc"),i=r("cb7c"),o=r("0d58");t.exports=r("9e1e")?Object.defineProperties:function(t,e){i(t);var r,s=o(e),a=s.length,u=0;while(a>u)n.f(t,r=s[u++],e[r]);return t}},"14b4":function(t,e,r){"use strict";var n=[{constant:!0,inputs:[{name:"interfaceID",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"},{name:"contentTypes",type:"uint256"}],name:"ABI",outputs:[{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes"}],name:"setMultihash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"multihash",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"setPubkey",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"content",outputs:[{name:"ret",type:"bytes32"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"addr",outputs:[{name:"ret",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],name:"setABI",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"name",outputs:[{name:"ret",type:"string"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"name",type:"string"}],name:"setName",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes32"}],name:"setContent",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"pubkey",outputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"addr",type:"address"}],name:"setAddr",outputs:[],payable:!1,type:"function"},{inputs:[{name:"ensAddr",type:"address"}],payable:!1,type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"a",type:"address"}],name:"AddrChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"hash",type:"bytes32"}],name:"ContentChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"name",type:"string"}],name:"NameChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"contentType",type:"uint256"}],name:"ABIChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"x",type:"bytes32"},{indexed:!1,name:"y",type:"bytes32"}],name:"PubkeyChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"hash",type:"bytes"}],name:"ContenthashChanged",type:"event"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"contenthash",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes"}],name:"setContenthash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}];t.exports=n},"14b9":function(t,e,r){var n=r("5ca1");n(n.P,"String",{repeat:r("9744")})},1545:function(t,e,r){"use strict";e.utils=r("5ee7"),e.Cipher=r("0184"),e.DES=r("4e2b"),e.CBC=r("0da4"),e.EDE=r("1fec")},"157a":function(t,e,r){},"15ac":function(t,e,r){r("ec30")("Int16",2,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},"166e":function(t,e,r){"use strict";const{callbackify:n}=r("3022");var i=r("c044").errors,o=r("8f78"),s=r("899d"),a=r("3229"),u=function t(e,r){this.provider=null,this.providers=t.providers,this.setProvider(e,r),this.subscriptions=new Map};u.givenProvider=a,u.providers={WebsocketProvider:r("a4ca"),HttpProvider:r("64e4"),IpcProvider:r("6cdc")},u.prototype.setProvider=function(t,e){var r=this;if(t&&"string"===typeof t&&this.providers)if(/^http(s)?:\/\//i.test(t))t=new this.providers.HttpProvider(t);else if(/^ws(s)?:\/\//i.test(t))t=new this.providers.WebsocketProvider(t);else if(t&&"object"===typeof e&&"function"===typeof e.connect)t=new this.providers.IpcProvider(t,e);else if(t)throw new Error("Can't autodetect provider for \""+t+'"');if(this.provider&&this.provider.connected&&this.clearSubscriptions(),this.provider=t||null,this.provider&&this.provider.on){"function"===typeof t.request?this.provider.on("message",(function(t){if(t&&"eth_subscription"===t.type&&t.data){const e=t.data;e.subscription&&r.subscriptions.has(e.subscription)&&r.subscriptions.get(e.subscription).callback(null,e.result)}})):this.provider.on("data",(function(t,e){t=t||e,t.method&&t.params&&t.params.subscription&&r.subscriptions.has(t.params.subscription)&&r.subscriptions.get(t.params.subscription).callback(null,t.params.result)})),this.provider.on("connect",(function(){r.subscriptions.forEach((function(t){t.subscription.resubscribe()}))})),this.provider.on("error",(function(t){r.subscriptions.forEach((function(e){e.callback(t)}))}));const e=function(t){r._isCleanCloseEvent(t)&&!r._isIpcCloseError(t)||(r.subscriptions.forEach((function(e){e.callback(i.ConnectionCloseError(t)),r.subscriptions.delete(e.subscription.id)})),r.provider&&r.provider.emit&&r.provider.emit("error",i.ConnectionCloseError(t))),r.provider&&r.provider.emit&&r.provider.emit("end",t)};this.provider.on("close",e),this.provider.on("disconnect",e)}},u.prototype.send=function(t,e){if(e=e||function(){},!this.provider)return e(i.InvalidProvider());const{method:r,params:s}=t,a=o.toPayload(r,s),u=this._jsonrpcResultCallback(e,a);if(this.provider.request){const t=n(this.provider.request.bind(this.provider)),i={method:r,params:s};t(i,e)}else if(this.provider.sendAsync)this.provider.sendAsync(a,u);else{if(!this.provider.send)throw new Error("Provider does not have a request or send method to use.");this.provider.send(a,u)}},u.prototype.sendBatch=function(t,e){if(!this.provider)return e(i.InvalidProvider());var r=o.toBatchPayload(t);this.provider[this.provider.sendAsync?"sendAsync":"send"](r,(function(t,r){return t?e(t):Array.isArray(r)?void e(null,r):e(i.InvalidResponse(r))}))},u.prototype.addSubscription=function(t,e){if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name);this.subscriptions.set(t.id,{callback:e,subscription:t})},u.prototype.removeSubscription=function(t,e){if(this.subscriptions.has(t)){var r=this.subscriptions.get(t).subscription.options.type;return this.subscriptions.delete(t),void this.send({method:r+"_unsubscribe",params:[t]},e)}"function"===typeof e&&e(null)},u.prototype.clearSubscriptions=function(t){try{var e=this;return this.subscriptions.size>0&&this.subscriptions.forEach((function(r,n){t&&"syncing"===r.name||e.removeSubscription(n)})),this.provider.reset&&this.provider.reset(),!0}catch(r){throw new Error("Error while clearing subscriptions: "+r)}},u.prototype._isCleanCloseEvent=function(t){return"object"===typeof t&&([1e3].includes(t.code)||!0===t.wasClean)},u.prototype._isIpcCloseError=function(t){return"boolean"===typeof t&&t},u.prototype._jsonrpcResultCallback=function(t,e){return function(r,n){return n&&n.id&&e.id!==n.id?t(new Error(`Wrong response id ${n.id} (expected: ${e.id}) in ${JSON.stringify(e)}`)):r?t(r):n&&n.error?t(i.ErrorResponse(n)):o.isValidResponse(n)?void t(null,n.result):t(i.InvalidResponse(n))}},t.exports={Manager:u,BatchManager:s}},"17b2":function(t,e,r){"use strict";const n=r("cfab"),i={};for(const[o,s]of Object.entries(n))void 0===i[s]&&(i[s]=o);t.exports=Object.freeze(i)},1985:function(t,e,r){(function(t,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(o){e&&e.nodeType,t&&t.nodeType;var s="object"==typeof n&&n;s.global!==s&&s.window!==s&&s.self;var a,u=2147483647,h=36,l=1,c=26,f=38,d=700,p=72,m=128,v="-",g=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=h-l,_=Math.floor,k=String.fromCharCode;function S(t){throw new RangeError(w[t])}function x(t,e){var r=t.length,n=[];while(r--)n[r]=e(t[r]);return n}function E(t,e){var r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(b,".");var i=t.split("."),o=x(i,e).join(".");return n+o}function A(t){var e,r,n=[],i=0,o=t.length;while(i<o)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(r=t.charCodeAt(i++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--)):n.push(e);return n}function O(t){return x(t,(function(t){var e="";return t>65535&&(t-=65536,e+=k(t>>>10&1023|55296),t=56320|1023&t),e+=k(t),e})).join("")}function T(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:h}function C(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function P(t,e,r){var n=0;for(t=r?_(t/d):t>>1,t+=_(t/e);t>M*c>>1;n+=h)t=_(t/M);return _(n+(M+1)*t/(t+f))}function B(t){var e,r,n,i,o,s,a,f,d,g,y=[],b=t.length,w=0,M=m,k=p;for(r=t.lastIndexOf(v),r<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&S("not-basic"),y.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<b;){for(o=w,s=1,a=h;;a+=h){if(i>=b&&S("invalid-input"),f=T(t.charCodeAt(i++)),(f>=h||f>_((u-w)/s))&&S("overflow"),w+=f*s,d=a<=k?l:a>=k+c?c:a-k,f<d)break;g=h-d,s>_(u/g)&&S("overflow"),s*=g}e=y.length+1,k=P(w-o,e,0==o),_(w/e)>u-M&&S("overflow"),M+=_(w/e),w%=e,y.splice(w++,0,M)}return O(y)}function I(t){var e,r,n,i,o,s,a,f,d,g,y,b,w,M,x,E=[];for(t=A(t),b=t.length,e=m,r=0,o=p,s=0;s<b;++s)y=t[s],y<128&&E.push(k(y));n=i=E.length,i&&E.push(v);while(n<b){for(a=u,s=0;s<b;++s)y=t[s],y>=e&&y<a&&(a=y);for(w=n+1,a-e>_((u-r)/w)&&S("overflow"),r+=(a-e)*w,e=a,s=0;s<b;++s)if(y=t[s],y<e&&++r>u&&S("overflow"),y==e){for(f=r,d=h;;d+=h){if(g=d<=o?l:d>=o+c?c:d-o,f<g)break;x=f-g,M=h-g,E.push(k(C(g+x%M,0))),f=_(x/M)}E.push(k(C(f,0))),o=P(r,w,n==i),r=0,++n}++r,++e}return E.join("")}function R(t){return E(t,(function(t){return g.test(t)?B(t.slice(4).toLowerCase()):t}))}function N(t){return E(t,(function(t){return y.test(t)?"xn--"+I(t):t}))}a={version:"1.4.1",ucs2:{decode:A,encode:O},decode:B,encode:I,toASCII:N,toUnicode:R},i=function(){return a}.call(e,r,e,t),void 0===i||(t.exports=i)})()}).call(this,r("62e4")(t),r("c8ba"))},1991:function(t,e,r){var n,i,o,s=r("9b43"),a=r("31f4"),u=r("fab2"),h=r("230e"),l=r("7726"),c=l.process,f=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,m=l.Dispatch,v=0,g={},y="onreadystatechange",b=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},w=function(t){b.call(t.data)};f&&d||(f=function(t){var e=[],r=1;while(arguments.length>r)e.push(arguments[r++]);return g[++v]=function(){a("function"==typeof t?t:Function(t),e)},n(v),v},d=function(t){delete g[t]},"process"==r("2d95")(c)?n=function(t){c.nextTick(s(b,t,1))}:m&&m.now?n=function(t){m.now(s(b,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=w,n=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",w,!1)):n=y in h("script")?function(t){u.appendChild(h("script"))[y]=function(){u.removeChild(this),b.call(t)}}:function(t){setTimeout(s(b,t,1),0)}),t.exports={set:f,clear:d}},"19ea":function(t,e,r){"use strict";(function(e,n){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){V(e,t)}}var o;t.exports=O,O.WritableState=A;var s={deprecate:r("b7d1")},a=r("5bbb"),u=r("b639").Buffer,h=e.Uint8Array||function(){};function l(t){return u.from(t)}function c(t){return u.isBuffer(t)||t instanceof h}var f,d=r("493f"),p=r("b9b5"),m=p.getHighWaterMark,v=r("9d8a").codes,g=v.ERR_INVALID_ARG_TYPE,y=v.ERR_METHOD_NOT_IMPLEMENTED,b=v.ERR_MULTIPLE_CALLBACK,w=v.ERR_STREAM_CANNOT_PIPE,M=v.ERR_STREAM_DESTROYED,_=v.ERR_STREAM_NULL_VALUES,k=v.ERR_STREAM_WRITE_AFTER_END,S=v.ERR_UNKNOWN_ENCODING,x=d.errorOrDestroy;function E(){}function A(t,e,n){o=o||r("e666"),t=t||{},"boolean"!==typeof n&&(n=e instanceof o),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=m(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){j(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(t){o=o||r("e666");var e=this instanceof o;if(!e&&!f.call(O,this))return new O(t);this._writableState=new A(t,this,e),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)),a.call(this)}function T(t,e){var r=new k;x(t,r),n.nextTick(e,r)}function C(t,e,r,i){var o;return null===r?o=new _:"string"===typeof r||e.objectMode||(o=new g("chunk",["string","Buffer"],r)),!o||(x(t,o),n.nextTick(i,o),!1)}function P(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=u.from(e,r)),e}function B(t,e,r,n,i,o){if(!r){var s=P(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else I(t,e,!1,a,n,i,o);return u}function I(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new M("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function R(t,e,r,i,o){--e.pendingcb,r?(n.nextTick(o,i),n.nextTick(H,t,e),t._writableState.errorEmitted=!0,x(t,i)):(o(i),t._writableState.errorEmitted=!0,x(t,i),H(t,e))}function N(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function j(t,e){var r=t._writableState,i=r.sync,o=r.writecb;if("function"!==typeof o)throw new b;if(N(r),e)R(t,r,i,e,o);else{var s=F(r)||t.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||D(t,r),i?n.nextTick(L,t,r,s,o):L(t,r,s,o)}}function L(t,e,r,n){r||U(t,e),e.pendingcb--,n(),H(t,e)}function U(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function D(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,o=new Array(n),s=e.corkedRequestsFree;s.entry=r;var a=0,u=!0;while(r)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,I(t,e,!0,e.length,o,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{while(r){var h=r.chunk,l=r.encoding,c=r.callback,f=e.objectMode?1:h.length;if(I(t,e,!1,f,h,l,c),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function F(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function z(t,e){t._final((function(r){e.pendingcb--,r&&x(t,r),e.prefinished=!0,t.emit("prefinish"),H(t,e)}))}function q(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick(z,t,e)))}function H(t,e){var r=F(e);if(r&&(q(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function $(t,e,r){e.ending=!0,H(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function V(t,e,r){var n=t.entry;t.entry=null;while(n){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}r("3fb5")(O,a),A.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(A.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===O&&(t&&t._writableState instanceof A)}})):f=function(t){return t instanceof this},O.prototype.pipe=function(){x(this,new w)},O.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&c(t);return o&&!u.isBuffer(t)&&(t=l(t)),"function"===typeof e&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),"function"!==typeof r&&(r=E),n.ending?T(this,r):(o||C(this,n,t,r))&&(n.pendingcb++,i=B(this,n,o,t,e,r)),i},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||D(this,t))},O.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new S(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(t,e,r){r(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(t,e,r){var n=this._writableState;return"function"===typeof t?(r=t,t=null,e=null):"function"===typeof e&&(r=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||$(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),O.prototype.destroy=d.destroy,O.prototype._undestroy=d.undestroy,O.prototype._destroy=function(t,e){e(t)}}).call(this,r("c8ba"),r("f28c"))},"1a2a":function(t,e,r){"use strict";var n=r("3fb5"),i=r("d424"),o=r("6430"),s=r("8707").Buffer,a=r("5a76"),u=r("b5ca"),h=r("69f2"),l=s.alloc(128);function c(t,e){o.call(this,"digest"),"string"===typeof e&&(e=s.from(e));var r="sha512"===t||"sha384"===t?128:64;if(this._alg=t,this._key=e,e.length>r){var n="rmd160"===t?new u:h(t);e=n.update(e).digest()}else e.length<r&&(e=s.concat([e,l],r));for(var i=this._ipad=s.allocUnsafe(r),a=this._opad=s.allocUnsafe(r),c=0;c<r;c++)i[c]=54^e[c],a[c]=92^e[c];this._hash="rmd160"===t?new u:h(t),this._hash.update(i)}n(c,o),c.prototype._update=function(t){this._hash.update(t)},c.prototype._final=function(){var t=this._hash.digest(),e="rmd160"===this._alg?new u:h(this._alg);return e.update(this._opad).update(t).digest()},t.exports=function(t,e){return t=t.toLowerCase(),"rmd160"===t||"ripemd160"===t?new c("rmd160",e):"md5"===t?new i(a,e):new c(t,e)}},"1a2f":function(t,e,r){"use strict";var n=r("c063"),i=r("c3e6").subscriptions,o=r("7789"),s=r("795e"),a=function(){var t=this;n.packageInit(this,arguments);var e=this.setRequestManager;this.setRequestManager=function(r){return e(r),t.net.setRequestManager(r),!0};var r=this.setProvider;this.setProvider=function(){r.apply(t,arguments),t.setRequestManager(t._requestManager)},this.net=new s(this),[new i({name:"subscribe",type:"shh",subscriptions:{messages:{params:1}}}),new o({name:"getVersion",call:"shh_version",params:0}),new o({name:"getInfo",call:"shh_info",params:0}),new o({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new o({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new o({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new o({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new o({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new o({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new o({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new o({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new o({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new o({name:"newSymKey",call:"shh_newSymKey",params:0}),new o({name:"addSymKey",call:"shh_addSymKey",params:1}),new o({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new o({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new o({name:"getSymKey",call:"shh_getSymKey",params:1}),new o({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new o({name:"newMessageFilter",call:"shh_newMessageFilter",params:1}),new o({name:"getFilterMessages",call:"shh_getFilterMessages",params:1}),new o({name:"deleteMessageFilter",call:"shh_deleteMessageFilter",params:1}),new o({name:"post",call:"shh_post",params:1,inputFormatter:[null]}),new o({name:"unsubscribe",call:"shh_unsubscribe",params:1})].forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}))};a.prototype.clearSubscriptions=function(){this._requestManager.clearSubscriptions()},n.addProviders(a),t.exports=a},"1b3e":function(t){t.exports=JSON.parse('{"_args":[["web3@1.5.0","D:\\\\Code\\\\JinYuan\\\\8925\\\\website-dapp-m"]],"_from":"web3@1.5.0","_id":"web3@1.5.0","_inBundle":false,"_integrity":"sha512-p6mOU+t11tV5Z0W9ISO2ReZlbB1ICp755ogl3OXOWZ+/oWy12wwnIva+z+ypsZc3P8gaoGaTvEwSfXM9NF164w==","_location":"/web3","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"web3@1.5.0","name":"web3","escapedName":"web3","rawSpec":"1.5.0","saveSpec":null,"fetchSpec":"1.5.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/web3/-/web3-1.5.0.tgz","_spec":"1.5.0","_where":"D:\\\\Code\\\\JinYuan\\\\8925\\\\website-dapp-m","author":{"name":"ethereum.org"},"authors":[{"name":"Fabian Vogelsteller","email":"fabian@ethereum.org","homepage":"http://frozeman.de"},{"name":"Marek Kotewicz","email":"marek@parity.io","url":"https://github.com/debris"},{"name":"Marian Oancea","url":"https://github.com/cubedro"},{"name":"Gav Wood","email":"g@parity.io","homepage":"http://gavwood.com"},{"name":"Jeffery Wilcke","email":"jeffrey.wilcke@ethereum.org","url":"https://github.com/obscuren"}],"bugs":{"url":"https://github.com/ethereum/web3.js/issues"},"dependencies":{"web3-bzz":"1.5.0","web3-core":"1.5.0","web3-eth":"1.5.0","web3-eth-personal":"1.5.0","web3-net":"1.5.0","web3-shh":"1.5.0","web3-utils":"1.5.0"},"description":"Ethereum JavaScript API","devDependencies":{"@types/node":"^12.12.6","dtslint":"^3.4.1","typescript":"^3.9.5","web3-core-helpers":"1.5.0"},"engines":{"node":">=8.0.0"},"gitHead":"2be30192d949cf65a74edac05beb5dc5bc9043ac","homepage":"https://github.com/ethereum/web3.js#readme","keywords":["Ethereum","JavaScript","API"],"license":"LGPL-3.0","main":"lib/index.js","name":"web3","repository":{"type":"git","url":"git+https://github.com/ethereum/web3.js.git"},"scripts":{"compile":"tsc -b tsconfig.json","dtslint":"dtslint --localTs ../../node_modules/typescript/lib types","postinstall":"echo \\"WARNING: the web3-shh and web3-bzz api will be deprecated in the next version\\""},"types":"types/index.d.ts","version":"1.5.0"}')},"1c13":function(t,e,r){"use strict";(function(e){const n=r("2612");function i(t){return parseInt(t.toString("hex"),16)}function o(t){let r=t.toString(16);return r.length%2===1&&(r="0"+r),e.from(r,"hex")}function s(t){return e.from(n.encode(i(t)))}function a(t){return o(n.decode(t))}function u(t){return e.from(n.encode(t))}t.exports={numberToBuffer:o,bufferToNumber:i,varintBufferEncode:s,varintBufferDecode:a,varintEncode:u}}).call(this,r("b639").Buffer)},"1c46":function(t,e,r){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r("11dc"),e.createHash=e.Hash=r("98e6"),e.createHmac=e.Hmac=r("1a2a");var n=r("116d"),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var s=r("a099");e.pbkdf2=s.pbkdf2,e.pbkdf2Sync=s.pbkdf2Sync;var a=r("956a");e.Cipher=a.Cipher,e.createCipher=a.createCipher,e.Cipheriv=a.Cipheriv,e.createCipheriv=a.createCipheriv,e.Decipher=a.Decipher,e.createDecipher=a.createDecipher,e.Decipheriv=a.Decipheriv,e.createDecipheriv=a.createDecipheriv,e.getCiphers=a.getCiphers,e.listCiphers=a.listCiphers;var u=r("00dc");e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var h=r("b692");e.createSign=h.createSign,e.Sign=h.Sign,e.createVerify=h.createVerify,e.Verify=h.Verify,e.createECDH=r("e1d3");var l=r("6442");e.publicEncrypt=l.publicEncrypt,e.privateEncrypt=l.privateEncrypt,e.publicDecrypt=l.publicDecrypt,e.privateDecrypt=l.privateDecrypt;var c=r("75cc");e.randomFill=c.randomFill,e.randomFillSync=c.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},"1c4c":function(t,e,r){"use strict";var n=r("9b43"),i=r("5ca1"),o=r("4bf8"),s=r("1fa8"),a=r("33a4"),u=r("9def"),h=r("f1ae"),l=r("27ee");i(i.S+i.F*!r("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,r,i,c,f=o(t),d="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,g=0,y=l(f);if(v&&(m=n(m,p>2?arguments[2]:void 0,2)),void 0==y||d==Array&&a(y))for(e=u(f.length),r=new d(e);e>g;g++)h(r,g,v?m(f[g],g):f[g]);else for(c=y.call(f),r=new d;!(i=c.next()).done;g++)h(r,g,v?s(c,m,[i.value,g],!0):i.value);return r.length=g,r}})},"1c55":function(t,e,r){(function(n,i){var o;
/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
*
* @version 0.8.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2015-2018
* @license MIT
*/(function(){"use strict";var s="input is invalid type",a="finalize already called",u="object"===typeof window,h=u?window:{};h.JS_SHA3_NO_WINDOW&&(u=!1);var l=!u&&"object"===typeof self,c=!h.JS_SHA3_NO_NODE_JS&&"object"===typeof n&&n.versions&&n.versions.node;c?h=i:l&&(h=self);var f=!h.JS_SHA3_NO_COMMON_JS&&"object"===typeof t&&t.exports,d=r("3c35"),p=!h.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,m="0123456789abcdef".split(""),v=[31,7936,2031616,520093696],g=[4,1024,262144,67108864],y=[1,256,65536,16777216],b=[6,1536,393216,100663296],w=[0,8,16,24],M=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],_=[224,256,384,512],k=[128,256],S=["hex","buffer","arrayBuffer","array","digest"],x={128:168,256:136};!h.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!p||!h.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var E=function(t,e,r){return function(n){return new $(t,e,t).update(n)[r]()}},A=function(t,e,r){return function(n,i){return new $(t,e,i).update(n)[r]()}},O=function(t,e,r){return function(e,n,i,o){return j["cshake"+t].update(e,n,i,o)[r]()}},T=function(t,e,r){return function(e,n,i,o){return j["kmac"+t].update(e,n,i,o)[r]()}},C=function(t,e,r,n){for(var i=0;i<S.length;++i){var o=S[i];t[o]=e(r,n,o)}return t},P=function(t,e){var r=E(t,e,"hex");return r.create=function(){return new $(t,e,t)},r.update=function(t){return r.create().update(t)},C(r,E,t,e)},B=function(t,e){var r=A(t,e,"hex");return r.create=function(r){return new $(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},C(r,A,t,e)},I=function(t,e){var r=x[t],n=O(t,e,"hex");return n.create=function(n,i,o){return i||o?new $(t,e,n).bytepad([i,o],r):j["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},C(n,O,t,e)},R=function(t,e){var r=x[t],n=T(t,e,"hex");return n.create=function(n,i,o){return new V(t,e,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},C(n,T,t,e)},N=[{name:"keccak",padding:y,bits:_,createMethod:P},{name:"sha3",padding:b,bits:_,createMethod:P},{name:"shake",padding:v,bits:k,createMethod:B},{name:"cshake",padding:g,bits:k,createMethod:I},{name:"kmac",padding:g,bits:k,createMethod:R}],j={},L=[],U=0;U<N.length;++U)for(var D=N[U],F=D.bits,z=0;z<F.length;++z){var q=D.name+"_"+F[z];if(L.push(q),j[q]=D.createMethod(F[z],D.padding),"sha3"!==D.name){var H=D.name+F[z];L.push(H),j[H]=j[q]}}function $(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function V(t,e,r){$.call(this,t,e,r)}$.prototype.update=function(t){if(this.finalized)throw new Error(a);var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(p&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!p||!ArrayBuffer.isView(t)))throw new Error(s);e=!0}var n,i,o=this.blocks,u=this.byteCount,h=t.length,l=this.blockCount,c=0,f=this.s;while(c<h){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<l+1;++n)o[n]=0;if(e)for(n=this.start;c<h&&n<u;++c)o[n>>2]|=t[c]<<w[3&n++];else for(n=this.start;c<h&&n<u;++c)i=t.charCodeAt(c),i<128?o[n>>2]|=i<<w[3&n++]:i<2048?(o[n>>2]|=(192|i>>6)<<w[3&n++],o[n>>2]|=(128|63&i)<<w[3&n++]):i<55296||i>=57344?(o[n>>2]|=(224|i>>12)<<w[3&n++],o[n>>2]|=(128|i>>6&63)<<w[3&n++],o[n>>2]|=(128|63&i)<<w[3&n++]):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++c)),o[n>>2]|=(240|i>>18)<<w[3&n++],o[n>>2]|=(128|i>>12&63)<<w[3&n++],o[n>>2]|=(128|i>>6&63)<<w[3&n++],o[n>>2]|=(128|63&i)<<w[3&n++]);if(this.lastByteIndex=n,n>=u){for(this.start=n-u,this.block=o[l],n=0;n<l;++n)f[n]^=o[n];K(f),this.reset=!0}else this.start=n}return this},$.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];t>>=8,r=255&t;while(r>0)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},$.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(p&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!p||!ArrayBuffer.isView(t)))throw new Error(s);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},$.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,o=[];return o.length=i,this.update(o),this},$.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];K(n)}},$.prototype.toString=$.prototype.hex=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a="";while(s<n){for(o=0;o<e&&s<n;++o,++s)t=r[o],a+=m[t>>4&15]+m[15&t]+m[t>>12&15]+m[t>>8&15]+m[t>>20&15]+m[t>>16&15]+m[t>>28&15]+m[t>>24&15];s%e===0&&(K(r),o=0)}return i&&(t=r[o],a+=m[t>>4&15]+m[15&t],i>1&&(a+=m[t>>12&15]+m[t>>8&15]),i>2&&(a+=m[t>>20&15]+m[t>>16&15])),a},$.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);var u=new Uint32Array(t);while(s<n){for(o=0;o<e&&s<n;++o,++s)u[s]=r[o];s%e===0&&K(r)}return i&&(u[o]=r[o],t=t.slice(0,a)),t},$.prototype.buffer=$.prototype.arrayBuffer,$.prototype.digest=$.prototype.array=function(){this.finalize();var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,a=0,u=[];while(a<i){for(s=0;s<r&&a<i;++s,++a)t=a<<2,e=n[s],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;a%r===0&&K(n)}return o&&(t=a<<2,e=n[s],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},V.prototype=new $,V.prototype.finalize=function(){return this.encode(this.outputBits,!0),$.prototype.finalize.call(this)};var K=function(t){var e,r,n,i,o,s,a,u,h,l,c,f,d,p,m,v,g,y,b,w,_,k,S,x,E,A,O,T,C,P,B,I,R,N,j,L,U,D,F,z,q,H,$,V,K,W,G,Z,J,X,Y,Q,tt,et,rt,nt,it,ot,st,at,ut,ht,lt;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],h=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],c=t[7]^t[17]^t[27]^t[37]^t[47],f=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=f^(s<<1|a>>>31),r=d^(a<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|h>>>31),r=o^(h<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(l<<1|c>>>31),r=a^(c<<1|l>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(f<<1|d>>>31),r=h^(d<<1|f>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=l^(i<<1|o>>>31),r=c^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,p=t[0],m=t[1],W=t[11]<<4|t[10]>>>28,G=t[10]<<4|t[11]>>>28,T=t[20]<<3|t[21]>>>29,C=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,$=t[41]<<18|t[40]>>>14,N=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,g=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,B=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,U=t[15]<<6|t[14]>>>26,y=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,K=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,k=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~v&y,t[1]=m^~g&b,t[10]=x^~A&T,t[11]=E^~O&C,t[20]=N^~L&D,t[21]=j^~U&F,t[30]=V^~W&Z,t[31]=K^~G&J,t[40]=et^~nt&ot,t[41]=rt^~it&st,t[2]=v^~y&w,t[3]=g^~b&_,t[12]=A^~T&P,t[13]=O^~C&B,t[22]=L^~D&z,t[23]=U^~F&q,t[32]=W^~Z&X,t[33]=G^~J&Y,t[42]=nt^~ot&at,t[43]=it^~st&ut,t[4]=y^~w&k,t[5]=b^~_&S,t[14]=T^~P&I,t[15]=C^~B&R,t[24]=D^~z&H,t[25]=F^~q&$,t[34]=Z^~X&Q,t[35]=J^~Y&tt,t[44]=ot^~at&ht,t[45]=st^~ut&lt,t[6]=w^~k&p,t[7]=_^~S&m,t[16]=P^~I&x,t[17]=B^~R&E,t[26]=z^~H&N,t[27]=q^~$&j,t[36]=X^~Q&V,t[37]=Y^~tt&K,t[46]=at^~ht&et,t[47]=ut^~lt&rt,t[8]=k^~p&v,t[9]=S^~m&g,t[18]=I^~x&A,t[19]=R^~E&O,t[28]=H^~N&L,t[29]=$^~j&U,t[38]=Q^~V&W,t[39]=tt^~K&G,t[48]=ht^~et&nt,t[49]=lt^~rt&it,t[0]^=M[n],t[1]^=M[n+1]};if(f)t.exports=j;else{for(U=0;U<L.length;++U)h[L[U]]=j[L[U]];d&&(o=function(){return j}.call(e,r,e,t),void 0===o||(t.exports=o))}})()}).call(this,r("f28c"),r("c8ba"))},"1cf4":function(t,e){const r=(t,e)=>{let r=[];for(var n=0;n<t;++n)r.push(e(n));return r},n=(t,e)=>r(t,()=>e),i=(t,e)=>t.concat(e),o=t=>{let e=[];for(let r=0,n=t.length;r<n;++r)for(let i=0,o=t[r].length;i<o;++i)e.push(t[r][i]);return e},s=(t,e)=>{let r=[];for(let n=0,i=e.length;n<i;n+=t)r.push(e.slice(n,n+t));return r};t.exports={generate:r,replicate:n,concat:i,flatten:o,chunksOf:s}},"1d24":function(t,e,r){var n=r("f609"),i=r("21ef"),o=function(t){return t.startsWith("int[")?"int256"+t.slice(3):"int"===t?"int256":t.startsWith("uint[")?"uint256"+t.slice(4):"uint"===t?"uint256":t.startsWith("fixed[")?"fixed128x128"+t.slice(5):"fixed"===t?"fixed128x128":t.startsWith("ufixed[")?"ufixed128x128"+t.slice(6):"ufixed"===t?"ufixed128x128":t},s=function(t){var e=/^\D+(\d+).*$/.exec(t);return e?parseInt(e[1],10):null},a=function(t){var e=/^\D+\d*\[(\d+)\]$/.exec(t);return e?parseInt(e[1],10):null},u=function(t){var e=typeof t;if("string"===e)return i.isHexStrict(t)?new n(t.replace(/0x/i,""),16):new n(t,10);if("number"===e)return new n(t);if(i.isBigNumber(t))return new n(t.toString(10));if(i.isBN(t))return t;throw new Error(t+" is not a number")},h=function(t,e,r){var a,h;if(t=o(t),"bytes"===t){if(e.replace(/^0x/i,"").length%2!==0)throw new Error("Invalid bytes characters "+e.length);return e}if("string"===t)return i.utf8ToHex(e);if("bool"===t)return e?"01":"00";if(t.startsWith("address")){if(a=r?64:40,!i.isAddress(e))throw new Error(e+" is not a valid address, or the checksum is invalid.");return i.leftPad(e.toLowerCase(),a)}if(a=s(t),t.startsWith("bytes")){if(!a)throw new Error("bytes[] not yet supported in solidity");if(r&&(a=32),a<1||a>32||a<e.replace(/^0x/i,"").length/2)throw new Error("Invalid bytes"+a+" for "+e);return i.rightPad(e,2*a)}if(t.startsWith("uint")){if(a%8||a<8||a>256)throw new Error("Invalid uint"+a+" size");if(h=u(e),h.bitLength()>a)throw new Error("Supplied uint exceeds width: "+a+" vs "+h.bitLength());if(h.lt(new n(0)))throw new Error("Supplied uint "+h.toString()+" is negative");return a?i.leftPad(h.toString("hex"),a/8*2):h}if(t.startsWith("int")){if(a%8||a<8||a>256)throw new Error("Invalid int"+a+" size");if(h=u(e),h.bitLength()>a)throw new Error("Supplied int exceeds width: "+a+" vs "+h.bitLength());return h.lt(new n(0))?h.toTwos(a).toString("hex"):a?i.leftPad(h.toString("hex"),a/8*2):h}throw new Error("Unsupported or invalid type: "+t)},l=function(t){if(Array.isArray(t))throw new Error("Autodetection of array types is not supported.");var e,r,o,s="";if(t&&"object"===typeof t&&(t.hasOwnProperty("v")||t.hasOwnProperty("t")||t.hasOwnProperty("value")||t.hasOwnProperty("type"))?(e=t.hasOwnProperty("t")?t.t:t.type,s=t.hasOwnProperty("v")?t.v:t.value):(e=i.toHex(t,!0),s=i.toHex(t),e.startsWith("int")||e.startsWith("uint")||(e="bytes")),!e.startsWith("int")&&!e.startsWith("uint")||"string"!==typeof s||/^(-)?0x/i.test(s)||(s=new n(s)),Array.isArray(s)){if(o=a(e),o&&s.length!==o)throw new Error(e+" is not matching the given array "+JSON.stringify(s));o=s.length}return Array.isArray(s)?(r=s.map((function(t){return h(e,t,o).toString("hex").replace("0x","")})),r.join("")):(r=h(e,s,o),r.toString("hex").replace("0x",""))},c=function(){var t=Array.prototype.slice.call(arguments),e=t.map(l);return i.sha3("0x"+e.join(""))},f=function(){return i.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(l).join(""))},d=function(){var t=Array.prototype.slice.call(arguments),e=t.map(l);return"0x"+e.join("").toLowerCase()};t.exports={soliditySha3:c,soliditySha3Raw:f,encodePacked:d}},"1d2b":function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},"1da1":function(t,e,r){"use strict";function n(t,e,r,n,i,o,s){try{var a=t[o](s),u=a.value}catch(h){return void r(h)}a.done?e(u):Promise.resolve(u).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var s=t.apply(e,r);function a(t){n(s,i,o,a,u,"next",t)}function u(t){n(s,i,o,a,u,"throw",t)}a(void 0)}))}}r.d(e,"a",(function(){return i}))},"1e3c":function(t,e,r){var n=r("6430"),i=r("1545"),o=r("3fb5"),s=r("8707").Buffer,a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(t){n.call(this);var e,r=t.mode.toLowerCase(),i=a[r];e=t.decrypt?"decrypt":"encrypt";var o=t.key;s.isBuffer(o)||(o=s.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=s.concat([o,o.slice(0,8)]));var u=t.iv;s.isBuffer(u)||(u=s.from(u)),this._des=i.create({key:o,iv:u,type:e})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],t.exports=u,o(u,n),u.prototype._update=function(t){return s.from(this._des.update(t))},u.prototype._final=function(){return s.from(this._des.final())}},"1ecd":function(t,e){const r="0123456789abcdef".split(""),n=[1,256,65536,16777216],i=[0,8,16,24],o=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],s=t=>({blocks:[],reset:!0,block:0,start:0,blockCount:1600-(t<<1)>>5,outputBlocks:t>>5,s:(t=>[].concat(t,t,t,t,t))([0,0,0,0,0,0,0,0,0,0])}),a=(t,e)=>{var o,s=e.length,a=t.blocks,h=t.blockCount<<2,l=t.blockCount,c=t.outputBlocks,f=t.s,d=0;while(d<s){if(t.reset)for(t.reset=!1,a[0]=t.block,v=1;v<l+1;++v)a[v]=0;if("string"!==typeof e)for(v=t.start;d<s&&v<h;++d)a[v>>2]|=e[d]<<i[3&v++];else for(v=t.start;d<s&&v<h;++d)o=e.charCodeAt(d),o<128?a[v>>2]|=o<<i[3&v++]:o<2048?(a[v>>2]|=(192|o>>6)<<i[3&v++],a[v>>2]|=(128|63&o)<<i[3&v++]):o<55296||o>=57344?(a[v>>2]|=(224|o>>12)<<i[3&v++],a[v>>2]|=(128|o>>6&63)<<i[3&v++],a[v>>2]|=(128|63&o)<<i[3&v++]):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++d)),a[v>>2]|=(240|o>>18)<<i[3&v++],a[v>>2]|=(128|o>>12&63)<<i[3&v++],a[v>>2]|=(128|o>>6&63)<<i[3&v++],a[v>>2]|=(128|63&o)<<i[3&v++]);if(t.lastByteIndex=v,v>=h){for(t.start=v-h,t.block=a[l],v=0;v<l;++v)f[v]^=a[v];u(f),t.reset=!0}else t.start=v}if(v=t.lastByteIndex,a[v>>2]|=n[3&v],t.lastByteIndex===h)for(a[0]=a[l],v=1;v<l+1;++v)a[v]=0;for(a[l-1]|=2147483648,v=0;v<l;++v)f[v]^=a[v];u(f);var p,m="",v=0,g=0;while(g<c){for(v=0;v<l&&g<c;++v,++g)p=f[v],m+=r[p>>4&15]+r[15&p]+r[p>>12&15]+r[p>>8&15]+r[p>>20&15]+r[p>>16&15]+r[p>>28&15]+r[p>>24&15];g%l===0&&(u(f),v=0)}return"0x"+m},u=t=>{var e,r,n,i,s,a,u,h,l,c,f,d,p,m,v,g,y,b,w,M,_,k,S,x,E,A,O,T,C,P,B,I,R,N,j,L,U,D,F,z,q,H,$,V,K,W,G,Z,J,X,Y,Q,tt,et,rt,nt,it,ot,st,at,ut,ht,lt;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],s=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],h=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(a<<1|u>>>31),r=p^(u<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(h<<1|l>>>31),r=s^(l<<1|h>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(c<<1|f>>>31),r=u^(f<<1|c>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=h^(d<<1|p>>>31),r=l^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=c^(i<<1|s>>>31),r=f^(s<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],v=t[1],W=t[11]<<4|t[10]>>>28,G=t[10]<<4|t[11]>>>28,T=t[20]<<3|t[21]>>>29,C=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,$=t[41]<<18|t[40]>>>14,N=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,B=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,U=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,K=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,k=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~g&b,t[1]=v^~y&w,t[10]=x^~A&T,t[11]=E^~O&C,t[20]=N^~L&D,t[21]=j^~U&F,t[30]=V^~W&Z,t[31]=K^~G&J,t[40]=et^~nt&ot,t[41]=rt^~it&st,t[2]=g^~b&M,t[3]=y^~w&_,t[12]=A^~T&P,t[13]=O^~C&B,t[22]=L^~D&z,t[23]=U^~F&q,t[32]=W^~Z&X,t[33]=G^~J&Y,t[42]=nt^~ot&at,t[43]=it^~st&ut,t[4]=b^~M&k,t[5]=w^~_&S,t[14]=T^~P&I,t[15]=C^~B&R,t[24]=D^~z&H,t[25]=F^~q&$,t[34]=Z^~X&Q,t[35]=J^~Y&tt,t[44]=ot^~at&ht,t[45]=st^~ut&lt,t[6]=M^~k&m,t[7]=_^~S&v,t[16]=P^~I&x,t[17]=B^~R&E,t[26]=z^~H&N,t[27]=q^~$&j,t[36]=X^~Q&V,t[37]=Y^~tt&K,t[46]=at^~ht&et,t[47]=ut^~lt&rt,t[8]=k^~m&g,t[9]=S^~v&y,t[18]=I^~x&A,t[19]=R^~E&O,t[28]=H^~N&L,t[29]=$^~j&U,t[38]=Q^~V&W,t[39]=tt^~K&G,t[48]=ht^~et&nt,t[49]=lt^~rt&it,t[0]^=o[n],t[1]^=o[n+1]},h=t=>e=>{var r;if("0x"===e.slice(0,2)){r=[];for(var n=2,i=e.length;n<i;n+=2)r.push(parseInt(e.slice(n,n+2),16))}else r=e;return a(s(t,t),r)};t.exports={keccak256:h(256),keccak512:h(512),keccak256s:h(256),keccak512s:h(512)}},"1fa8":function(t,e,r){var n=r("cb7c");t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(s){var o=t["return"];throw void 0!==o&&n(o.call(t)),s}}},"1fb5":function(t,e,r){"use strict";e.byteLength=l,e.toByteArray=f,e.fromByteArray=m;for(var n=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function h(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function l(t){var e=h(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function c(t,e,r){return 3*(e+r)/4-r}function f(t){var e,r,n=h(t),s=n[0],a=n[1],u=new o(c(t,s,a)),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===a&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,u[l++]=255&e),1===a&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u}function d(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function p(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(d(n));return i.join("")}function m(t){for(var e,r=t.length,i=r%3,o=[],s=16383,a=0,u=r-i;a<u;a+=s)o.push(p(t,a,a+s>u?u:a+s));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"1fec":function(t,e,r){"use strict";var n=r("da3e"),i=r("3fb5"),o=r("0184"),s=r("4e2b");function a(t,e){n.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),i=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:o})]:[s.create({type:"decrypt",key:o}),s.create({type:"encrypt",key:i}),s.create({type:"decrypt",key:r})]}function u(t){o.call(this,t);var e=new a(this.type,this.options.key);this._edeState=e}i(u,o),t.exports=u,u.create=function(t){return new u(t)},u.prototype._update=function(t,e,r,n){var i=this._edeState;i.ciphers[0]._update(t,e,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=s.prototype._pad,u.prototype._unpad=s.prototype._unpad},"206d":function(t,e,r){(function(e,n){var i,o=r("8707").Buffer,s=r("7d2a"),a=r("9f9d"),u=r("e07b"),h=r("8be6"),l=e.crypto&&e.crypto.subtle,c={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function d(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==f[t])return f[t];i=i||o.alloc(8);var r=p(i,i,10,128,t).then((function(){return!0})).catch((function(){return!1}));return f[t]=r,r}function p(t,e,r,n,i){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:i}},t,n<<3)})).then((function(t){return o.from(t)}))}function m(t,e){t.then((function(t){n.nextTick((function(){e(null,t)}))}),(function(t){n.nextTick((function(){e(t)}))}))}t.exports=function(t,r,i,o,l,f){"function"===typeof l&&(f=l,l=void 0),l=l||"sha1";var v=c[l.toLowerCase()];if(!v||"function"!==typeof e.Promise)return n.nextTick((function(){var e;try{e=u(t,r,i,o,l)}catch(n){return f(n)}f(null,e)}));if(s(i,o),t=h(t,a,"Password"),r=h(r,a,"Salt"),"function"!==typeof f)throw new Error("No callback provided to pbkdf2");m(d(v).then((function(e){return e?p(t,r,i,o,v):u(t,r,i,o,l)})),f)}}).call(this,r("c8ba"),r("f28c"))},"20f6":function(t,e,r){var n=e;n.der=r("cfbd"),n.pem=r("8df7")},2137:function(t,e,r){"use strict";var n=r("c3c0"),i=r("da3e");function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},"214f":function(t,e,r){"use strict";r("b0c5");var n=r("2aba"),i=r("32e9"),o=r("79e5"),s=r("be13"),a=r("2b4c"),u=r("520a"),h=a("species"),l=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),c=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,e,r){var f=a(t),d=!o((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),p=d?!o((function(){var e=!1,r=/a/;return r.exec=function(){return e=!0,null},"split"===t&&(r.constructor={},r.constructor[h]=function(){return r}),r[f](""),!e})):void 0;if(!d||!p||"replace"===t&&!l||"split"===t&&!c){var m=/./[f],v=r(s,f,""[t],(function(t,e,r,n,i){return e.exec===u?d&&!i?{done:!0,value:m.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}})),g=v[0],y=v[1];n(String.prototype,t,g),i(RegExp.prototype,f,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"21ef":function(t,e,r){(function(e){var n=r("f609"),i=r("a6b6"),o=r("f1dd"),s=r("7d96"),a=r("1455"),u=function(t){return n.isBN(t)},h=function(t){return t&&t.constructor&&"BigNumber"===t.constructor.name},l=function(t){try{return i.apply(null,arguments)}catch(e){throw new Error(e+' Given value: "'+t+'"')}},c=function(t){return"0x"+l(t).toTwos(256).toString(16,64)},f=function(t){return!!/^(0x)?[0-9a-f]{40}$/i.test(t)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(t)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(t))||d(t))},d=function(t){t=t.replace(/^0x/i,"");for(var e=R(t.toLowerCase()).replace(/^0x/i,""),r=0;r<40;r++)if(parseInt(e[r],16)>7&&t[r].toUpperCase()!==t[r]||parseInt(e[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0},p=function(t,e,r){var n=/^0x/i.test(t)||"number"===typeof t;t=t.toString(16).replace(/^0x/i,"");var i=e-t.length+1>=0?e-t.length+1:0;return(n?"0x":"")+new Array(i).join(r||"0")+t},m=function(t,e,r){var n=/^0x/i.test(t)||"number"===typeof t;t=t.toString(16).replace(/^0x/i,"");var i=e-t.length+1>=0?e-t.length+1:0;return(n?"0x":"")+t+new Array(i).join(r||"0")},v=function(t){t=o.encode(t);var e="";t=t.replace(/^(?:\u0000)*/,""),t=t.split("").reverse().join(""),t=t.replace(/^(?:\u0000)*/,""),t=t.split("").reverse().join("");for(var r=0;r<t.length;r++){var n=t.charCodeAt(r),i=n.toString(16);e+=i.length<2?"0"+i:i}return"0x"+e},g=function(t){if(!S(t))throw new Error('The parameter "'+t+'" must be a valid HEX string.');var e="",r=0;t=t.replace(/^0x/i,""),t=t.replace(/^(?:00)*/,""),t=t.split("").reverse().join(""),t=t.replace(/^(?:00)*/,""),t=t.split("").reverse().join("");for(var n=t.length,i=0;i<n;i+=2)r=parseInt(t.substr(i,2),16),e+=String.fromCharCode(r);return o.decode(e)},y=function(t){if(!t)return t;if("string"===typeof t&&!S(t))throw new Error('Given value "'+t+'" is not a valid hex string.');return l(t).toNumber()},b=function(t){if(!t)return t;if("string"===typeof t&&!S(t))throw new Error('Given value "'+t+'" is not a valid hex string.');return l(t).toString(10)},w=function(t){if(null===t||void 0===t)return t;if(!isFinite(t)&&!S(t))throw new Error('Given input "'+t+'" is not a number.');var e=l(t),r=e.toString(16);return e.lt(new n(0))?"-0x"+r.substr(1):"0x"+r},M=function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return"0x"+e.join("")},_=function(t){if(t=t.toString(16),!S(t))throw new Error('Given value "'+t+'" is not a valid hex string.');t=t.replace(/^0x/i,"");for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},k=function(t,r){if(f(t))return r?"address":"0x"+t.toLowerCase().replace(/^0x/i,"");if("boolean"===typeof t)return r?"bool":t?"0x01":"0x00";if(e.isBuffer(t))return"0x"+t.toString("hex");if("object"===typeof t&&t&&!h(t)&&!u(t))return r?"string":v(JSON.stringify(t));if("string"===typeof t){if(0===t.indexOf("-0x")||0===t.indexOf("-0X"))return r?"int256":w(t);if(0===t.indexOf("0x")||0===t.indexOf("0X"))return r?"bytes":t;if(!isFinite(t))return r?"string":v(t)}return r?t<0?"int256":"uint256":w(t)},S=function(t){return("string"===typeof t||"number"===typeof t)&&/^(-)?0x[0-9a-f]*$/i.test(t)},x=function(t){return("string"===typeof t||"number"===typeof t)&&/^(-0x|0x)?[0-9a-f]*$/i.test(t)},E=function(t){return 0!==t&&x(t)?t.replace(/^(-)?0x/i,"$1"):t},A=function(t){return a.isBloom(t)},O=function(t,e){return a.isUserEthereumAddressInBloom(t,e)},T=function(t,e){return a.isContractAddressInBloom(t,e)},C=function(t){return a.isTopic(t)},P=function(t,e){return a.isTopicInBloom(t,e)},B=function(t,e){return a.isInBloom(t,e)},I="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",R=function(t){u(t)&&(t=t.toString()),S(t)&&/^0x/i.test(t.toString())&&(t=_(t));var e=s.keccak256(t);return e===I?null:e};R._Hash=s;var N=function(t){return t=R(t),null===t?I:t},j=function(t){return"number"===typeof t?t:y(k(t))};t.exports={BN:n,isBN:u,isBigNumber:h,toBN:l,isAddress:f,isBloom:A,isUserEthereumAddressInBloom:O,isContractAddressInBloom:T,isTopic:C,isTopicInBloom:P,isInBloom:B,checkAddressChecksum:d,utf8ToHex:v,hexToUtf8:g,hexToNumber:y,hexToNumberString:b,numberToHex:w,toHex:k,hexToBytes:_,bytesToHex:M,isHex:x,isHexStrict:S,stripHexPrefix:E,leftPad:p,rightPad:m,toTwosComplement:c,sha3:R,sha3Raw:N,toNumber:j}}).call(this,r("b639").Buffer)},2213:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};function o(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var s=r("2330"),a=r("235e"),u=32;function h(){return n(this,void 0,void 0,(function(){var t;return i(this,(function(e){switch(e.label){case 0:return[4,a.getRandomBytes(u)];case 1:return t=e.sent(),s.privateKeyVerify(t)?[2,t]:[3,0];case 2:return[2]}}))}))}function l(){while(1){var t=a.getRandomBytesSync(u);if(s.privateKeyVerify(t))return t}}e.createPrivateKey=h,e.createPrivateKeySync=l,o(r("2330"))},"22ab":function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),t}var h=r("b639"),l=h.Buffer,c=r(13),f=c.inspect,d=f&&f.custom||"inspect";function p(t,e,r){l.prototype.copy.call(t,e,r)}t.exports=function(){function t(){s(this,t),this.head=null,this.tail=null,this.length=0}return u(t,[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,r=""+e.data;while(e=e.next)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return l.alloc(0);var e=l.allocUnsafe(t>>>0),r=this.head,n=0;while(r)p(r.data,e,n),n+=r.data.length,r=r.next;return e}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;t-=n.length;while(e=e.next){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),t-=o,0===t){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=l.allocUnsafe(t),r=this.head,n=1;r.data.copy(e),t-=r.data.length;while(r=r.next){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:d,value:function(t,e){return f(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},"230e":function(t,e,r){var n=r("d3f4"),i=r("7726").document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},2330:function(t,e,r){t.exports=r("3a89")(r("4673"))},"235e":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r("11dc");function i(t){return new Promise((function(e,r){n(t,(function(t,n){t?r(t):e(n)}))}))}function o(t){return n(t)}e.getRandomBytes=i,e.getRandomBytesSync=o},"23c6":function(t,e,r){var n=r("2d95"),i=r("2b4c")("toStringTag"),o="Arguments"==n(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(r){}};t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=s(e=Object(t),i))?r:o?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},2416:function(t,e,r){(function(e){const n=r("6fde");function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(t,e){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(t){for(let e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0)},i.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<this.count%4*8,0!==(128&t)&&this.count===this.blockSize-1&&n.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,n.p1600(this.state),this.count=0,this.squeezing=!0},i.prototype.squeeze=function(t){this.squeezing||this.absorbLastFewBits(1);const r=e.alloc(t);for(let e=0;e<t;++e)r[e]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return r},i.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=i}).call(this,r("b639").Buffer)},2444:function(t,e,r){"use strict";(function(e){var n=r("c532"),i=r("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function a(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=r("b50d")),t}var u={adapter:a(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){u.headers[t]=n.merge(o)})),t.exports=u}).call(this,r("f28c"))},2469:function(t){t.exports=JSON.parse('{"name":"EIP-3198","number":3198,"comment":"BASEFEE opcode","url":"https://eips.ethereum.org/EIPS/eip-3198","status":"Review","minimumHardfork":"london","gasConfig":{},"gasPrices":{"basefee":{"v":2,"d":"Gas cost of the BASEFEE opcode"}},"vm":{},"pow":{}}')},"24b7":function(t,e,r){"use strict";(function(t){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)},o=this&&this.__read||function(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{while((void 0===e||e-- >0)&&!(n=o.next()).done)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o["return"])&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var s=r("5b66"),a=r("6f3d"),u=r("4b26"),h=0,l=function(e){function r(t,r){var n;void 0===r&&(r={});var o=e.call(this,i(i({},t),{type:h}))||this;if(o.common=o._validateTxV(o.v,r.common),o.gasPrice=new s.BN(s.toBuffer(""===t.gasPrice?"0x":t.gasPrice)),o._validateCannotExceedMaxInteger({gasPrice:o.gasPrice}),o.common.gteHardfork("spuriousDragon"))if(o.isSigned()){var u=o.v,l=o.common.chainIdBN().muln(2);(u.eq(l.addn(35))||u.eq(l.addn(36)))&&o.activeCapabilities.push(a.Capability.EIP155ReplayProtection)}else o.activeCapabilities.push(a.Capability.EIP155ReplayProtection);var c=null===(n=null===r||void 0===r?void 0:r.freeze)||void 0===n||n;return c&&Object.freeze(o),o}return n(r,e),r.fromTxData=function(t,e){return void 0===e&&(e={}),new r(t,e)},r.fromSerializedTx=function(t,e){void 0===e&&(e={});var r=s.rlp.decode(t);if(!Array.isArray(r))throw new Error("Invalid serialized tx input. Must be array");return this.fromValuesArray(r,e)},r.fromRlpSerializedTx=function(t,e){return void 0===e&&(e={}),r.fromSerializedTx(t,e)},r.fromValuesArray=function(t,e){if(void 0===e&&(e={}),6!==t.length&&9!==t.length)throw new Error("Invalid transaction. Only expecting 6 values (for unsigned tx) or 9 values (for signed tx).");var n=o(t,9),i=n[0],s=n[1],a=n[2],u=n[3],h=n[4],l=n[5],c=n[6],f=n[7],d=n[8];return new r({nonce:i,gasPrice:s,gasLimit:a,to:u,value:h,data:l,v:c,r:f,s:d},e)},r.prototype.raw=function(){return[s.bnToUnpaddedBuffer(this.nonce),s.bnToUnpaddedBuffer(this.gasPrice),s.bnToUnpaddedBuffer(this.gasLimit),void 0!==this.to?this.to.buf:t.from([]),s.bnToUnpaddedBuffer(this.value),this.data,void 0!==this.v?s.bnToUnpaddedBuffer(this.v):t.from([]),void 0!==this.r?s.bnToUnpaddedBuffer(this.r):t.from([]),void 0!==this.s?s.bnToUnpaddedBuffer(this.s):t.from([])]},r.prototype.serialize=function(){return s.rlp.encode(this.raw())},r.prototype._getMessageToSign=function(){var e=[s.bnToUnpaddedBuffer(this.nonce),s.bnToUnpaddedBuffer(this.gasPrice),s.bnToUnpaddedBuffer(this.gasLimit),void 0!==this.to?this.to.buf:t.from([]),s.bnToUnpaddedBuffer(this.value),this.data];return this.supports(a.Capability.EIP155ReplayProtection)&&(e.push(s.toBuffer(this.common.chainIdBN())),e.push(s.unpadBuffer(s.toBuffer(0))),e.push(s.unpadBuffer(s.toBuffer(0)))),e},r.prototype.getMessageToSign=function(t){void 0===t&&(t=!0);var e=this._getMessageToSign();return t?s.rlphash(e):e},r.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},r.prototype.hash=function(){return s.rlphash(this.raw())},r.prototype.getMessageToVerifySignature=function(){if(!this.isSigned())throw Error("This transaction is not signed");var t=this._getMessageToSign();return s.rlphash(t)},r.prototype.getSenderPublicKey=function(){var t,e=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(t=this.s)||void 0===t?void 0:t.gt(a.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var r=this,n=r.v,i=r.r,o=r.s;try{return s.ecrecover(e,n,s.bnToUnpaddedBuffer(i),s.bnToUnpaddedBuffer(o),this.supports(a.Capability.EIP155ReplayProtection)?this.common.chainIdBN():void 0)}catch(u){throw new Error("Invalid Signature")}},r.prototype._processSignature=function(t,e,n){var i=new s.BN(t);this.supports(a.Capability.EIP155ReplayProtection)&&i.iadd(this.common.chainIdBN().muln(2).addn(8));var o={common:this.common};return r.fromTxData({nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,v:i,r:new s.BN(e),s:new s.BN(n)},o)},r.prototype.toJSON=function(){return{nonce:s.bnToHex(this.nonce),gasPrice:s.bnToHex(this.gasPrice),gasLimit:s.bnToHex(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:s.bnToHex(this.value),data:"0x"+this.data.toString("hex"),v:void 0!==this.v?s.bnToHex(this.v):void 0,r:void 0!==this.r?s.bnToHex(this.r):void 0,s:void 0!==this.s?s.bnToHex(this.s):void 0}},r.prototype._validateTxV=function(t,e){var r;if(void 0!==t&&!t.eqn(0)&&(!e||e.gteHardfork("spuriousDragon"))&&!t.eqn(27)&&!t.eqn(28))if(e){var n=e.chainIdBN().muln(2),i=t.eq(n.addn(35))||t.eq(n.addn(36));if(!i)throw new Error("Incompatible EIP155-based V "+t.toString()+" and chain id "+e.chainIdBN().toString()+". See the Common parameter of the Transaction constructor to set the chain id.")}else{var o=void 0;o=t.subn(35).isEven()?35:36,r=t.subn(o).divn(2)}return this._getCommon(e,r)},r.prototype._unsignedTxImplementsEIP155=function(){return this.common.gteHardfork("spuriousDragon")},r.prototype._signedTxImplementsEIP155=function(){if(!this.isSigned())throw Error("This transaction is not signed");var t=this.common.gteHardfork("spuriousDragon"),e=this.v,r=this.common.chainIdBN().muln(2),n=e.eq(r.addn(35))||e.eq(r.addn(36));return n&&t},r}(u.BaseTransaction);e.default=l}).call(this,r("b639").Buffer)},"24f8":function(t,e,r){var n=r("9490"),i=r("0b16"),o=t.exports;for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);function a(t){if("string"===typeof t&&(t=i.parse(t)),t.protocol||(t.protocol="https:"),"https:"!==t.protocol)throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}o.request=function(t,e){return t=a(t),n.request.call(this,t,e)},o.get=function(t,e){return t=a(t),n.get.call(this,t,e)}},2612:function(t,e,r){t.exports={encode:r("af3a"),decode:r("fa45"),encodingLength:r("61f1")}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},2638:function(t,e,r){"use strict";function n(){return n=Object.assign||function(t){for(var e,r=1;r<arguments.length;r++)for(var n in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},n.apply(this,arguments)}var i=["attrs","props","domProps"],o=["class","style","directives"],s=["on","nativeOn"],a=function(t){return t.reduce((function(t,e){for(var r in e)if(t[r])if(-1!==i.indexOf(r))t[r]=n({},t[r],e[r]);else if(-1!==o.indexOf(r)){var a=t[r]instanceof Array?t[r]:[t[r]],h=e[r]instanceof Array?e[r]:[e[r]];t[r]=a.concat(h)}else if(-1!==s.indexOf(r))for(var l in e[r])if(t[r][l]){var c=t[r][l]instanceof Array?t[r][l]:[t[r][l]],f=e[r][l]instanceof Array?e[r][l]:[e[r][l]];t[r][l]=c.concat(f)}else t[r][l]=e[r][l];else if("hook"==r)for(var d in e[r])t[r][d]=t[r][d]?u(t[r][d],e[r][d]):e[r][d];else t[r]=e[r];else t[r]=e[r];return t}),{})},u=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=a},"27bf":function(t,e,r){"use strict";t.exports=s;var n=r("b19a"),i=Object.create(r("3a7c"));function o(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(t){if(!(this instanceof s))return new s(t);n.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",a)}function a(){var t=this;"function"===typeof this._flush?this._flush((function(e,r){u(t,e,r)})):u(this,null,null)}function u(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=r("3fb5"),i.inherits(s,n),s.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},s.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},s.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},s.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit("close")}))}},"27ee":function(t,e,r){var n=r("23c6"),i=r("2b4c")("iterator"),o=r("84f2");t.exports=r("8378").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},2801:function(t){t.exports=JSON.parse('{"_args":[["elliptic@6.5.3","D:\\\\Code\\\\JinYuan\\\\8925\\\\website-dapp-m"]],"_from":"elliptic@6.5.3","_id":"elliptic@6.5.3","_inBundle":false,"_integrity":"sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.5.3","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.3","saveSpec":null,"fetchSpec":"6.5.3"},"_requiredBy":["/browserify-sign","/create-ecdh","/eth-lib","/secp256k1","/web3-eth-accounts/eth-lib","/web3-utils/eth-lib"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz","_spec":"6.5.3","_where":"D:\\\\Code\\\\JinYuan\\\\8925\\\\website-dapp-m","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.3"}')},2877:function(t,e,r){"use strict";function n(t,e,r,n,i,o,s,a){var u,h="function"===typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=r,h._compiled=!0),n&&(h.functional=!0),o&&(h._scopeId="data-v-"+o),s?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},h._ssrRegister=u):i&&(u=a?function(){i.call(this,(h.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(h.functional){h._injectStyles=u;var l=h.render;h.render=function(t,e){return u.call(e),l(t,e)}}else{var c=h.beforeCreate;h.beforeCreate=c?[].concat(c,u):[u]}return{exports:t,options:h}}r.d(e,"a",(function(){return n}))},"28a0":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},"28a5":function(t,e,r){"use strict";var n=r("aae3"),i=r("cb7c"),o=r("ebd6"),s=r("0390"),a=r("9def"),u=r("5f1b"),h=r("520a"),l=r("79e5"),c=Math.min,f=[].push,d="split",p="length",m="lastIndex",v=4294967295,g=!l((function(){RegExp(v,"y")}));r("214f")("split",2,(function(t,e,r,l){var y;return y="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[p]||2!="ab"[d](/(?:ab)*/)[p]||4!="."[d](/(.?)(.?)/)[p]||"."[d](/()()/)[p]>1||""[d](/.?/)[p]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!n(t))return r.call(i,t,e);var o,s,a,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,d=void 0===e?v:e>>>0,g=new RegExp(t.source,l+"g");while(o=h.call(g,i)){if(s=g[m],s>c&&(u.push(i.slice(c,o.index)),o[p]>1&&o.index<i[p]&&f.apply(u,o.slice(1)),a=o[0][p],c=s,u[p]>=d))break;g[m]===o.index&&g[m]++}return c===i[p]?!a&&g.test("")||u.push(""):u.push(i.slice(c)),u[p]>d?u.slice(0,d):u}:"0"[d](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)}:r,[function(r,n){var i=t(this),o=void 0==r?void 0:r[e];return void 0!==o?o.call(r,i,n):y.call(String(i),r,n)},function(t,e){var n=l(y,t,this,e,y!==r);if(n.done)return n.value;var h=i(t),f=String(this),d=o(h,RegExp),p=h.unicode,m=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(g?"y":"g"),b=new d(g?h:"^(?:"+h.source+")",m),w=void 0===e?v:e>>>0;if(0===w)return[];if(0===f.length)return null===u(b,f)?[f]:[];var M=0,_=0,k=[];while(_<f.length){b.lastIndex=g?_:0;var S,x=u(b,g?f:f.slice(_));if(null===x||(S=c(a(b.lastIndex+(g?0:_)),f.length))===M)_=s(f,_,p);else{if(k.push(f.slice(M,_)),k.length===w)return k;for(var E=1;E<=x.length-1;E++)if(k.push(x[E]),k.length===w)return k;_=M=S}}return k.push(f.slice(M)),k}]}))},2909:function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r("6b75");function i(t){if(Array.isArray(t))return Object(n["a"])(t)}function o(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}var s=r("06c5");function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t){return i(t)||o(t)||Object(s["a"])(t)||a()}},2994:function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(20).Buffer}catch(A){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,l=r;l<a;l+=n)u=h(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var c=1;for(u=h(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],c=[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],f=[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 d(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?l[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],d=f[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:l[h-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function v(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function g(t,e,r){var n=new y;return n.mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?v(this,t,e):g(this,t,e),r},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},y.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=d(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function w(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 M(){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=o._prime(t);this.m=e.p,this.prime=e}else n(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)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(M,w),M.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,w),i(k,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new M;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 b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(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 r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},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)},i(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 r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._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,r("62e4")(t))},"29b1":function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.assertIsString=e.assertIsArray=e.assertIsBuffer=e.assertIsHexString=void 0;var n=r("9a12");e.assertIsHexString=function(t){if(!n.isHexString(t)){var e="This method only supports 0x-prefixed hex strings but input was: "+t;throw new Error(e)}},e.assertIsBuffer=function(e){if(!t.isBuffer(e)){var r="This method only supports Buffer but input was: "+e;throw new Error(r)}},e.assertIsArray=function(t){if(!Array.isArray(t)){var e="This method only supports number arrays but input was: "+t;throw new Error(e)}},e.assertIsString=function(t){if("string"!==typeof t){var e="This method only supports strings but input was: "+t;throw new Error(e)}}}).call(this,r("b639").Buffer)},"2a4b":function(t,e,r){"use strict";const n=r("0222"),i=r("f33e").varintEncode,o={};for(const s in n){const t=n[s];o[s]=i(t)}t.exports=Object.freeze(o)},"2aba":function(t,e,r){var n=r("7726"),i=r("32e9"),o=r("69a8"),s=r("ca5a")("src"),a=r("fa5b"),u="toString",h=(""+a).split(u);r("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,r,a){var u="function"==typeof r;u&&(o(r,"name")||i(r,"name",e)),t[e]!==r&&(u&&(o(r,s)||i(r,s,t[e]?""+t[e]:h.join(String(e)))),t===n?t[e]=r:a?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2ad0":function(t,e,r){var n=r("a00b"),i=r("f5e1"),o=i;o.v1=n,o.v4=i,t.exports=o},"2aeb":function(t,e,r){var n=r("cb7c"),i=r("1495"),o=r("e11e"),s=r("613b")("IE_PROTO"),a=function(){},u="prototype",h=function(){var t,e=r("230e")("iframe"),n=o.length,i="<",s=">";e.style.display="none",r("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+s+"document.F=Object"+i+"/script"+s),t.close(),h=t.F;while(n--)delete h[u][o[n]];return h()};t.exports=Object.create||function(t,e){var r;return null!==t?(a[u]=n(t),r=new a,a[u]=null,r[s]=t):r=h(),void 0===e?r:i(r,e)}},"2aee":function(t,e,r){var n=r("4111"),i=r("d70e"),o=r("4dd0"),s=r("fda6"),a=r("a099"),u=r("8707").Buffer;function h(t){var e;"object"!==typeof t||u.isBuffer(t)||(e=t.passphrase,t=t.key),"string"===typeof t&&(t=u.from(t));var r,i,s=o(t,e),a=s.tag,h=s.data;switch(a){case"CERTIFICATE":i=n.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(i||(i=n.PublicKey.decode(h,"der")),r=i.algorithm.algorithm.join("."),r){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=n.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+a);case"ENCRYPTED PRIVATE KEY":h=n.EncryptedPrivateKey.decode(h,"der"),h=l(h,e);case"PRIVATE KEY":switch(i=n.PrivateKey.decode(h,"der"),r=i.algorithm.algorithm.join("."),r){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:n.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=n.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+a);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return h=n.ECPrivateKey.decode(h,"der"),{curve:h.parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+a)}}function l(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[t.algorithm.decrypt.cipher.algo.join(".")],h=t.algorithm.decrypt.cipher.iv,l=t.subjectPrivateKey,c=parseInt(o.split("-")[1],10)/8,f=a.pbkdf2Sync(e,r,n,c,"sha1"),d=s.createDecipheriv(o,f,h),p=[];return p.push(d.update(l)),p.push(d.final()),u.concat(p)}t.exports=h,h.signature=n.signature},"2b4c":function(t,e,r){var n=r("5537")("wks"),i=r("ca5a"),o=r("7726").Symbol,s="function"==typeof o,a=t.exports=function(t){return n[t]||(n[t]=s&&o[t]||(s?o:i)("Symbol."+t))};a.store=n},"2c0b":function(t,e,r){(function(t){var n=r("9505").keccak_256,i=r("dbaf");function o(e){for(var r="",i=0;i<32;i++)r+="00";if(name=s(e),name){var o=name.split(".");for(i=o.length-1;i>=0;i--){var a=n(o[i]);r=n(new t(r+a,"hex"))}}return"0x"+r}function s(t){return t?i.toUnicode(t,{useStd3ASCII:!0,transitional:!1}):t}e.hash=o,e.normalize=s}).call(this,r("b639").Buffer)},"2c63":function(t,e,r){t.exports=r("dc14")},"2d00":function(t,e){t.exports=!1},"2d83":function(t,e,r){"use strict";var n=r("387f");t.exports=function(t,e,r,i,o){var s=new Error(t);return n(s,e,r,i,o)}},"2d95":function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},"2e08":function(t,e,r){var n=r("9def"),i=r("9744"),o=r("be13");t.exports=function(t,e,r,s){var a=String(o(t)),u=a.length,h=void 0===r?" ":String(r),l=n(e);if(l<=u||""==h)return a;var c=l-u,f=i.call(h,Math.ceil(c/h.length));return f.length>c&&(f=f.slice(0,c)),s?f+a:a+f}},"2e37":function(t,e,r){var n=r("5ca1");n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},"2e67":function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f21":function(t,e,r){"use strict";var n=r("79e5");t.exports=function(t,e){return!!t&&n((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"2f62":function(t,e,r){"use strict";(function(t){
/*!
* vuex v3.5.1
* (c) 2020 Evan You
* @license MIT
*/
function n(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:n});else{var r=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,r.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}r.d(e,"b",(function(){return N}));var i="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function s(t){o&&(t._devtoolHook=o,o.emit("vuex:init",t),o.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){o.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){o.emit("vuex:action",t,e)}),{prepend:!0}))}function a(t,e){return t.filter(e)[0]}function u(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var r=a(e,(function(e){return e.original===t}));if(r)return r.copy;var n=Array.isArray(t)?[]:{};return e.push({original:t,copy:n}),Object.keys(t).forEach((function(r){n[r]=u(t[r],e)})),n}function h(t,e){Object.keys(t).forEach((function(r){return e(t[r],r)}))}function l(t){return null!==t&&"object"===typeof t}function c(t){return t&&"function"===typeof t.then}function f(t,e){return function(){return t(e)}}var d=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=("function"===typeof r?r():r)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},d.prototype.addChild=function(t,e){this._children[t]=e},d.prototype.removeChild=function(t){delete this._children[t]},d.prototype.getChild=function(t){return this._children[t]},d.prototype.hasChild=function(t){return t in this._children},d.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},d.prototype.forEachChild=function(t){h(this._children,t)},d.prototype.forEachGetter=function(t){this._rawModule.getters&&h(this._rawModule.getters,t)},d.prototype.forEachAction=function(t){this._rawModule.actions&&h(this._rawModule.actions,t)},d.prototype.forEachMutation=function(t){this._rawModule.mutations&&h(this._rawModule.mutations,t)},Object.defineProperties(d.prototype,p);var m=function(t){this.register([],t,!1)};function v(t,e,r){if(e.update(r),r.modules)for(var n in r.modules){if(!e.getChild(n))return void 0;v(t.concat(n),e.getChild(n),r.modules[n])}}m.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},m.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,r){return e=e.getChild(r),t+(e.namespaced?r+"/":"")}),"")},m.prototype.update=function(t){v([],this.root,t)},m.prototype.register=function(t,e,r){var n=this;void 0===r&&(r=!0);var i=new d(e,r);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&h(e.modules,(function(e,i){n.register(t.concat(i),e,r)}))},m.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1],n=e.getChild(r);n&&n.runtime&&e.removeChild(r)},m.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1];return e.hasChild(r)};var g;var y=function(t){var e=this;void 0===t&&(t={}),!g&&"undefined"!==typeof window&&window.Vue&&B(window.Vue);var r=t.plugins;void 0===r&&(r=[]);var n=t.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new m(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,a=o.dispatch,u=o.commit;this.dispatch=function(t,e){return a.call(i,t,e)},this.commit=function(t,e,r){return u.call(i,t,e,r)},this.strict=n;var h=this._modules.root.state;k(this,h,[],this._modules.root),_(this,h),r.forEach((function(t){return t(e)}));var l=void 0!==t.devtools?t.devtools:g.config.devtools;l&&s(this)},b={state:{configurable:!0}};function w(t,e,r){return e.indexOf(t)<0&&(r&&r.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function M(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;k(t,r,[],t._modules.root,!0),_(t,r,e)}function _(t,e,r){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};h(i,(function(e,r){o[r]=f(e,t),Object.defineProperty(t.getters,r,{get:function(){return t._vm[r]},enumerable:!0})}));var s=g.config.silent;g.config.silent=!0,t._vm=new g({data:{$$state:e},computed:o}),g.config.silent=s,t.strict&&T(t),n&&(r&&t._withCommit((function(){n._data.$$state=null})),g.nextTick((function(){return n.$destroy()})))}function k(t,e,r,n,i){var o=!r.length,s=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=n),!o&&!i){var a=C(e,r.slice(0,-1)),u=r[r.length-1];t._withCommit((function(){g.set(a,u,n.state)}))}var h=n.context=S(t,s,r);n.forEachMutation((function(e,r){var n=s+r;E(t,n,e,h)})),n.forEachAction((function(e,r){var n=e.root?r:s+r,i=e.handler||e;A(t,n,i,h)})),n.forEachGetter((function(e,r){var n=s+r;O(t,n,e,h)})),n.forEachChild((function(n,o){k(t,e,r.concat(o),n,i)}))}function S(t,e,r){var n=""===e,i={dispatch:n?t.dispatch:function(r,n,i){var o=P(r,n,i),s=o.payload,a=o.options,u=o.type;return a&&a.root||(u=e+u),t.dispatch(u,s)},commit:n?t.commit:function(r,n,i){var o=P(r,n,i),s=o.payload,a=o.options,u=o.type;a&&a.root||(u=e+u),t.commit(u,s,a)}};return Object.defineProperties(i,{getters:{get:n?function(){return t.getters}:function(){return x(t,e)}},state:{get:function(){return C(t.state,r)}}}),i}function x(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,n)===e){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}function E(t,e,r,n){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){r.call(t,n.state,e)}))}function A(t,e,r,n){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return c(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function O(t,e,r,n){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return r(n.state,n.getters,t.state,t.getters)})}function T(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function C(t,e){return e.reduce((function(t,e){return t[e]}),t)}function P(t,e,r){return l(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}function B(t){g&&t===g||(g=t,n(g))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(t){0},y.prototype.commit=function(t,e,r){var n=this,i=P(t,e,r),o=i.type,s=i.payload,a=(i.options,{type:o,payload:s}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(a,n.state)})))},y.prototype.dispatch=function(t,e){var r=this,n=P(t,e),i=n.type,o=n.payload,s={type:i,payload:o},a=this._actions[i];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,r.state)}))}catch(h){0}var u=a.length>1?Promise.all(a.map((function(t){return t(o)}))):a[0](o);return new Promise((function(t,e){u.then((function(e){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,r.state)}))}catch(h){0}t(e)}),(function(t){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,r.state,t)}))}catch(h){0}e(t)}))}))}},y.prototype.subscribe=function(t,e){return w(t,this._subscribers,e)},y.prototype.subscribeAction=function(t,e){var r="function"===typeof t?{before:t}:t;return w(r,this._actionSubscribers,e)},y.prototype.watch=function(t,e,r){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,r)},y.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},y.prototype.registerModule=function(t,e,r){void 0===r&&(r={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),k(this,this.state,t,this._modules.get(t),r.preserveState),_(this,this.state)},y.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var r=C(e.state,t.slice(0,-1));g.delete(r,t[t.length-1])})),M(this)},y.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},y.prototype.hotUpdate=function(t){this._modules.update(t),M(this,!0)},y.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(y.prototype,b);var I=F((function(t,e){var r={};return U(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){var e=this.$store.state,r=this.$store.getters;if(t){var n=z(this.$store,"mapState",t);if(!n)return;e=n.context.state,r=n.context.getters}return"function"===typeof i?i.call(this,e,r):e[i]},r[n].vuex=!0})),r})),R=F((function(t,e){var r={};return U(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){var e=[],r=arguments.length;while(r--)e[r]=arguments[r];var n=this.$store.commit;if(t){var o=z(this.$store,"mapMutations",t);if(!o)return;n=o.context.commit}return"function"===typeof i?i.apply(this,[n].concat(e)):n.apply(this.$store,[i].concat(e))}})),r})),N=F((function(t,e){var r={};return U(e).forEach((function(e){var n=e.key,i=e.val;i=t+i,r[n]=function(){if(!t||z(this.$store,"mapGetters",t))return this.$store.getters[i]},r[n].vuex=!0})),r})),j=F((function(t,e){var r={};return U(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){var e=[],r=arguments.length;while(r--)e[r]=arguments[r];var n=this.$store.dispatch;if(t){var o=z(this.$store,"mapActions",t);if(!o)return;n=o.context.dispatch}return"function"===typeof i?i.apply(this,[n].concat(e)):n.apply(this.$store,[i].concat(e))}})),r})),L=function(t){return{mapState:I.bind(null,t),mapGetters:N.bind(null,t),mapMutations:R.bind(null,t),mapActions:j.bind(null,t)}};function U(t){return D(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function D(t){return Array.isArray(t)||l(t)}function F(t){return function(e,r){return"string"!==typeof e?(r=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,r)}}function z(t,e,r){var n=t._modulesNamespaceMap[r];return n}function q(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var r=t.filter;void 0===r&&(r=function(t,e,r){return!0});var n=t.transformer;void 0===n&&(n=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var a=t.logMutations;void 0===a&&(a=!0);var h=t.logActions;void 0===h&&(h=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var c=u(t.state);"undefined"!==typeof l&&(a&&t.subscribe((function(t,o){var s=u(o);if(r(t,c,s)){var a=V(),h=i(t),f="mutation "+t.type+a;H(l,f,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",n(c)),l.log("%c mutation","color: #03A9F4; font-weight: bold",h),l.log("%c next state","color: #4CAF50; font-weight: bold",n(s)),$(l)}c=s})),h&&t.subscribeAction((function(t,r){if(o(t,r)){var n=V(),i=s(t),a="action "+t.type+n;H(l,a,e),l.log("%c action","color: #03A9F4; font-weight: bold",i),$(l)}})))}}function H(t,e,r){var n=r?t.groupCollapsed:t.group;try{n.call(t,e)}catch(i){t.log(e)}}function $(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function V(){var t=new Date;return" @ "+W(t.getHours(),2)+":"+W(t.getMinutes(),2)+":"+W(t.getSeconds(),2)+"."+W(t.getMilliseconds(),3)}function K(t,e){return new Array(e+1).join(t)}function W(t,e){return K("0",e-t.toString().length)+t}var G={Store:y,install:B,version:"3.5.1",mapState:I,mapMutations:R,mapGetters:N,mapActions:j,createNamespacedHelpers:L,createLogger:q};e["a"]=G}).call(this,r("c8ba"))},3022:function(t,e,r){(function(t){var n=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},i=/%[sdj%]/g;e.format=function(t){if(!_(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(a(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(t).replace(i,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return t}})),u=n[r];r<o;u=n[++r])b(u)||!E(u)?s+=" "+u:s+=" "+a(u);return s},e.deprecate=function(r,n){if("undefined"!==typeof t&&!0===t.noDeprecation)return r;if("undefined"===typeof t)return function(){return e.deprecate(r,n).apply(this,arguments)};var i=!1;function o(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation?console.trace(n):console.error(n),i=!0}return r.apply(this,arguments)}return o};var o,s={};function a(t,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&e._extend(n,r),S(n.showHidden)&&(n.showHidden=!1),S(n.depth)&&(n.depth=2),S(n.colors)&&(n.colors=!1),S(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,t,n.depth)}function u(t,e){var r=a.styles[e];return r?"["+a.colors[r][0]+"m"+t+"["+a.colors[r][1]+"m":t}function h(t,e){return t}function l(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}function c(t,r,n){if(t.customInspect&&r&&T(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return _(i)||(i=c(t,i,n)),i}var o=f(t,r);if(o)return o;var s=Object.keys(r),a=l(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(r)),O(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(r);if(0===s.length){if(T(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(x(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(A(r))return t.stylize(Date.prototype.toString.call(r),"date");if(O(r))return d(r)}var h,y="",b=!1,w=["{","}"];if(g(r)&&(b=!0,w=["[","]"]),T(r)){var M=r.name?": "+r.name:"";y=" [Function"+M+"]"}return x(r)&&(y=" "+RegExp.prototype.toString.call(r)),A(r)&&(y=" "+Date.prototype.toUTCString.call(r)),O(r)&&(y=" "+d(r)),0!==s.length||b&&0!=r.length?n<0?x(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),h=b?p(t,r,n,a,s):s.map((function(e){return m(t,r,n,a,e,b)})),t.seen.pop(),v(h,y,w)):w[0]+y+w[1]}function f(t,e){if(S(e))return t.stylize("undefined","undefined");if(_(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return M(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):b(e)?t.stylize("null","null"):void 0}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,i){for(var o=[],s=0,a=e.length;s<a;++s)N(e,String(s))?o.push(m(t,e,r,n,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(m(t,e,r,n,i,!0))})),o}function m(t,e,r,n,i,o){var s,a,u;if(u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},u.get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),N(n,i)||(s="["+i+"]"),a||(t.seen.indexOf(u.value)<0?(a=b(r)?c(t,u.value,null):c(t,u.value,r-1),a.indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n"))):a=t.stylize("[Circular]","special")),S(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function v(t,e,r){var n=t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return n>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function g(t){return Array.isArray(t)}function y(t){return"boolean"===typeof t}function b(t){return null===t}function w(t){return null==t}function M(t){return"number"===typeof t}function _(t){return"string"===typeof t}function k(t){return"symbol"===typeof t}function S(t){return void 0===t}function x(t){return E(t)&&"[object RegExp]"===P(t)}function E(t){return"object"===typeof t&&null!==t}function A(t){return E(t)&&"[object Date]"===P(t)}function O(t){return E(t)&&("[object Error]"===P(t)||t instanceof Error)}function T(t){return"function"===typeof t}function C(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function P(t){return Object.prototype.toString.call(t)}function B(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(S(o)&&(o=Object({NODE_ENV:"production",BASE_URL:"/"}).NODE_DEBUG||""),r=r.toUpperCase(),!s[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=t.pid;s[r]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",r,n,t)}}else s[r]=function(){};return s[r]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=g,e.isBoolean=y,e.isNull=b,e.isNullOrUndefined=w,e.isNumber=M,e.isString=_,e.isSymbol=k,e.isUndefined=S,e.isRegExp=x,e.isObject=E,e.isDate=A,e.isError=O,e.isFunction=T,e.isPrimitive=C,e.isBuffer=r("d60a");var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var t=new Date,e=[B(t.getHours()),B(t.getMinutes()),B(t.getSeconds())].join(":");return[t.getDate(),I[t.getMonth()],e].join(" ")}function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",R(),e.format.apply(e,arguments))},e.inherits=r("28a0"),e._extend=function(t,e){if(!e||!E(e))return t;var r=Object.keys(e),n=r.length;while(n--)t[r[n]]=e[r[n]];return t};var j="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function L(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}function U(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};e.apply(this,r).then((function(e){t.nextTick(s,null,e)}),(function(e){t.nextTick(L,e,s)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,n(e)),r}e.promisify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');if(j&&t[j]){var e=t[j];if("function"!==typeof e)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,j,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(s){r(s)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),j&&Object.defineProperty(e,j,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,n(t))},e.promisify.custom=j,e.callbackify=U}).call(this,r("f28c"))},"30b5":function(t,e,r){"use strict";var n=r("c532");function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var o;if(r)o=r(e);else if(n.isURLSearchParams(e))o=e.toString();else{var s=[];n.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))})))})),o=s.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},"31f4":function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},"320c":function(t,e,r){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function a(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==n.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(o){return!1}}t.exports=a()?Object.assign:function(t,e){for(var r,a,u=s(t),h=1;h<arguments.length;h++){for(var l in r=Object(arguments[h]),r)i.call(r,l)&&(u[l]=r[l]);if(n){a=n(r);for(var c=0;c<a.length;c++)o.call(r,a[c])&&(u[a[c]]=r[a[c]])}}return u}},3229:function(t,e,r){"use strict";var n,i=null;try{n=Function("return this")()}catch(o){n=window}"undefined"!==typeof n.ethereum?i=n.ethereum:"undefined"!==typeof n.web3&&n.web3.currentProvider&&(n.web3.currentProvider.sendAsync&&(n.web3.currentProvider.send=n.web3.currentProvider.sendAsync,delete n.web3.currentProvider.sendAsync),!n.web3.currentProvider.on&&n.web3.currentProvider.connection&&"ipcProviderWrapper"===n.web3.currentProvider.connection.constructor.name&&(n.web3.currentProvider.on=function(t,e){if("function"!==typeof e)throw new Error("The second parameter callback must be a function.");switch(t){case"data":this.connection.on("data",(function(t){var r="";t=t.toString();try{r=JSON.parse(t)}catch(o){return e(new Error("Couldn't parse response data"+t))}r.id||-1===r.method.indexOf("_subscription")||e(null,r)}));break;default:this.connection.on(t,e);break}}),i=n.web3.currentProvider),t.exports=i},"32e9":function(t,e,r){var n=r("86cc"),i=r("4630");t.exports=r("9e1e")?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},3300:function(t,e,r){"use strict";var n=r("f3a3"),i=r("80af"),o=r("3fb5"),s=r("ea53"),a=n.assert;function u(t){s.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(t,e,r,n){s.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(t,e,r,n){s.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,s),t.exports=u,u.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r,n;if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var o=this._getEndoRoots(this.p);e=o[0].cmp(o[1])<0?o[0]:o[1],e=e.toRed(this.red)}if(t.lambda)r=new i(t.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(e))?r=s[0]:(r=s[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return n=t.basis?t.basis.map((function(t){return{a:new i(t.a,16),b:new i(t.b,16)}})):this._getEndoBasis(r),{beta:e,lambda:r,basis:n}}},u.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),r=new i(2).toRed(e).redInvm(),n=r.redNeg(),o=new i(3).toRed(e).redNeg().redSqrt().redMul(r),s=n.redAdd(o).fromRed(),a=n.redSub(o).fromRed();return[s,a]},u.prototype._getEndoBasis=function(t){var e,r,n,o,s,a,u,h,l,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=t,d=this.n.clone(),p=new i(1),m=new i(0),v=new i(0),g=new i(1),y=0;while(0!==f.cmpn(0)){var b=d.div(f);h=d.sub(b.mul(f)),l=v.sub(b.mul(p));var w=g.sub(b.mul(m));if(!n&&h.cmp(c)<0)e=u.neg(),r=p,n=h.neg(),o=l;else if(n&&2===++y)break;u=h,d=f,f=h,v=p,p=l,g=m,m=w}s=h.neg(),a=l;var M=n.sqr().add(o.sqr()),_=s.sqr().add(a.sqr());return _.cmp(M)>=0&&(s=e,a=r),n.negative&&(n=n.neg(),o=o.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:n,b:o},{a:s,b:a}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),h=o.mul(n.b),l=t.sub(s).sub(a),c=u.add(h).neg();return{k1:l,k2:c}},u.prototype.pointFromX=function(t,e){t=new i(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(e&&!o||!e&&o)&&(n=n.redNeg()),this.point(t,n)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var s=this._endoSplit(e[o]),a=t[o],u=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),u=u.neg(!0)),n[2*o]=a,n[2*o+1]=u,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var h=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return h},o(h,s.BasePoint),u.prototype.point=function(t,e,r){return new h(this,t,e,r)},u.prototype.pointFromJSON=function(t,e){return h.fromJSON(this,t,e)},h.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},h.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},h.fromJSON=function(t,e,r){"string"===typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},h.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},h.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},h.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},h.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},h.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},h.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t},o(l,s.BasePoint),u.prototype.jpoint=function(t,e,r){return new l(this,t,e,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=a.redSqr(),l=h.redMul(a),c=n.redMul(h),f=u.redSqr().redIAdd(l).redISub(c).redISub(c),d=u.redMul(c.redISub(f)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(f,d,p)},l.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),h=u.redMul(s),l=r.redMul(u),c=a.redSqr().redIAdd(h).redISub(l).redISub(l),f=a.redMul(l.redISub(c)).redISub(i.redMul(h)),d=this.z.redMul(s);return this.curve.jpoint(c,f,d)},l.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}var n=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,u=a.redSqr().redSqr(),h=s.redAdd(s);for(r=0;r<t;r++){var l=o.redSqr(),c=h.redSqr(),f=c.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(c),m=d.redSqr().redISub(p.redAdd(p)),v=p.redISub(m),g=d.redMul(v);g=g.redIAdd(g).redISub(f);var y=h.redMul(a);r+1<t&&(u=u.redMul(f)),o=m,a=y,h=g}return this.curve.jpoint(o,h.redMul(i),a)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),u=a.redSqr().redISub(s).redISub(s),h=o.redIAdd(o);h=h.redIAdd(h),h=h.redIAdd(h),t=u,e=a.redMul(s.redISub(u)).redISub(h),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),c=this.y.redSqr(),f=c.redSqr(),d=this.x.redAdd(c).redSqr().redISub(l).redISub(f);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),v=f.redIAdd(f);v=v.redIAdd(v),v=v.redIAdd(v),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(v),r=this.y.redMul(this.z),r=r.redIAdd(r)}return this.curve.jpoint(t,e,r)},l.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=a.redSqr().redISub(s).redISub(s);t=u;var h=o.redIAdd(o);h=h.redIAdd(h),h=h.redIAdd(h),e=a.redMul(s.redISub(u)).redISub(h),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),c=this.y.redSqr(),f=this.x.redMul(c),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=f.redIAdd(f);p=p.redIAdd(p);var m=p.redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(c).redISub(l);var v=c.redSqr();v=v.redIAdd(v),v=v.redIAdd(v),v=v.redIAdd(v),e=d.redMul(p.redISub(t)).redISub(v)}return this.curve.jpoint(t,e,r)},l.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e);u=u.redIAdd(u);var h=u.redMul(s),l=a.redSqr().redISub(h.redAdd(h)),c=h.redISub(l),f=s.redSqr();f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var d=a.redMul(c).redISub(f),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),s=this.x.redAdd(e).redSqr().redISub(t).redISub(n);s=s.redIAdd(s),s=s.redAdd(s).redIAdd(s),s=s.redISub(o);var a=s.redSqr(),u=n.redIAdd(n);u=u.redIAdd(u),u=u.redIAdd(u),u=u.redIAdd(u);var h=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(u),l=e.redMul(h);l=l.redIAdd(l),l=l.redIAdd(l);var c=this.x.redMul(a).redISub(l);c=c.redIAdd(c),c=c.redIAdd(c);var f=this.y.redMul(h.redMul(u.redISub(h)).redISub(s.redMul(a)));f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var d=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(c,f,d)},l.prototype.mul=function(t,e){return t=new i(t,e),this.curve._wnafMul(this,t)},l.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},l.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},3337:function(t,e,r){"use strict";var n=e;n.version=r("2801").version,n.utils=r("f3a3"),n.rand=r("fdac"),n.curve=r("4136"),n.curves=r("0cbb"),n.ec=r("b9a8"),n.eddsa=r("945d")},"334a":function(t,e,r){e=t.exports=r("4250"),e.Stream=e,e.Readable=e,e.Writable=r("19ea"),e.Duplex=r("e666"),e.Transform=r("09dc"),e.PassThrough=r("0ae3"),e.finished=r("ee93"),e.pipeline=r("fbd5")},"33a0":function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);t.exports=function(){return r(n),n}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0===(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},"33a4":function(t,e,r){var n=r("84f2"),i=r("2b4c")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},"33fb":function(t,e,r){var n=function(){throw"This swarm.js function isn't available on the browser."},i={readFile:n},o={download:n,safeDownloadArchived:n,directoryTree:n},s={platform:n,arch:n},a={join:n,slice:n},u={spawn:n},h={lookup:n},l={},c=null,f=r("aaa4"),d=r("73f3"),p=r("69dc"),m=r("e2aa"),v=r("aad6");t.exports=v({fs:i,files:o,os:s,path:a,child_process:u,defaultArchives:l,mimetype:h,request:f,downloadUrl:c,bytes:d,hash:p,pick:m})},"343e":function(t,e,r){var n=e;n.der=r("3768"),n.pem=r("85b3")},"34d5":function(t,e,r){e=t.exports=r("cf35"),e.Stream=e,e.Readable=e,e.Writable=r("49ce"),e.Duplex=r("5e7d"),e.Transform=r("f1c8"),e.PassThrough=r("9d28"),e.finished=r("42a7"),e.pipeline=r("ac4f")},"34ef":function(t,e,r){r("ec30")("Uint8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},3505:function(t,e,r){var n=r("8707").Buffer,i=r("8c8a");function o(t,e,r){var o=e.length,s=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=n.concat([t._prev,r?e:s]),s}e.encrypt=function(t,e,r){var i,s=n.allocUnsafe(0);while(e.length){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){s=n.concat([s,o(t,e,r)]);break}i=t._cache.length,s=n.concat([s,o(t,e.slice(0,i),r)]),e=e.slice(i)}return s}},"354e":function(t,e,r){"use strict";const{Buffer:n}=r("b639"),i=r("61e0"),o=r("2612"),s=r("479a");function a(t){e.decode(t)}e.names=s.names,e.codes=s.codes,e.defaultLengths=s.defaultLengths,e.toHexString=function(t){if(!n.isBuffer(t))throw new Error("must be passed a buffer");return t.toString("hex")},e.fromHexString=function(t){return n.from(t,"hex")},e.toB58String=function(t){if(!n.isBuffer(t))throw new Error("must be passed a buffer");return i.encode("base58btc",t).toString().slice(1)},e.fromB58String=function(t){let e=t;return n.isBuffer(t)&&(e=t.toString()),i.decode("z"+e)},e.decode=function(t){if(!n.isBuffer(t))throw new Error("multihash must be a Buffer");if(t.length<2)throw new Error("multihash too short. must be > 2 bytes.");const r=o.decode(t);if(!e.isValidCode(r))throw new Error("multihash unknown function code: 0x"+r.toString(16));t=t.slice(o.decode.bytes);const i=o.decode(t);if(i<0)throw new Error("multihash invalid length: "+i);if(t=t.slice(o.decode.bytes),t.length!==i)throw new Error("multihash length inconsistent: 0x"+t.toString("hex"));return{code:r,name:s.codes[r],length:i,digest:t}},e.encode=function(t,r,i){if(!t||void 0===r)throw new Error("multihash encode requires at least two args: digest, code");const s=e.coerceCode(r);if(!n.isBuffer(t))throw new Error("digest should be a Buffer");if(null==i&&(i=t.length),i&&t.length!==i)throw new Error("digest length should be equal to specified length.");return n.concat([n.from(o.encode(s)),n.from(o.encode(i)),t])},e.coerceCode=function(t){let r=t;if("string"===typeof t){if(void 0===s.names[t])throw new Error("Unrecognized hash function named: "+t);r=s.names[t]}if("number"!==typeof r)throw new Error("Hash function code should be a number. Got: "+r);if(void 0===s.codes[r]&&!e.isAppCode(r))throw new Error("Unrecognized function code: "+r);return r},e.isAppCode=function(t){return t>0&&t<16},e.isValidCode=function(t){return!!e.isAppCode(t)||!!s.codes[t]},e.validate=a,e.prefix=function(t){return a(t),t.slice(0,2)}},"35a8":function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r("6f5a"),i=r("5273");function o(t){return Object(n["a"])(Object(i["c"])(t))}},"35e8":function(t,e,r){"use strict";t.exports={isString:function(t){return"string"===typeof t},isObject:function(t){return"object"===typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},"361f":function(t){t.exports=JSON.parse('{"name":"EIP-2929","comment":"Gas cost increases for state access opcodes","url":"https://eips.ethereum.org/EIPS/eip-2929","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{"coldsload":{"v":2100,"d":"Gas cost of the first read of storage from a given location (per transaction)"},"coldaccountaccess":{"v":2600,"d":"Gas cost of the first read of a given address (per transaction)"},"warmstorageread":{"v":100,"d":"Gas cost of reading storage locations which have already loaded \'cold\'"},"sstoreCleanGasEIP2200":{"v":2900,"d":"Once per SSTORE operation from clean non-zero to something else"},"sstoreNoopGasEIP2200":{"v":100,"d":"Once per SSTORE operation if the value doesn\'t change"},"sstoreDirtyGasEIP2200":{"v":100,"d":"Once per SSTORE operation if a dirty value is changed"},"sstoreInitRefundEIP2200":{"v":19900,"d":"Once per SSTORE operation for resetting to the original zero value"},"sstoreCleanRefundEIP2200":{"v":4900,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"call":{"v":0,"d":"Base fee of the CALL opcode"},"callcode":{"v":0,"d":"Base fee of the CALLCODE opcode"},"delegatecall":{"v":0,"d":"Base fee of the DELEGATECALL opcode"},"staticcall":{"v":0,"d":"Base fee of the STATICCALL opcode"},"balance":{"v":0,"d":"Base fee of the BALANCE opcode"},"extcodesize":{"v":0,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":0,"d":"Base fee of the EXTCODECOPY opcode"},"extcodehash":{"v":0,"d":"Base fee of the EXTCODEHASH opcode"},"sload":{"v":0,"d":"Base fee of the SLOAD opcode"},"sstore":{"v":0,"d":"Base fee of the SSTORE opcode"}},"vm":{},"pow":{}}')},3667:function(t,e,r){
/*!
* v2.1.4-104-gc868b3a
*
*/
(function(e,r){t.exports=r()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=7)}([function(t,e,r){"use strict";r.d(e,"j",(function(){return i})),r.d(e,"d",(function(){return o})),r.d(e,"c",(function(){return s})),r.d(e,"h",(function(){return a})),r.d(e,"b",(function(){return u})),r.d(e,"k",(function(){return h})),r.d(e,"e",(function(){return l})),r.d(e,"g",(function(){return c})),r.d(e,"i",(function(){return f})),r.d(e,"a",(function(){return d})),r.d(e,"f",(function(){return p}));var n=r(1),i=h((function(t,e){var r=e.length;return h((function(n){for(var i=0;i<n.length;i++)e[r+i]=n[i];return e.length=r+n.length,t.apply(this,e)}))}));h((function(t){var e=Object(n["c"])(t);function r(t,e){return[u(t,e)]}return h((function(t){return Object(n["f"])(r,t,e)[0]}))}));function o(t,e){return function(){return t.call(this,e.apply(this,arguments))}}function s(t){return function(e){return e[t]}}var a=h((function(t){return h((function(e){for(var r,n=0;n<s("length")(t);n++)if(r=u(e,t[n]),r)return r}))}));function u(t,e){return e.apply(void 0,t)}function h(t){var e=t.length-1,r=Array.prototype.slice;if(0===e)return function(){return t.call(this,r.call(arguments))};if(1===e)return function(){return t.call(this,arguments[0],r.call(arguments,1))};var n=Array(t.length);return function(){for(var i=0;i<e;i++)n[i]=arguments[i];return n[e]=r.call(arguments,e),t.apply(this,n)}}function l(t){return function(e,r){return t(r,e)}}function c(t,e){return function(r){return t(r)&&e(r)}}function f(){}function d(){return!0}function p(t){return function(){return t}}},function(t,e,r){"use strict";r.d(e,"d",(function(){return i})),r.d(e,"g",(function(){return s})),r.d(e,"l",(function(){return a})),r.d(e,"c",(function(){return u})),r.d(e,"h",(function(){return h})),r.d(e,"i",(function(){return l})),r.d(e,"j",(function(){return c})),r.d(e,"f",(function(){return f})),r.d(e,"m",(function(){return d})),r.d(e,"a",(function(){return p})),r.d(e,"b",(function(){return m})),r.d(e,"k",(function(){return v})),r.d(e,"e",(function(){return g}));var n=r(0);function i(t,e){return[t,e]}var o=null,s=Object(n["c"])(0),a=Object(n["c"])(1);function u(t){return v(t.reduce(Object(n["e"])(i),o))}var h=Object(n["k"])(u);function l(t){return f((function(t,e){return t.unshift(e),t}),[],t)}function c(t,e){return e?i(t(s(e)),c(t,a(e))):o}function f(t,e,r){return r?t(f(t,e,a(r)),s(r)):e}function d(t,e,r){return u(t,r||n["i"]);function u(t,r){return t?e(s(t))?(r(s(t)),a(t)):i(s(t),u(a(t),r)):o}}function p(t,e){return!e||t(s(e))&&p(t,a(e))}function m(t,e){t&&(s(t).apply(null,e),m(a(t),e))}function v(t){function e(t,r){return t?e(a(t),i(s(t),r)):r}return e(t,o)}function g(t,e){return e&&(t(s(e))?s(e):g(t,a(e)))}},function(t,e,r){"use strict";r.d(e,"c",(function(){return o})),r.d(e,"e",(function(){return s})),r.d(e,"d",(function(){return a})),r.d(e,"a",(function(){return u})),r.d(e,"b",(function(){return h}));var n=r(1),i=r(0);function o(t,e){return e&&e.constructor===t}var s=Object(i["c"])("length"),a=Object(i["j"])(o,String);function u(t){return void 0!==t}function h(t,e){return e instanceof Object&&Object(n["a"])((function(t){return t in e}),t)}},function(t,e,r){"use strict";r.d(e,"f",(function(){return i})),r.d(e,"d",(function(){return o})),r.d(e,"g",(function(){return s})),r.d(e,"e",(function(){return a})),r.d(e,"b",(function(){return u})),r.d(e,"h",(function(){return h})),r.d(e,"i",(function(){return l})),r.d(e,"c",(function(){return c})),r.d(e,"m",(function(){return f})),r.d(e,"n",(function(){return d})),r.d(e,"a",(function(){return p})),r.d(e,"j",(function(){return m})),r.d(e,"l",(function(){return v})),r.d(e,"k",(function(){return g})),r.d(e,"o",(function(){return y}));var n=1,i=n++,o=n++,s=n++,a=n++,u="fail",h=n++,l=n++,c="start",f="data",d="end",p=n++,m=n++,v=n++,g=n++;function y(t,e,r){try{var n=JSON.parse(e)}catch(i){}return{statusCode:t,body:e,jsonBody:n,thrown:r}}},function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"a",(function(){return o})),r.d(e,"c",(function(){return s}));var n=r(0);function i(t,e){return{key:t,node:e}}var o=Object(n["c"])("key"),s=Object(n["c"])("node")},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(1),i=r(0),o=r(2),s=r(8),a=r(9);function u(t){var e=Object(n["h"])("resume","pause","pipe"),r=Object(i["j"])(o["b"],e);return t?r(t)||Object(o["d"])(t)?Object(s["a"])(a["a"],t):Object(s["a"])(a["a"],t.url,t.method,t.body,t.headers,t.withCredentials,t.cached):Object(a["a"])()}u.drop=function(){return u.drop}},function(t,e,r){"use strict";r.d(e,"b",(function(){return u})),r.d(e,"a",(function(){return a}));var n=r(3),i=r(4),o=r(2),s=r(1),a={};function u(t){var e=t(n["f"]).emit,r=t(n["d"]).emit,u=t(n["i"]).emit,h=t(n["h"]).emit;function l(t,e){var r=Object(i["c"])(Object(s["g"])(t));return Object(o["c"])(Array,r)?d(t,Object(o["e"])(r),e):t}function c(t,e){if(!t)return u(e),d(t,a,e);var r=l(t,e),n=Object(s["l"])(r),o=Object(i["a"])(Object(s["g"])(r));return f(n,o,e),Object(s["d"])(Object(i["b"])(o,e),n)}function f(t,e,r){Object(i["c"])(Object(s["g"])(t))[e]=r}function d(t,r,n){t&&f(t,r,n);var o=Object(s["d"])(Object(i["b"])(r,n),t);return e(o),o}function p(t){return r(t),Object(s["l"])(t)||h(Object(i["c"])(Object(s["g"])(t)))}var m={};return m[n["l"]]=c,m[n["k"]]=p,m[n["j"]]=d,m}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(5);e["default"]=n["a"]},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(2);function i(t,e,r,i,o,s,a){function u(t,e){return!1===e&&(-1===t.indexOf("?")?t+="?":t+="&",t+="_="+(new Date).getTime()),t}return o=o?JSON.parse(JSON.stringify(o)):{},i?(Object(n["d"])(i)||(i=JSON.stringify(i),o["Content-Type"]=o["Content-Type"]||"application/json"),o["Content-Length"]=o["Content-Length"]||i.length):i=null,t(r||"GET",u(e,a),i,o,s||!1)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(10),i=r(12),o=r(6),s=r(13),a=r(14),u=r(16),h=r(17),l=r(18);function c(t,e,r,c,f){var d=Object(n["a"])();return e&&Object(l["b"])(d,Object(l["a"])(),t,e,r,c,f),Object(h["a"])(d),Object(i["a"])(d,Object(o["b"])(d)),Object(s["a"])(d,a["a"]),Object(u["a"])(d,e)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(11),i=r(0);function o(){var t={},e=o("newListener"),r=o("removeListener");function o(i){return t[i]=Object(n["a"])(i,e,r),t[i]}function s(e){return t[e]||o(e)}return["emit","on","un"].forEach((function(t){s[t]=Object(i["k"])((function(e,r){Object(i["b"])(r,s(e)[t])}))})),s}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(1),i=r(2),o=r(0);function s(t,e,r){var s,a;function u(t){return function(e){return e.id===t}}return{on:function(r,i){var o={listener:r,id:i||r};return e&&e.emit(t,r,o.id),s=Object(n["d"])(o,s),a=Object(n["d"])(r,a),this},emit:function(){Object(n["b"])(a,arguments)},un:function(e){var i;s=Object(n["m"])(s,u(e),(function(t){i=t})),i&&(a=Object(n["m"])(a,(function(t){return t===i.listener})),r&&r.emit(t,i.listener,i.id))},listeners:function(){return a},hasListener:function(t){var e=t?u(t):o["a"];return Object(i["a"])(Object(n["e"])(e,s))}}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(4),i=r(3),o=r(1);function s(t,e){var r,s={};function a(t){return function(e){r=t(r,e)}}for(var u in e)t(u).on(a(e[u]),s);t(i["g"]).on((function(t){var e,i=Object(o["g"])(r),s=Object(n["a"])(i),a=Object(o["l"])(r);a&&(e=Object(n["c"])(Object(o["g"])(a)),e[s]=t)})),t(i["e"]).on((function(){var t,e=Object(o["g"])(r),i=Object(n["a"])(e),s=Object(o["l"])(r);s&&(t=Object(n["c"])(Object(o["g"])(s)),delete t[i])})),t(i["a"]).on((function(){for(var r in e)t(r).un(s)}))}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(3),i=r(1),o=r(4);function s(t,e){var r={node:t(n["d"]),path:t(n["f"])};function s(t,e,r){var n=Object(i["k"])(r);t(e,Object(i["i"])(Object(i["l"])(Object(i["j"])(o["a"],n))),Object(i["i"])(Object(i["j"])(o["c"],n)))}function a(e,r,n){var i=t(e).emit;r.on((function(t){var e=n(t);!1!==e&&s(i,Object(o["c"])(e),t)}),e),t("removeListener").on((function(n){n===e&&(t(n).listeners()||r.un(e))}))}t("newListener").on((function(t){var n=/(node|path):(.*)/.exec(t);if(n){var i=r[n[1]];i.hasListener(t)||a(t,i,e(n[2]))}}))}},function(t,e,r){"use strict";r.d(e,"a",(function(){return h}));var n=r(0),i=r(1),o=r(4),s=r(2),a=r(6),u=r(15),h=Object(u["a"])((function(t,e,r,u,h){var l=1,c=2,f=3,d=Object(n["d"])(o["a"],i["g"]),p=Object(n["d"])(o["c"],i["g"]);function m(t,e){var r=e[c],i=r&&"*"!==r?function(t){return String(d(t))===r}:n["a"];return Object(n["g"])(i,t)}function v(t,e){var r=e[f];if(!r)return t;var o=Object(n["j"])(s["b"],Object(i["c"])(r.split(/\W+/))),a=Object(n["d"])(o,p);return Object(n["g"])(a,t)}function g(t,e){var r=!!e[l];return r?Object(n["g"])(t,i["g"]):t}function y(t){if(t===n["a"])return n["a"];function e(t){return d(t)!==a["a"]}return Object(n["g"])(e,Object(n["d"])(t,i["l"]))}function b(t){if(t===n["a"])return n["a"];var e=w(),r=t,i=y((function(t){return o(t)})),o=Object(n["h"])(e,r,i);return o}function w(){return function(t){return d(t)===a["a"]}}function M(t){return function(e){var r=t(e);return!0===r?Object(i["g"])(e):r}}function _(t,e,r){return Object(i["f"])((function(t,e){return e(t,r)}),e,t)}function k(t,e,r,n,i){var o=t(r);if(o){var a=_(e,n,o),u=r.substr(Object(s["e"])(o[0]));return i(u,a)}}function S(t,e){return Object(n["j"])(k,t,e)}var x=Object(n["h"])(S(t,Object(i["h"])(g,v,m,y)),S(e,Object(i["h"])(b)),S(r,Object(i["h"])()),S(u,Object(i["h"])(g,w)),S(h,Object(i["h"])(M)),(function(t){throw Error('"'+t+'" could not be tokenised')}));function E(t,e){return e}function A(t,e){var r=t?A:E;return x(t,e,r)}return function(t){try{return A(t,n["a"])}catch(e){throw Error('Could not compile "'+t+'" because '+e.message)}}}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(0),i=function(){var t=function(t){return t.exec.bind(t)},e=Object(n["k"])((function(e){return e.unshift(/^/),t(RegExp(e.map(Object(n["c"])("source")).join("")))})),r=/(\$?)/,i=/([\w-_]+|\*)/,o=/()/,s=/\["([^"]+)"\]/,a=/\[(\d+|\*)\]/,u=/{([\w ]*?)}/,h=/(?:{([\w ]*?)})?/,l=e(r,i,h),c=e(r,s,h),f=e(r,a,h),d=e(r,o,u),p=e(/\.\./),m=e(/\./),v=e(r,/!/),g=e(/$/);return function(t){return t(Object(n["h"])(l,c,f,d),p,m,v,g)}}()},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(3),i=r(0),o=r(2),s=r(5);function a(t,e){var r,a=/^(node|path):./,u=t(n["h"]),h=t(n["e"]).emit,l=t(n["g"]).emit,c=Object(i["k"])((function(e,n){if(r[e])Object(i["b"])(n,r[e]);else{var o=t(e),s=n[0];a.test(e)?p(o,g(s)):o.on(s)}return r})),f=function(e,n,i){if("done"===e)u.un(n);else if("node"===e||"path"===e)t.un(e+":"+n,i);else{var o=n;t(e).un(o)}return r};function d(e,n){return t(e).on(m(n),n),r}function p(t,e,n){n=n||e;var o=m(e);return t.on((function(){var e=!1;r.forget=function(){e=!0},Object(i["b"])(arguments,o),delete r.forget,e&&t.un(n)}),n),r}function m(t){return function(){try{return t.apply(r,arguments)}catch(e){setTimeout((function(){throw new Error(e.message)}))}}}function v(e,r){return t(e+":"+r)}function g(t){return function(){var e=t.apply(this,arguments);Object(o["a"])(e)&&(e===s["a"].drop?h():l(e))}}function y(t,e,r){var n;n="node"===t?g(r):r,p(v(t,e),n,r)}function b(t,e){for(var r in e)y(t,r,e[r])}function w(t,e,n){return Object(o["d"])(e)?y(t,e,n):b(t,e),r}return t(n["i"]).on((function(t){r.root=Object(i["f"])(t)})),t(n["c"]).on((function(t,e){r.header=function(t){return t?e[t]:e}})),r={on:c,addListener:c,removeListener:f,emit:t.emit,node:Object(i["j"])(w,"node"),path:Object(i["j"])(w,"path"),done:Object(i["j"])(p,u),start:Object(i["j"])(d,n["c"]),fail:t(n["b"]).on,abort:t(n["a"]).emit,header:i["i"],root:i["i"],source:e},r}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(3);function i(t){var e,r,i,o,s=t(n["j"]).emit,a=t(n["l"]).emit,u=t(n["k"]).emit,h=t(n["b"]).emit,l=65536,c=/[\\"\n]/g,f=0,d=f++,p=f++,m=f++,v=f++,g=f++,y=f++,b=f++,w=f++,M=f++,_=f++,k=f++,S=f++,x=f++,E=f++,A=f++,O=f++,T=f++,C=f++,P=f++,B=f++,I=f,R=l,N="",j=!1,L=!1,U=d,D=[],F=null,z=0,q=0,H=0,$=0,V=1;function K(){var t=0;void 0!==o&&o.length>l&&(W("Max buffer length exceeded: textNode"),t=Math.max(t,o.length)),N.length>l&&(W("Max buffer length exceeded: numberNode"),t=Math.max(t,N.length)),R=l-t+H}function W(t){void 0!==o&&(a(o),u(),o=void 0),e=Error(t+"\nLn: "+V+"\nCol: "+$+"\nChr: "+r),h(Object(n["o"])(void 0,void 0,e))}function G(){if(U===d)return a({}),u(),void(L=!0);U===p&&0===q||W("Unexpected end"),void 0!==o&&(a(o),u(),o=void 0),L=!0}function Z(t){return"\r"===t||"\n"===t||" "===t||"\t"===t}function J(t){if(!e){if(L)return W("Cannot write after close");var n=0;r=t[0];while(r){if(n>0&&(i=r),r=t[n++],!r)break;switch(H++,"\n"===r?(V++,$=0):$++,U){case d:if("{"===r)U=m;else if("["===r)U=g;else if(!Z(r))return W("Non-whitespace before {[.");continue;case w:case m:if(Z(r))continue;if(U===w)D.push(M);else{if("}"===r){a({}),u(),U=D.pop()||p;continue}D.push(v)}if('"'!==r)return W('Malformed object key should start with " ');U=b;continue;case M:case v:if(Z(r))continue;if(":"===r)U===v?(D.push(v),void 0!==o&&(a({}),s(o),o=void 0),q++):void 0!==o&&(s(o),o=void 0),U=p;else if("}"===r)void 0!==o&&(a(o),u(),o=void 0),u(),q--,U=D.pop()||p;else{if(","!==r)return W("Bad object");U===v&&D.push(v),void 0!==o&&(a(o),u(),o=void 0),U=w}continue;case g:case p:if(Z(r))continue;if(U===g){if(a([]),q++,U=p,"]"===r){u(),q--,U=D.pop()||p;continue}D.push(y)}if('"'===r)U=b;else if("{"===r)U=m;else if("["===r)U=g;else if("t"===r)U=_;else if("f"===r)U=x;else if("n"===r)U=T;else if("-"===r)N+=r;else if("0"===r)N+=r,U=I;else{if(-1==="123456789".indexOf(r))return W("Bad value");N+=r,U=I}continue;case y:if(","===r)D.push(y),void 0!==o&&(a(o),u(),o=void 0),U=p;else{if("]"!==r){if(Z(r))continue;return W("Bad array")}void 0!==o&&(a(o),u(),o=void 0),u(),q--,U=D.pop()||p}continue;case b:void 0===o&&(o="");var h=n-1;t:while(1){while(z>0)if(F+=r,r=t.charAt(n++),4===z?(o+=String.fromCharCode(parseInt(F,16)),z=0,h=n-1):z++,!r)break t;if('"'===r&&!j){U=D.pop()||p,o+=t.substring(h,n-1);break}if("\\"===r&&!j&&(j=!0,o+=t.substring(h,n-1),r=t.charAt(n++),!r))break;if(j){if(j=!1,"n"===r?o+="\n":"r"===r?o+="\r":"t"===r?o+="\t":"f"===r?o+="\f":"b"===r?o+="\b":"u"===r?(z=1,F=""):o+=r,r=t.charAt(n++),h=n-1,r)continue;break}c.lastIndex=n;var l=c.exec(t);if(!l){n=t.length+1,o+=t.substring(h,n-1);break}if(n=l.index+1,r=t.charAt(l.index),!r){o+=t.substring(h,n-1);break}}continue;case _:if(!r)continue;if("r"!==r)return W("Invalid true started with t"+r);U=k;continue;case k:if(!r)continue;if("u"!==r)return W("Invalid true started with tr"+r);U=S;continue;case S:if(!r)continue;if("e"!==r)return W("Invalid true started with tru"+r);a(!0),u(),U=D.pop()||p;continue;case x:if(!r)continue;if("a"!==r)return W("Invalid false started with f"+r);U=E;continue;case E:if(!r)continue;if("l"!==r)return W("Invalid false started with fa"+r);U=A;continue;case A:if(!r)continue;if("s"!==r)return W("Invalid false started with fal"+r);U=O;continue;case O:if(!r)continue;if("e"!==r)return W("Invalid false started with fals"+r);a(!1),u(),U=D.pop()||p;continue;case T:if(!r)continue;if("u"!==r)return W("Invalid null started with n"+r);U=C;continue;case C:if(!r)continue;if("l"!==r)return W("Invalid null started with nu"+r);U=P;continue;case P:if(!r)continue;if("l"!==r)return W("Invalid null started with nul"+r);a(null),u(),U=D.pop()||p;continue;case B:if("."!==r)return W("Leading zero not followed by .");N+=r,U=I;continue;case I:if(-1!=="0123456789".indexOf(r))N+=r;else if("."===r){if(-1!==N.indexOf("."))return W("Invalid number has two dots");N+=r}else if("e"===r||"E"===r){if(-1!==N.indexOf("e")||-1!==N.indexOf("E"))return W("Invalid number has two exponential");N+=r}else if("+"===r||"-"===r){if("e"!==i&&"E"!==i)return W("Invalid symbol in number");N+=r}else N&&(a(parseFloat(N)),u(),N=""),n--,U=D.pop()||p;continue;default:return W("Unknown state: "+U)}}H>=R&&K()}}t(n["m"]).on(J),t(n["n"]).on(G)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return u})),r.d(e,"b",(function(){return h}));var n=r(19),i=r(3),o=r(2),s=r(20),a=r(0);function u(){return new XMLHttpRequest}function h(t,e,r,u,h,l,c){var f=t(i["m"]).emit,d=t(i["b"]).emit,p=0,m=!0;function v(){if("2"===String(e.status)[0]){var t=e.responseText,r=(" "+t.substr(p)).substr(1);r&&f(r),p=Object(o["e"])(t)}}function g(e){try{m&&t(i["c"]).emit(e.status,Object(s["a"])(e.getAllResponseHeaders())),m=!1}catch(r){}}t(i["a"]).on((function(){e.onreadystatechange=null,e.abort()})),"onprogress"in e&&(e.onprogress=v),e.onreadystatechange=function(){switch(e.readyState){case 2:case 3:return g(e);case 4:g(e);var r="2"===String(e.status)[0];r?(v(),t(i["n"]).emit()):d(Object(i["o"])(e.status,e.responseText))}};try{for(var y in e.open(r,u,!0),l)e.setRequestHeader(y,l[y]);Object(n["a"])(window.location,Object(n["b"])(u))||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=c,e.send(h)}catch(b){window.setTimeout(Object(a["j"])(d,Object(i["o"])(void 0,void 0,b)),0)}}},function(t,e,r){"use strict";function n(t,e){function r(t){return{"http:":80,"https:":443}[t]}function n(e){return String(e.port||r(e.protocol||t.protocol))}return!!(e.protocol&&e.protocol!==t.protocol||e.host&&e.host!==t.host||e.host&&n(e)!==n(t))}function i(t){var e=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/,r=e.exec(t)||[];return{protocol:r[1]||"",host:r[2]||"",port:r[3]||""}}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i}))},function(t,e,r){"use strict";function n(t){var e={};return t&&t.split("\r\n").forEach((function(t){var r=t.indexOf(": ");e[t.substring(0,r)]=t.substring(r+2)})),e}r.d(e,"a",(function(){return n}))}])["default"]}))},"36b5":function(t,e,r){"use strict";var n=[{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"resolver",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"label",type:"bytes32"},{name:"owner",type:"address"}],name:"setSubnodeOwner",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"ttl",type:"uint64"}],name:"setTTL",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"ttl",outputs:[{name:"",type:"uint64"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"resolver",type:"address"}],name:"setResolver",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"owner",type:"address"}],name:"setOwner",outputs:[],payable:!1,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"label",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"NewOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"resolver",type:"address"}],name:"NewResolver",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"ttl",type:"uint64"}],name:"NewTTL",type:"event"},{constant:!1,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"resolver",type:"address"},{internalType:"uint64",name:"ttl",type:"uint64"}],name:"setRecord",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"recordExists",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes32",name:"label",type:"bytes32"},{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"resolver",type:"address"},{internalType:"uint64",name:"ttl",type:"uint64"}],name:"setSubnodeRecord",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}];t.exports=n},"36bd":function(t,e,r){"use strict";var n=r("4bf8"),i=r("77f1"),o=r("9def");t.exports=function(t){var e=n(this),r=o(e.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,r),u=s>2?arguments[2]:void 0,h=void 0===u?r:i(u,r);while(h>a)e[a++]=t;return e}},3768:function(t,e,r){var n=r("3fb5"),i=r("b639").Buffer,o=r("7f7a"),s=o.base,a=o.constants.der;function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){s.Node.call(this,"der",t)}function l(t){return t<10?"0"+t:t}function c(t,e,r,n){var i;if("seqof"===t?t="seq":"setof"===t&&(t="set"),a.tagByName.hasOwnProperty(t))i=a.tagByName[t];else{if("number"!==typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);i=t}return i>=31?n.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=a.tagClassByName[r||"universal"]<<6,i)}t.exports=u,u.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(h,s.Node),h.prototype._encodeComposite=function(t,e,r,n){var o=c(t,e,r,this.reporter);if(n.length<128){var s=new i(2);return s[0]=o,s[1]=n.length,this._createEncoderBuffer([s,n])}for(var a=1,u=n.length;u>=256;u>>=8)a++;s=new i(2+a);s[0]=o,s[1]=128|a;u=1+a;for(var h=n.length;h>0;u--,h>>=8)s[u]=255&h;return this._createEncoderBuffer([s,n])},h.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var r=new i(2*t.length),n=0;n<t.length;n++)r.writeUInt16BE(t.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},h.prototype._encodeObjid=function(t,e,r){if("string"===typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s\.]+/g);for(var n=0;n<t.length;n++)t[n]|=0}else if(Array.isArray(t)){t=t.slice();for(n=0;n<t.length;n++)t[n]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!r){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var o=0;for(n=0;n<t.length;n++){var s=t[n];for(o++;s>=128;s>>=7)o++}var a=new i(o),u=a.length-1;for(n=t.length-1;n>=0;n--){s=t[n];a[u--]=127&s;while((s>>=7)>0)a[u--]=128|127&s}return this._createEncoderBuffer(a)},h.prototype._encodeTime=function(t,e){var r,n=new Date(t);return"gentime"===e?r=[l(n.getFullYear()),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?r=[l(n.getFullYear()%100),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(r,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(t,e){if("string"===typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!==typeof t&&!i.isBuffer(t)){var r=t.toArray();!t.sign&&128&r[0]&&r.unshift(0),t=new i(r)}if(i.isBuffer(t)){var n=t.length;0===t.length&&n++;var o=new i(n);return t.copy(o),0===t.length&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);n=1;for(var s=t;s>=256;s>>=8)n++;for(o=new Array(n),s=o.length-1;s>=0;s--)o[s]=255&t,t>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},h.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},h.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getEncoder("der").tree},h.prototype._skipDefault=function(t,e,r){var n,i=this._baseState;if(null===i["default"])return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i["default"],e,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},"37da":function(t,e,r){"use strict";(function(t,n){var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__assign||Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t};Object.defineProperty(e,"__esModule",{value:!0});var s=r("9490"),a=r("24f8"),u=r("3c43"),h=r("0b16"),l=r("a393"),c=r("f9e1"),f=r("65eb"),d=r("4633"),p=r("a6ca"),m=function(e){function r(n){void 0===n&&(n={});var i=e.call(this)||this;return i.UNSENT=r.UNSENT,i.OPENED=r.OPENED,i.HEADERS_RECEIVED=r.HEADERS_RECEIVED,i.LOADING=r.LOADING,i.DONE=r.DONE,i.onreadystatechange=null,i.readyState=r.UNSENT,i.response=null,i.responseText="",i.responseType="",i.status=0,i.statusText="",i.timeout=0,i.upload=new d.XMLHttpRequestUpload,i.responseUrl="",i.withCredentials=!1,i._method=null,i._url=null,i._sync=!1,i._headers={},i._loweredHeaders={},i._mimeOverride=null,i._request=null,i._response=null,i._responseParts=null,i._responseHeaders=null,i._aborting=null,i._error=null,i._loadedBytes=0,i._totalBytes=0,i._lengthComputable=!1,i._restrictedMethods={CONNECT:!0,TRACE:!0,TRACK:!0},i._restrictedHeaders={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0},i._privateHeaders={"set-cookie":!0,"set-cookie2":!0},i._userAgent="Mozilla/5.0 ("+u.type()+" "+u.arch()+") node.js/"+t.versions.node+" v8/"+t.versions.v8,i._anonymous=n.anon||!1,i}return i(r,e),r.prototype.open=function(t,e,n,i,o){if(void 0===n&&(n=!0),t=t.toUpperCase(),this._restrictedMethods[t])throw new r.SecurityError("HTTP method "+t+" is not allowed in XHR");var s=this._parseUrl(e,i,o);this.readyState===r.HEADERS_RECEIVED||(this.readyState,r.LOADING),this._method=t,this._url=s,this._sync=!n,this._headers={},this._loweredHeaders={},this._mimeOverride=null,this._setReadyState(r.OPENED),this._request=null,this._response=null,this.status=0,this.statusText="",this._responseParts=[],this._responseHeaders=null,this._loadedBytes=0,this._totalBytes=0,this._lengthComputable=!1},r.prototype.setRequestHeader=function(t,e){if(this.readyState!==r.OPENED)throw new r.InvalidStateError("XHR readyState must be OPENED");var n=t.toLowerCase();this._restrictedHeaders[n]||/^sec-/.test(n)||/^proxy-/.test(n)?console.warn('Refused to set unsafe header "'+t+'"'):(e=e.toString(),null!=this._loweredHeaders[n]?(t=this._loweredHeaders[n],this._headers[t]=this._headers[t]+", "+e):(this._loweredHeaders[n]=t,this._headers[t]=e))},r.prototype.send=function(t){if(this.readyState!==r.OPENED)throw new r.InvalidStateError("XHR readyState must be OPENED");if(this._request)throw new r.InvalidStateError("send() already called");switch(this._url.protocol){case"file:":return this._sendFile(t);case"http:":case"https:":return this._sendHttp(t);default:throw new r.NetworkError("Unsupported protocol "+this._url.protocol)}},r.prototype.abort=function(){null!=this._request&&(this._request.abort(),this._setError(),this._dispatchProgress("abort"),this._dispatchProgress("loadend"))},r.prototype.getResponseHeader=function(t){if(null==this._responseHeaders||null==t)return null;var e=t.toLowerCase();return this._responseHeaders.hasOwnProperty(e)?this._responseHeaders[t.toLowerCase()]:null},r.prototype.getAllResponseHeaders=function(){var t=this;return null==this._responseHeaders?"":Object.keys(this._responseHeaders).map((function(e){return e+": "+t._responseHeaders[e]})).join("\r\n")},r.prototype.overrideMimeType=function(t){if(this.readyState===r.LOADING||this.readyState===r.DONE)throw new r.InvalidStateError("overrideMimeType() not allowed in LOADING or DONE");this._mimeOverride=t.toLowerCase()},r.prototype.nodejsSet=function(t){if(this.nodejsHttpAgent=t.httpAgent||this.nodejsHttpAgent,this.nodejsHttpsAgent=t.httpsAgent||this.nodejsHttpsAgent,t.hasOwnProperty("baseUrl")){if(null!=t.baseUrl){var e=h.parse(t.baseUrl,!1,!0);if(!e.protocol)throw new r.SyntaxError("baseUrl must be an absolute URL")}this.nodejsBaseUrl=t.baseUrl}},r.nodejsSet=function(t){r.prototype.nodejsSet(t)},r.prototype._setReadyState=function(t){this.readyState=t,this.dispatchEvent(new l.ProgressEvent("readystatechange"))},r.prototype._sendFile=function(t){throw new Error("Protocol file: not implemented")},r.prototype._sendHttp=function(t){if(this._sync)throw new Error("Synchronous XHR processing not implemented");!t||"GET"!==this._method&&"HEAD"!==this._method?t=t||"":(console.warn("Discarding entity body for "+this._method+" requests"),t=null),this.upload._setData(t),this._finalizeHeaders(),this._sendHxxpRequest()},r.prototype._sendHxxpRequest=function(){var t=this;if(this.withCredentials){var e=r.cookieJar.getCookies(p.CookieAccessInfo(this._url.hostname,this._url.pathname,"https:"===this._url.protocol)).toValueString();this._headers.cookie=this._headers.cookie2=e}var n="http:"===this._url.protocol?[s,this.nodejsHttpAgent]:[a,this.nodejsHttpsAgent],i=n[0],o=n[1],u=i.request.bind(i),h=u({hostname:this._url.hostname,port:+this._url.port,path:this._url.path,auth:this._url.auth,method:this._method,headers:this._headers,agent:o});this._request=h,this.timeout&&h.setTimeout(this.timeout,(function(){return t._onHttpTimeout(h)})),h.on("response",(function(e){return t._onHttpResponse(h,e)})),h.on("error",(function(e){return t._onHttpRequestError(h,e)})),this.upload._startUpload(h),this._request===h&&this._dispatchProgress("loadstart")},r.prototype._finalizeHeaders=function(){this._headers=o({},this._headers,{Connection:"keep-alive",Host:this._url.host,"User-Agent":this._userAgent},this._anonymous?{Referer:"about:blank"}:{}),this.upload._finalizeHeaders(this._headers,this._loweredHeaders)},r.prototype._onHttpResponse=function(t,e){var n=this;if(this._request===t){if(this.withCredentials&&(e.headers["set-cookie"]||e.headers["set-cookie2"])&&r.cookieJar.setCookies(e.headers["set-cookie"]||e.headers["set-cookie2"]),[301,302,303,307,308].indexOf(e.statusCode)>=0)return this._url=this._parseUrl(e.headers.location),this._method="GET",this._loweredHeaders["content-type"]&&(delete this._headers[this._loweredHeaders["content-type"]],delete this._loweredHeaders["content-type"]),null!=this._headers["Content-Type"]&&delete this._headers["Content-Type"],delete this._headers["Content-Length"],this.upload._reset(),this._finalizeHeaders(),void this._sendHxxpRequest();this._response=e,this._response.on("data",(function(t){return n._onHttpResponseData(e,t)})),this._response.on("end",(function(){return n._onHttpResponseEnd(e)})),this._response.on("close",(function(){return n._onHttpResponseClose(e)})),this.responseUrl=this._url.href.split("#")[0],this.status=e.statusCode,this.statusText=s.STATUS_CODES[this.status],this._parseResponseHeaders(e);var i=this._responseHeaders["content-length"]||"";this._totalBytes=+i,this._lengthComputable=!!i,this._setReadyState(r.HEADERS_RECEIVED)}},r.prototype._onHttpResponseData=function(t,e){this._response===t&&(this._responseParts.push(new n(e)),this._loadedBytes+=e.length,this.readyState!==r.LOADING&&this._setReadyState(r.LOADING),this._dispatchProgress("progress"))},r.prototype._onHttpResponseEnd=function(t){this._response===t&&(this._parseResponse(),this._request=null,this._response=null,this._setReadyState(r.DONE),this._dispatchProgress("load"),this._dispatchProgress("loadend"))},r.prototype._onHttpResponseClose=function(t){if(this._response===t){var e=this._request;this._setError(),e.abort(),this._setReadyState(r.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend")}},r.prototype._onHttpTimeout=function(t){this._request===t&&(this._setError(),t.abort(),this._setReadyState(r.DONE),this._dispatchProgress("timeout"),this._dispatchProgress("loadend"))},r.prototype._onHttpRequestError=function(t,e){this._request===t&&(this._setError(),t.abort(),this._setReadyState(r.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend"))},r.prototype._dispatchProgress=function(t){var e=new r.ProgressEvent(t);e.lengthComputable=this._lengthComputable,e.loaded=this._loadedBytes,e.total=this._totalBytes,this.dispatchEvent(e)},r.prototype._setError=function(){this._request=null,this._response=null,this._responseHeaders=null,this._responseParts=null},r.prototype._parseUrl=function(t,e,r){var n=null==this.nodejsBaseUrl?t:h.resolve(this.nodejsBaseUrl,t),i=h.parse(n,!1,!0);i.hash=null;var o=(i.auth||"").split(":"),s=o[0],a=o[1];return(s||a||e||r)&&(i.auth=(e||s||"")+":"+(r||a||"")),i},r.prototype._parseResponseHeaders=function(t){for(var e in this._responseHeaders={},t.headers){var r=e.toLowerCase();this._privateHeaders[r]||(this._responseHeaders[r]=t.headers[e])}null!=this._mimeOverride&&(this._responseHeaders["content-type"]=this._mimeOverride)},r.prototype._parseResponse=function(){var t=n.concat(this._responseParts);switch(this._responseParts=null,this.responseType){case"json":this.responseText=null;try{this.response=JSON.parse(t.toString("utf-8"))}catch(o){this.response=null}return;case"buffer":return this.responseText=null,void(this.response=t);case"arraybuffer":this.responseText=null;for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),i=0;i<t.length;i++)r[i]=t[i];return void(this.response=e);case"text":default:try{this.responseText=t.toString(this._parseResponseEncoding())}catch(s){this.responseText=t.toString("binary")}this.response=this.responseText}},r.prototype._parseResponseEncoding=function(){return/;\s*charset=(.*)$/.exec(this._responseHeaders["content-type"]||"")[1]||"utf-8"},r.ProgressEvent=l.ProgressEvent,r.InvalidStateError=c.InvalidStateError,r.NetworkError=c.NetworkError,r.SecurityError=c.SecurityError,r.SyntaxError=c.SyntaxError,r.XMLHttpRequestUpload=d.XMLHttpRequestUpload,r.UNSENT=0,r.OPENED=1,r.HEADERS_RECEIVED=2,r.LOADING=3,r.DONE=4,r.cookieJar=p.CookieJar(),r}(f.XMLHttpRequestEventTarget);e.XMLHttpRequest=m,m.prototype.nodejsHttpAgent=s.globalAgent,m.prototype.nodejsHttpsAgent=a.globalAgent,m.prototype.nodejsBaseUrl=null}).call(this,r("f28c"),r("b639").Buffer)},"37e6":function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s=r(18).Buffer}catch(E){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var s=t.charCodeAt(o)-48;n<<=4,n|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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"],l=[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],c=[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){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?h[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=l[t],d=c[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:h[f-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function v(t,e,r){var n=new g;return n.mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?m(this,t,e):v(this,t,e),r},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},g.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=f(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(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 b(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 w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){S.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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(w,b),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,b),i(_,b),i(k,b),k.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}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 w;else if("p224"===t)e=new M;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("62e4")(t))},"380f":function(t,e,r){"use strict";var n=r("f3a3"),i=n.assert,o=n.parseBytes,s=n.cachedProperty;function a(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}a.fromPublic=function(t,e){return e instanceof a?e:new a(t,{pub:e})},a.fromSecret=function(t,e){return e instanceof a?e:new a(t,{secret:e})},a.prototype.secret=function(){return this._secret},s(a,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),s(a,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),s(a,"privBytes",(function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),s(a,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),s(a,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),s(a,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),a.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},a.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},a.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},a.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=a},3835:function(t,e,r){"use strict";function n(t){if(Array.isArray(t))return t}function i(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done);n=!0)if(r.push(s.value),e&&r.length===e)break}catch(u){i=!0,o=u}finally{try{n||null==a["return"]||a["return"]()}finally{if(i)throw o}}return r}}r.d(e,"a",(function(){return a}));var o=r("06c5");function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){return n(t)||i(t,e)||Object(o["a"])(t,e)||s()}},3846:function(t,e,r){r("9e1e")&&"g"!=/./g.flags&&r("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:r("0bfb")})},"386b":function(t,e,r){var n=r("5ca1"),i=r("79e5"),o=r("be13"),s=/"/g,a=function(t,e,r,n){var i=String(o(t)),a="<"+e;return""!==r&&(a+=" "+r+'="'+String(n).replace(s,"&quot;")+'"'),a+">"+i+"</"+e+">"};t.exports=function(t,e){var r={};r[t]=e(a),n(n.P+n.F*i((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",r)}},"386d":function(t,e,r){"use strict";var n=r("cb7c"),i=r("83a1"),o=r("5f1b");r("214f")("search",1,(function(t,e,r,s){return[function(r){var n=t(this),i=void 0==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=s(r,t,this);if(e.done)return e.value;var a=n(t),u=String(this),h=a.lastIndex;i(h,0)||(a.lastIndex=0);var l=o(a,u);return i(a.lastIndex,h)||(a.lastIndex=h),null===l?-1:l.index}]}))},3875:function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r("1325"),i=10;function o(t,e){return t>e&&t>i?"horizontal":e>t&&e>i?"vertical":""}var s={data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e=t.touches[0];this.deltaX=e.clientX<0?0:e.clientX-this.startX,this.deltaY=e.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||o(this.offsetX,this.offsetY)},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(t){var e=this.onTouchStart,r=this.onTouchMove,i=this.onTouchEnd;Object(n["b"])(t,"touchstart",e),Object(n["b"])(t,"touchmove",r),i&&(Object(n["b"])(t,"touchend",i),Object(n["b"])(t,"touchcancel",i))}}}},"387f":function(t,e,r){"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"38fd":function(t,e,r){var n=r("69a8"),i=r("4bf8"),o=r("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},3934:function(t,e,r){"use strict";var n=r("c532");t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(e){var r=n.isString(e)?i(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return function(){return!0}}()},3971:function(t){t.exports=JSON.parse('{"name":"EIP-2315","number":2315,"comment":"Simple subroutines for the EVM","url":"https://eips.ethereum.org/EIPS/eip-2315","status":"Draft","minimumHardfork":"istanbul","gasConfig":{},"gasPrices":{"beginsub":{"v":2,"d":"Base fee of the BEGINSUB opcode"},"returnsub":{"v":5,"d":"Base fee of the RETURNSUB opcode"},"jumpsub":{"v":10,"d":"Base fee of the JUMPSUB opcode"}},"vm":{},"pow":{}}')},"399f":function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(16).Buffer}catch(C){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function h(t,e,r,i){for(var o=0,s=0,a=Math.min(t.length,r),u=e;u<a;u++){var h=t.charCodeAt(u)-48;o*=i,s=h>=49?h-49+10:h>=17?h-17+10:h,n(h>=0&&s<i,"Invalid character"),o+=s}return o}function l(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,l=r;l<a;l+=n)u=h(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var c=1;for(u=h(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){l(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype._strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(C){o.prototype.inspect=c}else o.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[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];o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?f[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],l=p[t];r="";var c=this.clone();c.negative=0;while(!c.isZero()){var m=c.modrn(l).toString(t);c=c.idivn(l),r=c.isZero()?m+r:f[h-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};var m=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)};function v(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}function g(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=m(t,o),a="le"===e?"LE":"BE";return this["_toArrayLike"+a](s,i),s},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r++]=255&s,r<t.length&&(t[r++]=s>>8&255),r<t.length&&(t[r++]=s>>16&255),6===o?(r<t.length&&(t[r++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r<t.length){t[r++]=n;while(r<t.length)t[r++]=0}},o.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r--]=255&s,r>=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0){t[r--]=n;while(r>=0)t[r--]=0}},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var y=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function w(t,e,r){return b(t,e,r)}function M(t,e){this.x=t,this.y=e}Math.imul||(y=g),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?y(this,t,e):n<63?g(this,t,e):n<1024?b(this,t,e):w(this,t,e),r},M.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},M.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},M.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},M.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},M.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},M.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},M.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},M.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},M.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},M.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),w(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"===typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,s=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=s>>>26,this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=v(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 O(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function k(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 S(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function T(t){O.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)}k.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},k.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},k.prototype.split=function(t,e){t.iushrn(this.n,0,e)},k.prototype.imulK=function(t){return t.imul(this.k)},i(S,k),S.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},S.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(x,k),i(E,k),i(A,k),A.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];var e;if("k256"===t)e=new S;else if("p224"===t)e=new x;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return _[t]=e,e},O.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},O.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},O.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},O.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},O.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},O.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},O.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},O.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},O.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},O.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},O.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},O.prototype.isqr=function(t){return this.imul(t,t.clone())},O.prototype.sqr=function(t){return this.mul(t,t)},O.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},O.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},O.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},O.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},O.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new T(t)},i(T,O),T.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},T.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},T.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},T.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("62e4")(t))},"39a9":function(t,e,r){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var n=r("b639"),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,r){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"===typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},"39f5":function(t,e,r){var n=r("8707").Buffer;function i(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i<e;i++)r[i]=t.readUInt32BE(4*i);return r}function o(t){for(var e=0;e<t.length;t++)t[e]=0}function s(t,e,r,n,i){for(var o,s,a,u,h=r[0],l=r[1],c=r[2],f=r[3],d=t[0]^e[0],p=t[1]^e[1],m=t[2]^e[2],v=t[3]^e[3],g=4,y=1;y<i;y++)o=h[d>>>24]^l[p>>>16&255]^c[m>>>8&255]^f[255&v]^e[g++],s=h[p>>>24]^l[m>>>16&255]^c[v>>>8&255]^f[255&d]^e[g++],a=h[m>>>24]^l[v>>>16&255]^c[d>>>8&255]^f[255&p]^e[g++],u=h[v>>>24]^l[d>>>16&255]^c[p>>>8&255]^f[255&m]^e[g++],d=o,p=s,m=a,v=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&v])^e[g++],s=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[v>>>8&255]<<8|n[255&d])^e[g++],a=(n[m>>>24]<<24|n[v>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^e[g++],u=(n[v>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^e[g++],o>>>=0,s>>>=0,a>>>=0,u>>>=0,[o,s,a,u]}var a=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,u=0;u<256;++u){var h=a^a<<1^a<<2^a<<3^a<<4;h=h>>>8^255&h^99,r[s]=h,n[h]=s;var l=t[s],c=t[l],f=t[c],d=257*t[h]^16843008*h;i[0][s]=d<<24|d>>>8,i[1][s]=d<<16|d>>>16,i[2][s]=d<<8|d>>>24,i[3][s]=d,d=16843009*f^65537*c^257*l^16843008*s,o[0][h]=d<<24|d>>>8,o[1][h]=d<<16|d>>>16,o[2][h]=d<<8|d>>>24,o[3][h]=d,0===s?s=a=1:(s=l^t[t[t[f^l]]],a^=t[t[a]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function h(t){this._key=i(t),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],o=0;o<e;o++)i[o]=t[o];for(o=e;o<n;o++){var s=i[o-1];o%e===0?(s=s<<8|s>>>24,s=u.SBOX[s>>>24]<<24|u.SBOX[s>>>16&255]<<16|u.SBOX[s>>>8&255]<<8|u.SBOX[255&s],s^=a[o/e|0]<<24):e>6&&o%e===4&&(s=u.SBOX[s>>>24]<<24|u.SBOX[s>>>16&255]<<16|u.SBOX[s>>>8&255]<<8|u.SBOX[255&s]),i[o]=i[o-e]^s}for(var h=[],l=0;l<n;l++){var c=n-l,f=i[c-(l%4?0:4)];h[l]=l<4||c<=4?f:u.INV_SUB_MIX[0][u.SBOX[f>>>24]]^u.INV_SUB_MIX[1][u.SBOX[f>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[f>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&f]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=h},h.prototype.encryptBlockRaw=function(t){return t=i(t),s(t,this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},h.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=n.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},h.prototype.decryptBlock=function(t){t=i(t);var e=t[1];t[1]=t[3],t[3]=e;var r=s(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},h.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=h},"3a4f":function(t){t.exports=JSON.parse('{"name":"istanbul","comment":"HF targeted for December 2019 following the Constantinople/Petersburg HF","url":"https://eips.ethereum.org/EIPS/eip-1679","status":"Draft","gasConfig":{},"gasPrices":{"blake2Round":{"v":1,"d":"Gas cost per round for the Blake2 F precompile"},"ecAdd":{"v":150,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":6000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":45000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":34000,"d":"Gas costs regarding curve pairing precompile input length"},"txDataNonZero":{"v":16,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"sstoreSentryGasEIP2200":{"v":2300,"d":"Minimum gas required to be present for an SSTORE call, not consumed"},"sstoreNoopGasEIP2200":{"v":800,"d":"Once per SSTORE operation if the value doesn\'t change"},"sstoreDirtyGasEIP2200":{"v":800,"d":"Once per SSTORE operation if a dirty value is changed"},"sstoreInitGasEIP2200":{"v":20000,"d":"Once per SSTORE operation from clean zero to non-zero"},"sstoreInitRefundEIP2200":{"v":19200,"d":"Once per SSTORE operation for resetting to the original zero value"},"sstoreCleanGasEIP2200":{"v":5000,"d":"Once per SSTORE operation from clean non-zero to something else"},"sstoreCleanRefundEIP2200":{"v":4200,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"sstoreClearRefundEIP2200":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"balance":{"v":700,"d":"Base fee of the BALANCE opcode"},"extcodehash":{"v":700,"d":"Base fee of the EXTCODEHASH opcode"},"chainid":{"v":2,"d":"Base fee of the CHAINID opcode"},"selfbalance":{"v":5,"d":"Base fee of the SELFBALANCE opcode"},"sload":{"v":800,"d":"Base fee of the SLOAD opcode"}},"vm":{},"pow":{}}')},"3a7c":function(t,e,r){(function(t){function r(t){return Array.isArray?Array.isArray(t):"[object Array]"===v(t)}function n(t){return"boolean"===typeof t}function i(t){return null===t}function o(t){return null==t}function s(t){return"number"===typeof t}function a(t){return"string"===typeof t}function u(t){return"symbol"===typeof t}function h(t){return void 0===t}function l(t){return"[object RegExp]"===v(t)}function c(t){return"object"===typeof t&&null!==t}function f(t){return"[object Date]"===v(t)}function d(t){return"[object Error]"===v(t)||t instanceof Error}function p(t){return"function"===typeof t}function m(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function v(t){return Object.prototype.toString.call(t)}e.isArray=r,e.isBoolean=n,e.isNull=i,e.isNullOrUndefined=o,e.isNumber=s,e.isString=a,e.isSymbol=u,e.isUndefined=h,e.isRegExp=l,e.isObject=c,e.isDate=f,e.isError=d,e.isFunction=p,e.isPrimitive=m,e.isBuffer=t.isBuffer}).call(this,r("b639").Buffer)},"3a89":function(t,e){const r={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function n(t,e){if(!t)throw new Error(e)}function i(t,e,r){if(n(e instanceof Uint8Array,`Expected ${t} to be an Uint8Array`),void 0!==r)if(Array.isArray(r)){const i=r.join(", "),o=`Expected ${t} to be an Uint8Array with length [${i}]`;n(r.includes(e.length),o)}else{const i=`Expected ${t} to be an Uint8Array with length ${r}`;n(e.length===r,i)}}function o(t){n("Boolean"===a(t),"Expected compressed to be a Boolean")}function s(t=(t=>new Uint8Array(t)),e){return"function"===typeof t&&(t=t(e)),i("output",t,e),t}function a(t){return Object.prototype.toString.call(t).slice(8,-1)}t.exports=t=>({contextRandomize(e){switch(n(null===e||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==e&&i("seed",e,32),t.contextRandomize(e)){case 1:throw new Error(r.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(e){return i("private key",e,32),0===t.privateKeyVerify(e)},privateKeyNegate(e){switch(i("private key",e,32),t.privateKeyNegate(e)){case 0:return e;case 1:throw new Error(r.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(e,n){switch(i("private key",e,32),i("tweak",n,32),t.privateKeyTweakAdd(e,n)){case 0:return e;case 1:throw new Error(r.TWEAK_ADD)}},privateKeyTweakMul(e,n){switch(i("private key",e,32),i("tweak",n,32),t.privateKeyTweakMul(e,n)){case 0:return e;case 1:throw new Error(r.TWEAK_MUL)}},publicKeyVerify(e){return i("public key",e,[33,65]),0===t.publicKeyVerify(e)},publicKeyCreate(e,n=!0,a){switch(i("private key",e,32),o(n),a=s(a,n?33:65),t.publicKeyCreate(a,e)){case 0:return a;case 1:throw new Error(r.SECKEY_INVALID);case 2:throw new Error(r.PUBKEY_SERIALIZE)}},publicKeyConvert(e,n=!0,a){switch(i("public key",e,[33,65]),o(n),a=s(a,n?33:65),t.publicKeyConvert(a,e)){case 0:return a;case 1:throw new Error(r.PUBKEY_PARSE);case 2:throw new Error(r.PUBKEY_SERIALIZE)}},publicKeyNegate(e,n=!0,a){switch(i("public key",e,[33,65]),o(n),a=s(a,n?33:65),t.publicKeyNegate(a,e)){case 0:return a;case 1:throw new Error(r.PUBKEY_PARSE);case 2:throw new Error(r.IMPOSSIBLE_CASE);case 3:throw new Error(r.PUBKEY_SERIALIZE)}},publicKeyCombine(e,a=!0,u){n(Array.isArray(e),"Expected public keys to be an Array"),n(e.length>0,"Expected public keys array will have more than zero items");for(const t of e)i("public key",t,[33,65]);switch(o(a),u=s(u,a?33:65),t.publicKeyCombine(u,e)){case 0:return u;case 1:throw new Error(r.PUBKEY_PARSE);case 2:throw new Error(r.PUBKEY_COMBINE);case 3:throw new Error(r.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(e,n,a=!0,u){switch(i("public key",e,[33,65]),i("tweak",n,32),o(a),u=s(u,a?33:65),t.publicKeyTweakAdd(u,e,n)){case 0:return u;case 1:throw new Error(r.PUBKEY_PARSE);case 2:throw new Error(r.TWEAK_ADD)}},publicKeyTweakMul(e,n,a=!0,u){switch(i("public key",e,[33,65]),i("tweak",n,32),o(a),u=s(u,a?33:65),t.publicKeyTweakMul(u,e,n)){case 0:return u;case 1:throw new Error(r.PUBKEY_PARSE);case 2:throw new Error(r.TWEAK_MUL)}},signatureNormalize(e){switch(i("signature",e,64),t.signatureNormalize(e)){case 0:return e;case 1:throw new Error(r.SIG_PARSE)}},signatureExport(e,n){i("signature",e,64),n=s(n,72);const o={output:n,outputlen:72};switch(t.signatureExport(o,e)){case 0:return n.slice(0,o.outputlen);case 1:throw new Error(r.SIG_PARSE);case 2:throw new Error(r.IMPOSSIBLE_CASE)}},signatureImport(e,n){switch(i("signature",e),n=s(n,64),t.signatureImport(n,e)){case 0:return n;case 1:throw new Error(r.SIG_PARSE);case 2:throw new Error(r.IMPOSSIBLE_CASE)}},ecdsaSign(e,o,u={},h){i("message",e,32),i("private key",o,32),n("Object"===a(u),"Expected options to be an Object"),void 0!==u.data&&i("options.data",u.data),void 0!==u.noncefn&&n("Function"===a(u.noncefn),"Expected options.noncefn to be a Function"),h=s(h,64);const l={signature:h,recid:null};switch(t.ecdsaSign(l,e,o,u.data,u.noncefn)){case 0:return l;case 1:throw new Error(r.SIGN);case 2:throw new Error(r.IMPOSSIBLE_CASE)}},ecdsaVerify(e,n,o){switch(i("signature",e,64),i("message",n,32),i("public key",o,[33,65]),t.ecdsaVerify(e,n,o)){case 0:return!0;case 3:return!1;case 1:throw new Error(r.SIG_PARSE);case 2:throw new Error(r.PUBKEY_PARSE)}},ecdsaRecover(e,u,h,l=!0,c){switch(i("signature",e,64),n("Number"===a(u)&&u>=0&&u<=3,"Expected recovery id to be a Number within interval [0, 3]"),i("message",h,32),o(l),c=s(c,l?33:65),t.ecdsaRecover(c,e,u,h)){case 0:return c;case 1:throw new Error(r.SIG_PARSE);case 2:throw new Error(r.RECOVER);case 3:throw new Error(r.IMPOSSIBLE_CASE)}},ecdh(e,o,u={},h){switch(i("public key",e,[33,65]),i("private key",o,32),n("Object"===a(u),"Expected options to be an Object"),void 0!==u.data&&i("options.data",u.data),void 0!==u.hashfn?(n("Function"===a(u.hashfn),"Expected options.hashfn to be a Function"),void 0!==u.xbuf&&i("options.xbuf",u.xbuf,32),void 0!==u.ybuf&&i("options.ybuf",u.ybuf,32),i("output",h)):h=s(h,32),t.ecdh(h,e,o,u.data,u.hashfn,u.xbuf,u.ybuf)){case 0:return h;case 1:throw new Error(r.PUBKEY_PARSE);case 2:throw new Error(r.ECDH)}}})},"3ae1":function(t,e,r){"use strict";const n=r("d105"),i=r("42a71"),o=r("615a"),s=r("ab7e"),a=r("e2f5"),u=[["base1","1","","1"],["base2","0",i,"01"],["base8","7",i,"01234567"],["base10","9",i,"0123456789"],["base16","f",o,"0123456789abcdef"],["base32","b",s,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",s,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",s,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",s,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",s,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],h=u.reduce((t,e)=>(t[e[0]]=new n(e[0],e[1],e[2],e[3]),t),{}),l=u.reduce((t,e)=>(t[e[1]]=h[e[0]],t),{});t.exports={names:h,codes:l}},"3b1c":function(t,e,r){"use strict";r.d(e,"a",(function(){return v})),r.d(e,"b",(function(){return g})),r.d(e,"c",(function(){return y}));var n=r("549e"),i=r("e36d"),o=r("6f5a"),s=r("e165"),a=r("ffb2");const u="address/5.4.0",h=new a["Logger"](u);function l(t){Object(n["isHexString"])(t,20)||h.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let n=0;n<40;n++)r[n]=e[n].charCodeAt(0);const i=Object(n["arrayify"])(Object(o["a"])(r));for(let n=0;n<40;n+=2)i[n>>1]>>4>=8&&(e[n]=e[n].toUpperCase()),(15&i[n>>1])>=8&&(e[n+1]=e[n+1].toUpperCase());return"0x"+e.join("")}const c=9007199254740991;function f(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const d={};for(let b=0;b<10;b++)d[String(b)]=String(b);for(let b=0;b<26;b++)d[String.fromCharCode(65+b)]=String(10+b);const p=Math.floor(f(c));function m(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(t=>d[t]).join("");while(e.length>=p){let t=e.substring(0,p);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);while(r.length<2)r="0"+r;return r}function v(t){let e=null;if("string"!==typeof t&&h.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=l(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&h.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){t.substring(2,4)!==m(t)&&h.throwArgumentError("bad icap checksum","address",t),e=Object(i["c"])(t.substring(4));while(e.length<40)e="0"+e;e=l("0x"+e)}else h.throwArgumentError("invalid address","address",t);return e}function g(t){let e=null;try{e=v(t.from)}catch(a){h.throwArgumentError("missing from address","transaction",t)}const r=Object(n["stripZeros"])(Object(n["arrayify"])(i["a"].from(t.nonce).toHexString()));return v(Object(n["hexDataSlice"])(Object(o["a"])(Object(s["b"])([e,r])),12))}function y(t,e,r){return 32!==Object(n["hexDataLength"])(e)&&h.throwArgumentError("salt must be 32 bytes","salt",e),32!==Object(n["hexDataLength"])(r)&&h.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),v(Object(n["hexDataSlice"])(Object(o["a"])(Object(n["concat"])(["0xff",v(t),e,r])),12))}},"3b2b":function(t,e,r){var n=r("7726"),i=r("5dbc"),o=r("86cc").f,s=r("9093").f,a=r("aae3"),u=r("0bfb"),h=n.RegExp,l=h,c=h.prototype,f=/a/g,d=/a/g,p=new h(f)!==f;if(r("9e1e")&&(!p||r("79e5")((function(){return d[r("2b4c")("match")]=!1,h(f)!=f||h(d)==d||"/a/i"!=h(f,"i")})))){h=function(t,e){var r=this instanceof h,n=a(t),o=void 0===e;return!r&&n&&t.constructor===h&&o?t:i(p?new l(n&&!o?t.source:t,e):l((n=t instanceof h)?t.source:t,n&&o?u.call(t):e),r?this:c,h)};for(var m=function(t){t in h||o(h,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},v=s(l),g=0;v.length>g;)m(v[g++]);c.constructor=h,h.prototype=c,r("2aba")(n,"RegExp",h)}r("7a56")("RegExp")},"3bef":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EIPs=void 0,e.EIPs={1559:r("63fb"),2315:r("3971"),2537:r("7f44"),2565:r("d000"),2718:r("db43"),2929:r("361f"),2930:r("53d8"),3198:r("2469"),3529:r("eae1"),3541:r("0b1e"),3554:r("c674")}},"3c35":function(t,e){(function(e){t.exports=e}).call(this,{})},"3c43":function(t,e){e.endianness=function(){return"LE"},e.hostname=function(){return"undefined"!==typeof location?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return"undefined"!==typeof navigator?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL="\n",e.homedir=function(){return"/"}},"3c69":function(t,e,r){"use strict";var n=r("8bbf"),i=r.n(n),o=r("a142"),s=Object.prototype.hasOwnProperty;function a(t,e,r){var n=e[r];Object(o["c"])(n)&&(s.call(t,r)&&Object(o["f"])(n)?t[r]=u(Object(t[r]),e[r]):t[r]=n)}function u(t,e){return Object.keys(e).forEach((function(r){a(t,e,r)})),t}var h={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}},l=i.a.prototype,c=i.a.util.defineReactive;c(l,"$vantLang","zh-CN"),c(l,"$vantMessages",{"zh-CN":h});e["a"]={messages:function(){return l.$vantMessages[l.$vantLang]},use:function(t,e){var r;l.$vantLang=t,this.add((r={},r[t]=e,r))},add:function(t){void 0===t&&(t={}),u(l.$vantMessages,t)}}},"3daf":function(t,e,r){"use strict";var n=r("f3a3"),i=r("80af"),o=r("3fb5"),s=r("ea53"),a=n.assert;function u(t){this.twisted=1!==(0|t.a),this.mOneA=this.twisted&&-1===(0|t.a),this.extended=this.mOneA,s.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|t.c)}function h(t,e,r,n,o){s.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(e,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,s),t.exports=u,u.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},u.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},u.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},u.prototype.pointFromX=function(t,e){t=new i(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=n.redMul(o.redInvm()),a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");var u=a.fromRed().isOdd();return(e&&!u||!e&&u)&&(a=a.redNeg()),this.point(t,a)},u.prototype.pointFromY=function(t,e){t=new i(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=n.redMul(o.redInvm());if(0===s.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},u.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},o(h,s.BasePoint),u.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},u.prototype.point=function(t,e,r,n){return new h(this,t,e,r,n)},h.fromJSON=function(t,e){return new h(t,e[0],e[1],e[2])},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),s=o.redSub(r),a=n.redSub(e),u=i.redMul(s),h=o.redMul(a),l=i.redMul(a),c=s.redMul(o);return this.curve.point(u,h,c,l)},h.prototype._projDbl=function(){var t,e,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var s=this.curve._mulA(i),a=s.redAdd(o);if(this.zOne)t=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),e=a.redMul(s.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var u=this.z.redSqr(),h=a.redSub(u).redISub(u);t=n.redSub(i).redISub(o).redMul(h),e=a.redMul(s.redSub(o)),r=a.redMul(h)}}else{s=i.redAdd(o),u=this.curve._mulC(this.z).redSqr(),h=s.redSub(u).redSub(u);t=this.curve._mulC(n.redISub(s)).redMul(h),e=this.curve._mulC(s).redMul(i.redISub(o)),r=s.redMul(h)}return this.curve.point(t,e,r)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(e),s=i.redSub(n),a=i.redAdd(n),u=r.redAdd(e),h=o.redMul(s),l=a.redMul(u),c=o.redMul(u),f=s.redMul(a);return this.curve.point(h,l,f,c)},h.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),o=this.x.redMul(t.x),s=this.y.redMul(t.y),a=this.curve.d.redMul(o).redMul(s),u=i.redSub(a),h=i.redAdd(a),l=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(s),c=n.redMul(u).redMul(l);return this.curve.twisted?(e=n.redMul(h).redMul(s.redSub(this.curve._mulA(o))),r=u.redMul(h)):(e=n.redMul(h).redMul(s.redSub(o)),r=this.curve._mulC(u).redMul(h)),this.curve.point(c,e,r)},h.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},h.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},h.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},h.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},h.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},"3f62":function(t,e,r){var n=r("8707").Buffer,i=n.alloc(16,0);function o(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function s(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(t){var e=-1;while(++e<t.length)this.state[e]^=t[e];this._multiply()},a.prototype._multiply=function(){var t,e,r,n=o(this.h),i=[0,0,0,0],a=-1;while(++a<128){for(e=0!==(this.state[~~(a/8)]&1<<7-a%8),e&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!==(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=s(i)},a.prototype.update=function(t){var e;this.cache=n.concat([this.cache,t]);while(this.cache.length>=16)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=a},"3fb5":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},"409b":function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},4111:function(t,e,r){"use strict";var n=r("7f7a");e.certificate=r("56b5");var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=o;var s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));e.PublicKey=s;var a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=u;var h=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=h;var l=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=l,e.DSAparam=n.define("DSAparam",(function(){this.int()}));var c=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=c;var f=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},4121:function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(6).Buffer}catch(A){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,l=r;l<a;l+=n)u=h(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var c=1;for(u=h(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],c=[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],f=[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 d(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?l[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],d=f[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:l[h-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function v(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function g(t,e,r){var n=new y;return n.mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?v(this,t,e):g(this,t,e),r},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},y.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=d(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function w(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 M(){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=o._prime(t);this.m=e.p,this.prime=e}else n(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)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(M,w),M.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,w),i(k,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new M;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 b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(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 r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},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)},i(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 r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._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,r("62e4")(t))},4127:function(t,e,r){"use strict";var n=r("d233"),i=r("b313"),o={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Date.prototype.toISOString,a={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(t){return s.call(t)},skipNulls:!1,strictNullHandling:!1},u=function t(e,r,i,o,s,u,h,l,c,f,d,p){var m=e;if("function"===typeof h)m=h(r,m);else if(m instanceof Date)m=f(m);else if(null===m){if(o)return u&&!p?u(r,a.encoder):r;m=""}if("string"===typeof m||"number"===typeof m||"boolean"===typeof m||n.isBuffer(m)){if(u){var v=p?r:u(r,a.encoder);return[d(v)+"="+d(u(m,a.encoder))]}return[d(r)+"="+d(String(m))]}var g,y=[];if("undefined"===typeof m)return y;if(Array.isArray(h))g=h;else{var b=Object.keys(m);g=l?b.sort(l):b}for(var w=0;w<g.length;++w){var M=g[w];s&&null===m[M]||(y=Array.isArray(m)?y.concat(t(m[M],i(r,M),i,o,s,u,h,l,c,f,d,p)):y.concat(t(m[M],r+(c?"."+M:"["+M+"]"),i,o,s,u,h,l,c,f,d,p)))}return y};t.exports=function(t,e){var r=t,s=e?n.assign({},e):{};if(null!==s.encoder&&void 0!==s.encoder&&"function"!==typeof s.encoder)throw new TypeError("Encoder has to be a function.");var h="undefined"===typeof s.delimiter?a.delimiter:s.delimiter,l="boolean"===typeof s.strictNullHandling?s.strictNullHandling:a.strictNullHandling,c="boolean"===typeof s.skipNulls?s.skipNulls:a.skipNulls,f="boolean"===typeof s.encode?s.encode:a.encode,d="function"===typeof s.encoder?s.encoder:a.encoder,p="function"===typeof s.sort?s.sort:null,m="undefined"!==typeof s.allowDots&&s.allowDots,v="function"===typeof s.serializeDate?s.serializeDate:a.serializeDate,g="boolean"===typeof s.encodeValuesOnly?s.encodeValuesOnly:a.encodeValuesOnly;if("undefined"===typeof s.format)s.format=i["default"];else if(!Object.prototype.hasOwnProperty.call(i.formatters,s.format))throw new TypeError("Unknown format option provided.");var y,b,w=i.formatters[s.format];"function"===typeof s.filter?(b=s.filter,r=b("",r)):Array.isArray(s.filter)&&(b=s.filter,y=b);var M,_=[];if("object"!==typeof r||null===r)return"";M=s.arrayFormat in o?s.arrayFormat:"indices"in s?s.indices?"indices":"repeat":"indices";var k=o[M];y||(y=Object.keys(r)),p&&y.sort(p);for(var S=0;S<y.length;++S){var x=y[S];c&&null===r[x]||(_=_.concat(u(r[x],x,k,l,c,f?d:null,b,p,m,v,w,g)))}var E=_.join(h),A=!0===s.addQueryPrefix?"?":"";return E.length>0?A+E:""}},4136:function(t,e,r){"use strict";var n=e;n.base=r("ea53"),n.short=r("3300"),n.mont=r("676f"),n.edwards=r("3daf")},4186:function(t,e,r){"use strict";(function(e){var n;function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r("ee93"),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),h=Symbol("ended"),l=Symbol("lastPromise"),c=Symbol("handlePromise"),f=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[s];if(null!==e){var r=t[f].read();null!==r&&(t[l]=null,t[s]=null,t[a]=null,e(d(r,!1)))}}function m(t){e.nextTick(p,t)}function v(t,e){return function(r,n){t.then((function(){e[h]?r(d(void 0,!0)):e[c](r,n)}),n)}}var g=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((n={get stream(){return this[f]},next:function(){var t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[h])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise((function(r,n){e.nextTick((function(){t[u]?n(t[u]):r(d(void 0,!0))}))}));var n,i=this[l];if(i)n=new Promise(v(i,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(d(o,!1));n=new Promise(this[c])}return this[l]=n,n}},i(n,Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var t=this;return new Promise((function(e,r){t[f].destroy(null,(function(t){t?r(t):e(d(void 0,!0))}))}))})),n),g),b=function(t){var e,r=Object.create(y,(e={},i(e,f,{value:t,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,h,{value:t._readableState.endEmitted,writable:!0}),i(e,c,{value:function(t,e){var n=r[f].read();n?(r[l]=null,r[s]=null,r[a]=null,t(d(n,!1))):(r[s]=t,r[a]=e)},writable:!0}),e));return r[l]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[a];return null!==e&&(r[l]=null,r[s]=null,r[a]=null,e(t)),void(r[u]=t)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[a]=null,n(d(void 0,!0))),r[h]=!0})),t.on("readable",m.bind(null,r)),r};t.exports=b}).call(this,r("f28c"))},"41a0":function(t,e,r){"use strict";var n=r("2aeb"),i=r("4630"),o=r("7f20"),s={};r("32e9")(s,r("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,r){t.prototype=n(s,{next:i(1,r)}),o(t,e+" Iterator")}},"41df":function(t,e,r){var n=e;n.Reporter=r("d1c8").Reporter,n.DecoderBuffer=r("6283").DecoderBuffer,n.EncoderBuffer=r("6283").EncoderBuffer,n.Node=r("8360")},4228:function(t,e,r){var n=r("82f0"),i=r("8707").Buffer,o=r("bac2"),s=r("09f5"),a=r("6430"),u=r("39f5"),h=r("ae84"),l=r("3fb5");function c(t,e,r){a.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(e),this._prev=i.from(r),this._mode=t,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function d(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var r=-1;while(++r<e)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(16!==e)return t.slice(0,16-e)}function p(t,e,r){var a=o[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"===typeof r&&(r=i.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);if("string"===typeof e&&(e=i.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===a.type?new s(a.module,e,r,!0):"auth"===a.type?new n(a.module,e,r,!0):new c(a.module,e,r)}function m(t,e){var r=o[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=h(e,!1,r.key,r.iv);return p(t,n.key,n.iv)}l(c,a),c.prototype._update=function(t){var e,r;this._cache.add(t);var n=[];while(e=this._cache.get(this._autopadding))r=this._mode.decrypt(this,e),n.push(r);return i.concat(n)},c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return d(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},f.prototype.add=function(t){this.cache=i.concat([this.cache,t])},f.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=m,e.createDecipheriv=p},4250:function(t,e,r){"use strict";(function(e,n){var i;t.exports=T,T.ReadableState=O;r("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},s=r("5bbb"),a=r("b639").Buffer,u=e.Uint8Array||function(){};function h(t){return a.from(t)}function l(t){return a.isBuffer(t)||t instanceof u}var c,f=r(7);c=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p,m,v=r("96a5"),g=r("493f"),y=r("b9b5"),b=y.getHighWaterMark,w=r("9d8a").codes,M=w.ERR_INVALID_ARG_TYPE,_=w.ERR_STREAM_PUSH_AFTER_EOF,k=w.ERR_METHOD_NOT_IMPLEMENTED,S=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r("3fb5")(T,s);var x=g.errorOrDestroy,E=["error","close","destroy","pause","resume"];function A(t,e,r){if("function"===typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}function O(t,e,n){i=i||r("e666"),t=t||{},"boolean"!==typeof n&&(n=e instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",n),this.buffer=new v,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.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=r("7d72").StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||r("e666"),!(this instanceof T))return new T(t);var e=this instanceof i;this._readableState=new O(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function C(t,e,r,n,i){c("readableAddChunk",e);var o,s=t._readableState;if(null===e)s.reading=!1,j(t,s);else if(i||(o=B(s,e)),o)x(t,o);else if(s.objectMode||e&&e.length>0)if("string"===typeof e||s.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=h(e)),n)s.endEmitted?x(t,new S):P(t,s,e,!0);else if(s.ended)x(t,new _);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||0!==e.length?P(t,s,e,!1):D(t,s)):P(t,s,e,!1)}else n||(s.reading=!1,D(t,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function P(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&L(t)),D(t,e)}function B(t,e){var r;return l(e)||"string"===typeof e||void 0===e||t.objectMode||(r=new M("chunk",["string","Buffer","Uint8Array"],e)),r}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=g.destroy,T.prototype._undestroy=g.undestroy,T.prototype._destroy=function(t,e){e(t)},T.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof t&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=a.from(t,e),e=""),r=!0),C(this,t,e,!1,r)},T.prototype.unshift=function(t){return C(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){d||(d=r("7d72").StringDecoder);var e=new d(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;var n=this._readableState.buffer.head,i="";while(null!==n)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var I=1073741824;function R(t){return t>=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function N(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=R(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function j(t,e){if(c("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?L(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,U(t)))}}function L(t){var e=t._readableState;c("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(c("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(U,t))}function U(t){var e=t._readableState;c("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,K(t)}function D(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(F,t,e))}function F(t,e){while(!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length)){var r=e.length;if(c("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function z(t){return function(){var e=t._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,K(t))}}function q(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function H(t){c("readable nexttick read 0"),t.read(0)}function $(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(V,t,e))}function V(t,e){c("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),K(t),e.flowing&&!e.reading&&t.read(0)}function K(t){var e=t._readableState;c("flow",e.flowing);while(e.flowing&&null!==t.read());}function W(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function G(t){var e=t._readableState;c("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(Z,e,t))}function Z(t,e){if(c("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function J(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}T.prototype.read=function(t){c("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return c("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?G(this):L(this),null;if(t=N(t,e),0===t&&e.ended)return 0===e.length&&G(this),null;var n,i=e.needReadable;return c("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,c("length less than watermark",i)),e.ended||e.reading?(i=!1,c("reading or ended",i)):i&&(c("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=N(r,e))),n=t>0?W(t,e):null,null===n?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&G(this)),null!==n&&this.emit("data",n),n},T.prototype._read=function(t){x(this,new k("_read()"))},T.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr,a=s?h:y;function u(t,e){c("onunpipe"),t===r&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d())}function h(){c("onend"),t.end()}i.endEmitted?n.nextTick(a):r.once("end",a),t.on("unpipe",u);var l=z(r);t.on("drain",l);var f=!1;function d(){c("cleanup"),t.removeListener("close",v),t.removeListener("finish",g),t.removeListener("drain",l),t.removeListener("error",m),t.removeListener("unpipe",u),r.removeListener("end",h),r.removeListener("end",y),r.removeListener("data",p),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||l()}function p(e){c("ondata");var n=t.write(e);c("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==J(i.pipes,t))&&!f&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function m(e){c("onerror",e),y(),t.removeListener("error",m),0===o(t,"error")&&x(t,e)}function v(){t.removeListener("finish",g),y()}function g(){c("onfinish"),t.removeListener("close",v),y()}function y(){c("unpipe"),r.unpipe(t)}return r.on("data",p),A(t,"error",m),t.once("close",v),t.once("finish",g),t.emit("pipe",r),i.flowing||(c("pipe resume"),r.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,r={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,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=J(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},T.prototype.on=function(t,e){var r=s.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?L(this):i.reading||n.nextTick(H,this))),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var r=s.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(q,this),r},T.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(q,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!t.readableListening,$(this,t)),t.paused=!1,this},T.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)){var o=e.push(i);o||(n=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<E.length;o++)t.on(E[o],this.emit.bind(this,E[o]));return this._read=function(e){c("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"===typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=r("4186")),p(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),T._fromList=W,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(T.from=function(t,e){return void 0===m&&(m=r("919c")),m(T,t,e)})}).call(this,r("c8ba"),r("f28c"))},"429b":function(t,e,r){t.exports=r("faa1").EventEmitter},"42a6":function(t,e,r){"use strict";const n=r("354e"),{Buffer:i}=r("b639");var o={checkCIDComponents:function(t){if(null==t)return"null values are not valid CIDs";if(0!==t.version&&1!==t.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!==typeof t.codec)return"codec must be string";if(0===t.version){if("dag-pb"!==t.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==t.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!i.isBuffer(t.multihash))return"multihash must be a Buffer";try{n.validate(t.multihash)}catch(e){let t=e.message;return t||(t="Multihash validation failed"),t}}};t.exports=o},"42a7":function(t,e,r){"use strict";var n=r("d113").codes.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function o(){}function s(t){return t.setHeader&&"function"===typeof t.abort}function a(t,e,r){if("function"===typeof e)return a(t,null,e);e||(e={}),r=i(r||o);var u=e.readable||!1!==e.readable&&t.readable,h=e.writable||!1!==e.writable&&t.writable,l=function(){t.writable||f()},c=t._writableState&&t._writableState.finished,f=function(){h=!1,c=!0,u||r.call(t)},d=t._readableState&&t._readableState.endEmitted,p=function(){u=!1,d=!0,h||r.call(t)},m=function(e){r.call(t,e)},v=function(){var e;return u&&!d?(t._readableState&&t._readableState.ended||(e=new n),r.call(t,e)):h&&!c?(t._writableState&&t._writableState.ended||(e=new n),r.call(t,e)):void 0},g=function(){t.req.on("finish",f)};return s(t)?(t.on("complete",f),t.on("abort",v),t.req?g():t.on("request",g)):h&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",p),t.on("finish",f),!1!==e.error&&t.on("error",m),t.on("close",v),function(){t.removeListener("complete",f),t.removeListener("abort",v),t.removeListener("request",g),t.req&&t.req.removeListener("finish",f),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",f),t.removeListener("end",p),t.removeListener("error",m),t.removeListener("close",v)}}t.exports=a},"42a71":function(t,e,r){"use strict";var n=r("8707").Buffer;function i(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var i=0;i<t.length;i++){var o=t.charAt(i),s=o.charCodeAt(0);if(255!==e[s])throw new TypeError(o+" is ambiguous");e[s]=i}var a=t.length,u=t.charAt(0),h=Math.log(a)/Math.log(256),l=Math.log(256)/Math.log(a);function c(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=n.from(e)),!n.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";var r=0,i=0,o=0,s=e.length;while(o!==s&&0===e[o])o++,r++;var h=(s-o)*l+1>>>0,c=new Uint8Array(h);while(o!==s){for(var f=e[o],d=0,p=h-1;(0!==f||d<i)&&-1!==p;p--,d++)f+=256*c[p]>>>0,c[p]=f%a>>>0,f=f/a>>>0;if(0!==f)throw new Error("Non-zero carry");i=d,o++}var m=h-i;while(m!==h&&0===c[m])m++;for(var v=u.repeat(r);m<h;++m)v+=t.charAt(c[m]);return v}function f(t){if("string"!==typeof t)throw new TypeError("Expected String");if(0===t.length)return n.alloc(0);var r=0;if(" "!==t[r]){var i=0,o=0;while(t[r]===u)i++,r++;var s=(t.length-r)*h+1>>>0,l=new Uint8Array(s);while(t[r]){var c=e[t.charCodeAt(r)];if(255===c)return;for(var f=0,d=s-1;(0!==c||f<o)&&-1!==d;d--,f++)c+=a*l[d]>>>0,l[d]=c%256>>>0,c=c/256>>>0;if(0!==c)throw new Error("Non-zero carry");o=f,r++}if(" "!==t[r]){var p=s-o;while(p!==s&&0===l[p])p++;var m=n.allocUnsafe(i+(s-p));m.fill(0,0,i);var v=i;while(p!==s)m[v++]=l[p++];return m}}}function d(t){var e=f(t);if(e)return e;throw new Error("Non-base"+a+" character")}return{encode:c,decodeUnsafe:f,decode:d}}t.exports=i},4328:function(t,e,r){"use strict";var n=r("4127"),i=r("9e6a"),o=r("b313");t.exports={formats:o,parse:i,stringify:n}},"44a3":function(t,e,r){"use strict";var n=r("80af"),i=r("f3a3"),o=i.assert,s=i.cachedProperty,a=i.parseBytes;function u(t,e){this.eddsa=t,"object"!==typeof e&&(e=a(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}s(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=u},"456d":function(t,e,r){var n=r("4bf8"),i=r("0d58");r("5eda")("keys",(function(){return function(t){return i(n(t))}}))},4588:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},4598:function(t,e,r){"use strict";(function(t){r.d(e,"c",(function(){return h})),r.d(e,"b",(function(){return l})),r.d(e,"a",(function(){return c}));var n=r("a142"),i=Date.now();function o(t){var e=Date.now(),r=Math.max(0,16-(e-i)),n=setTimeout(t,r);return i=e+r,n}var s=n["h"]?t:window,a=s.requestAnimationFrame||o,u=s.cancelAnimationFrame||s.clearTimeout;function h(t){return a.call(s,t)}function l(t){h((function(){h(t)}))}function c(t){u.call(s,t)}}).call(this,r("c8ba"))},"45dc":function(t,e){!function(t,e){function r(){e.body?e.body.style.fontSize=12*o+"px":e.addEventListener("DOMContentLoaded",r)}function n(){var t=(i.clientWidth>750?750:i.clientWidth)/10;i.style.fontSize=t+"px"}var i=e.documentElement,o=t.devicePixelRatio||1;if(r(),n(),t.addEventListener("resize",n),t.addEventListener("pageshow",(function(t){t.persisted&&n()})),o>=2){var s=e.createElement("body"),a=e.createElement("div");a.style.border=".5px solid transparent",s.appendChild(a),i.appendChild(s),1===a.offsetHeight&&i.classList.add("hairlines"),i.removeChild(s)}}(window,document)},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4633:function(t,e,r){"use strict";(function(t){var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=r("65eb"),o=function(e){function r(){var t=e.call(this)||this;return t._contentType=null,t._body=null,t._reset(),t}return n(r,e),r.prototype._reset=function(){this._contentType=null,this._body=null},r.prototype._setData=function(e){if(null!=e)if("string"===typeof e)0!==e.length&&(this._contentType="text/plain;charset=UTF-8"),this._body=new t(e,"utf-8");else if(t.isBuffer(e))this._body=e;else if(e instanceof ArrayBuffer){for(var r=new t(e.byteLength),n=new Uint8Array(e),i=0;i<e.byteLength;i++)r[i]=n[i];this._body=r}else{if(!(e.buffer&&e.buffer instanceof ArrayBuffer))throw new Error("Unsupported send() data "+e);r=new t(e.byteLength);var o=e.byteOffset;for(n=new Uint8Array(e.buffer),i=0;i<e.byteLength;i++)r[i]=n[i+o];this._body=r}},r.prototype._finalizeHeaders=function(t,e){this._contentType&&!e["content-type"]&&(t["Content-Type"]=this._contentType),this._body&&(t["Content-Length"]=this._body.length.toString())},r.prototype._startUpload=function(t){this._body&&t.write(this._body),t.end()},r}(i.XMLHttpRequestEventTarget);e.XMLHttpRequestUpload=o}).call(this,r("b639").Buffer)},4673:function(t,e,r){const n=r("3337").ec,i=new n("secp256k1"),o=i.curve,s=o.n.constructor;function a(t,e){let r=new s(e);if(r.cmp(o.p)>=0)return null;r=r.toRed(o.red);let n=r.redSqr().redIMul(r).redIAdd(o.b).redSqrt();return 3===t!==n.isOdd()&&(n=n.redNeg()),i.keyPair({pub:{x:r,y:n}})}function u(t,e,r){let n=new s(e),a=new s(r);if(n.cmp(o.p)>=0||a.cmp(o.p)>=0)return null;if(n=n.toRed(o.red),a=a.toRed(o.red),(6===t||7===t)&&a.isOdd()!==(7===t))return null;const u=n.redSqr().redIMul(n);return a.redSqr().redISub(u.redIAdd(o.b)).isZero()?i.keyPair({pub:{x:n,y:a}}):null}function h(t){const e=t[0];switch(e){case 2:case 3:return 33!==t.length?null:a(e,t.subarray(1,33));case 4:case 6:case 7:return 65!==t.length?null:u(e,t.subarray(1,33),t.subarray(33,65));default:return null}}function l(t,e){const r=e.encode(null,33===t.length);for(let n=0;n<t.length;++n)t[n]=r[n]}t.exports={contextRandomize(){return 0},privateKeyVerify(t){const e=new s(t);return e.cmp(o.n)<0&&!e.isZero()?0:1},privateKeyNegate(t){const e=new s(t),r=o.n.sub(e).umod(o.n).toArrayLike(Uint8Array,"be",32);return t.set(r),0},privateKeyTweakAdd(t,e){const r=new s(e);if(r.cmp(o.n)>=0)return 1;if(r.iadd(new s(t)),r.cmp(o.n)>=0&&r.isub(o.n),r.isZero())return 1;const n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},privateKeyTweakMul(t,e){let r=new s(e);if(r.cmp(o.n)>=0||r.isZero())return 1;r.imul(new s(t)),r.cmp(o.n)>=0&&(r=r.umod(o.n));const n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},publicKeyVerify(t){const e=h(t);return null===e?1:0},publicKeyCreate(t,e){const r=new s(e);if(r.cmp(o.n)>=0||r.isZero())return 1;const n=i.keyFromPrivate(e).getPublic();return l(t,n),0},publicKeyConvert(t,e){const r=h(e);if(null===r)return 1;const n=r.getPublic();return l(t,n),0},publicKeyNegate(t,e){const r=h(e);if(null===r)return 1;const n=r.getPublic();return n.y=n.y.redNeg(),l(t,n),0},publicKeyCombine(t,e){const r=new Array(e.length);for(let i=0;i<e.length;++i)if(r[i]=h(e[i]),null===r[i])return 1;let n=r[0].getPublic();for(let i=1;i<r.length;++i)n=n.add(r[i].pub);return n.isInfinity()?2:(l(t,n),0)},publicKeyTweakAdd(t,e,r){const n=h(e);if(null===n)return 1;if(r=new s(r),r.cmp(o.n)>=0)return 2;const i=n.getPublic().add(o.g.mul(r));return i.isInfinity()?2:(l(t,i),0)},publicKeyTweakMul(t,e,r){const n=h(e);if(null===n)return 1;if(r=new s(r),r.cmp(o.n)>=0||r.isZero())return 2;const i=n.getPublic().mul(r);return l(t,i),0},signatureNormalize(t){const e=new s(t.subarray(0,32)),r=new s(t.subarray(32,64));return e.cmp(o.n)>=0||r.cmp(o.n)>=0?1:(1===r.cmp(i.nh)&&t.set(o.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(t,e){const r=e.subarray(0,32),n=e.subarray(32,64);if(new s(r).cmp(o.n)>=0)return 1;if(new s(n).cmp(o.n)>=0)return 1;const{output:i}=t;let a=i.subarray(4,37);a[0]=0,a.set(r,1);let u=33,h=0;for(;u>1&&0===a[h]&&!(128&a[h+1]);--u,++h);if(a=a.subarray(h),128&a[0])return 1;if(u>1&&0===a[0]&&!(128&a[1]))return 1;let l=i.subarray(39,72);l[0]=0,l.set(n,1);let c=33,f=0;for(;c>1&&0===l[f]&&!(128&l[f+1]);--c,++f);return l=l.subarray(f),128&l[0]||c>1&&0===l[0]&&!(128&l[1])?1:(t.outputlen=6+u+c,i[0]=48,i[1]=t.outputlen-2,i[2]=2,i[3]=a.length,i.set(a,4),i[4+u]=2,i[5+u]=l.length,i.set(l,6+u),0)},signatureImport(t,e){if(e.length<8)return 1;if(e.length>72)return 1;if(48!==e[0])return 1;if(e[1]!==e.length-2)return 1;if(2!==e[2])return 1;const r=e[3];if(0===r)return 1;if(5+r>=e.length)return 1;if(2!==e[4+r])return 1;const n=e[5+r];if(0===n)return 1;if(6+r+n!==e.length)return 1;if(128&e[4])return 1;if(r>1&&0===e[4]&&!(128&e[5]))return 1;if(128&e[r+6])return 1;if(n>1&&0===e[r+6]&&!(128&e[r+7]))return 1;let i=e.subarray(4,4+r);if(33===i.length&&0===i[0]&&(i=i.subarray(1)),i.length>32)return 1;let a=e.subarray(6+r);if(33===a.length&&0===a[0]&&(a=a.slice(1)),a.length>32)throw new Error("S length is too long");let u=new s(i);u.cmp(o.n)>=0&&(u=new s(0));let h=new s(e.subarray(6+r));return h.cmp(o.n)>=0&&(h=new s(0)),t.set(u.toArrayLike(Uint8Array,"be",32),0),t.set(h.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(t,e,r,n,a){if(a){const t=a;a=i=>{const o=t(e,r,null,n,i),a=o instanceof Uint8Array&&32===o.length;if(!a)throw new Error("This is the way");return new s(o)}}const u=new s(r);if(u.cmp(o.n)>=0||u.isZero())return 1;let h;try{h=i.sign(e,r,{canonical:!0,k:a,pers:n})}catch(l){return 1}return t.signature.set(h.r.toArrayLike(Uint8Array,"be",32),0),t.signature.set(h.s.toArrayLike(Uint8Array,"be",32),32),t.recid=h.recoveryParam,0},ecdsaVerify(t,e,r){const n={r:t.subarray(0,32),s:t.subarray(32,64)},a=new s(n.r),u=new s(n.s);if(a.cmp(o.n)>=0||u.cmp(o.n)>=0)return 1;if(1===u.cmp(i.nh)||a.isZero()||u.isZero())return 3;const l=h(r);if(null===l)return 2;const c=l.getPublic(),f=i.verify(e,n,c);return f?0:3},ecdsaRecover(t,e,r,n){const a={r:e.slice(0,32),s:e.slice(32,64)},u=new s(a.r),h=new s(a.s);if(u.cmp(o.n)>=0||h.cmp(o.n)>=0)return 1;if(u.isZero()||h.isZero())return 2;let c;try{c=i.recoverPubKey(n,a,r)}catch(f){return 2}return l(t,c),0},ecdh(t,e,r,n,a,u,l){const c=h(e);if(null===c)return 1;const f=new s(r);if(f.cmp(o.n)>=0||f.isZero())return 2;const d=c.getPublic().mul(f);if(void 0===a){const e=d.encode(null,!0),r=i.hash().update(e).digest();for(let n=0;n<32;++n)t[n]=r[n]}else{u||(u=new Uint8Array(32));const e=d.getX().toArray("be",32);for(let t=0;t<32;++t)u[t]=e[t];l||(l=new Uint8Array(32));const r=d.getY().toArray("be",32);for(let t=0;t<32;++t)l[t]=r[t];const i=a(u,l,n),o=i instanceof Uint8Array&&i.length===t.length;if(!o)return 2;t.set(i)}return 0}}},"467f":function(t,e,r){"use strict";var n=r("2d83");t.exports=function(t,e,r){var i=r.config.validateStatus;!i||i(r.status)?t(r):e(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},4681:function(t,e,r){"use strict";var n=r("966d");function i(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||n.nextTick(s,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(n.nextTick(s,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})),this)}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(t,e){t.emit("error",e)}t.exports={destroy:i,undestroy:o}},"479a":function(t,e,r){"use strict";e.names=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"dbl-sha2-256":86,"sha3-224":23,"sha3-256":22,"sha3-384":21,"sha3-512":20,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"murmur3-128":34,"murmur3-32":35,md4:212,md5:213,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"Skein256-8":45825,"Skein256-16":45826,"Skein256-24":45827,"Skein256-32":45828,"Skein256-40":45829,"Skein256-48":45830,"Skein256-56":45831,"Skein256-64":45832,"Skein256-72":45833,"Skein256-80":45834,"Skein256-88":45835,"Skein256-96":45836,"Skein256-104":45837,"Skein256-112":45838,"Skein256-120":45839,"Skein256-128":45840,"Skein256-136":45841,"Skein256-144":45842,"Skein256-152":45843,"Skein256-160":45844,"Skein256-168":45845,"Skein256-176":45846,"Skein256-184":45847,"Skein256-192":45848,"Skein256-200":45849,"Skein256-208":45850,"Skein256-216":45851,"Skein256-224":45852,"Skein256-232":45853,"Skein256-240":45854,"Skein256-248":45855,"Skein256-256":45856,"Skein512-8":45857,"Skein512-16":45858,"Skein512-24":45859,"Skein512-32":45860,"Skein512-40":45861,"Skein512-48":45862,"Skein512-56":45863,"Skein512-64":45864,"Skein512-72":45865,"Skein512-80":45866,"Skein512-88":45867,"Skein512-96":45868,"Skein512-104":45869,"Skein512-112":45870,"Skein512-120":45871,"Skein512-128":45872,"Skein512-136":45873,"Skein512-144":45874,"Skein512-152":45875,"Skein512-160":45876,"Skein512-168":45877,"Skein512-176":45878,"Skein512-184":45879,"Skein512-192":45880,"Skein512-200":45881,"Skein512-208":45882,"Skein512-216":45883,"Skein512-224":45884,"Skein512-232":45885,"Skein512-240":45886,"Skein512-248":45887,"Skein512-256":45888,"Skein512-264":45889,"Skein512-272":45890,"Skein512-280":45891,"Skein512-288":45892,"Skein512-296":45893,"Skein512-304":45894,"Skein512-312":45895,"Skein512-320":45896,"Skein512-328":45897,"Skein512-336":45898,"Skein512-344":45899,"Skein512-352":45900,"Skein512-360":45901,"Skein512-368":45902,"Skein512-376":45903,"Skein512-384":45904,"Skein512-392":45905,"Skein512-400":45906,"Skein512-408":45907,"Skein512-416":45908,"Skein512-424":45909,"Skein512-432":45910,"Skein512-440":45911,"Skein512-448":45912,"Skein512-456":45913,"Skein512-464":45914,"Skein512-472":45915,"Skein512-480":45916,"Skein512-488":45917,"Skein512-496":45918,"Skein512-504":45919,"Skein512-512":45920,"Skein1024-8":45921,"Skein1024-16":45922,"Skein1024-24":45923,"Skein1024-32":45924,"Skein1024-40":45925,"Skein1024-48":45926,"Skein1024-56":45927,"Skein1024-64":45928,"Skein1024-72":45929,"Skein1024-80":45930,"Skein1024-88":45931,"Skein1024-96":45932,"Skein1024-104":45933,"Skein1024-112":45934,"Skein1024-120":45935,"Skein1024-128":45936,"Skein1024-136":45937,"Skein1024-144":45938,"Skein1024-152":45939,"Skein1024-160":45940,"Skein1024-168":45941,"Skein1024-176":45942,"Skein1024-184":45943,"Skein1024-192":45944,"Skein1024-200":45945,"Skein1024-208":45946,"Skein1024-216":45947,"Skein1024-224":45948,"Skein1024-232":45949,"Skein1024-240":45950,"Skein1024-248":45951,"Skein1024-256":45952,"Skein1024-264":45953,"Skein1024-272":45954,"Skein1024-280":45955,"Skein1024-288":45956,"Skein1024-296":45957,"Skein1024-304":45958,"Skein1024-312":45959,"Skein1024-320":45960,"Skein1024-328":45961,"Skein1024-336":45962,"Skein1024-344":45963,"Skein1024-352":45964,"Skein1024-360":45965,"Skein1024-368":45966,"Skein1024-376":45967,"Skein1024-384":45968,"Skein1024-392":45969,"Skein1024-400":45970,"Skein1024-408":45971,"Skein1024-416":45972,"Skein1024-424":45973,"Skein1024-432":45974,"Skein1024-440":45975,"Skein1024-448":45976,"Skein1024-456":45977,"Skein1024-464":45978,"Skein1024-472":45979,"Skein1024-480":45980,"Skein1024-488":45981,"Skein1024-496":45982,"Skein1024-504":45983,"Skein1024-512":45984,"Skein1024-520":45985,"Skein1024-528":45986,"Skein1024-536":45987,"Skein1024-544":45988,"Skein1024-552":45989,"Skein1024-560":45990,"Skein1024-568":45991,"Skein1024-576":45992,"Skein1024-584":45993,"Skein1024-592":45994,"Skein1024-600":45995,"Skein1024-608":45996,"Skein1024-616":45997,"Skein1024-624":45998,"Skein1024-632":45999,"Skein1024-640":46e3,"Skein1024-648":46001,"Skein1024-656":46002,"Skein1024-664":46003,"Skein1024-672":46004,"Skein1024-680":46005,"Skein1024-688":46006,"Skein1024-696":46007,"Skein1024-704":46008,"Skein1024-712":46009,"Skein1024-720":46010,"Skein1024-728":46011,"Skein1024-736":46012,"Skein1024-744":46013,"Skein1024-752":46014,"Skein1024-760":46015,"Skein1024-768":46016,"Skein1024-776":46017,"Skein1024-784":46018,"Skein1024-792":46019,"Skein1024-800":46020,"Skein1024-808":46021,"Skein1024-816":46022,"Skein1024-824":46023,"Skein1024-832":46024,"Skein1024-840":46025,"Skein1024-848":46026,"Skein1024-856":46027,"Skein1024-864":46028,"Skein1024-872":46029,"Skein1024-880":46030,"Skein1024-888":46031,"Skein1024-896":46032,"Skein1024-904":46033,"Skein1024-912":46034,"Skein1024-920":46035,"Skein1024-928":46036,"Skein1024-936":46037,"Skein1024-944":46038,"Skein1024-952":46039,"Skein1024-960":46040,"Skein1024-968":46041,"Skein1024-976":46042,"Skein1024-984":46043,"Skein1024-992":46044,"Skein1024-1000":46045,"Skein1024-1008":46046,"Skein1024-1016":46047,"Skein1024-1024":46048}),e.codes=Object.freeze({0:"identity",17:"sha1",18:"sha2-256",19:"sha2-512",86:"dbl-sha2-256",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",212:"md4",213:"md5",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"Skein256-8",45826:"Skein256-16",45827:"Skein256-24",45828:"Skein256-32",45829:"Skein256-40",45830:"Skein256-48",45831:"Skein256-56",45832:"Skein256-64",45833:"Skein256-72",45834:"Skein256-80",45835:"Skein256-88",45836:"Skein256-96",45837:"Skein256-104",45838:"Skein256-112",45839:"Skein256-120",45840:"Skein256-128",45841:"Skein256-136",45842:"Skein256-144",45843:"Skein256-152",45844:"Skein256-160",45845:"Skein256-168",45846:"Skein256-176",45847:"Skein256-184",45848:"Skein256-192",45849:"Skein256-200",45850:"Skein256-208",45851:"Skein256-216",45852:"Skein256-224",45853:"Skein256-232",45854:"Skein256-240",45855:"Skein256-248",45856:"Skein256-256",45857:"Skein512-8",45858:"Skein512-16",45859:"Skein512-24",45860:"Skein512-32",45861:"Skein512-40",45862:"Skein512-48",45863:"Skein512-56",45864:"Skein512-64",45865:"Skein512-72",45866:"Skein512-80",45867:"Skein512-88",45868:"Skein512-96",45869:"Skein512-104",45870:"Skein512-112",45871:"Skein512-120",45872:"Skein512-128",45873:"Skein512-136",45874:"Skein512-144",45875:"Skein512-152",45876:"Skein512-160",45877:"Skein512-168",45878:"Skein512-176",45879:"Skein512-184",45880:"Skein512-192",45881:"Skein512-200",45882:"Skein512-208",45883:"Skein512-216",45884:"Skein512-224",45885:"Skein512-232",45886:"Skein512-240",45887:"Skein512-248",45888:"Skein512-256",45889:"Skein512-264",45890:"Skein512-272",45891:"Skein512-280",45892:"Skein512-288",45893:"Skein512-296",45894:"Skein512-304",45895:"Skein512-312",45896:"Skein512-320",45897:"Skein512-328",45898:"Skein512-336",45899:"Skein512-344",45900:"Skein512-352",45901:"Skein512-360",45902:"Skein512-368",45903:"Skein512-376",45904:"Skein512-384",45905:"Skein512-392",45906:"Skein512-400",45907:"Skein512-408",45908:"Skein512-416",45909:"Skein512-424",45910:"Skein512-432",45911:"Skein512-440",45912:"Skein512-448",45913:"Skein512-456",45914:"Skein512-464",45915:"Skein512-472",45916:"Skein512-480",45917:"Skein512-488",45918:"Skein512-496",45919:"Skein512-504",45920:"Skein512-512",45921:"Skein1024-8",45922:"Skein1024-16",45923:"Skein1024-24",45924:"Skein1024-32",45925:"Skein1024-40",45926:"Skein1024-48",45927:"Skein1024-56",45928:"Skein1024-64",45929:"Skein1024-72",45930:"Skein1024-80",45931:"Skein1024-88",45932:"Skein1024-96",45933:"Skein1024-104",45934:"Skein1024-112",45935:"Skein1024-120",45936:"Skein1024-128",45937:"Skein1024-136",45938:"Skein1024-144",45939:"Skein1024-152",45940:"Skein1024-160",45941:"Skein1024-168",45942:"Skein1024-176",45943:"Skein1024-184",45944:"Skein1024-192",45945:"Skein1024-200",45946:"Skein1024-208",45947:"Skein1024-216",45948:"Skein1024-224",45949:"Skein1024-232",45950:"Skein1024-240",45951:"Skein1024-248",45952:"Skein1024-256",45953:"Skein1024-264",45954:"Skein1024-272",45955:"Skein1024-280",45956:"Skein1024-288",45957:"Skein1024-296",45958:"Skein1024-304",45959:"Skein1024-312",45960:"Skein1024-320",45961:"Skein1024-328",45962:"Skein1024-336",45963:"Skein1024-344",45964:"Skein1024-352",45965:"Skein1024-360",45966:"Skein1024-368",45967:"Skein1024-376",45968:"Skein1024-384",45969:"Skein1024-392",45970:"Skein1024-400",45971:"Skein1024-408",45972:"Skein1024-416",45973:"Skein1024-424",45974:"Skein1024-432",45975:"Skein1024-440",45976:"Skein1024-448",45977:"Skein1024-456",45978:"Skein1024-464",45979:"Skein1024-472",45980:"Skein1024-480",45981:"Skein1024-488",45982:"Skein1024-496",45983:"Skein1024-504",45984:"Skein1024-512",45985:"Skein1024-520",45986:"Skein1024-528",45987:"Skein1024-536",45988:"Skein1024-544",45989:"Skein1024-552",45990:"Skein1024-560",45991:"Skein1024-568",45992:"Skein1024-576",45993:"Skein1024-584",45994:"Skein1024-592",45995:"Skein1024-600",45996:"Skein1024-608",45997:"Skein1024-616",45998:"Skein1024-624",45999:"Skein1024-632",46e3:"Skein1024-640",46001:"Skein1024-648",46002:"Skein1024-656",46003:"Skein1024-664",46004:"Skein1024-672",46005:"Skein1024-680",46006:"Skein1024-688",46007:"Skein1024-696",46008:"Skein1024-704",46009:"Skein1024-712",46010:"Skein1024-720",46011:"Skein1024-728",46012:"Skein1024-736",46013:"Skein1024-744",46014:"Skein1024-752",46015:"Skein1024-760",46016:"Skein1024-768",46017:"Skein1024-776",46018:"Skein1024-784",46019:"Skein1024-792",46020:"Skein1024-800",46021:"Skein1024-808",46022:"Skein1024-816",46023:"Skein1024-824",46024:"Skein1024-832",46025:"Skein1024-840",46026:"Skein1024-848",46027:"Skein1024-856",46028:"Skein1024-864",46029:"Skein1024-872",46030:"Skein1024-880",46031:"Skein1024-888",46032:"Skein1024-896",46033:"Skein1024-904",46034:"Skein1024-912",46035:"Skein1024-920",46036:"Skein1024-928",46037:"Skein1024-936",46038:"Skein1024-944",46039:"Skein1024-952",46040:"Skein1024-960",46041:"Skein1024-968",46042:"Skein1024-976",46043:"Skein1024-984",46044:"Skein1024-992",46045:"Skein1024-1000",46046:"Skein1024-1008",46047:"Skein1024-1016",46048:"Skein1024-1024"}),e.defaultLengths=Object.freeze({17:20,18:32,19:64,86:32,23:28,22:32,21:48,20:64,24:32,25:64,26:28,27:32,28:48,29:64,34:32,45569:1,45570:2,45571:3,45572:4,45573:5,45574:6,45575:7,45576:8,45577:9,45578:10,45579:11,45580:12,45581:13,45582:14,45583:15,45584:16,45585:17,45586:18,45587:19,45588:20,45589:21,45590:22,45591:23,45592:24,45593:25,45594:26,45595:27,45596:28,45597:29,45598:30,45599:31,45600:32,45601:33,45602:34,45603:35,45604:36,45605:37,45606:38,45607:39,45608:40,45609:41,45610:42,45611:43,45612:44,45613:45,45614:46,45615:47,45616:48,45617:49,45618:50,45619:51,45620:52,45621:53,45622:54,45623:55,45624:56,45625:57,45626:58,45627:59,45628:60,45629:61,45630:62,45631:63,45632:64,45633:1,45634:2,45635:3,45636:4,45637:5,45638:6,45639:7,45640:8,45641:9,45642:10,45643:11,45644:12,45645:13,45646:14,45647:15,45648:16,45649:17,45650:18,45651:19,45652:20,45653:21,45654:22,45655:23,45656:24,45657:25,45658:26,45659:27,45660:28,45661:29,45662:30,45663:31,45664:32,45825:1,45826:2,45827:3,45828:4,45829:5,45830:6,45831:7,45832:8,45833:9,45834:10,45835:11,45836:12,45837:13,45838:14,45839:15,45840:16,45841:17,45842:18,45843:19,45844:20,45845:21,45846:22,45847:23,45848:24,45849:25,45850:26,45851:27,45852:28,45853:29,45854:30,45855:31,45856:32,45857:1,45858:2,45859:3,45860:4,45861:5,45862:6,45863:7,45864:8,45865:9,45866:10,45867:11,45868:12,45869:13,45870:14,45871:15,45872:16,45873:17,45874:18,45875:19,45876:20,45877:21,45878:22,45879:23,45880:24,45881:25,45882:26,45883:27,45884:28,45885:29,45886:30,45887:31,45888:32,45889:33,45890:34,45891:35,45892:36,45893:37,45894:38,45895:39,45896:40,45897:41,45898:42,45899:43,45900:44,45901:45,45902:46,45903:47,45904:48,45905:49,45906:50,45907:51,45908:52,45909:53,45910:54,45911:55,45912:56,45913:57,45914:58,45915:59,45916:60,45917:61,45918:62,45919:63,45920:64,45921:1,45922:2,45923:3,45924:4,45925:5,45926:6,45927:7,45928:8,45929:9,45930:10,45931:11,45932:12,45933:13,45934:14,45935:15,45936:16,45937:17,45938:18,45939:19,45940:20,45941:21,45942:22,45943:23,45944:24,45945:25,45946:26,45947:27,45948:28,45949:29,45950:30,45951:31,45952:32,45953:33,45954:34,45955:35,45956:36,45957:37,45958:38,45959:39,45960:40,45961:41,45962:42,45963:43,45964:44,45965:45,45966:46,45967:47,45968:48,45969:49,45970:50,45971:51,45972:52,45973:53,45974:54,45975:55,45976:56,45977:57,45978:58,45979:59,45980:60,45981:61,45982:62,45983:63,45984:64,45985:65,45986:66,45987:67,45988:68,45989:69,45990:70,45991:71,45992:72,45993:73,45994:74,45995:75,45996:76,45997:77,45998:78,45999:79,46e3:80,46001:81,46002:82,46003:83,46004:84,46005:85,46006:86,46007:87,46008:88,46009:89,46010:90,46011:91,46012:92,46013:93,46014:94,46015:95,46016:96,46017:97,46018:98,46019:99,46020:100,46021:101,46022:102,46023:103,46024:104,46025:105,46026:106,46027:107,46028:108,46029:109,46030:110,46031:111,46032:112,46033:113,46034:114,46035:115,46036:116,46037:117,46038:118,46039:119,46040:120,46041:121,46042:122,46043:123,46044:124,46045:125,46046:126,46047:127,46048:128})},4858:function(t,e,r){"use strict";const n=r("0222"),i={};for(const[o,s]of Object.entries(n))void 0===i[s]&&(i[s]=o);t.exports=Object.freeze(i)},"48e6":function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s=r(9).Buffer}catch(E){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var s=t.charCodeAt(o)-48;n<<=4,n|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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"],l=[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],c=[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){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?h[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=l[t],d=c[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:h[f-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function v(t,e,r){var n=new g;return n.mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?m(this,t,e):v(this,t,e),r},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},g.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=f(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(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 b(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 w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){S.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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(w,b),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,b),i(_,b),i(k,b),k.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}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 w;else if("p224"===t)e=new M;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("62e4")(t))},"490f":function(t,e,r){"use strict";t.exports={ErrorResponse:function(t){var e=t&&t.error&&t.error.message?t.error.message:JSON.stringify(t),r=t.error&&t.error.data?t.error.data:null,n=new Error("Returned error: "+e);return n.data=r,n},InvalidNumberOfParams:function(t,e,r){return new Error('Invalid number of parameters for "'+r+'". Got '+t+" expected "+e+"!")},InvalidConnection:function(t,e){return this.ConnectionError("CONNECTION ERROR: Couldn't connect to node "+t+".",e)},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(t){var e=t&&t.error&&t.error.message?t.error.message:"Invalid JSON RPC response: "+JSON.stringify(t);return new Error(e)},ConnectionTimeout:function(t){return new Error("CONNECTION TIMEOUT: timeout of "+t+" ms achived")},ConnectionNotOpenError:function(t){return this.ConnectionError("connection not open on send()",t)},ConnectionCloseError:function(t){return"object"===typeof t&&t.code&&t.reason?this.ConnectionError("CONNECTION ERROR: The connection got closed with the close code `"+t.code+"` and the following reason string `"+t.reason+"`",t):new Error("CONNECTION ERROR: The connection closed unexpectedly")},MaxAttemptsReachedOnReconnectingError:function(){return new Error("Maximum number of reconnect attempts reached!")},PendingRequestsOnReconnectingError:function(){return new Error("CONNECTION ERROR: Provider started to reconnect before the response got received!")},ConnectionError:function(t,e){const r=new Error(t);return e&&(r.code=e.code,r.reason=e.reason),r},RevertInstructionError:function(t,e){var r=new Error("Your request got reverted with the following reason string: "+t);return r.reason=t,r.signature=e,r},TransactionRevertInstructionError:function(t,e,r){var n=new Error("Transaction has been reverted by the EVM:\n"+JSON.stringify(r,null,2));return n.reason=t,n.signature=e,n.receipt=r,n},TransactionError:function(t,e){var r=new Error(t);return r.receipt=e,r},NoContractAddressFoundError:function(t){return this.TransactionError("The transaction receipt didn't contain a contract address.",t)},ContractCodeNotStoredError:function(t){return this.TransactionError("The contract code couldn't be stored, please check your gas limit.",t)},TransactionRevertedWithoutReasonError:function(t){return this.TransactionError("Transaction has been reverted by the EVM:\n"+JSON.stringify(t,null,2),t)},TransactionOutOfGasError:function(t){return this.TransactionError("Transaction ran out of gas. Please provide more gas:\n"+JSON.stringify(t,null,2),t)},ResolverMethodMissingError:function(t,e){return new Error("The resolver at "+t+'does not implement requested method: "'+e+'".')},ContractMissingABIError:function(){return new Error("You must provide the json interface of the contract when instantiating a contract object.")},ContractOnceRequiresCallbackError:function(){return new Error("Once requires a callback as the second parameter.")},ContractEventDoesNotExistError:function(t){return new Error('Event "'+t+"\" doesn't exist in this contract.")},ContractReservedEventError:function(t){return new Error('The event "'+t+"\" is a reserved event name, you can't use it.")},ContractMissingDeployDataError:function(){return new Error('No "data" specified in neither the given options, nor the default options.')},ContractNoAddressDefinedError:function(){return new Error("This contract object doesn't have address set yet, please set an address first.")},ContractNoFromAddressDefinedError:function(){return new Error('No "from" address specified in neither the given options, nor the default options.')}}},4917:function(t,e,r){"use strict";var n=r("cb7c"),i=r("9def"),o=r("0390"),s=r("5f1b");r("214f")("match",1,(function(t,e,r,a){return[function(r){var n=t(this),i=void 0==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=a(r,t,this);if(e.done)return e.value;var u=n(t),h=String(this);if(!u.global)return s(u,h);var l=u.unicode;u.lastIndex=0;var c,f=[],d=0;while(null!==(c=s(u,h))){var p=String(c[0]);f[d]=p,""===p&&(u.lastIndex=o(h,i(u.lastIndex),l)),d++}return 0===d?null:f}]}))},"493f":function(t,e,r){"use strict";(function(e){function r(t,r){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(r?r(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(s,this,t)):e.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!r&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(n,o,t)):e.nextTick(n,o,t):r?(e.nextTick(i,o),r(t)):e.nextTick(i,o)})),this)}function n(t,e){s(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(t,e){t.emit("error",e)}function a(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:r,undestroy:o,errorOrDestroy:a}}).call(this,r("f28c"))},"49ce":function(t,e,r){"use strict";(function(e,n){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){V(e,t)}}var o;t.exports=O,O.WritableState=A;var s={deprecate:r("b7d1")},a=r("f12a"),u=r("b639").Buffer,h=e.Uint8Array||function(){};function l(t){return u.from(t)}function c(t){return u.isBuffer(t)||t instanceof h}var f,d=r("9019"),p=r("05f0"),m=p.getHighWaterMark,v=r("d113").codes,g=v.ERR_INVALID_ARG_TYPE,y=v.ERR_METHOD_NOT_IMPLEMENTED,b=v.ERR_MULTIPLE_CALLBACK,w=v.ERR_STREAM_CANNOT_PIPE,M=v.ERR_STREAM_DESTROYED,_=v.ERR_STREAM_NULL_VALUES,k=v.ERR_STREAM_WRITE_AFTER_END,S=v.ERR_UNKNOWN_ENCODING,x=d.errorOrDestroy;function E(){}function A(t,e,n){o=o||r("5e7d"),t=t||{},"boolean"!==typeof n&&(n=e instanceof o),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=m(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){j(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(t){o=o||r("5e7d");var e=this instanceof o;if(!e&&!f.call(O,this))return new O(t);this._writableState=new A(t,this,e),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)),a.call(this)}function T(t,e){var r=new k;x(t,r),n.nextTick(e,r)}function C(t,e,r,i){var o;return null===r?o=new _:"string"===typeof r||e.objectMode||(o=new g("chunk",["string","Buffer"],r)),!o||(x(t,o),n.nextTick(i,o),!1)}function P(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=u.from(e,r)),e}function B(t,e,r,n,i,o){if(!r){var s=P(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else I(t,e,!1,a,n,i,o);return u}function I(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new M("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function R(t,e,r,i,o){--e.pendingcb,r?(n.nextTick(o,i),n.nextTick(H,t,e),t._writableState.errorEmitted=!0,x(t,i)):(o(i),t._writableState.errorEmitted=!0,x(t,i),H(t,e))}function N(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function j(t,e){var r=t._writableState,i=r.sync,o=r.writecb;if("function"!==typeof o)throw new b;if(N(r),e)R(t,r,i,e,o);else{var s=F(r)||t.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||D(t,r),i?n.nextTick(L,t,r,s,o):L(t,r,s,o)}}function L(t,e,r,n){r||U(t,e),e.pendingcb--,n(),H(t,e)}function U(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function D(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,o=new Array(n),s=e.corkedRequestsFree;s.entry=r;var a=0,u=!0;while(r)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,I(t,e,!0,e.length,o,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{while(r){var h=r.chunk,l=r.encoding,c=r.callback,f=e.objectMode?1:h.length;if(I(t,e,!1,f,h,l,c),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function F(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function z(t,e){t._final((function(r){e.pendingcb--,r&&x(t,r),e.prefinished=!0,t.emit("prefinish"),H(t,e)}))}function q(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick(z,t,e)))}function H(t,e){var r=F(e);if(r&&(q(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function $(t,e,r){e.ending=!0,H(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function V(t,e,r){var n=t.entry;t.entry=null;while(n){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}r("3fb5")(O,a),A.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(A.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===O&&(t&&t._writableState instanceof A)}})):f=function(t){return t instanceof this},O.prototype.pipe=function(){x(this,new w)},O.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&c(t);return o&&!u.isBuffer(t)&&(t=l(t)),"function"===typeof e&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),"function"!==typeof r&&(r=E),n.ending?T(this,r):(o||C(this,n,t,r))&&(n.pendingcb++,i=B(this,n,o,t,e,r)),i},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||D(this,t))},O.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new S(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(t,e,r){r(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(t,e,r){var n=this._writableState;return"function"===typeof t?(r=t,t=null,e=null):"function"===typeof e&&(r=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||$(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),O.prototype.destroy=d.destroy,O.prototype._undestroy=d.undestroy,O.prototype._destroy=function(t,e){e(t)}}).call(this,r("c8ba"),r("f28c"))},"49fa":function(t){t.exports=JSON.parse('{"name":"byzantium","comment":"Hardfork with new precompiles, instructions and other protocol changes","url":"https://eips.ethereum.org/EIPS/eip-609","status":"Final","gasConfig":{},"gasPrices":{"modexpGquaddivisor":{"v":20,"d":"Gquaddivisor from modexp precompile for gas calculation"},"ecAdd":{"v":500,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":40000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":100000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":80000,"d":"Gas costs regarding curve pairing precompile input length"},"revert":{"v":0,"d":"Base fee of the REVERT opcode"},"staticcall":{"v":700,"d":"Base fee of the STATICCALL opcode"},"returndatasize":{"v":2,"d":"Base fee of the RETURNDATASIZE opcode"},"returndatacopy":{"v":3,"d":"Base fee of the RETURNDATACOPY opcode"}},"vm":{},"pow":{"minerReward":{"v":"3000000000000000000","d":"the amount a miner get rewarded for mining a block"},"difficultyBombDelay":{"v":3000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},"4a59":function(t,e,r){var n=r("9b43"),i=r("1fa8"),o=r("33a4"),s=r("cb7c"),a=r("9def"),u=r("27ee"),h={},l={};e=t.exports=function(t,e,r,c,f){var d,p,m,v,g=f?function(){return t}:u(t),y=n(r,c,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(d=a(t.length);d>b;b++)if(v=e?y(s(p=t[b])[0],p[1]):y(t[b]),v===h||v===l)return v}else for(m=g.call(t);!(p=m.next()).done;)if(v=i(m,y,p.value,e),v===h||v===l)return v};e.BREAK=h,e.RETURN=l},"4a7b":function(t,e,r){"use strict";var n=r("c532");t.exports=function(t,e){e=e||{};var r={},i=["url","method","params","data"],o=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(i,(function(t){"undefined"!==typeof e[t]&&(r[t]=e[t])})),n.forEach(o,(function(i){n.isObject(e[i])?r[i]=n.deepMerge(t[i],e[i]):"undefined"!==typeof e[i]?r[i]=e[i]:n.isObject(t[i])?r[i]=n.deepMerge(t[i]):"undefined"!==typeof t[i]&&(r[i]=t[i])})),n.forEach(s,(function(n){"undefined"!==typeof e[n]?r[n]=e[n]:"undefined"!==typeof t[n]&&(r[n]=t[n])}));var a=i.concat(o).concat(s),u=Object.keys(e).filter((function(t){return-1===a.indexOf(t)}));return n.forEach(u,(function(n){"undefined"!==typeof e[n]?r[n]=e[n]:"undefined"!==typeof t[n]&&(r[n]=t[n])})),r}},"4a84":function(t,e,r){"use strict";r.r(e),r.d(e,"ConstructorFragment",(function(){return k})),r.d(e,"EventFragment",(function(){return b})),r.d(e,"Fragment",(function(){return y})),r.d(e,"FunctionFragment",(function(){return S})),r.d(e,"ParamType",(function(){return v})),r.d(e,"FormatTypes",(function(){return p})),r.d(e,"AbiCoder",(function(){return rt})),r.d(e,"defaultAbiCoder",(function(){return nt})),r.d(e,"Interface",(function(){return ct})),r.d(e,"Indexed",(function(){return ht})),r.d(e,"checkResultErrors",(function(){return B})),r.d(e,"LogDescription",(function(){return at})),r.d(e,"TransactionDescription",(function(){return ut}));var n=r("e36d"),i=r("9bda"),o=r("ffb2");const s="abi/5.0.7",a=new o["Logger"](s),u={};let h={calldata:!0,memory:!0,storage:!0},l={calldata:!0,memory:!0};function c(t,e){if("bytes"===t||"string"===t){if(h[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&l[e])return!0;return(h[e]||"payable"===e)&&a.throwArgumentError("invalid modifier","name",e),!1}function f(t,e){let r=t;function n(e){a.throwArgumentError("unexpected character at position "+e,"param",t)}function i(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},s=o;for(let a=0;a<t.length;a++){let r=t[a];switch(r){case"(":s.state.allowType&&""===s.type?s.type="tuple":s.state.allowParams||n(a),s.state.allowType=!1,s.type=x(s.type),s.components=[i(s)],s=s.components[0];break;case")":delete s.state,"indexed"===s.name&&(e||n(a),s.indexed=!0,s.name=""),c(s.type,s.name)&&(s.name=""),s.type=x(s.type);let t=s;s=s.parent,s||n(a),delete t.parent,s.state.allowParams=!1,s.state.allowName=!0,s.state.allowArray=!0;break;case",":delete s.state,"indexed"===s.name&&(e||n(a),s.indexed=!0,s.name=""),c(s.type,s.name)&&(s.name=""),s.type=x(s.type);let o=i(s.parent);s.parent.components.push(o),delete s.parent,s=o;break;case" ":s.state.allowType&&""!==s.type&&(s.type=x(s.type),delete s.state.allowType,s.state.allowName=!0,s.state.allowParams=!0),s.state.allowName&&""!==s.name&&("indexed"===s.name?(e||n(a),s.indexed&&n(a),s.indexed=!0,s.name=""):c(s.type,s.name)?s.name="":s.state.allowName=!1);break;case"[":s.state.allowArray||n(a),s.type+=r,s.state.allowArray=!1,s.state.allowName=!1,s.state.readArray=!0;break;case"]":s.state.readArray||n(a),s.type+=r,s.state.readArray=!1,s.state.allowArray=!0,s.state.allowName=!0;break;default:s.state.allowType?(s.type+=r,s.state.allowParams=!0,s.state.allowArray=!0):s.state.allowName?(s.name+=r,delete s.state.allowArray):s.state.readArray?s.type+=r:n(a)}}return s.parent&&a.throwArgumentError("unexpected eof","param",t),delete o.state,"indexed"===s.name?(e||n(r.length-7),s.indexed&&n(r.length-7),s.indexed=!0,s.name=""):c(s.type,s.name)&&(s.name=""),o.type=x(o.type),o}function d(t,e){for(let r in e)Object(i["d"])(t,r,e[r])}const p=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),m=new RegExp(/^(.*)\[([0-9]*)\]$/);class v{constructor(t,e){t!==u&&a.throwError("use fromString",o["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),d(this,e);let r=this.type.match(m);d(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:v.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=p.sighash),p[t]||a.throwArgumentError("invalid format type","format",t),t===p.json){let e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"===typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map(e=>JSON.parse(e.format(t)))),JSON.stringify(e)}let e="";return"array"===this.baseType?(e+=this.arrayChildren.format(t),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==p.sighash&&(e+=this.type),e+="("+this.components.map(e=>e.format(t)).join(t===p.full?", ":",")+")"):e+=this.type,t!==p.sighash&&(!0===this.indexed&&(e+=" indexed"),t===p.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"===typeof t?v.fromString(t,e):v.fromObject(t)}static fromObject(t){return v.isParamType(t)?t:new v(u,{name:t.name||null,type:x(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(v.fromObject):null})}static fromString(t,e){function r(t){return v.fromObject({name:t.name,type:t.type,indexed:t.indexed,components:t.components})}return r(f(t,!!e))}static isParamType(t){return!(null==t||!t._isParamType)}}function g(t,e){return T(t).map(t=>v.fromString(t,e))}class y{constructor(t,e){t!==u&&a.throwError("use a static from method",o["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),d(this,e),this._isFragment=!0,Object.freeze(this)}static from(t){return y.isFragment(t)?t:"string"===typeof t?y.fromString(t):y.fromObject(t)}static fromObject(t){if(y.isFragment(t))return t;switch(t.type){case"function":return S.fromObject(t);case"event":return b.fromObject(t);case"constructor":return k.fromObject(t);case"fallback":case"receive":return null}return a.throwArgumentError("invalid fragment object","value",t)}static fromString(t){return t=t.replace(/\s/g," "),t=t.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),t=t.trim(),"event"===t.split(" ")[0]?b.fromString(t.substring(5).trim()):"function"===t.split(" ")[0]?S.fromString(t.substring(8).trim()):"constructor"===t.split("(")[0].trim()?k.fromString(t.trim()):a.throwArgumentError("unsupported fragment","value",t)}static isFragment(t){return!(!t||!t._isFragment)}}class b extends y{format(t){if(t||(t=p.sighash),p[t]||a.throwArgumentError("invalid format type","format",t),t===p.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==p.sighash&&(e+="event "),e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===p.full?", ":",")+") ",t!==p.sighash&&this.anonymous&&(e+="anonymous "),e.trim()}static from(t){return"string"===typeof t?b.fromString(t):b.fromObject(t)}static fromObject(t){if(b.isEventFragment(t))return t;"event"!==t.type&&a.throwArgumentError("invalid event object","value",t);const e={name:A(t.name),anonymous:t.anonymous,inputs:t.inputs?t.inputs.map(v.fromObject):[],type:"event"};return new b(u,e)}static fromString(t){let e=t.match(O);e||a.throwArgumentError("invalid event string","value",t);let r=!1;return e[3].split(" ").forEach(t=>{switch(t.trim()){case"anonymous":r=!0;break;case"":break;default:a.warn("unknown modifier: "+t)}}),b.fromObject({name:e[1].trim(),anonymous:r,inputs:g(e[2],!0),type:"event"})}static isEventFragment(t){return t&&t._isFragment&&"event"===t.type}}function w(t,e){e.gas=null;let r=t.split("@");return 1!==r.length?(r.length>2&&a.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||a.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=n["a"].from(r[1]),r[0]):t}function M(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(t=>{switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function _(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(e.stateMutability=t.stateMutability,e.constant="view"===e.stateMutability||"pure"===e.stateMutability,null!=t.constant&&!!t.constant!==e.constant&&a.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable="payable"===e.stateMutability,null!=t.payable&&!!t.payable!==e.payable&&a.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):null!=t.payable?(e.payable=!!t.payable,null!=t.constant||e.payable||"constructor"===t.type||a.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&a.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):"constructor"!==t.type&&a.throwArgumentError("unable to determine stateMutability","value",t),e}class k extends y{format(t){if(t||(t=p.sighash),p[t]||a.throwArgumentError("invalid format type","format",t),t===p.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});t===p.sighash&&a.throwError("cannot format a constructor for sighash",o["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let e="constructor("+this.inputs.map(e=>e.format(t)).join(t===p.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "),e.trim()}static from(t){return"string"===typeof t?k.fromString(t):k.fromObject(t)}static fromObject(t){if(k.isConstructorFragment(t))return t;"constructor"!==t.type&&a.throwArgumentError("invalid constructor object","value",t);let e=_(t);e.constant&&a.throwArgumentError("constructor cannot be constant","value",t);const r={name:null,type:t.type,inputs:t.inputs?t.inputs.map(v.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?n["a"].from(t.gas):null};return new k(u,r)}static fromString(t){let e={type:"constructor"};t=w(t,e);let r=t.match(O);return r&&"constructor"===r[1].trim()||a.throwArgumentError("invalid constructor string","value",t),e.inputs=g(r[2].trim(),!1),M(r[3].trim(),e),k.fromObject(e)}static isConstructorFragment(t){return t&&t._isFragment&&"constructor"===t.type}}class S extends k{format(t){if(t||(t=p.sighash),p[t]||a.throwArgumentError("invalid format type","format",t),t===p.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(e=>JSON.parse(e.format(t))),ouputs:this.outputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==p.sighash&&(e+="function "),e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===p.full?", ":",")+") ",t!==p.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "):this.constant&&(e+="view "),this.outputs&&this.outputs.length&&(e+="returns ("+this.outputs.map(e=>e.format(t)).join(", ")+") "),null!=this.gas&&(e+="@"+this.gas.toString()+" ")),e.trim()}static from(t){return"string"===typeof t?S.fromString(t):S.fromObject(t)}static fromObject(t){if(S.isFunctionFragment(t))return t;"function"!==t.type&&a.throwArgumentError("invalid function object","value",t);let e=_(t);const r={type:t.type,name:A(t.name),constant:e.constant,inputs:t.inputs?t.inputs.map(v.fromObject):[],outputs:t.outputs?t.outputs.map(v.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?n["a"].from(t.gas):null};return new S(u,r)}static fromString(t){let e={type:"function"};t=w(t,e);let r=t.split(" returns ");r.length>2&&a.throwArgumentError("invalid function string","value",t);let n=r[0].match(O);if(n||a.throwArgumentError("invalid function signature","value",t),e.name=n[1].trim(),e.name&&A(e.name),e.inputs=g(n[2],!1),M(n[3].trim(),e),r.length>1){let n=r[1].match(O);""==n[1].trim()&&""==n[3].trim()||a.throwArgumentError("unexpected tokens","value",t),e.outputs=g(n[2],!1)}else e.outputs=[];return S.fromObject(e)}static isFunctionFragment(t){return t&&t._isFragment&&"function"===t.type}}function x(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const E=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function A(t){return t&&t.match(E)||a.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const O=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function T(t){t=t.trim();let e=[],r="",n=0;for(let i=0;i<t.length;i++){let o=t[i];","===o&&0===n?(e.push(r),r=""):(r+=o,"("===o?n++:")"===o&&(n--,-1===n&&a.throwArgumentError("unbalanced parenthesis","value",t)))}return r&&e.push(r),e}var C=r("549e");const P=new o["Logger"](s);function B(t){const e=[],r=function(t,n){if(Array.isArray(n))for(let o in n){const s=t.slice();s.push(o);try{r(s,n[o])}catch(i){e.push({path:s,error:i})}}};return r([],t),e}class I{constructor(t,e,r,n){this.name=t,this.type=e,this.localName=r,this.dynamic=n}_throwError(t,e){P.throwArgumentError(t,this.localName,e)}}class R{constructor(t){Object(i["d"])(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return Object(C["hexConcat"])(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(Object(C["concat"])(t._data))}writeBytes(t){let e=Object(C["arrayify"])(t);const r=e.length%this.wordSize;return r&&(e=Object(C["concat"])([e,this._padding.slice(r)])),this._writeData(e)}_getValue(t){let e=Object(C["arrayify"])(n["a"].from(t));return e.length>this.wordSize&&P.throwError("value out-of-bounds",o["Logger"].errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=Object(C["concat"])([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class N{constructor(t,e,r,n){Object(i["d"])(this,"_data",Object(C["arrayify"])(t)),Object(i["d"])(this,"wordSize",e||32),Object(i["d"])(this,"_coerceFunc",r),Object(i["d"])(this,"allowLoose",n),this._offset=0}get data(){return Object(C["hexlify"])(this._data)}get consumed(){return this._offset}static coerce(t,e){let r=t.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):N.coerce(t,e)}_peekBytes(t,e,r){let n=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?n=e:P.throwError("data out-of-bounds",o["Logger"].errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(t){return new N(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}readValue(){return n["a"].from(this.readBytes(this.wordSize))}}var j=r("3b1c");class L extends I{constructor(t){super("address","address",t,!1)}encode(t,e){try{Object(j["a"])(e)}catch(r){this._throwError(r.message,e)}return t.writeValue(e)}decode(t){return Object(j["a"])(Object(C["hexZeroPad"])(t.readValue().toHexString(),20))}}class U extends I{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}const D=new o["Logger"](s);function F(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"===typeof r){let t={};n=e.map(e=>{const n=e.localName;return n||D.throwError("cannot encode object for signature with missing names",o["Logger"].errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]&&D.throwError("cannot encode object for signature with duplicate names",o["Logger"].errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]=!0,r[n]})}else D.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&D.throwArgumentError("types/value length mismatch","tuple",r);let i=new R(t.wordSize),s=new R(t.wordSize),a=[];e.forEach((t,e)=>{let r=n[e];if(t.dynamic){let e=s.length;t.encode(s,r);let n=i.writeUpdatableValue();a.push(t=>{n(t+e)})}else t.encode(i,r)}),a.forEach(t=>{t(i.length)});let u=t.appendWriter(i);return u+=t.appendWriter(s),u}function z(t,e){let r=[],n=t.subReader(0);e.forEach(e=>{let i=null;if(e.dynamic){let r=t.readValue(),a=n.subReader(r.toNumber());try{i=e.decode(a)}catch(s){if(s.code===o["Logger"].errors.BUFFER_OVERRUN)throw s;i=s,i.baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(s){if(s.code===o["Logger"].errors.BUFFER_OVERRUN)throw s;i=s,i.baseType=e.name,i.name=e.localName,i.type=e.type}void 0!=i&&r.push(i)});const i=e.reduce((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t},{});e.forEach((t,e)=>{let n=t.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const o=r[e];o instanceof Error?Object.defineProperty(r,n,{get:()=>{throw o}}):r[n]=o});for(let o=0;o<r.length;o++){const t=r[o];t instanceof Error&&Object.defineProperty(r,o,{get:()=>{throw t}})}return Object.freeze(r)}class q extends I{constructor(t,e,r){const n=t.type+"["+(e>=0?e:"")+"]",i=-1===e||t.dynamic;super("array",n,r,i),this.coder=t,this.length=e}encode(t,e){Array.isArray(e)||this._throwError("expected array value",e);let r=this.length;-1===r&&(r=e.length,t.writeValue(e.length)),D.checkArgumentCount(e.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let i=0;i<e.length;i++)n.push(this.coder);return F(t,n,e)}decode(t){let e=this.length;-1===e&&(e=t.readValue().toNumber());let r=[];for(let n=0;n<e;n++)r.push(new U(this.coder));return t.coerce(this.name,z(t,r))}}class H extends I{constructor(t){super("bool","bool",t,!1)}encode(t,e){return t.writeValue(e?1:0)}decode(t){return t.coerce(this.type,!t.readValue().isZero())}}class $ extends I{constructor(t,e){super(t,t,e,!0)}encode(t,e){e=Object(C["arrayify"])(e);let r=t.writeValue(e.length);return r+=t.writeBytes(e),r}decode(t){return t.readBytes(t.readValue().toNumber(),!0)}}class V extends ${constructor(t){super("bytes",t)}decode(t){return t.coerce(this.name,Object(C["hexlify"])(super.decode(t)))}}class K extends I{constructor(t,e){let r="bytes"+String(t);super(r,r,e,!1),this.size=t}encode(t,e){let r=Object(C["arrayify"])(e);return r.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(r)}decode(t){return t.coerce(this.name,Object(C["hexlify"])(t.readBytes(this.size)))}}class W extends I{constructor(t){super("null","",t,!1)}encode(t,e){return null!=e&&this._throwError("not null",e),t.writeBytes([])}decode(t){return t.readBytes(0),t.coerce(this.name,null)}}var G=r("9d56");class Z extends I{constructor(t,e,r){const n=(e?"int":"uint")+8*t;super(n,n,r,!1),this.size=t,this.signed=e}encode(t,e){let r=n["a"].from(e),i=G["a"].mask(8*t.wordSize);if(this.signed){let t=i.mask(8*this.size-1);(r.gt(t)||r.lt(t.add(G["c"]).mul(G["b"])))&&this._throwError("value out-of-bounds",e)}else(r.lt(G["d"])||r.gt(i.mask(8*this.size)))&&this._throwError("value out-of-bounds",e);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*t.wordSize)),t.writeValue(r)}decode(t){let e=t.readValue().mask(8*this.size);return this.signed&&(e=e.fromTwos(8*this.size)),t.coerce(this.name,e)}}var J=r("5273");class X extends ${constructor(t){super("string",t)}encode(t,e){return super.encode(t,Object(J["c"])(e))}decode(t){return Object(J["e"])(super.decode(t))}}class Y extends I{constructor(t,e){let r=!1;const n=[];t.forEach(t=>{t.dynamic&&(r=!0),n.push(t.type)});const i="tuple("+n.join(",")+")";super("tuple",i,e,r),this.coders=t}encode(t,e){return F(t,this.coders,e)}decode(t){return t.coerce(this.name,z(t,this.coders))}}const Q=new o["Logger"](s),tt=new RegExp(/^bytes([0-9]*)$/),et=new RegExp(/^(u?int)([0-9]*)$/);class rt{constructor(t){Q.checkNew(new.target,rt),Object(i["d"])(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new L(t.name);case"bool":return new H(t.name);case"string":return new X(t.name);case"bytes":return new V(t.name);case"array":return new q(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new Y((t.components||[]).map(t=>this._getCoder(t)),t.name);case"":return new W(t.name)}let e=t.type.match(et);if(e){let r=parseInt(e[2]||"256");return(0===r||r>256||r%8!==0)&&Q.throwArgumentError("invalid "+e[1]+" bit length","param",t),new Z(r/8,"int"===e[1],t.name)}if(e=t.type.match(tt),e){let r=parseInt(e[1]);return(0===r||r>32)&&Q.throwArgumentError("invalid bytes length","param",t),new K(r,t.name)}return Q.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new N(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new R(this._getWordSize())}encode(t,e){t.length!==e.length&&Q.throwError("types/values length mismatch",o["Logger"].errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const r=t.map(t=>this._getCoder(v.from(t))),n=new Y(r,"_"),i=this._getWriter();return n.encode(i,e),i.data}decode(t,e,r){const n=t.map(t=>this._getCoder(v.from(t))),i=new Y(n,"_");return i.decode(this._getReader(Object(C["arrayify"])(e),r))}}const nt=new rt;var it=r("35a8"),ot=r("6f5a");const st=new o["Logger"](s);class at extends i["a"]{}class ut extends i["a"]{}class ht extends i["a"]{static isIndexed(t){return!(!t||!t._isIndexed)}}function lt(t,e){const r=new Error("deferred error during ABI decoding triggered accessing "+t);return r.error=e,r}class ct{constructor(t){st.checkNew(new.target,ct);let e=[];e="string"===typeof t?JSON.parse(t):t,Object(i["d"])(this,"fragments",e.map(t=>y.from(t)).filter(t=>null!=t)),Object(i["d"])(this,"_abiCoder",Object(i["e"])(new.target,"getAbiCoder")()),Object(i["d"])(this,"functions",{}),Object(i["d"])(this,"errors",{}),Object(i["d"])(this,"events",{}),Object(i["d"])(this,"structs",{}),this.fragments.forEach(t=>{let e=null;switch(t.type){case"constructor":return this.deploy?void st.warn("duplicate definition - constructor"):void Object(i["d"])(this,"deploy",t);case"function":e=this.functions;break;case"event":e=this.events;break;default:return}let r=t.format();e[r]?st.warn("duplicate definition - "+r):e[r]=t}),this.deploy||Object(i["d"])(this,"deploy",k.from({payable:!1,type:"constructor"})),Object(i["d"])(this,"_isInterface",!0)}format(t){t||(t=p.full),t===p.sighash&&st.throwArgumentError("interface does not support formatting sighash","format",t);const e=this.fragments.map(e=>e.format(t));return t===p.json?JSON.stringify(e.map(t=>JSON.parse(t))):e}static getAbiCoder(){return nt}static getAddress(t){return Object(j["a"])(t)}static getSighash(t){return Object(C["hexDataSlice"])(Object(it["a"])(t.format()),0,4)}static getEventTopic(t){return Object(it["a"])(t.format())}getFunction(t){if(Object(C["isHexString"])(t)){for(const e in this.functions)if(t===this.getSighash(e))return this.functions[e];st.throwArgumentError("no matching function","sighash",t)}if(-1===t.indexOf("(")){const e=t.trim(),r=Object.keys(this.functions).filter(t=>t.split("(")[0]===e);return 0===r.length?st.throwArgumentError("no matching function","name",e):r.length>1&&st.throwArgumentError("multiple matching functions","name",e),this.functions[r[0]]}const e=this.functions[S.fromString(t).format()];return e||st.throwArgumentError("no matching function","signature",t),e}getEvent(t){if(Object(C["isHexString"])(t)){const e=t.toLowerCase();for(const t in this.events)if(e===this.getEventTopic(t))return this.events[t];st.throwArgumentError("no matching event","topichash",e)}if(-1===t.indexOf("(")){const e=t.trim(),r=Object.keys(this.events).filter(t=>t.split("(")[0]===e);return 0===r.length?st.throwArgumentError("no matching event","name",e):r.length>1&&st.throwArgumentError("multiple matching events","name",e),this.events[r[0]]}const e=this.events[b.fromString(t).format()];return e||st.throwArgumentError("no matching event","signature",t),e}getSighash(t){return"string"===typeof t&&(t=this.getFunction(t)),Object(i["e"])(this.constructor,"getSighash")(t)}getEventTopic(t){return"string"===typeof t&&(t=this.getEvent(t)),Object(i["e"])(this.constructor,"getEventTopic")(t)}_decodeParams(t,e){return this._abiCoder.decode(t,e)}_encodeParams(t,e){return this._abiCoder.encode(t,e)}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[])}decodeFunctionData(t,e){"string"===typeof t&&(t=this.getFunction(t));const r=Object(C["arrayify"])(e);return Object(C["hexlify"])(r.slice(0,4))!==this.getSighash(t)&&st.throwArgumentError(`data signature does not match function ${t.name}.`,"data",Object(C["hexlify"])(r)),this._decodeParams(t.inputs,r.slice(4))}encodeFunctionData(t,e){return"string"===typeof t&&(t=this.getFunction(t)),Object(C["hexlify"])(Object(C["concat"])([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionResult(t,e){"string"===typeof t&&(t=this.getFunction(t));let r=Object(C["arrayify"])(e),n=null,i=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,r)}catch(s){}break;case 4:"0x08c379a0"===Object(C["hexlify"])(r.slice(0,4))&&(i="Error(string)",n=this._abiCoder.decode(["string"],r.slice(4))[0]);break}return st.throwError("call revert exception",o["Logger"].errors.CALL_EXCEPTION,{method:t.format(),errorSignature:i,errorArgs:[n],reason:n})}encodeFunctionResult(t,e){return"string"===typeof t&&(t=this.getFunction(t)),Object(C["hexlify"])(this._abiCoder.encode(t.outputs,e||[]))}encodeFilterTopics(t,e){"string"===typeof t&&(t=this.getEvent(t)),e.length>t.inputs.length&&st.throwError("too many arguments for "+t.format(),o["Logger"].errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});let r=[];t.anonymous||r.push(this.getEventTopic(t));const n=(t,e)=>"string"===t.type?Object(it["a"])(e):"bytes"===t.type?Object(ot["a"])(Object(C["hexlify"])(e)):("address"===t.type&&this._abiCoder.encode(["address"],[e]),Object(C["hexZeroPad"])(Object(C["hexlify"])(e),32));e.forEach((e,i)=>{let o=t.inputs[i];o.indexed?null==e?r.push(null):"array"===o.baseType||"tuple"===o.baseType?st.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,e):Array.isArray(e)?r.push(e.map(t=>n(o,t))):r.push(n(o,e)):null!=e&&st.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,e)});while(r.length&&null===r[r.length-1])r.pop();return r}encodeEventLog(t,e){"string"===typeof t&&(t=this.getEvent(t));const r=[],n=[],i=[];return t.anonymous||r.push(this.getEventTopic(t)),e.length!==t.inputs.length&&st.throwArgumentError("event arguments/values mismatch","values",e),t.inputs.forEach((t,o)=>{const s=e[o];if(t.indexed)if("string"===t.type)r.push(Object(it["a"])(s));else if("bytes"===t.type)r.push(Object(ot["a"])(s));else{if("tuple"===t.baseType||"array"===t.baseType)throw new Error("not implemented");r.push(this._abiCoder.encode([t.type],[s]))}else n.push(t),i.push(s)}),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(t,e,r){if("string"===typeof t&&(t=this.getEvent(t)),null!=r&&!t.anonymous){let e=this.getEventTopic(t);Object(C["isHexString"])(r[0],32)&&r[0].toLowerCase()===e||st.throwError("fragment/topic mismatch",o["Logger"].errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:e,value:r[0]}),r=r.slice(1)}let n=[],i=[],s=[];t.inputs.forEach((t,e)=>{t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(n.push(v.fromObject({type:"bytes32",name:t.name})),s.push(!0)):(n.push(t),s.push(!1)):(i.push(t),s.push(!1))});let a=null!=r?this._abiCoder.decode(n,Object(C["concat"])(r)):null,u=this._abiCoder.decode(i,e,!0),h=[],l=0,c=0;t.inputs.forEach((t,e)=>{if(t.indexed)if(null==a)h[e]=new ht({_isIndexed:!0,hash:null});else if(s[e])h[e]=new ht({_isIndexed:!0,hash:a[c++]});else try{h[e]=a[c++]}catch(r){h[e]=r}else try{h[e]=u[l++]}catch(r){h[e]=r}if(t.name&&null==h[t.name]){const r=h[e];r instanceof Error?Object.defineProperty(h,t.name,{get:()=>{throw lt("property "+JSON.stringify(t.name),r)}}):h[t.name]=r}});for(let o=0;o<h.length;o++){const t=h[o];t instanceof Error&&Object.defineProperty(h,o,{get:()=>{throw lt("index "+o,t)}})}return Object.freeze(h)}parseTransaction(t){let e=this.getFunction(t.data.substring(0,10).toLowerCase());return e?new ut({args:this._abiCoder.decode(e.inputs,"0x"+t.data.substring(10)),functionFragment:e,name:e.name,signature:e.format(),sighash:this.getSighash(e),value:n["a"].from(t.value||"0")}):null}parseLog(t){let e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new at({eventFragment:e,name:e.name,signature:e.format(),topic:this.getEventTopic(e),args:this.decodeEventLog(e,t.data,t.topics)})}static isInterface(t){return!(!t||!t._isInterface)}}},"4a87":function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s=r("b639").Buffer}catch(E){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var s=t.charCodeAt(o)-48;n<<=4,n|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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"],l=[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],c=[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){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?h[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=l[t],d=c[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:h[f-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function v(t,e,r){var n=new g;return n.mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?m(this,t,e):v(this,t,e),r},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},g.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=f(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(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 b(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 w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){S.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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(w,b),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,b),i(_,b),i(k,b),k.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}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 w;else if("p224"===t)e=new M;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("62e4")(t))},"4b26":function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{while((void 0===e||e-- >0)&&!(n=o.next()).done)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o["return"])&&r.call(o)}finally{if(i)throw i.error}}return s},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseTransaction=void 0;var s=o(r("67aa")),a=r("5b66"),u=r("6f3d"),h=function(){function t(t){this.activeCapabilities=[],this.DEFAULT_CHAIN="mainnet",this.DEFAULT_HARDFORK="istanbul";var e=t.nonce,r=t.gasLimit,n=t.to,i=t.value,o=t.data,s=t.v,u=t.r,h=t.s,l=t.type;this._type=new a.BN(a.toBuffer(l)).toNumber();var c=a.toBuffer(""===n?"0x":n),f=a.toBuffer(""===s?"0x":s),d=a.toBuffer(""===u?"0x":u),p=a.toBuffer(""===h?"0x":h);this.nonce=new a.BN(a.toBuffer(""===e?"0x":e)),this.gasLimit=new a.BN(a.toBuffer(""===r?"0x":r)),this.to=c.length>0?new a.Address(c):void 0,this.value=new a.BN(a.toBuffer(""===i?"0x":i)),this.data=a.toBuffer(""===o?"0x":o),this.v=f.length>0?new a.BN(f):void 0,this.r=d.length>0?new a.BN(d):void 0,this.s=p.length>0?new a.BN(p):void 0,this._validateCannotExceedMaxInteger({nonce:this.nonce,gasLimit:this.gasLimit,value:this.value,r:this.r,s:this.s})}return Object.defineProperty(t.prototype,"transactionType",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),t.prototype.supports=function(t){return this.activeCapabilities.includes(t)},t.prototype.validate=function(t){void 0===t&&(t=!1);var e=[];return this.getBaseFee().gt(this.gasLimit)&&e.push("gasLimit is too low. given "+this.gasLimit+", need at least "+this.getBaseFee()),this.isSigned()&&!this.verifySignature()&&e.push("Invalid Signature"),t?e:0===e.length},t.prototype.getBaseFee=function(){var t=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&t.iaddn(this.common.param("gasPrices","txCreation")),t},t.prototype.getDataFee=function(){for(var t=this.common.param("gasPrices","txDataZero"),e=this.common.param("gasPrices","txDataNonZero"),r=0,n=0;n<this.data.length;n++)0===this.data[n]?r+=t:r+=e;return new a.BN(r)},t.prototype.toCreationAddress=function(){return void 0===this.to||0===this.to.buf.length},t.prototype.isSigned=function(){var t=this,e=t.v,r=t.r,n=t.s;return 0===this.type?!!(e&&r&&n):!(void 0===e||!r||!n)},t.prototype.verifySignature=function(){try{var t=this.getSenderPublicKey();return 0!==a.unpadBuffer(t).length}catch(e){return!1}},t.prototype.getSenderAddress=function(){return new a.Address(a.publicToAddress(this.getSenderPublicKey()))},t.prototype.sign=function(t){if(32!==t.length)throw new Error("Private key must be 32 bytes in length.");var e=!1;0===this.type&&this.common.gteHardfork("spuriousDragon")&&!this.supports(u.Capability.EIP155ReplayProtection)&&(this.activeCapabilities.push(u.Capability.EIP155ReplayProtection),e=!0);var r=this.getMessageToSign(!0),n=a.ecsign(r,t),i=n.v,o=n.r,s=n.s,h=this._processSignature(i,o,s);if(e){var l=this.activeCapabilities.indexOf(u.Capability.EIP155ReplayProtection);l>-1&&this.activeCapabilities.splice(l,1)}return h},t.prototype._getCommon=function(t,e){var r;if(e){var n=new a.BN(a.toBuffer(e));if(t){if(!t.chainIdBN().eq(n))throw new Error("The chain ID does not match the chain ID of Common");return t.copy()}return s.default.isSupportedChainId(n)?new s.default({chain:n,hardfork:this.DEFAULT_HARDFORK}):s.default.forCustomChain(this.DEFAULT_CHAIN,{name:"custom-chain",networkId:n,chainId:n},this.DEFAULT_HARDFORK)}return null!==(r=null===t||void 0===t?void 0:t.copy())&&void 0!==r?r:new s.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})},t.prototype._validateCannotExceedMaxInteger=function(t,e){var r,o;void 0===e&&(e=53);try{for(var s=n(Object.entries(t)),u=s.next();!u.done;u=s.next()){var h=i(u.value,2),l=h[0],c=h[1];if(53===e){if(null===c||void 0===c?void 0:c.gt(a.MAX_INTEGER))throw new Error(l+" cannot exceed MAX_INTEGER, given "+c)}else{if(256!==e)throw new Error("unimplemented bits value");if(null===c||void 0===c?void 0:c.gte(a.TWO_POW256))throw new Error(l+" must be less than 2^256, given "+c)}}}catch(f){r={error:f}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}},t}();e.BaseTransaction=h},"4bf8":function(t,e,r){var n=r("be13");t.exports=function(t){return Object(n(t))}},"4dd0":function(t,e,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,s=r("ae84"),a=r("fda6"),u=r("8707").Buffer;t.exports=function(t,e){var r,h=t.toString(),l=h.match(n);if(l){var c="aes"+l[1],f=u.from(l[2],"hex"),d=u.from(l[3].replace(/[\r\n]/g,""),"base64"),p=s(e,f.slice(0,8),parseInt(l[1],10)).key,m=[],v=a.createDecipheriv(c,p,f);m.push(v.update(d)),m.push(v.final()),r=u.concat(m)}else{var g=h.match(o);r=new u(g[2].replace(/[\r\n]/g,""),"base64")}var y=h.match(i)[1];return{tag:y,data:r}}},"4dda":function(t,e,r){r("ec30")("Float64",8,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},"4e2b":function(t,e,r){"use strict";var n=r("da3e"),i=r("3fb5"),o=r("5ee7"),s=r("0184");function a(){this.tmp=new Array(2),this.keys=null}function u(t){s.call(this,t);var e=new a;this._desState=e,this.deriveKeys(e,t.key)}i(u,s),t.exports=u,u.create=function(t){return new u(t)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(t,e){t.keys=new Array(32),n.equal(e.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(e,0),i=o.readUInt32BE(e,4);o.pc1(r,i,t.tmp,0),r=t.tmp[0],i=t.tmp[1];for(var s=0;s<t.keys.length;s+=2){var a=h[s>>>1];r=o.r28shl(r,a),i=o.r28shl(i,a),o.pc2(r,i,t.keys,s)}},u.prototype._update=function(t,e,r,n){var i=this._desState,s=o.readUInt32BE(t,e),a=o.readUInt32BE(t,e+4);o.ip(s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,s,a,i.tmp,0):this._decrypt(i,s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],o.writeUInt32BE(r,s,n),o.writeUInt32BE(r,a,n+4)},u.prototype._pad=function(t,e){for(var r=t.length-e,n=e;n<t.length;n++)t[n]=r;return!0},u.prototype._unpad=function(t){for(var e=t[t.length-1],r=t.length-e;r<t.length;r++)n.equal(t[r],e);return t.slice(0,t.length-e)},u.prototype._encrypt=function(t,e,r,n,i){for(var s=e,a=r,u=0;u<t.keys.length;u+=2){var h=t.keys[u],l=t.keys[u+1];o.expand(a,t.tmp,0),h^=t.tmp[0],l^=t.tmp[1];var c=o.substitute(h,l),f=o.permute(c),d=a;a=(s^f)>>>0,s=d}o.rip(a,s,n,i)},u.prototype._decrypt=function(t,e,r,n,i){for(var s=r,a=e,u=t.keys.length-2;u>=0;u-=2){var h=t.keys[u],l=t.keys[u+1];o.expand(s,t.tmp,0),h^=t.tmp[0],l^=t.tmp[1];var c=o.substitute(h,l),f=o.permute(c),d=s;s=(a^f)>>>0,a=d}o.rip(s,a,n,i)}},"4fcc":function(t,e,r){var n=r("eec7"),i=r("0ed4"),o=function(){};function s(t,e){delete t.uri;var r=!1;"json"===t.responseType&&(t.responseType="text",r=!0);var s=n(t,(function(n,s,a){if(r&&!n)try{var u=s.rawRequest.responseText;a=JSON.parse(u)}catch(h){n=h}s=i(t,s),e(n,n?null:a,s),e=o})),a=s.onabort;return s.onabort=function(){var t=a.apply(s,Array.prototype.slice.call(arguments));return e(new Error("XHR Aborted")),e=o,t},s}t.exports=s},"4fd1":function(t,e,r){var n=r("3fb5"),i=r("b672"),o=r("8707").Buffer,s=[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],a=new Array(160);function u(){this.init(),this._w=a,i.call(this,128,112)}function h(t,e,r){return r^t&(e^r)}function l(t,e,r){return t&e|r&(t|e)}function c(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function f(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function v(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function g(t,e){return t>>>0<e>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,u=0|this._fh,y=0|this._gh,b=0|this._hh,w=0|this._al,M=0|this._bl,_=0|this._cl,k=0|this._dl,S=0|this._el,x=0|this._fl,E=0|this._gl,A=0|this._hl,O=0;O<32;O+=2)e[O]=t.readInt32BE(4*O),e[O+1]=t.readInt32BE(4*O+4);for(;O<160;O+=2){var T=e[O-30],C=e[O-30+1],P=d(T,C),B=p(C,T);T=e[O-4],C=e[O-4+1];var I=m(T,C),R=v(C,T),N=e[O-14],j=e[O-14+1],L=e[O-32],U=e[O-32+1],D=B+j|0,F=P+N+g(D,B)|0;D=D+R|0,F=F+I+g(D,R)|0,D=D+U|0,F=F+L+g(D,U)|0,e[O]=F,e[O+1]=D}for(var z=0;z<160;z+=2){F=e[z],D=e[z+1];var q=l(r,n,i),H=l(w,M,_),$=c(r,w),V=c(w,r),K=f(a,S),W=f(S,a),G=s[z],Z=s[z+1],J=h(a,u,y),X=h(S,x,E),Y=A+W|0,Q=b+K+g(Y,A)|0;Y=Y+X|0,Q=Q+J+g(Y,X)|0,Y=Y+Z|0,Q=Q+G+g(Y,Z)|0,Y=Y+D|0,Q=Q+F+g(Y,D)|0;var tt=V+H|0,et=$+q+g(tt,V)|0;b=y,A=E,y=u,E=x,u=a,x=S,S=k+Y|0,a=o+Q+g(S,k)|0,o=i,k=_,i=n,_=M,n=r,M=w,w=Y+tt|0,r=Q+et+g(w,Y)|0}this._al=this._al+w|0,this._bl=this._bl+M|0,this._cl=this._cl+_|0,this._dl=this._dl+k|0,this._el=this._el+S|0,this._fl=this._fl+x|0,this._gl=this._gl+E|0,this._hl=this._hl+A|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+n+g(this._bl,M)|0,this._ch=this._ch+i+g(this._cl,_)|0,this._dh=this._dh+o+g(this._dl,k)|0,this._eh=this._eh+a+g(this._el,S)|0,this._fh=this._fh+u+g(this._fl,x)|0,this._gh=this._gh+y+g(this._gl,E)|0,this._hh=this._hh+b+g(this._hl,A)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},5043:function(t,e,r){"use strict";(function(t){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)},o=this&&this.__read||function(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{while((void 0===e||e-- >0)&&!(n=o.next()).done)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o["return"])&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var s=r("5b66"),a=r("4b26"),u=r("6f3d"),h=r("be6a"),l=2,c=t.from(l.toString(16).padStart(2,"0"),"hex"),f=function(e){function r(t,r){var n,o;void 0===r&&(r={});var a=e.call(this,i(i({},t),{type:l}))||this;a.DEFAULT_HARDFORK="london";var c=t.chainId,f=t.accessList,d=t.maxFeePerGas,p=t.maxPriorityFeePerGas;if(a.common=a._getCommon(r.common,c),a.chainId=a.common.chainIdBN(),!a.common.isActivatedEIP(1559))throw new Error("EIP-1559 not enabled on Common");a.activeCapabilities=a.activeCapabilities.concat([1559,2718,2930]);var m=h.AccessLists.getAccessListData(null!==f&&void 0!==f?f:[]);if(a.accessList=m.accessList,a.AccessListJSON=m.AccessListJSON,h.AccessLists.verifyAccessList(a.accessList),a.maxFeePerGas=new s.BN(s.toBuffer(""===d?"0x":d)),a.maxPriorityFeePerGas=new s.BN(s.toBuffer(""===p?"0x":p)),a._validateCannotExceedMaxInteger({maxFeePerGas:a.maxFeePerGas,maxPriorityFeePerGas:a.maxPriorityFeePerGas},256),a.maxFeePerGas.lt(a.maxPriorityFeePerGas))throw new Error("maxFeePerGas cannot be less than maxPriorityFeePerGas (The total must be the larger of the two)");if(a.v&&!a.v.eqn(0)&&!a.v.eqn(1))throw new Error("The y-parity of the transaction should either be 0 or 1");if(a.common.gteHardfork("homestead")&&(null===(n=a.s)||void 0===n?void 0:n.gt(u.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var v=null===(o=null===r||void 0===r?void 0:r.freeze)||void 0===o||o;return v&&Object.freeze(a),a}return n(r,e),Object.defineProperty(r.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),r.fromTxData=function(t,e){return void 0===e&&(e={}),new r(t,e)},r.fromSerializedTx=function(t,e){if(void 0===e&&(e={}),!t.slice(0,1).equals(c))throw new Error("Invalid serialized tx input: not an EIP-1559 transaction (wrong tx type, expected: "+l+", received: "+t.slice(0,1).toString("hex"));var n=s.rlp.decode(t.slice(1));if(!Array.isArray(n))throw new Error("Invalid serialized tx input: must be array");return r.fromValuesArray(n,e)},r.fromRlpSerializedTx=function(t,e){return void 0===e&&(e={}),r.fromSerializedTx(t,e)},r.fromValuesArray=function(t,e){if(void 0===e&&(e={}),9!==t.length&&12!==t.length)throw new Error("Invalid EIP-1559 transaction. Only expecting 9 values (for unsigned tx) or 12 values (for signed tx).");var n=o(t,12),i=n[0],a=n[1],u=n[2],h=n[3],l=n[4],c=n[5],f=n[6],d=n[7],p=n[8],m=n[9],v=n[10],g=n[11];return new r({chainId:new s.BN(i),nonce:a,maxPriorityFeePerGas:u,maxFeePerGas:h,gasLimit:l,to:c,value:f,data:d,accessList:null!==p&&void 0!==p?p:[],v:void 0!==m?new s.BN(m):void 0,r:v,s:g},e)},r.prototype.getDataFee=function(){var t=e.prototype.getDataFee.call(this);return t.iaddn(h.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),t},r.prototype.getUpfrontCost=function(t){void 0===t&&(t=new s.BN(0));var e=s.BN.min(this.maxPriorityFeePerGas,this.maxFeePerGas.sub(t)),r=e.add(t);return this.gasLimit.mul(r).add(this.value)},r.prototype.raw=function(){return[s.bnToUnpaddedBuffer(this.chainId),s.bnToUnpaddedBuffer(this.nonce),s.bnToUnpaddedBuffer(this.maxPriorityFeePerGas),s.bnToUnpaddedBuffer(this.maxFeePerGas),s.bnToUnpaddedBuffer(this.gasLimit),void 0!==this.to?this.to.buf:t.from([]),s.bnToUnpaddedBuffer(this.value),this.data,this.accessList,void 0!==this.v?s.bnToUnpaddedBuffer(this.v):t.from([]),void 0!==this.r?s.bnToUnpaddedBuffer(this.r):t.from([]),void 0!==this.s?s.bnToUnpaddedBuffer(this.s):t.from([])]},r.prototype.serialize=function(){var e=this.raw();return t.concat([c,s.rlp.encode(e)])},r.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var r=this.raw().slice(0,9),n=t.concat([c,s.rlp.encode(r)]);return e?s.keccak256(n):n},r.prototype.hash=function(){if(!this.isSigned())throw new Error("Cannot call hash method if transaction is not signed");return s.keccak256(this.serialize())},r.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},r.prototype.getSenderPublicKey=function(){var t;if(!this.isSigned())throw new Error("Cannot call this method if transaction is not signed");var e=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(t=this.s)||void 0===t?void 0:t.gt(u.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var r=this,n=r.v,i=r.r,o=r.s;try{return s.ecrecover(e,n.addn(27),s.bnToUnpaddedBuffer(i),s.bnToUnpaddedBuffer(o))}catch(a){throw new Error("Invalid Signature")}},r.prototype._processSignature=function(t,e,n){var i={common:this.common};return r.fromTxData({chainId:this.chainId,nonce:this.nonce,maxPriorityFeePerGas:this.maxPriorityFeePerGas,maxFeePerGas:this.maxFeePerGas,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new s.BN(t-27),r:new s.BN(e),s:new s.BN(n)},i)},r.prototype.toJSON=function(){var t=h.AccessLists.getAccessListJSON(this.accessList);return{chainId:s.bnToHex(this.chainId),nonce:s.bnToHex(this.nonce),maxPriorityFeePerGas:s.bnToHex(this.maxPriorityFeePerGas),maxFeePerGas:s.bnToHex(this.maxFeePerGas),gasLimit:s.bnToHex(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:s.bnToHex(this.value),data:"0x"+this.data.toString("hex"),accessList:t,v:void 0!==this.v?s.bnToHex(this.v):void 0,r:void 0!==this.r?s.bnToHex(this.r):void 0,s:void 0!==this.s?s.bnToHex(this.s):void 0}},r}(a.BaseTransaction);e.default=f}).call(this,r("b639").Buffer)},"504c":function(t,e,r){var n=r("9e1e"),i=r("0d58"),o=r("6821"),s=r("52a7").f;t.exports=function(t){return function(e){var r,a=o(e),u=i(a),h=u.length,l=0,c=[];while(h>l)r=u[l++],n&&!s.call(a,r)||c.push(t?[r,a[r]]:a[r]);return c}}},"509b":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r("1c55");function i(t){return"0x"+n.keccak_256(s(t))}function o(t){const e=[];for(let r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return"0x"+e.join("").replace(/^0+/,"")}function s(t){if(null==t)throw new Error("cannot convert null value to array");if("string"===typeof t){const e=t.match(/^(0x)?[0-9a-fA-F]*$/);if(!e)throw new Error("invalid hexidecimal string");if("0x"!==e[1])throw new Error("hex string must have 0x prefix");t=t.substring(2),t.length%2&&(t="0"+t);const r=[];for(let n=0;n<t.length;n+=2)r.push(parseInt(t.substr(n,2),16));return u(new Uint8Array(r))}if(a(t))return u(new Uint8Array(t));throw new Error("invalid arrayify value")}function a(t){if(!t||parseInt(String(t.length))!=t.length||"string"===typeof t)return!1;for(let e=0;e<t.length;e++){const r=t[e];if(r<0||r>=256||parseInt(String(r))!=r)return!1}return!0}function u(t){return void 0!==t.slice||(t.slice=()=>{const e=Array.prototype.slice.call(arguments);return u(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}e.keccak256=i,e.padLeft=(t,e)=>{const r=/^0x/i.test(t)||"number"===typeof t;t=t.toString().replace(/^0x/i,"");const n=e-t.length+1>=0?e-t.length+1:0;return(r?"0x":"")+new Array(n).join("0")+t},e.bytesToHex=o,e.toByteArray=s},"510b":function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.MAX_INTEGER=void 0;var i=r("b639").Buffer,o=n(r("399f"));e.MAX_INTEGER=new o.default("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),e.TWO_POW256=new o.default("10000000000000000000000000000000000000000000000000000000000000000",16),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=i.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=i.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=i.from(e.KECCAK256_RLP_S,"hex")},"514c":function(t){t.exports=JSON.parse('{"name":"constantinople","comment":"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)","url":"https://eips.ethereum.org/EIPS/eip-1013","status":"Final","gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":200,"d":"Once per SSTORE operation if the value doesn\'t change"},"netSstoreInitGas":{"v":20000,"d":"Once per SSTORE operation from clean zero"},"netSstoreCleanGas":{"v":5000,"d":"Once per SSTORE operation from clean non-zero"},"netSstoreDirtyGas":{"v":200,"d":"Once per SSTORE operation from dirty"},"netSstoreClearRefund":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"netSstoreResetRefund":{"v":4800,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"netSstoreResetClearRefund":{"v":19800,"d":"Once per SSTORE operation for resetting to the original zero value"},"shl":{"v":3,"d":"Base fee of the SHL opcode"},"shr":{"v":3,"d":"Base fee of the SHR opcode"},"sar":{"v":3,"d":"Base fee of the SAR opcode"},"extcodehash":{"v":400,"d":"Base fee of the EXTCODEHASH opcode"},"create2":{"v":32000,"d":"Base fee of the CREATE2 opcode"}},"vm":{},"pow":{"minerReward":{"v":"2000000000000000000","d":"The amount a miner gets rewarded for mining a block"},"difficultyBombDelay":{"v":5000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},5162:function(t,e){t.exports=function(t){if("string"!==typeof t)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof t+", while checking isHexPrefixed.");return"0x"===t.slice(0,2)}},5165:function(t,e,r){(function(t){var n=r("8c8a");function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,r){while(e._cache.length<r.length)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,o)}}).call(this,r("b639").Buffer)},"520a":function(t,e,r){"use strict";var n=r("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,s=i,a="lastIndex",u=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t[a]||0!==e[a]}(),h=void 0!==/()??/.exec("")[1],l=u||h;l&&(s=function(t){var e,r,s,l,c=this;return h&&(r=new RegExp("^"+c.source+"$(?!\\s)",n.call(c))),u&&(e=c[a]),s=i.call(c,t),u&&s&&(c[a]=c.global?s.index+s[0].length:e),h&&s&&s.length>1&&o.call(s[0],r,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s}),t.exports=s},5239:function(t,e,r){var n=r("8707").Buffer;function i(t,e,r){var n,i,s,a=-1,u=8,h=0;while(++a<u)n=t._cipher.encryptBlock(t._prev),i=e&1<<7-a?128:0,s=n[0]^i,h+=(128&s)>>a%8,t._prev=o(t._prev,r?i:s);return h}function o(t,e){var r=t.length,i=-1,o=n.allocUnsafe(t.length);t=n.concat([t,n.from([e])]);while(++i<r)o[i]=t[i]<<1|t[i+1]>>7;return o}e.encrypt=function(t,e,r){var o=e.length,s=n.allocUnsafe(o),a=-1;while(++a<o)s[a]=i(t,e[a],r);return s}},5270:function(t,e,r){"use strict";var n=r("c532"),i=r("c401"),o=r("2e67"),s=r("2444");function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){a(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||s.adapter;return e(t).then((function(e){return a(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(a(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5273:function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"c",(function(){return p})),r.d(e,"b",(function(){return m})),r.d(e,"e",(function(){return v})),r.d(e,"d",(function(){return g}));var n=r("549e"),i=r("ffb2");const o="strings/5.4.0",s=new i["Logger"](o);var a,u;function h(t,e,r,n,i){return s.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)}function l(t,e,r,n,i){if(t===u.BAD_PREFIX||t===u.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length;n++){if(r[n]>>6!==2)break;t++}return t}return t===u.OVERRUN?r.length-e-1:0}function c(t,e,r,n,i){return t===u.OVERLONG?(n.push(i),0):(n.push(65533),l(t,e,r,n,i))}(function(t){t["current"]="",t["NFC"]="NFC",t["NFD"]="NFD",t["NFKC"]="NFKC",t["NFKD"]="NFKD"})(a||(a={})),function(t){t["UNEXPECTED_CONTINUE"]="unexpected continuation byte",t["BAD_PREFIX"]="bad codepoint prefix",t["OVERRUN"]="string overrun",t["MISSING_CONTINUE"]="missing continuation byte",t["OUT_OF_RANGE"]="out of UTF-8 range",t["UTF16_SURROGATE"]="UTF-16 surrogate",t["OVERLONG"]="overlong representation"}(u||(u={}));const f=Object.freeze({error:h,ignore:l,replace:c});function d(t,e){null==e&&(e=f.error),t=Object(n["arrayify"])(t);const r=[];let i=0;while(i<t.length){const n=t[i++];if(n>>7===0){r.push(n);continue}let o=null,s=null;if(192===(224&n))o=1,s=127;else if(224===(240&n))o=2,s=2047;else{if(240!==(248&n)){i+=e(128===(192&n)?u.UNEXPECTED_CONTINUE:u.BAD_PREFIX,i-1,t,r);continue}o=3,s=65535}if(i-1+o>=t.length){i+=e(u.OVERRUN,i-1,t,r);continue}let a=n&(1<<8-o-1)-1;for(let h=0;h<o;h++){let n=t[i];if(128!=(192&n)){i+=e(u.MISSING_CONTINUE,i,t,r),a=null;break}a=a<<6|63&n,i++}null!==a&&(a>1114111?i+=e(u.OUT_OF_RANGE,i-1-o,t,r,a):a>=55296&&a<=57343?i+=e(u.UTF16_SURROGATE,i-1-o,t,r,a):a<=s?i+=e(u.OVERLONG,i-1-o,t,r,a):r.push(a))}return r}function p(t,e=a.current){e!=a.current&&(s.checkNormalize(),t=t.normalize(e));let r=[];for(let n=0;n<t.length;n++){const e=t.charCodeAt(n);if(e<128)r.push(e);else if(e<2048)r.push(e>>6|192),r.push(63&e|128);else if(55296==(64512&e)){n++;const i=t.charCodeAt(n);if(n>=t.length||56320!==(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&e)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(e>>12|224),r.push(e>>6&63|128),r.push(63&e|128)}return Object(n["arrayify"])(r)}function m(t){return t.map(t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t)))).join("")}function v(t,e){return m(d(t,e))}function g(t,e=a.current){return d(p(t,e))}},5291:function(t,e,r){var n=r("0106"),i=r("8707").Buffer;function o(t,e){return i.from(t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed().toArray())}t.exports=o},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"53a8":function(t,e){t.exports=n;var r=Object.prototype.hasOwnProperty;function n(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var i in n)r.call(n,i)&&(t[i]=n[i])}return t}},"53ca":function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,"a",(function(){return n}))},"53d8":function(t){t.exports=JSON.parse('{"name":"EIP-2930","comment":"Optional access lists","url":"https://eips.ethereum.org/EIPS/eip-2930","status":"Draft","minimumHardfork":"istanbul","requiredEIPs":[2718,2929],"gasConfig":{},"gasPrices":{"accessListStorageKeyCost":{"v":1900,"d":"Gas cost per storage key in an Access List transaction"},"accessListAddressCost":{"v":2400,"d":"Gas cost per storage key in an Access List transaction"}},"vm":{},"pow":{}}')},"543e":function(t,e,r){"use strict";var n=r("2638"),i=r.n(n),o=r("d282"),s=r("ea8e"),a=r("ba31"),u=Object(o["a"])("loading"),h=u[0],l=u[1];function c(t,e){if("spinner"===e.type){for(var r=[],n=0;n<12;n++)r.push(t("i"));return r}return t("svg",{class:l("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function f(t,e,r){if(r.default){var n,i={fontSize:Object(s["a"])(e.textSize),color:null!=(n=e.textColor)?n:e.color};return t("span",{class:l("text"),style:i},[r.default()])}}function d(t,e,r,n){var o=e.color,u=e.size,h=e.type,d={color:o};if(u){var p=Object(s["a"])(u);d.width=p,d.height=p}return t("div",i()([{class:l([h,{vertical:e.vertical}])},Object(a["b"])(n,!0)]),[t("span",{class:l("spinner",h),style:d},[c(t,e)]),f(t,e,r)])}d.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}},e["a"]=h(d)},"549e":function(t,e,r){"use strict";r.r(e),r.d(e,"isBytesLike",(function(){return u})),r.d(e,"isBytes",(function(){return h})),r.d(e,"arrayify",(function(){return l})),r.d(e,"concat",(function(){return c})),r.d(e,"stripZeros",(function(){return f})),r.d(e,"zeroPad",(function(){return d})),r.d(e,"isHexString",(function(){return p})),r.d(e,"hexlify",(function(){return v})),r.d(e,"hexDataLength",(function(){return g})),r.d(e,"hexDataSlice",(function(){return y})),r.d(e,"hexConcat",(function(){return b})),r.d(e,"hexValue",(function(){return w})),r.d(e,"hexStripZeros",(function(){return M})),r.d(e,"hexZeroPad",(function(){return _})),r.d(e,"splitSignature",(function(){return k})),r.d(e,"joinSignature",(function(){return S}));var n=r("ffb2");const i="bytes/5.4.0",o=new n["Logger"](i);function s(t){return!!t.toHexString}function a(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return a(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function u(t){return p(t)&&!(t.length%2)||h(t)}function h(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"===typeof t)return!1;if(null==t.length)return!1;for(let e=0;e<t.length;e++){const r=t[e];if("number"!==typeof r||r<0||r>=256||r%1)return!1}return!0}function l(t,e){if(e||(e={}),"number"===typeof t){o.checkSafeUint53(t,"invalid arrayify value");const e=[];while(t)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),a(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),s(t)&&(t=t.toHexString()),p(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0x0"+r.substring(2):"right"===e.hexPad?r+="0":o.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return a(new Uint8Array(n))}return h(t)?a(new Uint8Array(t)):o.throwArgumentError("invalid arrayify value","value",t)}function c(t){const e=t.map(t=>l(t)),r=e.reduce((t,e)=>t+e.length,0),n=new Uint8Array(r);return e.reduce((t,e)=>(n.set(e,t),t+e.length),0),a(n)}function f(t){let e=l(t);if(0===e.length)return e;let r=0;while(r<e.length&&0===e[r])r++;return r&&(e=e.slice(r)),e}function d(t,e){t=l(t),t.length>e&&o.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),a(r)}function p(t,e){return!("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}const m="0123456789abcdef";function v(t,e){if(e||(e={}),"number"===typeof t){o.checkSafeUint53(t,"invalid hexlify value");let e="";while(t)e=m[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"===typeof t)return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),s(t))return t.toHexString();if(p(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":o.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(h(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=m[(240&n)>>4]+m[15&n]}return e}return o.throwArgumentError("invalid hexlify value","value",t)}function g(t){if("string"!==typeof t)t=v(t);else if(!p(t)||t.length%2)return null;return(t.length-2)/2}function y(t,e,r){return"string"!==typeof t?t=v(t):(!p(t)||t.length%2)&&o.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function b(t){let e="0x";return t.forEach(t=>{e+=v(t).substring(2)}),e}function w(t){const e=M(v(t,{hexPad:"left"}));return"0x"===e?"0x0":e}function M(t){"string"!==typeof t&&(t=v(t)),p(t)||o.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;while(e<t.length&&"0"===t[e])e++;return"0x"+t.substring(e)}function _(t,e){"string"!==typeof t?t=v(t):p(t)||o.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&o.throwArgumentError("value out of range","value",arguments[1]);while(t.length<2*e+2)t="0x0"+t.substring(2);return t}function k(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(u(t)){const r=l(t);65!==r.length&&o.throwArgumentError("invalid signature string; must be 65 bytes","signature",t),e.r=v(r.slice(0,32)),e.s=v(r.slice(32,64)),e.v=r[64],e.v<27&&(0===e.v||1===e.v?e.v+=27:o.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=v(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){const r=d(l(e._vs),32);e._vs=v(r);const n=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=n:e.recoveryParam!==n&&o.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;const i=v(r);null==e.s?e.s=i:e.s!==i&&o.throwArgumentError("signature v mismatch _vs","signature",t)}null==e.recoveryParam?null==e.v?o.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2:null==e.v?e.v=27+e.recoveryParam:e.recoveryParam!==1-e.v%2&&o.throwArgumentError("signature recoveryParam mismatch v","signature",t),null!=e.r&&p(e.r)?e.r=_(e.r,32):o.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&p(e.s)?e.s=_(e.s,32):o.throwArgumentError("signature missing or invalid s","signature",t);const r=l(e.s);r[0]>=128&&o.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=v(r);e._vs&&(p(e._vs)||o.throwArgumentError("signature invalid _vs","signature",t),e._vs=_(e._vs,32)),null==e._vs?e._vs=n:e._vs!==n&&o.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e}function S(t){return t=k(t),v(c([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}},"551c":function(t,e,r){"use strict";var n,i,o,s,a=r("2d00"),u=r("7726"),h=r("9b43"),l=r("23c6"),c=r("5ca1"),f=r("d3f4"),d=r("d8e8"),p=r("f605"),m=r("4a59"),v=r("ebd6"),g=r("1991").set,y=r("8079")(),b=r("a5b8"),w=r("9c80"),M=r("a25f"),_=r("bcaa"),k="Promise",S=u.TypeError,x=u.process,E=x&&x.versions,A=E&&E.v8||"",O=u[k],T="process"==l(x),C=function(){},P=i=b.f,B=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[r("2b4c")("species")]=function(t){t(C,C)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(C)instanceof e&&0!==A.indexOf("6.6")&&-1===M.indexOf("Chrome/66")}catch(n){}}(),I=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var r=t._c;y((function(){var n=t._v,i=1==t._s,o=0,s=function(e){var r,o,s,a=i?e.ok:e.fail,u=e.resolve,h=e.reject,l=e.domain;try{a?(i||(2==t._h&&L(t),t._h=1),!0===a?r=n:(l&&l.enter(),r=a(n),l&&(l.exit(),s=!0)),r===e.promise?h(S("Promise-chain cycle")):(o=I(r))?o.call(r,u,h):u(r)):h(n)}catch(c){l&&!s&&l.exit(),h(c)}};while(r.length>o)s(r[o++]);t._c=[],t._n=!1,e&&!t._h&&N(t)}))}},N=function(t){g.call(u,(function(){var e,r,n,i=t._v,o=j(t);if(o&&(e=w((function(){T?x.emit("unhandledRejection",i,t):(r=u.onunhandledrejection)?r({promise:t,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)})),t._h=T||j(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},j=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){g.call(u,(function(){var e;T?x.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},U=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},D=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw S("Promise can't be resolved itself");(e=I(t))?y((function(){var n={_w:r,_d:!1};try{e.call(t,h(D,n,1),h(U,n,1))}catch(i){U.call(n,i)}})):(r._v=t,r._s=1,R(r,!1))}catch(n){U.call({_w:r,_d:!1},n)}}};B||(O=function(t){p(this,O,k,"_h"),d(t),n.call(this);try{t(h(D,this,1),h(U,this,1))}catch(e){U.call(this,e)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r("dcbc")(O.prototype,{then:function(t,e){var r=P(v(this,O));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=T?x.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&R(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=h(D,t,1),this.reject=h(U,t,1)},b.f=P=function(t){return t===O||t===s?new o(t):i(t)}),c(c.G+c.W+c.F*!B,{Promise:O}),r("7f20")(O,k),r("7a56")(k),s=r("8378")[k],c(c.S+c.F*!B,k,{reject:function(t){var e=P(this),r=e.reject;return r(t),e.promise}}),c(c.S+c.F*(a||!B),k,{resolve:function(t){return _(a&&this===s?O:this,t)}}),c(c.S+c.F*!(B&&r("5cc5")((function(t){O.all(t)["catch"](C)}))),k,{all:function(t){var e=this,r=P(e),n=r.resolve,i=r.reject,o=w((function(){var r=[],o=0,s=1;m(t,!1,(function(t){var a=o++,u=!1;r.push(void 0),s++,e.resolve(t).then((function(t){u||(u=!0,r[a]=t,--s||n(r))}),i)})),--s||n(r)}));return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=P(e),n=r.reject,i=w((function(){m(t,!1,(function(t){e.resolve(t).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})},5537:function(t,e,r){var n=r("8378"),i=r("7726"),o="__core-js_shared__",s=i[o]||(i[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"556a":function(t,e,r){"use strict";var n=r("6453"),i=r("320c"),o=r("f234");function s(t){switch(t.arrayFormat){case"index":return function(e,r,n){return null===r?[u(e,t),"[",n,"]"].join(""):[u(e,t),"[",u(n,t),"]=",u(r,t)].join("")};case"bracket":return function(e,r){return null===r?u(e,t):[u(e,t),"[]=",u(r,t)].join("")};default:return function(e,r){return null===r?u(e,t):[u(e,t),"=",u(r,t)].join("")}}}function a(t){var e;switch(t.arrayFormat){case"index":return function(t,r,n){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return function(t,r,n){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};default:return function(t,e,r){void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}function u(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function h(t){return Array.isArray(t)?t.sort():"object"===typeof t?h(Object.keys(t)).sort((function(t,e){return Number(t)-Number(e)})).map((function(e){return t[e]})):t}function l(t){var e=t.indexOf("?");return-1===e?"":t.slice(e+1)}function c(t,e){e=i({arrayFormat:"none"},e);var r=a(e),n=Object.create(null);return"string"!==typeof t?n:(t=t.trim().replace(/^[?#&]/,""),t?(t.split("&").forEach((function(t){var e=t.replace(/\+/g," ").split("="),i=e.shift(),s=e.length>0?e.join("="):void 0;s=void 0===s?null:o(s),r(o(i),s,n)})),Object.keys(n).sort().reduce((function(t,e){var r=n[e];return Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?t[e]=h(r):t[e]=r,t}),Object.create(null))):n)}e.extract=l,e.parse=c,e.stringify=function(t,e){var r={encode:!0,strict:!0,arrayFormat:"none"};e=i(r,e),!1===e.sort&&(e.sort=function(){});var n=s(e);return t?Object.keys(t).sort(e.sort).map((function(r){var i=t[r];if(void 0===i)return"";if(null===i)return u(r,e);if(Array.isArray(i)){var o=[];return i.slice().forEach((function(t){void 0!==t&&o.push(n(r,t,o.length))})),o.join("&")}return u(r,e)+"="+u(i,e)})).filter((function(t){return t.length>0})).join("&"):""},e.parseUrl=function(t,e){return{url:t.split("?")[0]||"",query:c(l(t),e)}}},"55dd":function(t,e,r){"use strict";var n=r("5ca1"),i=r("d8e8"),o=r("4bf8"),s=r("79e5"),a=[].sort,u=[1,2,3];n(n.P+n.F*(s((function(){u.sort(void 0)}))||!s((function(){u.sort(null)}))||!r("2f21")(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},"561d":function(t,e,r){(function(e){var n=r("48e6"),i=r("7a10"),o=new i,s=new n(24),a=new n(11),u=new n(10),h=new n(3),l=new n(7),c=r("58a2"),f=r("11dc");function d(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._pub=new n(t),this}function p(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._priv=new n(t),this}t.exports=g;var m={};function v(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in m)return m[n];var i,f=0;if(t.isEven()||!c.simpleSieve||!c.fermatTest(t)||!o.test(t))return f+=1,f+="02"===r||"05"===r?8:4,m[n]=f,f;switch(o.test(t.shrn(1))||(f+=2),r){case"02":t.mod(s).cmp(a)&&(f+=8);break;case"05":i=t.mod(u),i.cmp(h)&&i.cmp(l)&&(f+=8);break;default:f+=4}return m[n]=f,f}function g(t,e,r){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=p):this._primeCode=8}function y(t,r){var n=new e(t.toArray());return r?n.toString(r):n}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!==typeof this._primeCode&&(this._primeCode=v(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new n(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(t){t=new n(t),t=t.toRed(this._prime);var r=t.redPow(this._priv).fromRed(),i=new e(r.toArray()),o=this.getPrime();if(i.length<o.length){var s=new e(o.length-i.length);s.fill(0),i=e.concat([s,i])}return i},g.prototype.getPublicKey=function(t){return y(this._pub,t)},g.prototype.getPrivateKey=function(t){return y(this._priv,t)},g.prototype.getPrime=function(t){return y(this.__prime,t)},g.prototype.getGenerator=function(t){return y(this._gen,t)},g.prototype.setGenerator=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.__gen=t,this._gen=new n(t),this}}).call(this,r("b639").Buffer)},5663:function(t,e,r){"use strict";var n=function(t){var e,r=this;return this.net.getId().then((function(t){return e=t,r.getBlock(0)})).then((function(r){var n="private";return"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"===r.hash&&1===e&&(n="main"),"0cd786a2425d16f152c658316c423e6ce1181e15c3295826d7c9904cba9ce303"===r.hash&&2===e&&(n="morden"),"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"===r.hash&&3===e&&(n="ropsten"),"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177"===r.hash&&4===e&&(n="rinkeby"),"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a"===r.hash&&5===e&&(n="goerli"),"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9"===r.hash&&42===e&&(n="kovan"),"function"===typeof t&&t(null,n),n})).catch((function(e){if("function"!==typeof t)throw e;t(e)}))};t.exports=n},"568c":function(t,e,r){const n=r("5d98"),{hexStringToBuffer:i,profiles:o}=r("d8ce"),{cidV0ToV1Base32:s}=r("b3b2");t.exports={helpers:{cidV0ToV1Base32:s},decode:function(t){const e=i(t),r=n.getCodec(e),s=n.rmPrefix(e);let a=o[r];return a||(a=o["default"]),a.decode(s)},fromIpfs:function(t){return this.encode("ipfs-ns",t)},fromSwarm:function(t){return this.encode("swarm-ns",t)},encode:function(t,e){let r=o[t];r||(r=o["default"]);const i=r.encode(e);return n.addPrefix(t,i).toString("hex")},getCodec:function(t){let e=i(t);return n.getCodec(e)}}},"56b5":function(t,e,r){"use strict";var n=r("7f7a"),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())})),u=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),h=n.define("RDNSequence",(function(){this.seqof(u)})),l=n.define("Name",(function(){this.choice({rdnSequence:this.use(h)})})),c=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),f=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(l),this.key("validity").use(c),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())}));t.exports=p},"57e2":function(t,e,r){"use strict";(function(e){var n;function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r("42a7"),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),h=Symbol("ended"),l=Symbol("lastPromise"),c=Symbol("handlePromise"),f=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[s];if(null!==e){var r=t[f].read();null!==r&&(t[l]=null,t[s]=null,t[a]=null,e(d(r,!1)))}}function m(t){e.nextTick(p,t)}function v(t,e){return function(r,n){t.then((function(){e[h]?r(d(void 0,!0)):e[c](r,n)}),n)}}var g=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((n={get stream(){return this[f]},next:function(){var t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[h])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise((function(r,n){e.nextTick((function(){t[u]?n(t[u]):r(d(void 0,!0))}))}));var n,i=this[l];if(i)n=new Promise(v(i,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(d(o,!1));n=new Promise(this[c])}return this[l]=n,n}},i(n,Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var t=this;return new Promise((function(e,r){t[f].destroy(null,(function(t){t?r(t):e(d(void 0,!0))}))}))})),n),g),b=function(t){var e,r=Object.create(y,(e={},i(e,f,{value:t,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,h,{value:t._readableState.endEmitted,writable:!0}),i(e,c,{value:function(t,e){var n=r[f].read();n?(r[l]=null,r[s]=null,r[a]=null,t(d(n,!1))):(r[s]=t,r[a]=e)},writable:!0}),e));return r[l]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[a];return null!==e&&(r[l]=null,r[s]=null,r[a]=null,e(t)),void(r[u]=t)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[a]=null,n(d(void 0,!0))),r[h]=!0})),t.on("readable",m.bind(null,r)),r};t.exports=b}).call(this,r("f28c"))},"58a2":function(t,e,r){var n=r("11dc");t.exports=b,b.simpleSieve=g,b.fermatTest=y;var i=r("48e6"),o=new i(24),s=r("7a10"),a=new s,u=new i(1),h=new i(2),l=new i(5),c=(new i(16),new i(8),new i(10)),f=new i(3),d=(new i(7),new i(11)),p=new i(4),m=(new i(12),null);function v(){if(null!==m)return m;var t=1048576,e=[];e[0]=2;for(var r=1,n=3;n<t;n+=2){for(var i=Math.ceil(Math.sqrt(n)),o=0;o<r&&e[o]<=i;o++)if(n%e[o]===0)break;r!==o&&e[o]<=i||(e[r++]=n)}return m=e,e}function g(t){for(var e=v(),r=0;r<e.length;r++)if(0===t.modn(e[r]))return 0===t.cmpn(e[r]);return!0}function y(t){var e=i.mont(t);return 0===h.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function b(t,e){if(t<16)return new i(2===e||5===e?[140,123]:[140,39]);var r,s;e=new i(e);while(1){r=new i(n(Math.ceil(t/8)));while(r.bitLength()>t)r.ishrn(1);if(r.isEven()&&r.iadd(u),r.testn(1)||r.iadd(h),e.cmp(h)){if(!e.cmp(l))while(r.mod(c).cmp(f))r.iadd(p)}else while(r.mod(o).cmp(d))r.iadd(p);if(s=r.shrn(1),g(s)&&g(r)&&y(s)&&y(r)&&a.test(s)&&a.test(r))return r}}},5919:function(t,e,r){"use strict";e.sha1=r("13e2"),e.sha224=r("07f2"),e.sha256=r("6eed"),e.sha384=r("8b95"),e.sha512=r("b525")},"5a76":function(t,e,r){var n=r("f576");t.exports=function(t){return(new n).update(t).digest()}},"5ab1":function(t,e,r){"use strict";const n=r("cfab"),i=new Map;for(const o in n){const t=n[o];i.set(t,o)}t.exports=Object.freeze(i)},"5ac3":function(t,e,r){"use strict";r.r(e),r.d(e,"TransactionTypes",(function(){return M})),r.d(e,"computeAddress",(function(){return E})),r.d(e,"recoverAddress",(function(){return A})),r.d(e,"accessListify",(function(){return C})),r.d(e,"serialize",(function(){return N})),r.d(e,"parse",(function(){return F}));var n=r("3b1c"),i=r("e36d"),o=r("549e"),s=r("9d56"),a=r("6f5a"),u=r("9bda"),h=r("e165"),l=r("c24b"),c=r("ffb2");const f="signing-key/5.4.0",d=new c["Logger"](f);let p=null;function m(){return p||(p=new l["a"]("secp256k1")),p}class v{constructor(t){Object(u["d"])(this,"curve","secp256k1"),Object(u["d"])(this,"privateKey",Object(o["hexlify"])(t));const e=m().keyFromPrivate(Object(o["arrayify"])(this.privateKey));Object(u["d"])(this,"publicKey","0x"+e.getPublic(!1,"hex")),Object(u["d"])(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),Object(u["d"])(this,"_isSigningKey",!0)}_addPoint(t){const e=m().keyFromPublic(Object(o["arrayify"])(this.publicKey)),r=m().keyFromPublic(Object(o["arrayify"])(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}signDigest(t){const e=m().keyFromPrivate(Object(o["arrayify"])(this.privateKey)),r=Object(o["arrayify"])(t);32!==r.length&&d.throwArgumentError("bad digest length","digest",t);const n=e.sign(r,{canonical:!0});return Object(o["splitSignature"])({recoveryParam:n.recoveryParam,r:Object(o["hexZeroPad"])("0x"+n.r.toString(16),32),s:Object(o["hexZeroPad"])("0x"+n.s.toString(16),32)})}computeSharedSecret(t){const e=m().keyFromPrivate(Object(o["arrayify"])(this.privateKey)),r=m().keyFromPublic(Object(o["arrayify"])(y(t)));return Object(o["hexZeroPad"])("0x"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!(!t||!t._isSigningKey)}}function g(t,e){const r=Object(o["splitSignature"])(e),n={r:Object(o["arrayify"])(r.r),s:Object(o["arrayify"])(r.s)};return"0x"+m().recoverPubKey(Object(o["arrayify"])(t),n,r.recoveryParam).encode("hex",!1)}function y(t,e){const r=Object(o["arrayify"])(t);if(32===r.length){const t=new v(r);return e?"0x"+m().keyFromPrivate(r).getPublic(!0,"hex"):t.publicKey}return 33===r.length?e?Object(o["hexlify"])(r):"0x"+m().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?e?"0x"+m().keyFromPublic(r).getPublic(!0,"hex"):Object(o["hexlify"])(r):d.throwArgumentError("invalid public or private key","key","[REDACTED]")}const b="transactions/5.4.0",w=new c["Logger"](b);var M;function _(t){return"0x"===t?null:Object(n["a"])(t)}function k(t){return"0x"===t?s["d"]:i["a"].from(t)}(function(t){t[t["legacy"]=0]="legacy",t[t["eip2930"]=1]="eip2930",t[t["eip1559"]=2]="eip1559"})(M||(M={}));const S=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],x={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function E(t){const e=y(t);return Object(n["a"])(Object(o["hexDataSlice"])(Object(a["a"])(Object(o["hexDataSlice"])(e,1)),12))}function A(t,e){return E(g(Object(o["arrayify"])(t),e))}function O(t,e){const r=Object(o["stripZeros"])(i["a"].from(t).toHexString());return r.length>32&&w.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function T(t,e){return{address:Object(n["a"])(t),storageKeys:(e||[]).map((e,r)=>(32!==Object(o["hexDataLength"])(e)&&w.throwArgumentError("invalid access list storageKey",`accessList[${t}:${r}]`,e),e.toLowerCase()))}}function C(t){if(Array.isArray(t))return t.map((t,e)=>Array.isArray(t)?(t.length>2&&w.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${e}]`,t),T(t[0],t[1])):T(t.address,t.storageKeys));const e=Object.keys(t).map(e=>{const r=t[e].reduce((t,e)=>(t[e]=!0,t),{});return T(e,Object.keys(r).sort())});return e.sort((t,e)=>t.address.localeCompare(e.address)),e}function P(t){return C(t).map(t=>[t.address,t.storageKeys])}function B(t,e){if(null!=t.gasPrice){const e=i["a"].from(t.gasPrice),r=i["a"].from(t.maxFeePerGas||0);e.eq(r)||w.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:e,maxFeePerGas:r})}const r=[O(t.chainId||0,"chainId"),O(t.nonce||0,"nonce"),O(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),O(t.maxFeePerGas||0,"maxFeePerGas"),O(t.gasLimit||0,"gasLimit"),null!=t.to?Object(n["a"])(t.to):"0x",O(t.value||0,"value"),t.data||"0x",P(t.accessList||[])];if(e){const t=Object(o["splitSignature"])(e);r.push(O(t.recoveryParam,"recoveryParam")),r.push(Object(o["stripZeros"])(t.r)),r.push(Object(o["stripZeros"])(t.s))}return Object(o["hexConcat"])(["0x02",h["b"](r)])}function I(t,e){const r=[O(t.chainId||0,"chainId"),O(t.nonce||0,"nonce"),O(t.gasPrice||0,"gasPrice"),O(t.gasLimit||0,"gasLimit"),null!=t.to?Object(n["a"])(t.to):"0x",O(t.value||0,"value"),t.data||"0x",P(t.accessList||[])];if(e){const t=Object(o["splitSignature"])(e);r.push(O(t.recoveryParam,"recoveryParam")),r.push(Object(o["stripZeros"])(t.r)),r.push(Object(o["stripZeros"])(t.s))}return Object(o["hexConcat"])(["0x01",h["b"](r)])}function R(t,e){Object(u["b"])(t,x);const r=[];S.forEach((function(e){let n=t[e.name]||[];const i={};e.numeric&&(i.hexPad="left"),n=Object(o["arrayify"])(Object(o["hexlify"])(n,i)),e.length&&n.length!==e.length&&n.length>0&&w.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,n),e.maxLength&&(n=Object(o["stripZeros"])(n),n.length>e.maxLength&&w.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,n)),r.push(Object(o["hexlify"])(n))}));let n=0;if(null!=t.chainId?(n=t.chainId,"number"!==typeof n&&w.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!Object(o["isBytesLike"])(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),0!==n&&(r.push(Object(o["hexlify"])(n)),r.push("0x"),r.push("0x")),!e)return h["b"](r);const i=Object(o["splitSignature"])(e);let s=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),s+=2*n+8,i.v>28&&i.v!==s&&w.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==s&&w.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(Object(o["hexlify"])(s)),r.push(Object(o["stripZeros"])(Object(o["arrayify"])(i.r))),r.push(Object(o["stripZeros"])(Object(o["arrayify"])(i.s))),h["b"](r)}function N(t,e){if(null==t.type||0===t.type)return null!=t.accessList&&w.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),R(t,e);switch(t.type){case 1:return I(t,e);case 2:return B(t,e);default:break}return w.throwError("unsupported transaction type: "+t.type,c["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function j(t,e,r){try{const r=k(e[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");t.v=r}catch(n){w.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=Object(o["hexZeroPad"])(e[1],32),t.s=Object(o["hexZeroPad"])(e[2],32);try{const e=Object(a["a"])(r(t));t.from=A(e,{r:t.r,s:t.s,recoveryParam:t.v})}catch(n){console.log(n)}}function L(t){const e=h["a"](t.slice(1));9!==e.length&&12!==e.length&&w.throwArgumentError("invalid component count for transaction type: 2","payload",Object(o["hexlify"])(t));const r=k(e[2]),n=k(e[3]),i={type:2,chainId:k(e[0]).toNumber(),nonce:k(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:k(e[4]),to:_(e[5]),value:k(e[6]),data:e[7],accessList:C(e[8])};return 9===e.length||(i.hash=Object(a["a"])(t),j(i,e.slice(9),B)),i}function U(t){const e=h["a"](t.slice(1));8!==e.length&&11!==e.length&&w.throwArgumentError("invalid component count for transaction type: 1","payload",Object(o["hexlify"])(t));const r={type:1,chainId:k(e[0]).toNumber(),nonce:k(e[1]).toNumber(),gasPrice:k(e[2]),gasLimit:k(e[3]),to:_(e[4]),value:k(e[5]),data:e[6],accessList:C(e[7])};return 8===e.length||(r.hash=Object(a["a"])(t),j(r,e.slice(8),I)),r}function D(t){const e=h["a"](t);9!==e.length&&6!==e.length&&w.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:k(e[0]).toNumber(),gasPrice:k(e[1]),gasLimit:k(e[2]),to:_(e[3]),value:k(e[4]),data:e[5],chainId:0};if(6===e.length)return r;try{r.v=i["a"].from(e[6]).toNumber()}catch(n){return console.log(n),r}if(r.r=Object(o["hexZeroPad"])(e[7],32),r.s=Object(o["hexZeroPad"])(e[8],32),i["a"].from(r.r).isZero()&&i["a"].from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let i=r.v-27;const s=e.slice(0,6);0!==r.chainId&&(s.push(Object(o["hexlify"])(r.chainId)),s.push("0x"),s.push("0x"),i-=2*r.chainId+8);const u=Object(a["a"])(h["b"](s));try{r.from=A(u,{r:Object(o["hexlify"])(r.r),s:Object(o["hexlify"])(r.s),recoveryParam:i})}catch(n){console.log(n)}r.hash=Object(a["a"])(t)}return r.type=null,r}function F(t){const e=Object(o["arrayify"])(t);if(e[0]>127)return D(e);switch(e[0]){case 1:return U(e);case 2:return L(e);default:break}return w.throwError("unsupported transaction type: "+e[0],c["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}},"5b66":function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||e.hasOwnProperty(r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r("510b"),e),i(r("acc3"),e),i(r("d13a"),e),i(r("8463"),e),i(r("b258"),e),i(r("0c30"),e),i(r("e94e"),e),i(r("ce43"),e),i(r("6a9d"),e),i(r("9a12"),e)},"5ba3":function(t,e,r){var n=r("70c1"),i=r("21ef"),o=r("1d24"),s=r("11dc"),a=r("f609"),u=function(t,e,r,n,i){return!t||"object"!==typeof t||t instanceof Error||!t.data||((t.data&&"object"===typeof t.data||Array.isArray(t.data))&&(t.data=JSON.stringify(t.data,null,2)),t=t.message+"\n"+t.data),"string"===typeof t&&(t=new Error(t)),"function"===typeof n&&n(t,i),"function"===typeof r&&((e&&"function"===typeof e.listeners&&e.listeners("error").length||"function"===typeof n)&&e.catch((function(){})),setTimeout((function(){r(t)}),1)),e&&"function"===typeof e.emit&&setTimeout((function(){e.emit("error",t,i),e.removeAllListeners()}),1),e},h=function(t){return t&&"object"===typeof t&&t.name&&-1!==t.name.indexOf("(")?t.name:t.name+"("+l(!1,t.inputs).join(",")+")"},l=function(t,e){var r=[];return e.forEach((function(e){if("object"===typeof e.components){if("tuple"!==e.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var n="",i=e.type.indexOf("[");i>=0&&(n=e.type.substring(i));var o=l(t,e.components);Array.isArray(o)&&t?r.push("tuple("+o.join(",")+")"+n):t?r.push("("+o+")"):r.push("("+o.join(",")+")"+n)}else r.push(e.type)})),r},c=function(t){return"0x"+s(t).toString("hex")},f=function(t){if(!i.isHexStrict(t))throw new Error("The parameter must be a valid HEX string.");var e="",r=0,n=t.length;for("0x"===t.substring(0,2)&&(r=2);r<n;r+=2){var o=parseInt(t.substr(r,2),16);e+=String.fromCharCode(o)}return e},d=function(t){if(!t)return"0x00";for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r),i=n.toString(16);e+=i.length<2?"0"+i:i}return"0x"+e},p=function(t){if(t=t?t.toLowerCase():"ether",!n.unitMap[t])throw new Error('This unit "'+t+"\" doesn't exist, please use the one of the following units"+JSON.stringify(n.unitMap,null,2));return t},m=function(t,e){if(e=p(e),!i.isBN(t)&&"string"!==typeof t)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return i.isBN(t)?n.fromWei(t,e):n.fromWei(t,e).toString(10)},v=function(t,e){if(e=p(e),!i.isBN(t)&&"string"!==typeof t)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return i.isBN(t)?n.toWei(t,e):n.toWei(t,e).toString(10)},g=function(t){if("undefined"===typeof t)return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(t))throw new Error('Given address "'+t+'" is not a valid Ethereum address.');t=t.toLowerCase().replace(/^0x/i,"");for(var e=i.sha3(t).replace(/^0x/i,""),r="0x",n=0;n<t.length;n++)parseInt(e[n],16)>7?r+=t[n].toUpperCase():r+=t[n];return r},y=function(t,e){if(t==e)return 0;if("genesis"!=t&&"earliest"!=t&&0!=t||"genesis"!=e&&"earliest"!=e&&0!=e){if("genesis"==t||"earliest"==t)return-1;if("genesis"==e||"earliest"==e)return 1;if("latest"==t)return"pending"==e?-1:1;if("latest"===e)return"pending"==t?1:-1;if("pending"==t)return 1;if("pending"==e)return-1;{let r=new a(t),n=new a(e);return r.lt(n)?-1:r.eq(n)?0:1}}return 0};t.exports={_fireError:u,_jsonInterfaceMethodToString:h,_flattenTypes:l,randomHex:c,BN:i.BN,isBN:i.isBN,isBigNumber:i.isBigNumber,isHex:i.isHex,isHexStrict:i.isHexStrict,sha3:i.sha3,sha3Raw:i.sha3Raw,keccak256:i.sha3,soliditySha3:o.soliditySha3,soliditySha3Raw:o.soliditySha3Raw,encodePacked:o.encodePacked,isAddress:i.isAddress,checkAddressChecksum:i.checkAddressChecksum,toChecksumAddress:g,toHex:i.toHex,toBN:i.toBN,bytesToHex:i.bytesToHex,hexToBytes:i.hexToBytes,hexToNumberString:i.hexToNumberString,hexToNumber:i.hexToNumber,toDecimal:i.hexToNumber,numberToHex:i.numberToHex,fromDecimal:i.numberToHex,hexToUtf8:i.hexToUtf8,hexToString:i.hexToUtf8,toUtf8:i.hexToUtf8,stripHexPrefix:i.stripHexPrefix,utf8ToHex:i.utf8ToHex,stringToHex:i.utf8ToHex,fromUtf8:i.utf8ToHex,hexToAscii:f,toAscii:f,asciiToHex:d,fromAscii:d,unitMap:n.unitMap,toWei:v,fromWei:m,padLeft:i.leftPad,leftPad:i.leftPad,padRight:i.rightPad,rightPad:i.rightPad,toTwosComplement:i.toTwosComplement,isBloom:i.isBloom,isUserEthereumAddressInBloom:i.isUserEthereumAddressInBloom,isContractAddressInBloom:i.isContractAddressInBloom,isTopic:i.isTopic,isTopicInBloom:i.isTopicInBloom,isInBloom:i.isInBloom,compareBlockNumbers:y,toNumber:i.toNumber}},"5bbb":function(t,e,r){t.exports=r("faa1").EventEmitter},"5ca1":function(t,e,r){var n=r("7726"),i=r("8378"),o=r("32e9"),s=r("2aba"),a=r("9b43"),u="prototype",h=function(t,e,r){var l,c,f,d,p=t&h.F,m=t&h.G,v=t&h.S,g=t&h.P,y=t&h.B,b=m?n:v?n[e]||(n[e]={}):(n[e]||{})[u],w=m?i:i[e]||(i[e]={}),M=w[u]||(w[u]={});for(l in m&&(r=e),r)c=!p&&b&&void 0!==b[l],f=(c?b:r)[l],d=y&&c?a(f,n):g&&"function"==typeof f?a(Function.call,f):f,b&&s(b,l,f,t&h.U),w[l]!=f&&o(w,l,d),g&&M[l]!=f&&(M[l]=f)};n.core=i,h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,t.exports=h},"5cc5":function(t,e,r){var n=r("2b4c")("iterator"),i=!1;try{var o=[7][n]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(s){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(s){}return r}},"5d98":function(t,e,r){"use strict";(function(n){const i=r("2612"),o=r("5ab1"),s=r("cc3c"),a=r("1c13");e=t.exports,e.addPrefix=(t,e)=>{let r;if(n.isBuffer(t))r=a.varintBufferEncode(t);else{if(!s[t])throw new Error("multicodec not recognized");r=s[t]}return n.concat([r,e])},e.rmPrefix=t=>(i.decode(t),t.slice(i.decode.bytes)),e.getCodec=t=>{const e=i.decode(t),r=o.get(e);if(void 0===r)throw new Error(`Code ${e} not found`);return r},e.getName=t=>o.get(t),e.getNumber=t=>{const e=s[t];if(void 0===e)throw new Error("Codec `"+t+"` not found");return a.varintBufferDecode(e)[0]},e.getCode=t=>i.decode(t),e.getCodeVarint=t=>{const e=s[t];if(void 0===e)throw new Error("Codec `"+t+"` not found");return e},e.getVarint=t=>i.encode(t);const u=r("8111");Object.assign(e,u),e.print=r("17b2")}).call(this,r("b639").Buffer)},"5dbc":function(t,e,r){var n=r("d3f4"),i=r("8b97").set;t.exports=function(t,e,r){var o,s=e.constructor;return s!==r&&"function"==typeof s&&(o=s.prototype)!==r.prototype&&n(o)&&i&&i(t,o),t}},"5df3":function(t,e,r){"use strict";var n=r("02f4")(!0);r("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},"5e1a":function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=r("8707").Buffer,o=r(4);function s(t,e,r){t.copy(e,r)}t.exports=function(){function t(){n(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?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,r=""+e.data;while(e=e.next)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;var e=i.allocUnsafe(t>>>0),r=this.head,n=0;while(r)s(r.data,e,n),n+=r.data.length,r=r.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})},"5e7d":function(t,e,r){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=h;var i=r("cf35"),o=r("49ce");r("3fb5")(h,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var u=s[a];h.prototype[u]||(h.prototype[u]=o.prototype[u])}function h(t){if(!(this instanceof h))return new h(t);i.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||e.nextTick(c,this)}function c(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,r("f28c"))},"5eda":function(t,e,r){var n=r("5ca1"),i=r("8378"),o=r("79e5");t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],s={};s[t]=e(r),n(n.S+n.F*o((function(){r(1)})),"Object",s)}},"5ee7":function(t,e,r){"use strict";e.readUInt32BE=function(t,e){var r=t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e];return r>>>0},e.writeUInt32BE=function(t,e,r){t[0+r]=e>>>24,t[1+r]=e>>>16&255,t[2+r]=e>>>8&255,t[3+r]=255&e},e.ip=function(t,e,r,n){for(var i=0,o=0,s=6;s>=0;s-=2){for(var a=0;a<=24;a+=8)i<<=1,i|=e>>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=t>>>a+s&1}for(s=6;s>=0;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+s&1}r[n+0]=i>>>0,r[n+1]=o>>>0},e.rip=function(t,e,r,n){for(var i=0,o=0,s=0;s<4;s++)for(var a=24;a>=0;a-=8)i<<=1,i|=e>>>a+s&1,i<<=1,i|=t>>>a+s&1;for(s=4;s<8;s++)for(a=24;a>=0;a-=8)o<<=1,o|=e>>>a+s&1,o<<=1,o|=t>>>a+s&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.pc1=function(t,e,r,n){for(var i=0,o=0,s=7;s>=5;s--){for(var a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1}for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var n=[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,r,i){for(var o=0,s=0,a=n.length>>>1,u=0;u<a;u++)o<<=1,o|=t>>>n[u]&1;for(u=a;u<n.length;u++)s<<=1,s|=e>>>n[u]&1;r[i+0]=o>>>0,r[i+1]=s>>>0},e.expand=function(t,e,r){var n=0,i=0;n=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=t>>>o&63;for(o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[r+0]=n>>>0,e[r+1]=i>>>0};var i=[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 r=0,n=0;n<4;n++){var o=t>>>18-6*n&63,s=i[64*n+o];r<<=4,r|=s}for(n=0;n<4;n++){o=e>>>18-6*n&63,s=i[256+64*n+o];r<<=4,r|=s}return r>>>0};var o=[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,r=0;r<o.length;r++)e<<=1,e|=t>>>o[r]&1;return e>>>0},e.padSplit=function(t,e,r){var n=t.toString(2);while(n.length<e)n="0"+n;for(var i=[],o=0;o<e;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},"5f1b":function(t,e,r){"use strict";var n=r("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var r=t.exec;if("function"===typeof r){var o=r.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"5f3a":function(t){t.exports=JSON.parse('{"name":"calaveras","chainId":123,"networkId":123,"defaultHardfork":"berlin","consensus":{"type":"poa","algorithm":"clique","clique":{"period":30,"epoch":30000}},"comment":"The Calaveras testnet chain","url":"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/client-integration-testnets/calaveras.md","genesis":{"hash":"0xeb9233d066c275efcdfed8037f4fc082770176aefdbcb7691c71da412a5670f2","gasLimit":"0x47b760","difficulty":"0x1","nonce":"0x0000000000000000","extraData":"0x00000000000000000000000000000000000000000000000000000000000000005211cea3870c7ba7c6c44b185e62eecdb864cd8c560228ce57d31efbf64c200b2c200aacec78cf17a7148e784fe95a7a750335f8b9572ee28d72e7650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x664c93de37eb4a72953ea42b8c046cdb64c9f0b0bca5505ade8d970d49ebdb8c","timestamp":"0x60b3877f"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xe34c4aff"},{"name":"homestead","block":0,"forkHash":"0xe34c4aff"},{"name":"dao","block":null,"forkHash":"0xe34c4aff"},{"name":"tangerineWhistle","block":0,"forkHash":"0xe34c4aff"},{"name":"spuriousDragon","block":0,"forkHash":"0xe34c4aff"},{"name":"byzantium","block":0,"forkHash":"0xe34c4aff"},{"name":"constantinople","block":0,"forkHash":"0xe34c4aff"},{"name":"petersburg","block":0,"forkHash":"0xe34c4aff"},{"name":"istanbul","block":0,"forkHash":"0xe34c4aff"},{"name":"berlin","block":0,"forkHash":"0xe34c4aff"},{"name":"london","block":500,"forkHash":"0x173783e4"}],"bootstrapNodes":[{"ip":"3.21.156.138","port":30303,"id":"39eb08bbfad87481553c471a63ff2a4b4885fffa4ff50f1cf46744d9ad6e2f764ede146fe4df563fa9ccda1a46b9b1a88fb08135e1bf1d71b320912499da773d","location":"","comment":"Calaveras bootnode 1"},{"ip":"3.9.20.133","port":30303,"id":"9e1096aa59862a6f164994cb5cb16f5124d6c992cdbf4535ff7dea43ea1512afe5448dca9df1b7ab0726129603f1a3336b631e4d7a1a44c94daddd03241587f9","location":"","comment":"Calaveras bootnode 2"}]}')},"5fa0":function(t,e,r){"use strict";const n=r("5ba3"),i=r("10a9"),o=function(t,e){let r=t;while(r.length<2*e)r="0"+r;return r},s=function(t){const e="A".charCodeAt(0),r="Z".charCodeAt(0);return t=t.toUpperCase(),t=t.substr(4)+t.substr(0,4),t.split("").map((function(t){const n=t.charCodeAt(0);return n>=e&&n<=r?n-e+10:t})).join("")},a=function(t){let e,r=t;while(r.length>2)e=r.slice(0,9),r=parseInt(e,10)%97+r.slice(e.length);return parseInt(r,10)%97};class u{constructor(t){this._iban=t}static toAddress(t){if(t=new u(t),!t.isDirect())throw new Error("IBAN is indirect and can't be converted");return t.toAddress()}static toIban(t){return u.fromAddress(t).toString()}static fromAddress(t){if(!n.isAddress(t))throw new Error("Provided address is not a valid address: "+t);t=t.replace("0x","").replace("0X","");const e=new i(t,16),r=e.toString(36),s=o(r,15);return u.fromBban(s.toUpperCase())}static fromBban(t){const e="XE",r=a(s(e+"00"+t)),n=("0"+(98-r)).slice(-2);return new u(e+n+t)}static createIndirect(t){return u.fromBban("ETH"+t.institution+t.identifier)}static isValid(t){const e=new u(t);return e.isValid()}isValid(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===a(s(this._iban))}isDirect(){return 34===this._iban.length||35===this._iban.length}isIndirect(){return 20===this._iban.length}checksum(){return this._iban.substr(2,2)}institution(){return this.isIndirect()?this._iban.substr(7,4):""}client(){return this.isIndirect()?this._iban.substr(11):""}toAddress(){if(this.isDirect()){const t=this._iban.substr(4),e=new i(t,36);return n.toChecksumAddress(e.toString(16,20))}return""}toString(){return this._iban}}t.exports=u},"5fa5":function(t){t.exports=JSON.parse('{"name":"london","comment":"HF targeted for July 2021 following the Berlin fork","url":"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md","status":"Draft","eips":[1559,3198,3529,3541]}')},"5fbe":function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r("1325"),i=0;function o(t){var e="binded_"+i++;function r(){this[e]||(t.call(this,n["b"],!0),this[e]=!0)}function o(){this[e]&&(t.call(this,n["a"],!1),this[e]=!1)}return{mounted:r,activated:r,deactivated:o,beforeDestroy:o}}},6101:function(t,e,r){"use strict";var n=r("7fd8"),i=r("c044").formatters,o=r("5ba3"),s=r("aec4"),a=r("fb7f"),u=r("dc31");function h(t){this.eth=t;var e=null;this._detectedAddress=null,this._lastSyncCheck=null,Object.defineProperty(this,"registry",{get:function(){return new s(this)},enumerable:!0}),Object.defineProperty(this,"resolverMethodHandler",{get:function(){return new a(this.registry)},enumerable:!0}),Object.defineProperty(this,"registryAddress",{get:function(){return e},set:function(t){e=null!==t?i.inputAddressFormatter(t):t},enumerable:!0})}h.prototype.supportsInterface=function(t,e,r){return this.getResolver(t).then((function(t){return o.isHexStrict(e)||(e=o.sha3(e).slice(0,10)),t.methods.supportsInterface(e).call(r)})).catch((function(t){if("function"!==typeof r)throw t;r(t,null)}))},h.prototype.resolver=function(t,e){return this.registry.resolver(t,e)},h.prototype.getResolver=function(t,e){return this.registry.getResolver(t,e)},h.prototype.setResolver=function(t,e,r,n){return this.registry.setResolver(t,e,r,n)},h.prototype.setRecord=function(t,e,r,n,i,o){return this.registry.setRecord(t,e,r,n,i,o)},h.prototype.setSubnodeRecord=function(t,e,r,n,i,o,s){return this.registry.setSubnodeRecord(t,e,r,n,i,o,s)},h.prototype.setApprovalForAll=function(t,e,r,n){return this.registry.setApprovalForAll(t,e,r,n)},h.prototype.isApprovedForAll=function(t,e,r){return this.registry.isApprovedForAll(t,e,r)},h.prototype.recordExists=function(t,e){return this.registry.recordExists(t,e)},h.prototype.setSubnodeOwner=function(t,e,r,n,i){return this.registry.setSubnodeOwner(t,e,r,n,i)},h.prototype.getTTL=function(t,e){return this.registry.getTTL(t,e)},h.prototype.setTTL=function(t,e,r,n){return this.registry.setTTL(t,e,r,n)},h.prototype.getOwner=function(t,e){return this.registry.getOwner(t,e)},h.prototype.setOwner=function(t,e,r,n){return this.registry.setOwner(t,e,r,n)},h.prototype.getAddress=function(t,e){return this.resolverMethodHandler.method(t,"addr",[]).call(e)},h.prototype.setAddress=function(t,e,r,n){return this.resolverMethodHandler.method(t,"setAddr",[e]).send(r,n)},h.prototype.getPubkey=function(t,e){return this.resolverMethodHandler.method(t,"pubkey",[],null,e).call(e)},h.prototype.setPubkey=function(t,e,r,n,i){return this.resolverMethodHandler.method(t,"setPubkey",[e,r]).send(n,i)},h.prototype.getContent=function(t,e){return this.resolverMethodHandler.method(t,"content",[]).call(e)},h.prototype.setContent=function(t,e,r,n){return this.resolverMethodHandler.method(t,"setContent",[e]).send(r,n)},h.prototype.getContenthash=function(t,e){return this.resolverMethodHandler.method(t,"contenthash",[],u.decode).call(e)},h.prototype.setContenthash=function(t,e,r,n){var i;try{i=u.encode(e)}catch(s){var o=new Error("Could not encode "+e+". See docs for supported hash protocols.");if("function"===typeof n)return void n(o,null);throw o}return this.resolverMethodHandler.method(t,"setContenthash",[i]).send(r,n)},h.prototype.getMultihash=function(t,e){return this.resolverMethodHandler.method(t,"multihash",[]).call(e)},h.prototype.setMultihash=function(t,e,r,n){return this.resolverMethodHandler.method(t,"multihash",[e]).send(r,n)},h.prototype.checkNetwork=async function(){var t=new Date/1e3;if(!this._lastSyncCheck||t-this._lastSyncCheck>3600){var e=await this.eth.getBlock("latest"),r=t-e.timestamp;if(r>3600)throw new Error("Network not synced; last block was "+r+" seconds ago");this._lastSyncCheck=t}if(this.registryAddress)return this.registryAddress;if(!this._detectedAddress){var i=await this.eth.net.getNetworkType(),o=n.addresses[i];if("undefined"===typeof o)throw new Error("ENS is not supported on network "+i);return this._detectedAddress=o,this._detectedAddress}return this._detectedAddress},t.exports=h},"613b":function(t,e,r){var n=r("5537")("keys"),i=r("ca5a");t.exports=function(t){return n[t]||(n[t]=i(t))}},"615a":function(t,e,r){"use strict";const{Buffer:n}=r("b639");t.exports=function(t){return{encode(t){return"string"===typeof t?n.from(t).toString("hex"):t.toString("hex")},decode(e){for(const r of e)if(t.indexOf(r)<0)throw new Error("invalid base16 character");return n.from(e,"hex")}}}},"61e0":function(t,e,r){"use strict";const{Buffer:n}=r("b639"),i=r("3ae1");function o(t,e){if(!e)throw new Error("requires an encoded buffer");const r=l(t),i=n.from(r.code),o=r.name;return h(o,e),n.concat([i,e])}function s(t,e){const r=l(t),i=r.name;return o(i,n.from(r.encode(e)))}function a(t){n.isBuffer(t)&&(t=t.toString());const e=t.substring(0,1);t=t.substring(1,t.length),"string"===typeof t&&(t=n.from(t));const r=l(e);return n.from(r.decode(t.toString()))}function u(t){if(n.isBuffer(t)&&(t=t.toString()),"[object String]"!==Object.prototype.toString.call(t))return!1;const e=t.substring(0,1);try{const t=l(e);return t.name}catch(r){return!1}}function h(t,e){const r=l(t);r.decode(e.toString())}function l(t){let e;if(i.names[t])e=i.names[t];else{if(!i.codes[t])throw new Error("Unsupported encoding");e=i.codes[t]}if(!e.isImplemented())throw new Error("Base "+t+" is not implemented yet");return e}e=t.exports=o,e.encode=s,e.decode=a,e.isEncoded=u,e.names=Object.freeze(Object.keys(i.names)),e.codes=Object.freeze(Object.keys(i.codes))},"61f1":function(t,e){var r=Math.pow(2,7),n=Math.pow(2,14),i=Math.pow(2,21),o=Math.pow(2,28),s=Math.pow(2,35),a=Math.pow(2,42),u=Math.pow(2,49),h=Math.pow(2,56),l=Math.pow(2,63);t.exports=function(t){return t<r?1:t<n?2:t<i?3:t<o?4:t<s?5:t<a?6:t<u?7:t<h?8:t<l?9:10}},"626a":function(t,e,r){var n=r("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},6283:function(t,e,r){var n=r("3fb5"),i=r("41df").Reporter,o=r("b639").Buffer;function s(t,e){i.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function a(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return t instanceof a||(t=new a(t,e)),this.length+=t.length,t}),this);else if("number"===typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"===typeof t)this.value=t,this.length=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(s,i),e.DecoderBuffer=s,s.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},s.prototype.restore=function(t){var e=new s(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,i.prototype.restore.call(this,t.reporter),e},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},s.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},s.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=a,a.prototype.join=function(t,e){return t||(t=new o(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(t,e),e+=r.length})):("number"===typeof this.value?t[e]=this.value:"string"===typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},"62c9":function(t,e,r){var n=r("8707").Buffer;function i(t,e,r){var i=t._cipher.encryptBlock(t._prev),o=i[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([r?e:o])]),o}e.encrypt=function(t,e,r){var o=e.length,s=n.allocUnsafe(o),a=-1;while(++a<o)s[a]=i(t,e[a],r);return s}},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"63c1":function(t,e,r){const n=r("2994"),i=r("7be5"),o=t=>"0x"+t.toString("hex"),s=t=>new n(t.slice(2),16),a=t=>{const e="0x"+("0x"===t.slice(0,2)?new n(t.slice(2),16):new n(t,10)).toString("hex");return"0x0"===e?"0x":e},u=t=>f(g(t,a("10000000000")))/1e8,h=t=>v(c(Math.floor(1e8*t)),a("10000000000")),l=t=>s(t).toString(10),c=t=>"string"===typeof t?/^0x/.test(t)?t:"0x"+t:"0x"+new n(t).toString("hex"),f=t=>s(t).toNumber(),d=t=>i.pad(32,t),p=t=>(e,r)=>o(s(e)[t](s(r))),m=p("add"),v=p("mul"),g=p("div"),y=p("sub");t.exports={toString:l,fromString:a,toNumber:f,fromNumber:c,toEther:u,fromEther:h,toUint256:d,add:m,mul:v,div:g,sub:y}},"63d9":function(t,e,r){r("ec30")("Float32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},"63fb":function(t){t.exports=JSON.parse('{"name":"EIP-1559","number":1559,"comment":"Fee market change for ETH 1.0 chain","url":"https://eips.ethereum.org/EIPS/eip-1559","status":"Review","minimumHardfork":"berlin","requiredEIPs":[2930],"gasConfig":{"baseFeeMaxChangeDenominator":{"v":8,"d":"Maximum base fee change denominator"},"elasticityMultiplier":{"v":2,"d":"Maximum block gas target elasticity"},"initialBaseFee":{"v":1000000000,"d":"Initial base fee on first EIP1559 block"}},"gasPrices":{},"vm":{},"pow":{}}')},6430:function(t,e,r){var n=r("8707").Buffer,i=r("d485").Transform,o=r("7d72").StringDecoder,s=r("3fb5");function a(t){i.call(this),this.hashMode="string"===typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}s(a,i),a.prototype.update=function(t,e,r){"string"===typeof t&&(t=n.from(t,e));var i=this._update(t);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(i){n=i}finally{r(n)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(r){e=r}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},t.exports=a},"643e":function(t,e,r){"use strict";var n=r("dcbc"),i=r("67ab").getWeak,o=r("cb7c"),s=r("d3f4"),a=r("f605"),u=r("4a59"),h=r("0a49"),l=r("69a8"),c=r("b39a"),f=h(5),d=h(6),p=0,m=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},g=function(t,e){return f(t.a,(function(t){return t[0]===e}))};v.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var r=g(this,t);r?r[1]=e:this.a.push([t,e])},delete:function(t){var e=d(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,r,o){var h=t((function(t,n){a(t,h,e,"_i"),t._t=e,t._i=p++,t._l=void 0,void 0!=n&&u(n,r,t[o],t)}));return n(h.prototype,{delete:function(t){if(!s(t))return!1;var r=i(t);return!0===r?m(c(this,e))["delete"](t):r&&l(r,this._i)&&delete r[this._i]},has:function(t){if(!s(t))return!1;var r=i(t);return!0===r?m(c(this,e)).has(t):r&&l(r,this._i)}}),h},def:function(t,e,r){var n=i(o(e),!0);return!0===n?m(t).set(e,r):n[t._i]=r,t},ufstore:m}},6442:function(t,e,r){e.publicEncrypt=r("ad25"),e.privateDecrypt=r("0f2c"),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}},6444:function(t,e){var r=function(t){return t.replace(/^\s+|\s+$/g,"")},n=function(t){return"[object Array]"===Object.prototype.toString.call(t)};t.exports=function(t){if(!t)return{};for(var e={},i=r(t).split("\n"),o=0;o<i.length;o++){var s=i[o],a=s.indexOf(":"),u=r(s.slice(0,a)).toLowerCase(),h=r(s.slice(a+1));"undefined"===typeof e[u]?e[u]=h:n(e[u])?e[u].push(h):e[u]=[e[u],h]}return e}},6453:function(t,e,r){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},"64e4":function(t,e,r){var n=r("c044").errors,i=r("8602").XMLHttpRequest,o=r("9490"),s=r("24f8"),a=function(t,e){e=e||{},this.withCredentials=e.withCredentials||!1,this.timeout=e.timeout||0,this.headers=e.headers,this.agent=e.agent,this.connected=!1;const r=!1!==e.keepAlive;this.host=t||"http://localhost:8545",this.agent||("https"===this.host.substring(0,5)?this.httpsAgent=new s.Agent({keepAlive:r}):this.httpAgent=new o.Agent({keepAlive:r}))};a.prototype._prepareRequest=function(){var t;if("undefined"!==typeof XMLHttpRequest)t=new XMLHttpRequest;else{t=new i;var e={httpsAgent:this.httpsAgent,httpAgent:this.httpAgent,baseUrl:this.baseUrl};this.agent&&(e.httpsAgent=this.agent.https,e.httpAgent=this.agent.http,e.baseUrl=this.agent.baseUrl),t.nodejsSet(e)}return t.open("POST",this.host,!0),t.setRequestHeader("Content-Type","application/json"),t.timeout=this.timeout,t.withCredentials=this.withCredentials,this.headers&&this.headers.forEach((function(e){t.setRequestHeader(e.name,e.value)})),t},a.prototype.send=function(t,e){var r=this,i=this._prepareRequest();i.onreadystatechange=function(){if(4===i.readyState&&1!==i.timeout){var t=i.responseText,o=null;try{t=JSON.parse(t)}catch(s){o=n.InvalidResponse(i.responseText)}r.connected=!0,e(o,t)}},i.ontimeout=function(){r.connected=!1,e(n.ConnectionTimeout(this.timeout))};try{i.send(JSON.stringify(t))}catch(o){this.connected=!1,e(n.InvalidConnection(this.host))}},a.prototype.disconnect=function(){},a.prototype.supportsSubscriptions=function(){return!1},t.exports=a},"65eb":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.listeners={}}return t.prototype.addEventListener=function(t,e){t=t.toLowerCase(),this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e.handleEvent||e)},t.prototype.removeEventListener=function(t,e){if(t=t.toLowerCase(),this.listeners[t]){var r=this.listeners[t].indexOf(e.handleEvent||e);r<0||this.listeners[t].splice(r,1)}},t.prototype.dispatchEvent=function(t){var e=t.type.toLowerCase();if(t.target=this,this.listeners[e])for(var r=0,n=this.listeners[e];r<n.length;r++){var i=n[r];i.call(this,t)}var o=this["on"+e];return o&&o.call(this,t),!0},t}();e.XMLHttpRequestEventTarget=n},6605:function(t,e,r){"use strict";r.d(e,"b",(function(){return w})),r.d(e,"a",(function(){return M}));var n={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter((function(e){return e.vm===t}))[0]}},i=r("c31d"),o=r("6e47"),s=r("ba31"),a=r("092d"),u={className:"",customStyle:{}};function h(t){return Object(s["c"])(o["a"],{on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}})}function l(t){var e=n.find(t);if(e){var r=t.$el,o=e.config,s=e.overlay;r&&r.parentNode&&r.parentNode.insertBefore(s.$el,r),Object(i["a"])(s,u,o,{show:!0})}}function c(t,e){var r=n.find(t);if(r)r.config=e;else{var i=h(t);n.stack.push({vm:t,config:e,overlay:i})}l(t)}function f(t){var e=n.find(t);e&&(e.overlay.show=!1)}function d(t){var e=n.find(t);e&&Object(a["a"])(e.overlay.$el)}var p=r("1325"),m=r("a8c1"),v=r("3875"),g=r("1421"),y=r("5fbe"),b={mixins:[Object(y["a"])((function(t,e){this.handlePopstate(e&&this.closeOnPopstate)}))],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(t){this.handlePopstate(t)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(t){if(!this.$isServer&&this.bindStatus!==t){this.bindStatus=t;var e=t?p["b"]:p["a"];e(window,"popstate",this.onPopstate)}}}},w={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function M(t){return void 0===t&&(t={}),{mixins:[v["a"],b,Object(g["a"])({afterPortal:function(){this.overlay&&l()}})],provide:function(){return{vanPopup:this}},props:w,data:function(){return this.onReopenCallback=[],{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var r=e?"open":"close";this.inited=this.inited||this.value,this[r](),t.skipToggleEvent||this.$emit(r)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){d(this),this.opened&&this.removeLock(),this.getContainer&&Object(a["a"])(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(n.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock(),this.onReopenCallback.forEach((function(t){t()})))},addLock:function(){this.lockScroll&&(Object(p["b"])(document,"touchstart",this.touchStart),Object(p["b"])(document,"touchmove",this.onTouchMove),n.lockCount||document.body.classList.add("van-overflow-hidden"),n.lockCount++)},removeLock:function(){this.lockScroll&&n.lockCount&&(n.lockCount--,Object(p["a"])(document,"touchstart",this.touchStart),Object(p["a"])(document,"touchmove",this.onTouchMove),n.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(f(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",r=Object(m["d"])(t.target,this.$el),n=r.scrollHeight,i=r.offsetHeight,o=r.scrollTop,s="11";0===o?s=i>=n?"00":"01":o+i>=n&&(s="10"),"11"===s||"vertical"!==this.direction||parseInt(s,2)&parseInt(e,2)||Object(p["c"])(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick((function(){t.updateZIndex(t.overlay?1:0),t.overlay?c(t,{zIndex:n.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):f(t)}))},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++n.zIndex+t},onReopen:function(t){this.onReopenCallback.push(t)}}}}},"673e":function(t,e,r){"use strict";r("386b")("sub",(function(t){return function(){return t(this,"sub","","")}}))},"675c":function(t,e,r){"use strict";const{Buffer:n}=r("b639"),i=r("ab3a");e=t.exports=s,e.encode=a,e.decode=u,e.isEncoded=h,e.names=Object.freeze(Object.keys(i.names)),e.codes=Object.freeze(Object.keys(i.codes));const o=new Error("Unsupported encoding");function s(t,e){if(!e)throw new Error("requires an encoded buffer");const r=c(t),i=n.from(r.code),o=r.name;return l(o,e),n.concat([i,e])}function a(t,e){const r=c(t),i=r.name;return s(i,n.from(r.encode(e)))}function u(t){n.isBuffer(t)&&(t=t.toString());const e=t.substring(0,1);t=t.substring(1,t.length),"string"===typeof t&&(t=n.from(t));const r=c(e);return n.from(r.decode(t.toString()))}function h(t){if(n.isBuffer(t)&&(t=t.toString()),"[object String]"!==Object.prototype.toString.call(t))return!1;const e=t.substring(0,1);try{const t=c(e);return t.name}catch(r){return!1}}function l(t,e){const r=c(t);r.decode(e.toString())}function c(t){let e;if(i.names[t])e=i.names[t];else{if(!i.codes[t])throw o;e=i.codes[t]}if(!e.isImplemented())throw new Error("Base "+t+" is not implemented yet");return e}},"676f":function(t,e,r){"use strict";var n=r("80af"),i=r("3fb5"),o=r("ea53"),s=r("f3a3");function a(t){o.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(t,e,r){o.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,o),t.exports=a,a.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e),i=n.redSqrt();return 0===i.redSqr().cmp(n)},i(u,o.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new u(this,t,e)},a.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var t=this.x.redAdd(this.z),e=t.redSqr(),r=this.x.redSub(this.z),n=r.redSqr(),i=e.redSub(n),o=e.redMul(n),s=i.redMul(n.redAdd(this.curve.a24.redMul(i)));return this.curve.point(o,s)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z),s=o.redMul(r),a=i.redMul(n),u=e.z.redMul(s.redAdd(a).redSqr()),h=e.x.redMul(s.redISub(a).redSqr());return this.curve.point(u,h)},u.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var s=o.length-1;s>=0;s--)0===o[s]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6787:function(t,e){var r=function(){if("object"===typeof self&&self)return self;if("object"===typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};t.exports=function(){if(this)return this;if("object"===typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return r()}try{return __global__||r()}finally{delete Object.prototype.__global__}}()},"67aa":function(t,e,r){"use strict";(function(t){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)},o=this&&this.__values||function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Hardfork=e.Chain=e.CustomChain=void 0;var s,a,u=r("faa1"),h=r("702d"),l=r("5b66"),c=r("9eec"),f=r("6c3c"),d=r("3bef");(function(t){t["PolygonMainnet"]="polygon-mainnet",t["PolygonMumbai"]="polygon-mumbai",t["ArbitrumRinkebyTestnet"]="arbitrum-rinkeby-testnet",t["xDaiChain"]="x-dai-chain"})(s=e.CustomChain||(e.CustomChain={})),function(t){t[t["Mainnet"]=1]="Mainnet",t[t["Ropsten"]=3]="Ropsten",t[t["Rinkeby"]=4]="Rinkeby",t[t["Kovan"]=42]="Kovan",t[t["Goerli"]=5]="Goerli",t[t["Calaveras"]=123]="Calaveras"}(e.Chain||(e.Chain={})),function(t){t["Chainstart"]="chainstart",t["Homestead"]="homestead",t["Dao"]="dao",t["TangerineWhistle"]="tangerineWhistle",t["SpuriousDragon"]="spuriousDragon",t["Byzantium"]="byzantium",t["Constantinople"]="constantinople",t["Petersburg"]="petersburg",t["Istanbul"]="istanbul",t["MuirGlacier"]="muirGlacier",t["Berlin"]="berlin",t["London"]="london"}(a=e.Hardfork||(e.Hardfork={}));var p=function(e){function r(t){var r,n,i=e.call(this)||this;return i._supportedHardforks=[],i._eips=[],i._customChains=null!==(r=t.customChains)&&void 0!==r?r:[],i._chainParams=i.setChain(t.chain),i.DEFAULT_HARDFORK=null!==(n=i._chainParams.defaultHardfork)&&void 0!==n?n:a.Istanbul,i._hardfork=i.DEFAULT_HARDFORK,t.supportedHardforks&&(i._supportedHardforks=t.supportedHardforks),t.hardfork&&i.setHardfork(t.hardfork),t.eips&&i.setEIPs(t.eips),i}return n(r,e),r.custom=function(t,e){var n;void 0===e&&(e={});var o=null!==(n=e.baseChain)&&void 0!==n?n:"mainnet",a=i({},r._getChainParams(o));if(a["name"]="custom-chain","string"!==typeof t)return new r(i({chain:i(i({},a),t)},e));if(t===s.PolygonMainnet)return r.custom({name:s.PolygonMainnet,chainId:137,networkId:137});if(t===s.PolygonMumbai)return r.custom({name:s.PolygonMumbai,chainId:80001,networkId:80001});if(t===s.ArbitrumRinkebyTestnet)return r.custom({name:s.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611});if(t===s.xDaiChain)return r.custom({name:s.xDaiChain,chainId:100,networkId:100});throw new Error("Custom chain "+t+" not supported")},r.forCustomChain=function(t,e,n,o){var s=r._getChainParams(t);return new r({chain:i(i({},s),e),hardfork:n,supportedHardforks:o})},r.isSupportedChainId=function(t){var e=c._getInitializedChains();return Boolean(e["names"][t.toString()])},r._getChainParams=function(t,e){var r=c._getInitializedChains(e);if("number"===typeof t||l.BN.isBN(t)){if(t=t.toString(),r["names"][t]){var n=r["names"][t];return r[n]}throw new Error("Chain with ID "+t+" not supported")}if(r[t])return r[t];throw new Error("Chain with name "+t+" not supported")},r.prototype.setChain=function(t){var e,n;if("number"===typeof t||"string"===typeof t||l.BN.isBN(t))this._chainParams=r._getChainParams(t,this._customChains);else{if("object"!==typeof t)throw new Error("Wrong input format");if(this._customChains.length>0)throw new Error("Chain must be a string, number, or BN when initialized with customChains passed in");var i=["networkId","genesis","hardforks","bootstrapNodes"];try{for(var s=o(i),a=s.next();!a.done;a=s.next()){var u=a.value;if(void 0===t[u])throw new Error("Missing required chain parameter: "+u)}}catch(h){e={error:h}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}this._chainParams=t}return this._chainParams},r.prototype.setHardfork=function(t){var e,r;if(!this._isSupportedHardfork(t))throw new Error("Hardfork "+t+" not set as supported in supportedHardforks");var n=!1;try{for(var i=o(f.hardforks),s=i.next();!s.done;s=i.next()){var a=s.value;a[0]===t&&(this._hardfork!==t&&(this._hardfork=t,this.emit("hardforkChanged",t)),n=!0)}}catch(u){e={error:u}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}if(!n)throw new Error("Hardfork with name "+t+" not supported")},r.prototype.getHardforkByBlockNumber=function(t){var e,r;t=l.toType(t,l.TypeOutput.BN);var n=a.Chainstart;try{for(var i=o(this.hardforks()),s=i.next();!s.done;s=i.next()){var u=s.value;null!==u.block&&(t.gte(new l.BN(u.block))&&(n=u.name))}}catch(h){e={error:h}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n},r.prototype.setHardforkByBlockNumber=function(t){t=l.toType(t,l.TypeOutput.BN);var e=this.getHardforkByBlockNumber(t);return this.setHardfork(e),e},r.prototype._chooseHardfork=function(t,e){if(void 0===e&&(e=!0),t){if(e&&!this._isSupportedHardfork(t))throw new Error("Hardfork "+t+" not set as supported in supportedHardforks")}else t=this._hardfork;return t},r.prototype._getHardfork=function(t){var e,r,n=this.hardforks();try{for(var i=o(n),s=i.next();!s.done;s=i.next()){var a=s.value;if(a["name"]===t)return a}}catch(u){e={error:u}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}throw new Error("Hardfork "+t+" not defined for chain "+this.chainName())},r.prototype._isSupportedHardfork=function(t){var e,r;if(!(this._supportedHardforks.length>0))return!0;try{for(var n=o(this._supportedHardforks),i=n.next();!i.done;i=n.next()){var s=i.value;if(t===s)return!0}}catch(a){e={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return!1},r.prototype.setEIPs=function(t){var e,r,n=this;void 0===t&&(t=[]);var i=function(e){if(!(e in d.EIPs))throw new Error(e+" not supported");var r=s.gteHardfork(d.EIPs[e]["minimumHardfork"]);if(!r)throw new Error(e+" cannot be activated on hardfork "+s.hardfork()+", minimumHardfork: "+r);d.EIPs[e].requiredEIPs&&d.EIPs[e].requiredEIPs.forEach((function(r){if(!t.includes(r)&&!n.isActivatedEIP(r))throw new Error(e+" requires EIP "+r+", but is not included in the EIP list")}))},s=this;try{for(var a=o(t),u=a.next();!u.done;u=a.next()){var h=u.value;i(h)}}catch(l){e={error:l}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}this._eips=t},r.prototype.param=function(t,e){var r,n,i=null;try{for(var s=o(this._eips),a=s.next();!a.done;a=s.next()){var u=a.value;if(i=this.paramByEIP(t,e,u),null!==i)return i}}catch(h){r={error:h}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return this.paramByHardfork(t,e,this._hardfork)},r.prototype.paramByHardfork=function(t,e,r){var n,i,s,a;r=this._chooseHardfork(r);var u=null;try{for(var h=o(f.hardforks),l=h.next();!l.done;l=h.next()){var c=l.value;if(c[1].hasOwnProperty("eips")){var d=c[1]["eips"];try{for(var p=(s=void 0,o(d)),m=p.next();!m.done;m=p.next()){var v=m.value,g=this.paramByEIP(t,e,v);u=null!==g?g:u}}catch(y){s={error:y}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(s)throw s.error}}}else{if(!c[1][t])throw new Error("Topic "+t+" not defined");void 0!==c[1][t][e]&&(u=c[1][t][e].v)}if(c[0]===r)break}}catch(b){n={error:b}}finally{try{l&&!l.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}return u},r.prototype.paramByEIP=function(t,e,r){if(!(r in d.EIPs))throw new Error(r+" not supported");var n=d.EIPs[r];if(!(t in n))throw new Error("Topic "+t+" not defined");if(void 0===n[t][e])return null;var i=n[t][e].v;return i},r.prototype.paramByBlock=function(t,e,r){var n=this.activeHardforks(r),i=n[n.length-1]["name"];return this.paramByHardfork(t,e,i)},r.prototype.isActivatedEIP=function(t){var e,r;if(this.eips().includes(t))return!0;try{for(var n=o(f.hardforks),i=n.next();!i.done;i=n.next()){var s=i.value,a=s[1];if(this.gteHardfork(a["name"])&&"eips"in a&&a["eips"].includes(t))return!0}}catch(u){e={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return!1},r.prototype.hardforkIsActiveOnBlock=function(t,e,r){var n;void 0===r&&(r={}),e=l.toType(e,l.TypeOutput.BN);var i=null!==(n=r.onlySupported)&&void 0!==n&&n;t=this._chooseHardfork(t,i);var o=this.hardforkBlockBN(t);return!(!o||!e.gte(o))},r.prototype.activeOnBlock=function(t,e){return this.hardforkIsActiveOnBlock(null,t,e)},r.prototype.hardforkGteHardfork=function(t,e,r){var n,i;void 0===r&&(r={});var s,a=void 0!==r.onlyActive&&r.onlyActive;t=this._chooseHardfork(t,r.onlySupported),s=a?this.activeHardforks(null,r):this.hardforks();var u=-1,h=-1,l=0;try{for(var c=o(s),f=c.next();!f.done;f=c.next()){var d=f.value;d["name"]===t&&(u=l),d["name"]===e&&(h=l),l+=1}}catch(p){n={error:p}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}return u>=h&&-1!==h},r.prototype.gteHardfork=function(t,e){return this.hardforkGteHardfork(null,t,e)},r.prototype.hardforkIsActiveOnChain=function(t,e){var r,n,i;void 0===e&&(e={});var s=null!==(i=e.onlySupported)&&void 0!==i&&i;t=this._chooseHardfork(t,s);try{for(var a=o(this.hardforks()),u=a.next();!u.done;u=a.next()){var h=u.value;if(h["name"]===t&&null!==h["block"])return!0}}catch(l){r={error:l}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return!1},r.prototype.activeHardforks=function(t,e){var r,n;void 0===e&&(e={});var i=[],s=this.hardforks();try{for(var a=o(s),u=a.next();!u.done;u=a.next()){var h=u.value;if(null!==h["block"]){if(void 0!==t&&null!==t&&t<h["block"])break;e.onlySupported&&!this._isSupportedHardfork(h["name"])||i.push(h)}}}catch(l){r={error:l}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},r.prototype.activeHardfork=function(t,e){void 0===e&&(e={});var r=this.activeHardforks(t,e);if(r.length>0)return r[r.length-1]["name"];throw new Error("No (supported) active hardfork found")},r.prototype.hardforkBlock=function(t){return l.toType(this.hardforkBlockBN(t),l.TypeOutput.Number)},r.prototype.hardforkBlockBN=function(t){return t=this._chooseHardfork(t,!1),new l.BN(this._getHardfork(t)["block"])},r.prototype.isHardforkBlock=function(t,e){return t=l.toType(t,l.TypeOutput.BN),e=this._chooseHardfork(e,!1),this.hardforkBlockBN(e).eq(t)},r.prototype.nextHardforkBlock=function(t){var e=this.nextHardforkBlockBN(t);return null===e?null:l.toType(e,l.TypeOutput.Number)},r.prototype.nextHardforkBlockBN=function(t){t=this._chooseHardfork(t,!1);var e=this.hardforkBlockBN(t),r=this.hardforks().reduce((function(t,r){var n=new l.BN(r.block);return n.gt(e)&&null===t?n:t}),null);return r},r.prototype.isNextHardforkBlock=function(t,e){t=l.toType(t,l.TypeOutput.BN),e=this._chooseHardfork(e,!1);var r=this.nextHardforkBlockBN(e);return null!==r&&r.eq(t)},r.prototype._calcForkHash=function(e){var r,n,i=t.from(this.genesis().hash.substr(2),"hex"),s=t.alloc(0),a=0;try{for(var u=o(this.hardforks()),c=u.next();!c.done;c=u.next()){var f=c.value,d=f.block;if(0!==d&&null!==d&&d!==a){var p=t.from(d.toString(16).padStart(16,"0"),"hex");s=t.concat([s,p])}if(f.name===e)break;a=d}}catch(g){r={error:g}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}var m=t.concat([i,s]),v=l.intToBuffer(h.buf(m)>>>0).toString("hex");return"0x"+v},r.prototype.forkHash=function(t){t=this._chooseHardfork(t,!1);var e=this._getHardfork(t);if(null===e["block"]){var r="No fork hash calculation possible for non-applied or future hardfork";throw new Error(r)}return void 0!==e["forkHash"]?e["forkHash"]:this._calcForkHash(t)},r.prototype.hardforkForForkHash=function(t){var e=this.hardforks().filter((function(e){return e.forkHash===t}));return e.length>=1?e[e.length-1]:null},r.prototype.genesis=function(){return this._chainParams["genesis"]},r.prototype.hardforks=function(){return this._chainParams["hardforks"]},r.prototype.bootstrapNodes=function(){return this._chainParams["bootstrapNodes"]},r.prototype.dnsNetworks=function(){return this._chainParams["dnsNetworks"]},r.prototype.hardfork=function(){return this._hardfork},r.prototype.chainId=function(){return l.toType(this.chainIdBN(),l.TypeOutput.Number)},r.prototype.chainIdBN=function(){return new l.BN(this._chainParams["chainId"])},r.prototype.chainName=function(){return this._chainParams["name"]},r.prototype.networkId=function(){return l.toType(this.networkIdBN(),l.TypeOutput.Number)},r.prototype.networkIdBN=function(){return new l.BN(this._chainParams["networkId"])},r.prototype.eips=function(){return this._eips},r.prototype.consensusType=function(){return this._chainParams["consensus"]["type"]},r.prototype.consensusAlgorithm=function(){return this._chainParams["consensus"]["algorithm"]},r.prototype.consensusConfig=function(){return this._chainParams["consensus"][this.consensusAlgorithm()]},r.prototype.copy=function(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this)},r}(u.EventEmitter);e.default=p}).call(this,r("b639").Buffer)},"67ab":function(t,e,r){var n=r("ca5a")("meta"),i=r("d3f4"),o=r("69a8"),s=r("86cc").f,a=0,u=Object.isExtensible||function(){return!0},h=!r("79e5")((function(){return u(Object.preventExtensions({}))})),l=function(t){s(t,n,{value:{i:"O"+ ++a,w:{}}})},c=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[n].i},f=function(t,e){if(!o(t,n)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[n].w},d=function(t){return h&&p.NEED&&u(t)&&!o(t,n)&&l(t),t},p=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:f,onFreeze:d}},6821:function(t,e,r){var n=r("626a"),i=r("be13");t.exports=function(t){return n(i(t))}},"68e2":function(t,e,r){"use strict";var n=r("5ba3"),i=r("5fa0"),o=function(t){return t.map(n.numberToHex)},s=function(t){return t.address=n.toChecksumAddress(t.address),t.nonce=n.hexToNumberString(t.nonce),t.balance=n.hexToNumberString(t.balance),t},a=function(t){return n.toBN(t).toString(10)},u=function(t){return"latest"===t||"pending"===t||"earliest"===t},h=function(t){return l(!this||void 0!==t&&null!==t?t:this.defaultBlock)},l=function(t){if(void 0!==t)return u(t)?t:"genesis"===t?"0x0":n.isHexStrict(t)?"string"===typeof t?t.toLowerCase():t:n.numberToHex(t)},c=function(t){if(t.to&&(t.to=_(t.to)),t.data&&t.input)throw new Error('You can\'t have "data" and "input" as properties of transactions at the same time, please use either "data" or "input" instead.');if(!t.data&&t.input&&(t.data=t.input,delete t.input),t.data&&!t.data.startsWith("0x")&&(t.data="0x"+t.data),t.data&&!n.isHex(t.data))throw new Error("The data field must be HEX encoded data.");return(t.gas||t.gasLimit)&&(t.gas=t.gas||t.gasLimit),["gasPrice","gas","value","nonce"].filter((function(e){return void 0!==t[e]})).forEach((function(e){t[e]=n.numberToHex(t[e])})),t},f=function(t){t=c(t);var e=t.from||(this?this.defaultAccount:null);return e&&(t.from=_(e)),t},d=function(t){if(t=c(t),"number"!==typeof t.from&&(!t.from||"object"!==typeof t.from)){if(t.from=t.from||(this?this.defaultAccount:null),!t.from&&"number"!==typeof t.from)throw new Error('The send transactions "from" field must be defined!');t.from=_(t.from)}return t},p=function(t){return n.isHexStrict(t)?t:n.utf8ToHex(t)},m=function(t){return null!==t.blockNumber&&(t.blockNumber=n.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=n.hexToNumber(t.transactionIndex)),t.nonce=n.hexToNumber(t.nonce),t.gas=n.hexToNumber(t.gas),t.gasPrice&&(t.gasPrice=a(t.gasPrice)),t.maxFeePerGas&&(t.maxFeePerGas=a(t.maxFeePerGas)),t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=a(t.maxPriorityFeePerGas)),t.type&&(t.type=n.hexToNumber(t.type)),t.value=a(t.value),t.to&&n.isAddress(t.to)?t.to=n.toChecksumAddress(t.to):t.to=null,t.from&&(t.from=n.toChecksumAddress(t.from)),t},v=function(t){if("object"!==typeof t)throw new Error("Received receipt is invalid: "+t);return null!==t.blockNumber&&(t.blockNumber=n.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=n.hexToNumber(t.transactionIndex)),t.cumulativeGasUsed=n.hexToNumber(t.cumulativeGasUsed),t.gasUsed=n.hexToNumber(t.gasUsed),Array.isArray(t.logs)&&(t.logs=t.logs.map(b)),t.contractAddress&&(t.contractAddress=n.toChecksumAddress(t.contractAddress)),"undefined"!==typeof t.status&&null!==t.status&&(t.status=Boolean(parseInt(t.status))),t},g=function(t){return t.gasLimit=n.hexToNumber(t.gasLimit),t.gasUsed=n.hexToNumber(t.gasUsed),t.size=n.hexToNumber(t.size),t.timestamp=n.hexToNumber(t.timestamp),null!==t.number&&(t.number=n.hexToNumber(t.number)),t.difficulty&&(t.difficulty=a(t.difficulty)),t.totalDifficulty&&(t.totalDifficulty=a(t.totalDifficulty)),Array.isArray(t.transactions)&&t.transactions.forEach((function(t){if("string"!==typeof t)return m(t)})),t.miner&&(t.miner=n.toChecksumAddress(t.miner)),t},y=function(t){var e=function(t){return null===t||"undefined"===typeof t?null:(t=String(t),0===t.indexOf("0x")?t:n.fromUtf8(t))};return void 0===t&&(t={}),void 0===t.fromBlock&&(t={...t,fromBlock:"latest"}),(t.fromBlock||0===t.fromBlock)&&(t.fromBlock=l(t.fromBlock)),(t.toBlock||0===t.toBlock)&&(t.toBlock=l(t.toBlock)),t.topics=t.topics||[],t.topics=t.topics.map((function(t){return Array.isArray(t)?t.map(e):e(t)})),e=null,t.address&&(t.address=Array.isArray(t.address)?t.address.map((function(t){return _(t)})):_(t.address)),t},b=function(t){if("string"===typeof t.blockHash&&"string"===typeof t.transactionHash&&"string"===typeof t.logIndex){var e=n.sha3(t.blockHash.replace("0x","")+t.transactionHash.replace("0x","")+t.logIndex.replace("0x",""));t.id="log_"+e.replace("0x","").substr(0,8)}else t.id||(t.id=null);return null!==t.blockNumber&&(t.blockNumber=n.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=n.hexToNumber(t.transactionIndex)),null!==t.logIndex&&(t.logIndex=n.hexToNumber(t.logIndex)),t.address&&(t.address=n.toChecksumAddress(t.address)),t},w=function(t){return t.ttl&&(t.ttl=n.numberToHex(t.ttl)),t.workToProve&&(t.workToProve=n.numberToHex(t.workToProve)),t.priority&&(t.priority=n.numberToHex(t.priority)),Array.isArray(t.topics)||(t.topics=t.topics?[t.topics]:[]),t.topics=t.topics.map((function(t){return 0===t.indexOf("0x")?t:n.fromUtf8(t)})),t},M=function(t){return t.expiry=n.hexToNumber(t.expiry),t.sent=n.hexToNumber(t.sent),t.ttl=n.hexToNumber(t.ttl),t.workProved=n.hexToNumber(t.workProved),t.topics||(t.topics=[]),t.topics=t.topics.map((function(t){return n.toUtf8(t)})),t},_=function(t){var e=new i(t);if(e.isValid()&&e.isDirect())return e.toAddress().toLowerCase();if(n.isAddress(t))return"0x"+t.toLowerCase().replace("0x","");throw new Error(`Provided address ${t} is invalid, the capitalization checksum test failed, or it's an indirect IBAN address which can't be converted.`)},k=function(t){return t.startingBlock=n.hexToNumber(t.startingBlock),t.currentBlock=n.hexToNumber(t.currentBlock),t.highestBlock=n.hexToNumber(t.highestBlock),t.knownStates&&(t.knownStates=n.hexToNumber(t.knownStates),t.pulledStates=n.hexToNumber(t.pulledStates)),t};t.exports={inputDefaultBlockNumberFormatter:h,inputBlockNumberFormatter:l,inputCallFormatter:f,inputTransactionFormatter:d,inputAddressFormatter:_,inputPostFormatter:w,inputLogFormatter:y,inputSignFormatter:p,inputStorageKeysFormatter:o,outputProofFormatter:s,outputBigNumberFormatter:a,outputTransactionFormatter:m,outputTransactionReceiptFormatter:v,outputBlockFormatter:g,outputLogFormatter:b,outputPostFormatter:M,outputSyncingFormatter:k}},"68ed":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o}));var n=/-(\w)/g;function i(t){return t.replace(n,(function(t,e){return e.toUpperCase()}))}function o(t,e){void 0===e&&(e=2);var r=t+"";while(r.length<e)r="0"+r;return r}},6983:function(t,e,r){t.exports=r("c98c")(r("2416"))},"69a8":function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},"69dc":function(t,e,r){var n=r("7b0b").keccak256,i=r("73f3"),o=function(t,e){var r=i.reverse(i.pad(6,i.fromNumber(t))),o=i.flatten([r,"0x0000",e]);return n(o).slice(2)},s=function t(e){"string"===typeof e&&"0x"!==e.slice(0,2)?e=i.fromString(e):"string"!==typeof e&&void 0!==e.length&&(e=i.fromUint8Array(e));var r=i.length(e);if(r<=4096)return o(r,e);var n=4096;while(128*n<r)n*=128;for(var s=[],a=0;a<r;a+=n){var u=n<r-a?n:r-a;s.push(t(i.slice(e,a,a+u)))}return o(r,i.flatten(s))};t.exports=s},"69f2":function(t,e,r){e=t.exports=function(t){t=t.toLowerCase();var r=e[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r};e.sha=r("087f"),e.sha1=r("7e78"),e.sha224=r("72aa"),e.sha256=r("a255"),e.sha384=r("b837"),e.sha512=r("4fd1")},"6a99":function(t,e,r){var n=r("d3f4");t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6a9d":function(t,e,r){"use strict";(function(t){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.toType=e.TypeOutput=e.bnToRlp=e.bnToUnpaddedBuffer=e.bnToHex=void 0;var i,o=n(r("399f")),s=r("9a12"),a=r("0c30");function u(t){return"0x"+t.toString(16)}function h(e){return a.unpadBuffer(e.toArrayLike(t))}function l(t){return h(t)}function c(t,e){if("string"===typeof t&&!s.isHexString(t))throw new Error("A string must be provided with a 0x-prefix, given: "+t);if("number"===typeof t&&!Number.isSafeInteger(t))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");if(t=a.toBuffer(t),e===i.Buffer)return t;if(e===i.BN)return new o.default(t);if(e===i.Number){var r=new o.default(t),n=new o.default(Number.MAX_SAFE_INTEGER.toString());if(r.gt(n))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return r.toNumber()}return"0x"+t.toString("hex")}e.bnToHex=u,e.bnToUnpaddedBuffer=h,e.bnToRlp=l,function(t){t[t["Number"]=0]="Number",t[t["BN"]=1]="BN",t[t["Buffer"]=2]="Buffer",t[t["PrefixedHexString"]=3]="PrefixedHexString"}(i=e.TypeOutput||(e.TypeOutput={})),e.toType=c}).call(this,r("b639").Buffer)},"6aa2":function(t,e,r){"use strict";var n=r("7d92"),i=r("7658"),o=r("da3e");function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),r=i.toArray(t.nonce,t.nonceEnc||"hex"),n=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=s,s.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},s.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(t,e,r,n){"string"!==typeof e&&(n=r,r=e,e=null),t=i.toArray(t,e),r=i.toArray(r,n),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},s.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(n=r,r=e,e=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));var o=[];while(o.length<t)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,t);return this._update(r),this._reseed++,i.encode(s,e)}},"6aa23":function(t,e,r){r("ec30")("Uint8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}),!0)},"6ade":function(t,e,r){var n=r("8c8a"),i=r("8707").Buffer,o=r("bd9d");function s(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}var a=16;e.encrypt=function(t,e){var r=Math.ceil(e.length/a),o=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(r*a)]);for(var u=0;u<r;u++){var h=s(t),l=o+u*a;t._cache.writeUInt32BE(h[0],l+0),t._cache.writeUInt32BE(h[1],l+4),t._cache.writeUInt32BE(h[2],l+8),t._cache.writeUInt32BE(h[3],l+12)}var c=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),n(e,c)}},"6b54":function(t,e,r){"use strict";r("3846");var n=r("cb7c"),i=r("0bfb"),o=r("9e1e"),s="toString",a=/./[s],u=function(t){r("2aba")(RegExp.prototype,s,t,!0)};r("79e5")((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?u((function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):a.name!=s&&u((function(){return a.call(this)}))},"6b75":function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,"a",(function(){return n}))},"6c3c":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hardforks=void 0,e.hardforks=[["chainstart",r("c9b4")],["homestead",r("9778")],["dao",r("d54b")],["tangerineWhistle",r("d3ec")],["spuriousDragon",r("7869")],["byzantium",r("49fa")],["constantinople",r("514c")],["petersburg",r("757a")],["istanbul",r("3a4f")],["muirGlacier",r("0034")],["berlin",r("8af2")],["london",r("5fa5")]]},"6cdc":function(t,e,r){"use strict";var n=r("c044").errors,i=r("3667"),o=function(t,e){var r=this;this.responseCallbacks={},this.notificationCallbacks=[],this.path=t,this.connected=!1,this.connection=e.connect({path:this.path}),this.addDefaultEvents();var n=function(t){var e=null;Array.isArray(t)?t.forEach((function(t){r.responseCallbacks[t.id]&&(e=t.id)})):e=t.id,e||-1===t.method.indexOf("_subscription")?r.responseCallbacks[e]&&(r.responseCallbacks[e](null,t),delete r.responseCallbacks[e]):r.notificationCallbacks.forEach((function(e){"function"===typeof e&&e(t)}))};"Socket"===e.constructor.name?i(this.connection).done(n):this.connection.on("data",(function(t){r._parseResponse(t.toString()).forEach(n)}))};o.prototype.addDefaultEvents=function(){var t=this;this.connection.on("connect",(function(){t.connected=!0})),this.connection.on("close",(function(){t.connected=!1})),this.connection.on("error",(function(){t._timeout()})),this.connection.on("end",(function(){t._timeout()})),this.connection.on("timeout",(function(){t._timeout()}))},o.prototype._parseResponse=function(t){var e=this,r=[],i=t.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|");return i.forEach((function(t){e.lastChunk&&(t=e.lastChunk+t);var i=null;try{i=JSON.parse(t)}catch(o){return e.lastChunk=t,clearTimeout(e.lastChunkTimeout),void(e.lastChunkTimeout=setTimeout((function(){throw e._timeout(),n.InvalidResponse(t)}),15e3))}clearTimeout(e.lastChunkTimeout),e.lastChunk=null,i&&r.push(i)})),r},o.prototype._addResponseCallback=function(t,e){var r=t.id||t[0].id,n=t.method||t[0].method;this.responseCallbacks[r]=e,this.responseCallbacks[r].method=n},o.prototype._timeout=function(){for(var t in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(t)&&(this.responseCallbacks[t](n.InvalidConnection("on IPC")),delete this.responseCallbacks[t])},o.prototype.reconnect=function(){this.connection.connect({path:this.path})},o.prototype.send=function(t,e){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(t)),this._addResponseCallback(t,e)},o.prototype.on=function(t,e){if("function"!==typeof e)throw new Error("The second parameter callback must be a function.");switch(t){case"data":this.notificationCallbacks.push(e);break;default:this.connection.on(t,e);break}},o.prototype.once=function(t,e){if("function"!==typeof e)throw new Error("The second parameter callback must be a function.");this.connection.once(t,e)},o.prototype.removeListener=function(t,e){var r=this;switch(t){case"data":this.notificationCallbacks.forEach((function(t,n){t===e&&r.notificationCallbacks.splice(n,1)}));break;default:this.connection.removeListener(t,e);break}},o.prototype.removeAllListeners=function(t){switch(t){case"data":this.notificationCallbacks=[];break;default:this.connection.removeAllListeners(t);break}},o.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.connection.removeAllListeners("error"),this.connection.removeAllListeners("end"),this.connection.removeAllListeners("timeout"),this.addDefaultEvents()},o.prototype.supportsSubscriptions=function(){return!0},t.exports=o},"6e11":function(t,e,r){"use strict";var n=r("c063"),i=r("7789"),o=r("5ba3"),s=r("c3e6").subscription,a=r("c044").formatters,u=r("c044").errors,h=r("00d7"),l=r("aab1"),c=function t(e,r,i){var s=this,h=Array.prototype.slice.call(arguments);if(!(this instanceof t))throw new Error('Please use the "new" keyword to instantiate a web3.eth.Contract() object!');if(this.setProvider=function(){n.packageInit(s,arguments),s.clearSubscriptions=s._requestManager.clearSubscriptions},n.packageInit(this,[this.constructor]),this.clearSubscriptions=this._requestManager.clearSubscriptions,!e||!Array.isArray(e))throw u.ContractMissingABIError();this.options={};var c=h[h.length-1];c&&"object"===typeof c&&!Array.isArray(c)&&(i=c,this.options={...this.options,...this._getOrSetDefaultOptions(i)},r&&"object"===typeof r&&(r=null)),Object.defineProperty(this.options,"address",{set:function(t){t&&(s._address=o.toChecksumAddress(a.inputAddressFormatter(t)))},get:function(){return s._address},enumerable:!0}),Object.defineProperty(this.options,"jsonInterface",{set:function(t){return s.methods={},s.events={},s._jsonInterface=t.map((function(t){var e,r;if(t.constant="view"===t.stateMutability||"pure"===t.stateMutability||t.constant,t.payable="payable"===t.stateMutability||t.payable,t.name&&(r=o._jsonInterfaceMethodToString(t)),"function"===t.type){if(t.signature=l.encodeFunctionSignature(r),e=s._createTxObject.bind({method:t,parent:s}),s.methods[t.name]){var n=s._createTxObject.bind({method:t,parent:s,nextMethod:s.methods[t.name]});s.methods[t.name]=n}else s.methods[t.name]=e;s.methods[t.signature]=e,s.methods[r]=e}else if("event"===t.type){t.signature=l.encodeEventSignature(r);var i=s._on.bind(s,t.signature);s.events[t.name]&&"bound "!==s.events[t.name].name||(s.events[t.name]=i),s.events[t.signature]=i,s.events[r]=i}return t})),s.events.allEvents=s._on.bind(s,"allevents"),s._jsonInterface},get:function(){return s._jsonInterface},enumerable:!0});var f=this.constructor.defaultAccount,d=this.constructor.defaultBlock||"latest";Object.defineProperty(this,"handleRevert",{get:function(){return!1===s.options.handleRevert||!0===s.options.handleRevert?s.options.handleRevert:this.constructor.handleRevert},set:function(t){s.options.handleRevert=t},enumerable:!0}),Object.defineProperty(this,"defaultCommon",{get:function(){return s.options.common||this.constructor.defaultCommon},set:function(t){s.options.common=t},enumerable:!0}),Object.defineProperty(this,"defaultHardfork",{get:function(){return s.options.hardfork||this.constructor.defaultHardfork},set:function(t){s.options.hardfork=t},enumerable:!0}),Object.defineProperty(this,"defaultChain",{get:function(){return s.options.chain||this.constructor.defaultChain},set:function(t){s.options.chain=t},enumerable:!0}),Object.defineProperty(this,"transactionPollingTimeout",{get:function(){return 0===s.options.transactionPollingTimeout?s.options.transactionPollingTimeout:s.options.transactionPollingTimeout||this.constructor.transactionPollingTimeout},set:function(t){s.options.transactionPollingTimeout=t},enumerable:!0}),Object.defineProperty(this,"transactionConfirmationBlocks",{get:function(){return 0===s.options.transactionConfirmationBlocks?s.options.transactionConfirmationBlocks:s.options.transactionConfirmationBlocks||this.constructor.transactionConfirmationBlocks},set:function(t){s.options.transactionConfirmationBlocks=t},enumerable:!0}),Object.defineProperty(this,"transactionBlockTimeout",{get:function(){return 0===s.options.transactionBlockTimeout?s.options.transactionBlockTimeout:s.options.transactionBlockTimeout||this.constructor.transactionBlockTimeout},set:function(t){s.options.transactionBlockTimeout=t},enumerable:!0}),Object.defineProperty(this,"defaultAccount",{get:function(){return f},set:function(t){return t&&(f=o.toChecksumAddress(a.inputAddressFormatter(t))),t},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return d},set:function(t){return d=t,t},enumerable:!0}),this.methods={},this.events={},this._address=null,this._jsonInterface=[],this.options.address=r,this.options.jsonInterface=e};c.setProvider=function(t,e){n.packageInit(this,[t]),this._ethAccounts=e},c.prototype._getCallback=function(t){if(t&&t[t.length-1]&&"function"===typeof t[t.length-1])return t.pop()},c.prototype._checkListener=function(t,e){if(e===t)throw u.ContractReservedEventError(t)},c.prototype._getOrSetDefaultOptions=function(t){var e=t.gasPrice?String(t.gasPrice):null,r=t.from?o.toChecksumAddress(a.inputAddressFormatter(t.from)):null;return t.data=t.data||this.options.data,t.from=r||this.options.from,t.gasPrice=e||this.options.gasPrice,t.gas=t.gas||t.gasLimit||this.options.gas,delete t.gasLimit,t},c.prototype._encodeEventABI=function(t,e){e=e||{};var r=e.filter||{},n={};if(["fromBlock","toBlock"].filter((function(t){return void 0!==e[t]})).forEach((function(t){n[t]=a.inputBlockNumberFormatter(e[t])})),Array.isArray(e.topics))n.topics=e.topics;else{if(n.topics=[],t&&!t.anonymous&&"ALLEVENTS"!==t.name&&n.topics.push(t.signature),"ALLEVENTS"!==t.name){var i=t.inputs.filter((function(t){return!0===t.indexed})).map((function(t){var e=r[t.name];return e?Array.isArray(e)?e.map((function(e){return l.encodeParameter(t.type,e)})):l.encodeParameter(t.type,e):null}));n.topics=n.topics.concat(i)}n.topics.length||delete n.topics}return this.options.address&&(n.address=this.options.address.toLowerCase()),n},c.prototype._decodeEventABI=function(t){var e=this;t.data=t.data||"",t.topics=t.topics||[];var r=a.outputLogFormatter(t);if("ALLEVENTS"===e.name&&(e=e.jsonInterface.find((function(e){return e.signature===t.topics[0]}))||{anonymous:!0}),e.inputs=e.inputs||[],!e.anonymous){let r=0;e.inputs.forEach(t=>t.indexed?r++:null),r>0&&t.topics.length!==r+1&&(e={anonymous:!0,inputs:[]})}var n=e.anonymous?t.topics:t.topics.slice(1);return r.returnValues=l.decodeLog(e.inputs,t.data,n),delete r.returnValues.__length__,r.event=e.name,r.signature=e.anonymous||!t.topics[0]?null:t.topics[0],r.raw={data:r.data,topics:r.topics},delete r.data,delete r.topics,r},c.prototype._encodeMethodABI=function(){var t=this._method.signature,e=this.arguments||[],r=!1,n=this._parent.options.jsonInterface.filter((function(e){return"constructor"===t&&e.type===t||(e.signature===t||e.signature===t.replace("0x","")||e.name===t)&&"function"===e.type})).map((function(t){var n=Array.isArray(t.inputs)?t.inputs.length:0;if(n!==e.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+n+" arguments.");return"function"===t.type&&(r=t.signature),Array.isArray(t.inputs)?t.inputs:[]})).map((function(t){return l.encodeParameters(t,e).replace("0x","")}))[0]||"";if("constructor"===t){if(!this._deployData)throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters.");return this._deployData.startsWith("0x")||(this._deployData="0x"+this._deployData),this._deployData+n}var i=r?r+n:n;if(!i)throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".');return i},c.prototype._decodeMethodReturn=function(t,e){if(!e)return null;e=e.length>=2?e.slice(2):e;var r=l.decodeParameters(t,e);return 1===r.__length__?r[0]:(delete r.__length__,r)},c.prototype.deploy=function(t,e){if(t=t||{},t.arguments=t.arguments||[],t=this._getOrSetDefaultOptions(t),!t.data){if("function"===typeof e)return e(u.ContractMissingDeployDataError());throw u.ContractMissingDeployDataError()}var r=this.options.jsonInterface.find(t=>"constructor"===t.type)||{};return r.signature="constructor",this._createTxObject.apply({method:r,parent:this,deployData:t.data,_ethAccounts:this.constructor._ethAccounts},t.arguments)},c.prototype._generateEventOptions=function(){var t=Array.prototype.slice.call(arguments),e=this._getCallback(t),r="object"===(!!t[t.length-1]&&typeof t[t.length-1])?t.pop():{},n="string"===typeof t[0]?t[0]:"allevents",i="allevents"===n.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find((function(t){return"event"===t.type&&(t.name===n||t.signature==="0x"+n.replace("0x",""))}));if(!i)throw u.ContractEventDoesNotExistError(n);if(!o.isAddress(this.options.address))throw u.ContractNoAddressDefinedError();return{params:this._encodeEventABI(i,r),event:i,callback:e}},c.prototype.clone=function(){return new this.constructor(this.options.jsonInterface,this.options.address,this.options)},c.prototype.once=function(t,e,r){var n=Array.prototype.slice.call(arguments);if(r=this._getCallback(n),!r)throw u.ContractOnceRequiresCallbackError();e&&delete e.fromBlock,this._on(t,e,(function(t,e,n){n.unsubscribe(),"function"===typeof r&&r(t,e,n)}))},c.prototype._on=function(){var t=this._generateEventOptions.apply(this,arguments);t.params&&t.params.toBlock&&(delete t.params.toBlock,console.warn("Invalid option: toBlock. Use getPastEvents for specific range.")),this._checkListener("newListener",t.event.name),this._checkListener("removeListener",t.event.name);var e=new s({subscription:{params:1,inputFormatter:[a.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(t.event),subscriptionHandler:function(t){t.removed?this.emit("changed",t):this.emit("data",t),"function"===typeof this.callback&&this.callback(null,t,this)}},type:"eth",requestManager:this._requestManager});return e.subscribe("logs",t.params,t.callback||function(){}),e},c.prototype.getPastEvents=function(){var t=this._generateEventOptions.apply(this,arguments),e=new i({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[a.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(t.event)});e.setRequestManager(this._requestManager);var r=e.buildCall();return e=null,r(t.params,t.callback)},c.prototype._createTxObject=function(){var t=Array.prototype.slice.call(arguments),e={};if("function"===this.method.type&&(e.call=this.parent._executeMethod.bind(e,"call"),e.call.request=this.parent._executeMethod.bind(e,"call",!0)),e.send=this.parent._executeMethod.bind(e,"send"),e.send.request=this.parent._executeMethod.bind(e,"send",!0),e.encodeABI=this.parent._encodeMethodABI.bind(e),e.estimateGas=this.parent._executeMethod.bind(e,"estimate"),t&&this.method.inputs&&t.length!==this.method.inputs.length){if(this.nextMethod)return this.nextMethod.apply(null,t);throw u.InvalidNumberOfParams(t.length,this.method.inputs.length,this.method.name)}return e.arguments=t||[],e._method=this.method,e._parent=this.parent,e._ethAccounts=this.parent.constructor._ethAccounts||this._ethAccounts,this.deployData&&(e._deployData=this.deployData),e},c.prototype._processExecuteArguments=function(t,e){var r={};if(r.type=t.shift(),r.callback=this._parent._getCallback(t),"call"!==r.type||!0===t[t.length-1]||"string"!==typeof t[t.length-1]&&!isFinite(t[t.length-1])||(r.defaultBlock=t.pop()),r.options="object"===(!!t[t.length-1]&&typeof t[t.length-1])?t.pop():{},r.generateRequest=!0===t[t.length-1]&&t.pop(),r.options=this._parent._getOrSetDefaultOptions(r.options),r.options.data=this.encodeABI(),!this._deployData&&!o.isAddress(this._parent.options.address))throw u.ContractNoAddressDefinedError();return this._deployData||(r.options.to=this._parent.options.address),r.options.data?r:o._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),e.eventEmitter,e.reject,r.callback)},c.prototype._executeMethod=function(){var t=this,e=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),r),r=h("send"!==e.type),n=t.constructor._ethAccounts||t._ethAccounts;if(e.generateRequest){var s={params:[a.inputCallFormatter.call(this._parent,e.options)],callback:e.callback};return"call"===e.type?(s.params.push(a.inputDefaultBlockNumberFormatter.call(this._parent,e.defaultBlock)),s.method="eth_call",s.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):s.method="eth_sendTransaction",s}switch(e.type){case"estimate":var c=new i({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[a.inputCallFormatter],outputFormatter:o.hexToNumber,requestManager:t._parent._requestManager,accounts:n,defaultAccount:t._parent.defaultAccount,defaultBlock:t._parent.defaultBlock}).createFunction();return c(e.options,e.callback);case"call":var f=new i({name:"call",call:"eth_call",params:2,inputFormatter:[a.inputCallFormatter,a.inputDefaultBlockNumberFormatter],outputFormatter:function(e){return t._parent._decodeMethodReturn(t._method.outputs,e)},requestManager:t._parent._requestManager,accounts:n,defaultAccount:t._parent.defaultAccount,defaultBlock:t._parent.defaultBlock,handleRevert:t._parent.handleRevert,abiCoder:l}).createFunction();return f(e.options,e.defaultBlock,e.callback);case"send":if(!o.isAddress(e.options.from))return o._fireError(u.ContractNoFromAddressDefinedError(),r.eventEmitter,r.reject,e.callback);if("boolean"===typeof this._method.payable&&!this._method.payable&&e.options.value&&e.options.value>0)return o._fireError(new Error("Can not send value to non-payable contract method or constructor"),r.eventEmitter,r.reject,e.callback);var d={receiptFormatter:function(e){if(Array.isArray(e.logs)){var r=e.logs.map(e=>t._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:t._parent.options.jsonInterface},e));e.events={};var n=0;r.forEach((function(t){t.event?e.events[t.event]?Array.isArray(e.events[t.event])?e.events[t.event].push(t):e.events[t.event]=[e.events[t.event],t]:e.events[t.event]=t:(e.events[n]=t,n++)})),delete e.logs}return e},contractDeployFormatter:function(e){var r=t._parent.clone();return r.options.address=e.contractAddress,r}},p=new i({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[a.inputTransactionFormatter],requestManager:t._parent._requestManager,accounts:t.constructor._ethAccounts||t._ethAccounts,defaultAccount:t._parent.defaultAccount,defaultBlock:t._parent.defaultBlock,transactionBlockTimeout:t._parent.transactionBlockTimeout,transactionConfirmationBlocks:t._parent.transactionConfirmationBlocks,transactionPollingTimeout:t._parent.transactionPollingTimeout,defaultCommon:t._parent.defaultCommon,defaultChain:t._parent.defaultChain,defaultHardfork:t._parent.defaultHardfork,handleRevert:t._parent.handleRevert,extraFormatters:d,abiCoder:l}).createFunction();return p(e.options,e.callback);default:throw new Error('Method "'+e.type+'" not implemented.')}},t.exports=c},"6e47":function(t,e,r){"use strict";var n=r("2638"),i=r.n(n),o=r("c31d"),s=r("d282"),a=r("a142"),u=r("ba31"),h=r("1325"),l=Object(s["a"])("overlay"),c=l[0],f=l[1];function d(t){Object(h["c"])(t,!0)}function p(t,e,r,n){var s=Object(o["a"])({zIndex:e.zIndex},e.customStyle);return Object(a["c"])(e.duration)&&(s.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",i()([{directives:[{name:"show",value:e.show}],style:s,class:[f(),e.className],on:{touchmove:e.lockScroll?d:a["i"]}},Object(u["b"])(n,!0)]),[null==r.default?void 0:r.default()])])}p.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}},e["a"]=c(p)},"6eed":function(t,e,r){"use strict";var n=r("c3c0"),i=r("edc9"),o=r("aa56"),s=r("da3e"),a=n.sum32,u=n.sum32_4,h=n.sum32_5,l=o.ch32,c=o.maj32,f=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,v=i.BlockHash,g=[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 y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(y,v),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=u(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],v=this.h[2],g=this.h[3],y=this.h[4],b=this.h[5],w=this.h[6],M=this.h[7];for(s(this.k.length===r.length),n=0;n<r.length;n++){var _=h(M,d(y),l(y,b,w),this.k[n],r[n]),k=a(f(i),c(i,o,v));M=w,w=b,b=y,y=a(g,_),g=v,v=o,o=i,i=a(_,k)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],v),this.h[3]=a(this.h[3],g),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],b),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],M)},y.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},"6f2f":function(t,e,r){"use strict";var n=r("2638"),i=r.n(n),o=r("d282"),s=r("a142"),a=r("ba31"),u=Object(o["a"])("info"),h=u[0],l=u[1];function c(t,e,r,n){var o=e.dot,u=e.info,h=Object(s["c"])(u)&&""!==u;if(o||h)return t("div",i()([{class:l({dot:o})},Object(a["b"])(n,!0)]),[o?"":e.info])}c.props={dot:Boolean,info:[Number,String]},e["a"]=h(c)},"6f3d":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.N_DIV_2=e.isAccessList=e.isAccessListBuffer=e.Capability=void 0;var n=r("5b66");function i(t){if(0===t.length)return!0;var e=t[0];return!!Array.isArray(e)}function o(t){return!i(t)}(function(t){t[t["EIP155ReplayProtection"]=155]="EIP155ReplayProtection",t[t["EIP1559FeeMarket"]=1559]="EIP1559FeeMarket",t[t["EIP2718TypedTransaction"]=2718]="EIP2718TypedTransaction",t[t["EIP2930AccessLists"]=2930]="EIP2930AccessLists"})(e.Capability||(e.Capability={})),e.isAccessListBuffer=i,e.isAccessList=o,e.N_DIV_2=new n.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16)},"6f5a":function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r("bbf9"),i=r.n(n),o=r("549e");function s(t){return"0x"+i.a.keccak_256(Object(o["arrayify"])(t))}},"6fde":function(t,e){const r=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];e.p1600=function(t){for(let e=0;e<24;++e){const n=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],a=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],f=t[9]^t[19]^t[29]^t[39]^t[49];let d=c^(o<<1|s>>>31),p=f^(s<<1|o>>>31);const m=t[0]^d,v=t[1]^p,g=t[10]^d,y=t[11]^p,b=t[20]^d,w=t[21]^p,M=t[30]^d,_=t[31]^p,k=t[40]^d,S=t[41]^p;d=n^(a<<1|u>>>31),p=i^(u<<1|a>>>31);const x=t[2]^d,E=t[3]^p,A=t[12]^d,O=t[13]^p,T=t[22]^d,C=t[23]^p,P=t[32]^d,B=t[33]^p,I=t[42]^d,R=t[43]^p;d=o^(h<<1|l>>>31),p=s^(l<<1|h>>>31);const N=t[4]^d,j=t[5]^p,L=t[14]^d,U=t[15]^p,D=t[24]^d,F=t[25]^p,z=t[34]^d,q=t[35]^p,H=t[44]^d,$=t[45]^p;d=a^(c<<1|f>>>31),p=u^(f<<1|c>>>31);const V=t[6]^d,K=t[7]^p,W=t[16]^d,G=t[17]^p,Z=t[26]^d,J=t[27]^p,X=t[36]^d,Y=t[37]^p,Q=t[46]^d,tt=t[47]^p;d=h^(n<<1|i>>>31),p=l^(i<<1|n>>>31);const et=t[8]^d,rt=t[9]^p,nt=t[18]^d,it=t[19]^p,ot=t[28]^d,st=t[29]^p,at=t[38]^d,ut=t[39]^p,ht=t[48]^d,lt=t[49]^p,ct=m,ft=v,dt=y<<4|g>>>28,pt=g<<4|y>>>28,mt=b<<3|w>>>29,vt=w<<3|b>>>29,gt=_<<9|M>>>23,yt=M<<9|_>>>23,bt=k<<18|S>>>14,wt=S<<18|k>>>14,Mt=x<<1|E>>>31,_t=E<<1|x>>>31,kt=O<<12|A>>>20,St=A<<12|O>>>20,xt=T<<10|C>>>22,Et=C<<10|T>>>22,At=B<<13|P>>>19,Ot=P<<13|B>>>19,Tt=I<<2|R>>>30,Ct=R<<2|I>>>30,Pt=j<<30|N>>>2,Bt=N<<30|j>>>2,It=L<<6|U>>>26,Rt=U<<6|L>>>26,Nt=F<<11|D>>>21,jt=D<<11|F>>>21,Lt=z<<15|q>>>17,Ut=q<<15|z>>>17,Dt=$<<29|H>>>3,Ft=H<<29|$>>>3,zt=V<<28|K>>>4,qt=K<<28|V>>>4,Ht=G<<23|W>>>9,$t=W<<23|G>>>9,Vt=Z<<25|J>>>7,Kt=J<<25|Z>>>7,Wt=X<<21|Y>>>11,Gt=Y<<21|X>>>11,Zt=tt<<24|Q>>>8,Jt=Q<<24|tt>>>8,Xt=et<<27|rt>>>5,Yt=rt<<27|et>>>5,Qt=nt<<20|it>>>12,te=it<<20|nt>>>12,ee=st<<7|ot>>>25,re=ot<<7|st>>>25,ne=at<<8|ut>>>24,ie=ut<<8|at>>>24,oe=ht<<14|lt>>>18,se=lt<<14|ht>>>18;t[0]=ct^~kt&Nt,t[1]=ft^~St&jt,t[10]=zt^~Qt&mt,t[11]=qt^~te&vt,t[20]=Mt^~It&Vt,t[21]=_t^~Rt&Kt,t[30]=Xt^~dt&xt,t[31]=Yt^~pt&Et,t[40]=Pt^~Ht&ee,t[41]=Bt^~$t&re,t[2]=kt^~Nt&Wt,t[3]=St^~jt&Gt,t[12]=Qt^~mt&At,t[13]=te^~vt&Ot,t[22]=It^~Vt&ne,t[23]=Rt^~Kt&ie,t[32]=dt^~xt&Lt,t[33]=pt^~Et&Ut,t[42]=Ht^~ee&gt,t[43]=$t^~re&yt,t[4]=Nt^~Wt&oe,t[5]=jt^~Gt&se,t[14]=mt^~At&Dt,t[15]=vt^~Ot&Ft,t[24]=Vt^~ne&bt,t[25]=Kt^~ie&wt,t[34]=xt^~Lt&Zt,t[35]=Et^~Ut&Jt,t[44]=ee^~gt&Tt,t[45]=re^~yt&Ct,t[6]=Wt^~oe&ct,t[7]=Gt^~se&ft,t[16]=At^~Dt&zt,t[17]=Ot^~Ft&qt,t[26]=ne^~bt&Mt,t[27]=ie^~wt&_t,t[36]=Lt^~Zt&Xt,t[37]=Ut^~Jt&Yt,t[46]=gt^~Tt&Pt,t[47]=yt^~Ct&Bt,t[8]=oe^~ct&kt,t[9]=se^~ft&St,t[18]=Dt^~zt&Qt,t[19]=Ft^~qt&te,t[28]=bt^~Mt&It,t[29]=wt^~_t&Rt,t[38]=Zt^~Xt&dt,t[39]=Jt^~Yt&pt,t[48]=Tt^~Pt&Ht,t[49]=Ct^~Bt&$t,t[0]^=r[2*e],t[1]^=r[2*e+1]}}},"6fe7":function(t,e,r){var n=r("39a9").Buffer,i=r("1a2a"),o=r("a958"),s=r("3337").ec,a=r("399f"),u=r("2aee"),h=r("cd91");function l(t,e,r,i,s){var a=u(e);if(a.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return c(t,a)}if("dsa"===a.type){if("dsa"!==i)throw new Error("wrong private key type");return f(t,a,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");t=n.concat([s,t]);var h=a.modulus.byteLength(),l=[0,1];while(t.length+l.length+1<h)l.push(255);l.push(0);var d=-1;while(++d<t.length)l.push(t[d]);var p=o(l,a);return p}function c(t,e){var r=h[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var i=new s(r),o=i.keyFromPrivate(e.privateKey),a=o.sign(t);return n.from(a.toDER())}function f(t,e,r){var n,i=e.params.priv_key,o=e.params.p,s=e.params.q,u=e.params.g,h=new a(0),l=m(t,s).mod(s),c=!1,f=p(i,s,t,r);while(!1===c)n=g(s,f,r),h=y(u,n,o,s),c=n.invm(s).imul(l.add(i.mul(h))).mod(s),0===c.cmpn(0)&&(c=!1,h=new a(0));return d(h,c)}function d(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var r=t.length+e.length+4,i=[48,r,2,t.length];return i=i.concat(t,[2,e.length],e),n.from(i)}function p(t,e,r,o){if(t=n.from(t.toArray()),t.length<e.byteLength()){var s=n.alloc(e.byteLength()-t.length);t=n.concat([s,t])}var a=r.length,u=v(r,e),h=n.alloc(a);h.fill(1);var l=n.alloc(a);return l=i(o,l).update(h).update(n.from([0])).update(t).update(u).digest(),h=i(o,l).update(h).digest(),l=i(o,l).update(h).update(n.from([1])).update(t).update(u).digest(),h=i(o,l).update(h).digest(),{k:l,v:h}}function m(t,e){var r=new a(t),n=(t.length<<3)-e.bitLength();return n>0&&r.ishrn(n),r}function v(t,e){t=m(t,e),t=t.mod(e);var r=n.from(t.toArray());if(r.length<e.byteLength()){var i=n.alloc(e.byteLength()-r.length);r=n.concat([i,r])}return r}function g(t,e,r){var o,s;do{o=n.alloc(0);while(8*o.length<t.bitLength())e.v=i(r,e.k).update(e.v).digest(),o=n.concat([o,e.v]);s=m(o,t),e.k=i(r,e.k).update(e.v).update(n.from([0])).digest(),e.v=i(r,e.k).update(e.v).digest()}while(-1!==s.cmp(t));return s}function y(t,e,r,n){return t.toRed(a.mont(r)).redPow(e).fromRed().mod(n)}t.exports=l,t.exports.getKey=p,t.exports.makeKey=g},"702d":function(t,e,r){(function(t){"undefined"===typeof DO_NOT_EXPORT_CRC?t(e):t({})})((function(t){function e(){for(var t=0,e=new Array(256),r=0;256!=r;++r)t=r,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,e[r]=t;return"undefined"!==typeof Int32Array?new Int32Array(e):e}t.version="1.2.0";var r=e();function n(t,e){for(var n=-1^e,i=t.length-1,o=0;o<i;)n=n>>>8^r[255&(n^t.charCodeAt(o++))],n=n>>>8^r[255&(n^t.charCodeAt(o++))];return o===i&&(n=n>>>8^r[255&(n^t.charCodeAt(o))]),-1^n}function i(t,e){if(t.length>1e4)return o(t,e);for(var n=-1^e,i=t.length-3,s=0;s<i;)n=n>>>8^r[255&(n^t[s++])],n=n>>>8^r[255&(n^t[s++])],n=n>>>8^r[255&(n^t[s++])],n=n>>>8^r[255&(n^t[s++])];while(s<i+3)n=n>>>8^r[255&(n^t[s++])];return-1^n}function o(t,e){for(var n=-1^e,i=t.length-7,o=0;o<i;)n=n>>>8^r[255&(n^t[o++])],n=n>>>8^r[255&(n^t[o++])],n=n>>>8^r[255&(n^t[o++])],n=n>>>8^r[255&(n^t[o++])],n=n>>>8^r[255&(n^t[o++])],n=n>>>8^r[255&(n^t[o++])],n=n>>>8^r[255&(n^t[o++])],n=n>>>8^r[255&(n^t[o++])];while(o<i+7)n=n>>>8^r[255&(n^t[o++])];return-1^n}function s(t,e){for(var n,i,o=-1^e,s=0,a=t.length;s<a;)n=t.charCodeAt(s++),n<128?o=o>>>8^r[255&(o^n)]:n<2048?(o=o>>>8^r[255&(o^(192|n>>6&31))],o=o>>>8^r[255&(o^(128|63&n))]):n>=55296&&n<57344?(n=64+(1023&n),i=1023&t.charCodeAt(s++),o=o>>>8^r[255&(o^(240|n>>8&7))],o=o>>>8^r[255&(o^(128|n>>2&63))],o=o>>>8^r[255&(o^(128|i>>6&15|(3&n)<<4))],o=o>>>8^r[255&(o^(128|63&i))]):(o=o>>>8^r[255&(o^(224|n>>12&15))],o=o>>>8^r[255&(o^(128|n>>6&63))],o=o>>>8^r[255&(o^(128|63&n))]);return-1^o}t.table=r,t.bstr=n,t.buf=i,t.str=s}))},"70c1":function(t,e,r){"use strict";var n=r("4a87"),i=r("a6b6"),o=new n(0),s=new n(-1),a={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function u(t){var e=t?t.toLowerCase():"ether",r=a[e];if("string"!==typeof r)throw new Error("[ethjs-unit] the unit provided "+t+" doesn't exists, please use the one of the following units "+JSON.stringify(a,null,2));return new n(r,10)}function h(t){if("string"===typeof t){if(!t.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+t+"', should be a number matching (^-?[0-9.]+).");return t}if("number"===typeof t)return String(t);if("object"===typeof t&&t.toString&&(t.toTwos||t.dividedToIntegerBy))return t.toPrecision?String(t.toPrecision()):t.toString(10);throw new Error("while converting number to string, invalid number value '"+t+"' type "+typeof t+".")}function l(t,e,r){var n=i(t),h=n.lt(o),l=u(e),c=a[e].length-1||1,f=r||{};h&&(n=n.mul(s));var d=n.mod(l).toString(10);while(d.length<c)d="0"+d;f.pad||(d=d.match(/^([0-9]*[1-9]|0)(0*)/)[1]);var p=n.div(l).toString(10);f.commify&&(p=p.replace(/\B(?=(\d{3})+(?!\d))/g,","));var m=p+("0"==d?"":"."+d);return h&&(m="-"+m),m}function c(t,e){var r=h(t),i=u(e),o=a[e].length-1||1,l="-"===r.substring(0,1);if(l&&(r=r.substring(1)),"."===r)throw new Error("[ethjs-unit] while converting number "+t+" to wei, invalid value");var c=r.split(".");if(c.length>2)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal points");var f=c[0],d=c[1];if(f||(f="0"),d||(d="0"),d.length>o)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal places");while(d.length<o)d+="0";f=new n(f),d=new n(d);var p=f.mul(i).add(d);return l&&(p=p.mul(s)),new n(p.toString(10),10)}t.exports={unitMap:a,numberToString:h,getValueOfUnit:u,fromWei:l,toWei:c}},7106:function(t,e,r){"use strict";const{Buffer:n}=r("b639"),i=r("2612"),o=r("0be1"),s=r("2a4b"),a=r("f33e");e=t.exports,e.addPrefix=(t,e)=>{let r;if(n.isBuffer(t))r=a.varintBufferEncode(t);else{if(!s[t])throw new Error("multicodec not recognized");r=s[t]}return n.concat([r,e])},e.rmPrefix=t=>(i.decode(t),t.slice(i.decode.bytes)),e.getCodec=t=>{const e=i.decode(t),r=o.get(e);if(void 0===r)throw new Error(`Code ${e} not found`);return r},e.getName=t=>o.get(t),e.getNumber=t=>{const e=s[t];if(void 0===e)throw new Error("Codec `"+t+"` not found");return a.varintBufferDecode(e)[0]},e.getCode=t=>i.decode(t),e.getCodeVarint=t=>{const e=s[t];if(void 0===e)throw new Error("Codec `"+t+"` not found");return e},e.getVarint=t=>i.encode(t);const u=r("b642");Object.assign(e,u),e.print=r("4858")},7212:function(t,e,r){
/*!
* vue-awesome-swiper v4.1.1
* Copyright (c) Surmon. All rights reserved.
* Released under the MIT License.
* Surmon <https://github.com/surmon-china>
*/
(function(t,n){n(e,r("b619"),r("8bbf"))})(0,(function(t,e,r){"use strict";var n;e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e,r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r["default"]:r,function(t){t["SwiperComponent"]="Swiper",t["SwiperSlideComponent"]="SwiperSlide",t["SwiperDirective"]="swiper",t["SwiperInstance"]="$swiper"}(n||(n={}));var i,o,s=Object.freeze({containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide"});(function(t){t["Ready"]="ready",t["ClickSlide"]="clickSlide"})(i||(i={})),function(t){t["AutoUpdate"]="autoUpdate",t["AutoDestroy"]="autoDestroy",t["DeleteInstanceOnDestroy"]="deleteInstanceOnDestroy",t["CleanupStylesOnDestroy"]="cleanupStylesOnDestroy"}(o||(o={}));var a=["init","beforeDestroy","slideChange","slideChangeTransitionStart","slideChangeTransitionEnd","slideNextTransitionStart","slideNextTransitionEnd","slidePrevTransitionStart","slidePrevTransitionEnd","transitionStart","transitionEnd","touchStart","touchMove","touchMoveOpposite","sliderMove","touchEnd","click","tap","doubleTap","imagesReady","progress","reachBeginning","reachEnd","fromEdge","setTranslate","setTransition","resize","observerUpdate","beforeLoopFix","loopFix"];
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function u(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<r;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}var h,l=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()},c=function(t,e,r){var n,o,s;if(t&&!t.destroyed){var a=(null===(n=e.composedPath)||void 0===n?void 0:n.call(e))||e.path;if((null===e||void 0===e?void 0:e.target)&&a){var u=Array.from(t.slides),h=Array.from(a);if(u.includes(e.target)||h.some((function(t){return u.includes(t)}))){var c=t.clickedIndex,f=Number(null===(s=null===(o=t.clickedSlide)||void 0===o?void 0:o.dataset)||void 0===s?void 0:s.swiperSlideIndex),d=Number.isInteger(f)?f:null;r(i.ClickSlide,c,d),r(l(i.ClickSlide),c,d)}}}},f=function(t,e){a.forEach((function(r){t.on(r,(function(){for(var t=arguments,n=[],i=0;i<arguments.length;i++)n[i]=t[i];e.apply(void 0,u([r],n));var o=l(r);o!==r&&e.apply(void 0,u([o],n))}))}))},d="instanceName";function p(t,e){var r=function(t,e){var r,n,i,o,s=null===(n=null===(r=t.data)||void 0===r?void 0:r.attrs)||void 0===n?void 0:n[e];return void 0!==s?s:null===(o=null===(i=t.data)||void 0===i?void 0:i.attrs)||void 0===o?void 0:o[l(e)]},a=function(t,e,i){return e.arg||r(i,d)||t.id||n.SwiperInstance},u=function(t,e,r){var n=a(t,e,r);return r.context[n]||null},h=function(t){return t.value||e},p=function(t){return[!0,void 0,null,""].includes(t)},m=function(t){var e,r,n=(null===(e=t.data)||void 0===e?void 0:e.on)||(null===(r=t.componentOptions)||void 0===r?void 0:r.listeners);return function(t){for(var e,r=arguments,i=[],o=1;o<arguments.length;o++)i[o-1]=r[o];var s=null===(e=n)||void 0===e?void 0:e[t];s&&s.fns.apply(s,i)}};return{bind:function(t,e,r){-1===t.className.indexOf(s.containerClass)&&(t.className+=(t.className?" ":"")+s.containerClass),t.addEventListener("click",(function(n){var i=m(r),o=u(t,e,r);c(o,n,i)}))},inserted:function(e,r,n){var o=n.context,s=h(r),u=a(e,r,n),l=m(n),c=o,d=null===c||void 0===c?void 0:c[u];d&&!d.destroyed||(d=new t(e,s),c[u]=d,f(d,l),l(i.Ready,d))},componentUpdated:function(t,e,n){var i,s,a,l,c,f,d,m,v,g,y,b,w=r(n,o.AutoUpdate);if(p(w)){var M=u(t,e,n);if(M){var _=h(e),k=_.loop;k&&(null===(s=null===(i=M)||void 0===i?void 0:i.loopDestroy)||void 0===s||s.call(i)),null===(a=null===M||void 0===M?void 0:M.update)||void 0===a||a.call(M),null===(c=null===(l=M.navigation)||void 0===l?void 0:l.update)||void 0===c||c.call(l),null===(d=null===(f=M.pagination)||void 0===f?void 0:f.render)||void 0===d||d.call(f),null===(v=null===(m=M.pagination)||void 0===m?void 0:m.update)||void 0===v||v.call(m),k&&(null===(y=null===(g=M)||void 0===g?void 0:g.loopCreate)||void 0===y||y.call(g),null===(b=null===M||void 0===M?void 0:M.update)||void 0===b||b.call(M))}}},unbind:function(t,e,n){var i,s=r(n,o.AutoDestroy);if(p(s)){var a=u(t,e,n);a&&a.initialized&&(null===(i=null===a||void 0===a?void 0:a.destroy)||void 0===i||i.call(a,p(r(n,o.DeleteInstanceOnDestroy)),p(r(n,o.CleanupStylesOnDestroy))))}}}}function m(t){var e;return r.extend({name:n.SwiperComponent,props:(e={defaultOptions:{type:Object,required:!1,default:function(){return{}}},options:{type:Object,required:!1}},e[o.AutoUpdate]={type:Boolean,default:!0},e[o.AutoDestroy]={type:Boolean,default:!0},e[o.DeleteInstanceOnDestroy]={type:Boolean,required:!1,default:!0},e[o.CleanupStylesOnDestroy]={type:Boolean,required:!1,default:!0},e),data:function(){var t;return t={},t[n.SwiperInstance]=null,t},computed:{swiperInstance:{cache:!1,set:function(t){this[n.SwiperInstance]=t},get:function(){return this[n.SwiperInstance]}},swiperOptions:function(){return this.options||this.defaultOptions},wrapperClass:function(){return this.swiperOptions.wrapperClass||s.wrapperClass}},methods:{handleSwiperClick:function(t){c(this.swiperInstance,t,this.$emit.bind(this))},autoReLoopSwiper:function(){var t,e;if(this.swiperInstance&&this.swiperOptions.loop){var r=this.swiperInstance;null===(t=null===r||void 0===r?void 0:r.loopDestroy)||void 0===t||t.call(r),null===(e=null===r||void 0===r?void 0:r.loopCreate)||void 0===e||e.call(r)}},updateSwiper:function(){var t,e,r,n,i,s,a,u;this[o.AutoUpdate]&&this.swiperInstance&&(this.autoReLoopSwiper(),null===(e=null===(t=this.swiperInstance)||void 0===t?void 0:t.update)||void 0===e||e.call(t),null===(n=null===(r=this.swiperInstance.navigation)||void 0===r?void 0:r.update)||void 0===n||n.call(r),null===(s=null===(i=this.swiperInstance.pagination)||void 0===i?void 0:i.render)||void 0===s||s.call(i),null===(u=null===(a=this.swiperInstance.pagination)||void 0===a?void 0:a.update)||void 0===u||u.call(a))},destroySwiper:function(){var t,e;this[o.AutoDestroy]&&this.swiperInstance&&this.swiperInstance.initialized&&(null===(e=null===(t=this.swiperInstance)||void 0===t?void 0:t.destroy)||void 0===e||e.call(t,this[o.DeleteInstanceOnDestroy],this[o.CleanupStylesOnDestroy]))},initSwiper:function(){this.swiperInstance=new t(this.$el,this.swiperOptions),f(this.swiperInstance,this.$emit.bind(this)),this.$emit(i.Ready,this.swiperInstance)}},mounted:function(){this.swiperInstance||this.initSwiper()},activated:function(){this.updateSwiper()},updated:function(){this.updateSwiper()},beforeDestroy:function(){this.$nextTick(this.destroySwiper)},render:function(t){return t("div",{staticClass:s.containerClass,on:{click:this.handleSwiperClick}},[this.$slots[h.ParallaxBg],t("div",{class:this.wrapperClass},this.$slots.default),this.$slots[h.Pagination],this.$slots[h.PrevButton],this.$slots[h.NextButton],this.$slots[h.Scrollbar]])}})}(function(t){t["ParallaxBg"]="parallax-bg",t["Pagination"]="pagination",t["Scrollbar"]="scrollbar",t["PrevButton"]="button-prev",t["NextButton"]="button-next"})(h||(h={}));var v=r.extend({name:n.SwiperSlideComponent,computed:{slideClass:function(){var t,e;return(null===(e=null===(t=this.$parent)||void 0===t?void 0:t.swiperOptions)||void 0===e?void 0:e.slideClass)||s.slideClass}},methods:{update:function(){var t,e=this.$parent;e[o.AutoUpdate]&&(null===(t=null===e||void 0===e?void 0:e.swiperInstance)||void 0===t||t.update())}},mounted:function(){this.update()},updated:function(){this.update()},render:function(t){return t("div",{class:this.slideClass},this.$slots.default)}}),g=function(t){var e=function(r,i){if(!e.installed){var o=m(t);i&&(o.options.props.defaultOptions.default=function(){return i}),r.component(n.SwiperComponent,o),r.component(n.SwiperSlideComponent,v),r.directive(n.SwiperDirective,p(t,i)),e.installed=!0}};return e};function y(t){var e;return e={version:"4.1.1",install:g(t),directive:p(t)},e[n.SwiperComponent]=m(t),e[n.SwiperSlideComponent]=v,e}var b=y(e),w=b.version,M=b.install,_=b.directive,k=b.Swiper,S=b.SwiperSlide;t.Swiper=k,t.SwiperSlide=S,t.default=b,t.directive=_,t.install=M,t.version=w,Object.defineProperty(t,"__esModule",{value:!0})}))},"72aa":function(t,e,r){var n=r("3fb5"),i=r("a255"),o=r("b672"),s=r("8707").Buffer,a=new Array(64);function u(){this.init(),this._w=a,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var t=s.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=u},7333:function(t,e,r){"use strict";var n=r("9e1e"),i=r("0d58"),o=r("2621"),s=r("52a7"),a=r("4bf8"),u=r("626a"),h=Object.assign;t.exports=!h||r("79e5")((function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=h({},t)[r]||Object.keys(h({},e)).join("")!=n}))?function(t,e){var r=a(t),h=arguments.length,l=1,c=o.f,f=s.f;while(h>l){var d,p=u(arguments[l++]),m=c?i(p).concat(c(p)):i(p),v=m.length,g=0;while(v>g)d=m[g++],n&&!f.call(p,d)||(r[d]=p[d])}return r}:h},"73f3":function(t,e,r){r("d873");var n=function(t,e){return parseInt(t.slice(2*e+2,2*e+4),16)},i=function(t){var e=void 0;e="undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues?window.crypto.getRandomValues(new Uint8Array(t)):r("1c46").randomBytes(t);for(var n="0x",i=0;i<t;++i)n+=("00"+e[i].toString(16)).slice(-2);return n},o=function(t){return(t.length-2)/2},s=function(t){return"0x"+t.reduce((function(t,e){return t+e.slice(2)}),"")},a=function(t,e,r){return"0x"+r.slice(2*t+2,2*e+2)},u=function(t){for(var e="0x",r=0,n=o(t);r<n;++r)e+=t.slice(2*(n-r),2*(n-r+1));return e},h=function t(e,r){return r.length===2*e+2?r:t(e,"0x0"+r.slice(2))},l=function t(e,r){return r.length===2*e+2?r:t(e,r+"0")},c=function(t){for(var e=[],r=2,n=t.length;r<n;r+=2)e.push(parseInt(t.slice(r,r+2),16));return e},f=function(t){for(var e="0x",r=0,n=t.length;r<n;++r){var i=t[r];e+=(i<16?"0":"")+i.toString(16)}return e},d=function(t){return new Uint8Array(c(t))},p=function(t){return f([].slice.call(t,0))},m=function(t){var e=t.toString(16);return e.length%2===0?"0x"+e:"0x0"+e},v=function(t){return parseInt(t.slice(2),16)},g=function(t,e){return t.concat(e.slice(2))},y=function(t){return"0x0"===t?"0x":t.length%2===0?t:"0x0"+t.slice(2)},b=function(t){return"0"===t[2]?"0x"+t.slice(3):t},w=function(t){for(var e="0x",r=0;r<t.length;++r)e+=("00"+t.charCodeAt(r).toString(16)).slice(-2);return e},M=function(t){for(var e="",r=2;r<t.length;r+=2)e+=String.fromCharCode(parseInt(t.slice(r,r+2),16));return e},_=function(t){for(var e=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},r="0x",n=0;n!=t.length;n++){var i=t.charCodeAt(n);if(i<128)r+=e(i);else{if(i<2048)r+=e(i>>6|192);else{if(i>55295&&i<56320){if(++n==t.length)return null;var o=t.charCodeAt(n);if(o<56320||o>57343)return null;i=65536+((1023&i)<<10)+(1023&o),r+=e(i>>18|240),r+=e(i>>12&63|128)}else r+=e(i>>12|224);r+=e(i>>6&63|128)}r+=e(63&i|128)}}return r},k=function(t){var e="",r=0,i=o(t);while(r<i){var s=n(t,r++);if(s>127){if(s>191&&s<224){if(r>=i)return null;s=(31&s)<<6|63&n(t,r)}else if(s>223&&s<240){if(r+1>=i)return null;s=(15&s)<<12|(63&n(t,r))<<6|63&n(t,++r)}else{if(!(s>239&&s<248))return null;if(r+2>=i)return null;s=(7&s)<<18|(63&n(t,r))<<12|(63&n(t,++r))<<6|63&n(t,++r)}++r}if(s<=65535)e+=String.fromCharCode(s);else{if(!(s<=1114111))return null;s-=65536,e+=String.fromCharCode(s>>10|55296),e+=String.fromCharCode(1023&s|56320)}}return e};t.exports={random:i,length:o,concat:g,flatten:s,slice:a,reverse:u,pad:h,padRight:l,fromAscii:w,toAscii:M,fromString:_,toString:k,fromNumber:m,toNumber:v,fromNat:y,toNat:b,fromArray:f,toArray:c,fromUint8Array:p,toUint8Array:d}},7514:function(t,e,r){"use strict";var n=r("5ca1"),i=r("0a49")(5),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),n(n.P+n.F*s,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r("9c6c")(o)},"757a":function(t){t.exports=JSON.parse('{"name":"petersburg","comment":"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople","url":"https://eips.ethereum.org/EIPS/eip-1716","status":"Draft","gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreInitGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreCleanGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreDirtyGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreClearRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetClearRefund":{"v":null,"d":"Removed along EIP-1283"}},"vm":{},"pow":{}}')},"75cc":function(t,e,r){"use strict";(function(t,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r("8707"),s=r("11dc"),a=o.Buffer,u=o.kMaxLength,h=t.crypto||t.msCrypto,l=Math.pow(2,32)-1;function c(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>u||t>e)throw new RangeError("offset out of range")}function f(t,e,r){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>r||t>u)throw new RangeError("buffer too small")}function d(e,r,n,i){if(!a.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof r)i=r,r=0,n=e.length;else if("function"===typeof n)i=n,n=e.length-r;else if("function"!==typeof i)throw new TypeError('"cb" argument must be a function');return c(r,e.length),f(n,r,e.length),p(e,r,n,i)}function p(t,e,r,i){if(n.browser){var o=t.buffer,a=new Uint8Array(o,e,r);return h.getRandomValues(a),i?void n.nextTick((function(){i(null,t)})):t}if(!i){var u=s(r);return u.copy(t,e),t}s(r,(function(r,n){if(r)return i(r);n.copy(t,e),i(null,t)}))}function m(e,r,n){if("undefined"===typeof r&&(r=0),!a.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return c(r,e.length),void 0===n&&(n=e.length-r),f(n,r,e.length),p(e,r,n)}h&&h.getRandomValues||!n.browser?(e.randomFill=d,e.randomFillSync=m):(e.randomFill=i,e.randomFillSync=i)}).call(this,r("c8ba"),r("f28c"))},7658:function(t,e,r){"use strict";var n=e;function i(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!==typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t);for(n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}return r}function o(t){return 1===t.length?"0"+t:t}function s(t){for(var e="",r=0;r<t.length;r++)e+=o(t[r].toString(16));return e}n.toArray=i,n.zero2=o,n.toHex=s,n.encode=function(t,e){return"hex"===e?s(t):t}},7726:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},7789:function(t,e,r){"use strict";var n=r("c044").errors,i=r("c044").formatters,o=r("5ba3"),s=r("00d7"),a=r("c3e6").subscriptions,u=r("5ac3"),h=function(t){if(!t.call||!t.name)throw new Error('When creating a method you need to provide at least the "name" and "call" property.');this.name=t.name,this.call=t.call,this.params=t.params||0,this.inputFormatter=t.inputFormatter,this.outputFormatter=t.outputFormatter,this.transformPayload=t.transformPayload,this.extraFormatters=t.extraFormatters,this.abiCoder=t.abiCoder,this.requestManager=t.requestManager,this.accounts=t.accounts,this.defaultBlock=t.defaultBlock||"latest",this.defaultAccount=t.defaultAccount||null,this.transactionBlockTimeout=t.transactionBlockTimeout||50,this.transactionConfirmationBlocks=t.transactionConfirmationBlocks||24,this.transactionPollingTimeout=t.transactionPollingTimeout||750,this.defaultCommon=t.defaultCommon,this.defaultChain=t.defaultChain,this.defaultHardfork=t.defaultHardfork,this.handleRevert=t.handleRevert};h.prototype.setRequestManager=function(t,e){this.requestManager=t,e&&(this.accounts=e)},h.prototype.createFunction=function(t,e){var r=this.buildCall();return r.call=this.call,this.setRequestManager(t||this.requestManager,e||this.accounts),r},h.prototype.attachToObject=function(t){var e=this.buildCall();e.call=this.call;var r=this.name.split(".");r.length>1?(t[r[0]]=t[r[0]]||{},t[r[0]][r[1]]=e):t[r[0]]=e},h.prototype.getCall=function(t){return"function"===typeof this.call?this.call(t):this.call},h.prototype.extractCallback=function(t){if("function"===typeof t[t.length-1])return t.pop()},h.prototype.validateArgs=function(t){if(t.length!==this.params)throw n.InvalidNumberOfParams(t.length,this.params,this.name)},h.prototype.formatInput=function(t){var e=this;return this.inputFormatter?this.inputFormatter.map((function(r,n){return r?r.call(e,t[n]):t[n]})):t},h.prototype.formatOutput=function(t){var e=this;return Array.isArray(t)?t.map((function(t){return e.outputFormatter&&t?e.outputFormatter(t):t})):this.outputFormatter&&t?this.outputFormatter(t):t},h.prototype.toPayload=function(t){var e=this.getCall(t),r=this.extractCallback(t),n=this.formatInput(t);this.validateArgs(n);var i={method:e,params:n,callback:r};return this.transformPayload&&(i=this.transformPayload(i)),i},h.prototype._confirmTransaction=function(t,e,r){var l=this,c=!1,f=!0,d=0,p=0,m=null,v=null,g=r.params[0]&&"object"===typeof r.params[0]&&r.params[0].gas?r.params[0].gas:null,y=!!r.params[0]&&"object"===typeof r.params[0]&&r.params[0].data&&r.params[0].from&&!r.params[0].to,b=y&&r.params[0].data.length>2,w=[new h({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[i.inputBlockNumberFormatter,function(t){return!!t}],outputFormatter:i.outputBlockFormatter}),new h({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:i.outputTransactionReceiptFormatter}),new h({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[i.inputAddressFormatter,i.inputDefaultBlockNumberFormatter]}),new h({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:i.outputTransactionFormatter}),new a({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:i.outputBlockFormatter}}})],M={};w.forEach(t=>{t.attachToObject(M),t.requestManager=l.requestManager});var _=function(a,h,w,_,k){if(!w)return k||(k={unsubscribe:function(){clearInterval(m)}}),(a?s.resolve(a):M.getTransactionReceipt(e)).catch((function(e){k.unsubscribe(),c=!0,o._fireError({message:"Failed to check for transaction receipt:",data:e},t.eventEmitter,t.reject)})).then((async function(e){if(!e||!e.blockHash)throw new Error("Receipt missing or blockHash null");if(l.extraFormatters&&l.extraFormatters.receiptFormatter&&(e=l.extraFormatters.receiptFormatter(e)),t.eventEmitter.listeners("confirmation").length>0){var r;if(void 0===a||0!==p){var n=await M.getBlockByNumber("latest"),i=n?n.hash:null;h?v?(r=await M.getBlockByNumber(v.number+1),r&&(v=r,t.eventEmitter.emit("confirmation",p,e,i))):(r=await M.getBlockByNumber(e.blockNumber),v=r,t.eventEmitter.emit("confirmation",p,e,i)):t.eventEmitter.emit("confirmation",p,e,i)}(h&&r||!h)&&p++,f=!1,p===l.transactionConfirmationBlocks+1&&(k.unsubscribe(),t.eventEmitter.removeAllListeners())}return e})).then((async function(e){if(y&&!c){if(!e.contractAddress)return f&&(k.unsubscribe(),c=!0),void o._fireError(n.NoContractAddressFoundError(e),t.eventEmitter,t.reject,null,e);var r;try{r=await M.getCode(e.contractAddress)}catch(w){}if(!r)return;var i=!0===e.status&&b;i||r.length>2?(t.eventEmitter.emit("receipt",e),l.extraFormatters&&l.extraFormatters.contractDeployFormatter?t.resolve(l.extraFormatters.contractDeployFormatter(e)):t.resolve(e),f&&t.eventEmitter.removeAllListeners()):o._fireError(n.ContractCodeNotStoredError(e),t.eventEmitter,t.reject,null,e),f&&k.unsubscribe(),c=!0}return e})).then((async function(e){if(!y&&!c){if(e.outOfGas||g&&g===e.gasUsed||!0!==e.status&&"0x1"!==e.status&&"undefined"!==typeof e.status)if(JSON.stringify(e,null,2),!1===e.status||"0x0"===e.status)try{var s=null;if(!l.handleRevert||"eth_sendTransaction"!==l.call&&"eth_sendRawTransaction"!==l.call)throw!1;var a=r.params[0];if("eth_sendRawTransaction"===l.call){var h=r.params[0],d=u.parse(h);a=i.inputTransactionFormatter({data:d.data,to:d.to,from:d.from,gas:d.gasLimit.toHexString(),gasPrice:d.gasPrice.toHexString(),value:d.value.toHexString()})}if(s=await l.getRevertReason(a,e.blockNumber),!s)throw!1;o._fireError(n.TransactionRevertInstructionError(s.reason,s.signature,e),t.eventEmitter,t.reject,null,e)}catch(p){o._fireError(n.TransactionRevertedWithoutReasonError(e),t.eventEmitter,t.reject,null,e)}else o._fireError(n.TransactionOutOfGasError(e),t.eventEmitter,t.reject,null,e);else t.eventEmitter.emit("receipt",e),t.resolve(e),f&&t.eventEmitter.removeAllListeners();f&&k.unsubscribe(),c=!0}})).catch((function(){d++,h?d-1>=l.transactionPollingTimeout&&(k.unsubscribe(),c=!0,o._fireError(n.TransactionError("Transaction was not mined within "+l.transactionPollingTimeout+" seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),t.eventEmitter,t.reject)):d-1>=l.transactionBlockTimeout&&(k.unsubscribe(),c=!0,o._fireError(n.TransactionError("Transaction was not mined within "+l.transactionBlockTimeout+" blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),t.eventEmitter,t.reject))}));k.unsubscribe(),c=!0,o._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:w},t.eventEmitter,t.reject)},k=function(t){const e=()=>{m=setInterval(_.bind(null,t,!0),1e3)};this.requestManager.provider.on?M.subscribe("newBlockHeaders",(function(r,n,i){r||!n?e():_(t,!1,r,n,i)})):e()}.bind(this);M.getTransactionReceipt(e).then((function(e){e&&e.blockHash?(t.eventEmitter.listeners("confirmation").length>0&&k(e),_(e,!1)):c||k()})).catch((function(){c||k()}))};var l=function(t,e){var r=null;return r="number"===typeof t?e.wallet[t]:t&&"object"===typeof t&&t.address&&t.privateKey?t:e.wallet[t.toLowerCase()],r};h.prototype.buildCall=function(){var t=this,e="eth_sendTransaction"===t.call||"eth_sendRawTransaction"===t.call,r="eth_call"===t.call,i=function(){var i=s(!e),a=t.toPayload(Array.prototype.slice.call(arguments)),u=function(s,u){var h;if(t.handleRevert&&r&&t.abiCoder&&(!s&&t.isRevertReasonString(u)?h=u.substring(10):s&&s.data&&(h=s.data.substring(10)),h)){var l=t.abiCoder.decodeParameter("string","0x"+h),c="Error(String)";return void o._fireError(n.RevertInstructionError(l,c),i.eventEmitter,i.reject,a.callback,{reason:l,signature:c})}try{u=t.formatOutput(u)}catch(f){s=f}if(u instanceof Error&&(s=u),s)return s.error&&(s=s.error),o._fireError(s,i.eventEmitter,i.reject,a.callback);a.callback&&a.callback(null,u),e?(i.eventEmitter.emit("transactionHash",u),t._confirmTransaction(i,u,a)):s||i.resolve(u)},c=function(e){var r={...a,method:"eth_sendRawTransaction",params:[e.rawTransaction]};t.requestManager.send(r,u)},f=function(t,e){var r;if(e&&e.accounts&&e.accounts.wallet&&e.accounts.wallet.length)if("eth_sendTransaction"===t.method){var n=t.params[0];if(r=l(n&&"object"===typeof n?n.from:null,e.accounts),r&&r.privateKey){n=JSON.parse(JSON.stringify(n));return delete n.from,e.defaultChain&&!n.chain&&(n.chain=e.defaultChain),e.defaultHardfork&&!n.hardfork&&(n.hardfork=e.defaultHardfork),e.defaultCommon&&!n.common&&(n.common=e.defaultCommon),void e.accounts.signTransaction(n,r.privateKey).then(c).catch((function(t){if("function"===typeof i.eventEmitter.listeners&&i.eventEmitter.listeners("error").length){try{i.eventEmitter.emit("error",t)}catch(t){}i.eventEmitter.removeAllListeners(),i.eventEmitter.catch((function(){}))}i.reject(t)}))}}else if("eth_sign"===t.method){var o=t.params[1];if(r=l(t.params[0],e.accounts),r&&r.privateKey){var s=e.accounts.sign(o,r.privateKey);return t.callback&&t.callback(null,s.signature),void i.resolve(s.signature)}}return e.requestManager.send(t,u)};if(e&&a.params[0]&&"object"===typeof a.params[0]&&"undefined"===typeof a.params[0].gasPrice){var d=new h({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(t.requestManager);d((function(r,n){n&&(a.params[0].gasPrice=n),e&&setTimeout(()=>{i.eventEmitter.emit("sending",a)},0),f(a,t)}))}else e&&setTimeout(()=>{i.eventEmitter.emit("sending",a)},0),f(a,t);return e&&setTimeout(()=>{i.eventEmitter.emit("sent",a)},0),i.eventEmitter};return i.method=t,i.request=this.request.bind(this),i},h.prototype.getRevertReason=function(t,e){var r=this;return new Promise((function(n,i){new h({name:"call",call:"eth_call",params:2,abiCoder:r.abiCoder,handleRevert:!0}).createFunction(r.requestManager)(t,o.numberToHex(e)).then((function(){n(!1)})).catch((function(t){t.reason?n({reason:t.reason,signature:t.signature}):i(t)}))}))},h.prototype.isRevertReasonString=function(t){return"string"===typeof t&&(t.length-2)/2%32===4&&"0x08c379a0"===t.substring(0,10)},h.prototype.request=function(){var t=this.toPayload(Array.prototype.slice.call(arguments));return t.format=this.formatOutput.bind(this),t},t.exports=h},"77f1":function(t,e,r){var n=r("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},"780f":function(t,e,r){"use strict";t.exports=o;var n=r("27bf"),i=Object.create(r("3a7c"));function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=r("3fb5"),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},7869:function(t){t.exports=JSON.parse('{"name":"spuriousDragon","comment":"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit","url":"https://eips.ethereum.org/EIPS/eip-607","status":"Final","gasConfig":{},"gasPrices":{"expByte":{"v":50,"d":"Times ceil(log256(exponent)) for the EXP instruction"}},"vm":{"maxCodeSize":{"v":24576,"d":"Maximum length of contract code"}},"pow":{}}')},"795e":function(t,e,r){"use strict";var n=r("c063"),i=r("7789"),o=r("5ba3"),s=function(){var t=this;n.packageInit(this,arguments),[new i({name:"getId",call:"net_version",params:0,outputFormatter:parseInt}),new i({name:"isListening",call:"net_listening",params:0}),new i({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:o.hexToNumber})].forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}))};n.addProviders(s),t.exports=s},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a10":function(t,e,r){var n=r("d0eb"),i=r("fdac");function o(t){this.rand=t||new i.Rand}t.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),r=Math.ceil(e/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(t)>=0);return i},o.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},o.prototype.test=function(t,e,r){var i=t.bitLength(),o=n.mont(t),s=new n(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var a=t.subn(1),u=0;!a.testn(u);u++);for(var h=t.shrn(u),l=a.toRed(o),c=!0;e>0;e--){var f=this._randrange(new n(2),a);r&&r(f);var d=f.toRed(o).redPow(h);if(0!==d.cmp(s)&&0!==d.cmp(l)){for(var p=1;p<u;p++){if(d=d.redSqr(),0===d.cmp(s))return!1;if(0===d.cmp(l))break}if(p===u)return!1}}return c},o.prototype.getDivisor=function(t,e){var r=t.bitLength(),i=n.mont(t),o=new n(1).toRed(i);e||(e=Math.max(1,r/48|0));for(var s=t.subn(1),a=0;!s.testn(a);a++);for(var u=t.shrn(a),h=s.toRed(i);e>0;e--){var l=this._randrange(new n(2),s),c=t.gcd(l);if(0!==c.cmpn(1))return c;var f=l.toRed(i).redPow(u);if(0!==f.cmp(o)&&0!==f.cmp(h)){for(var d=1;d<a;d++){if(f=f.redSqr(),0===f.cmp(o))return f.fromRed().subn(1).gcd(t);if(0===f.cmp(h))break}if(d===a)return f=f.redSqr(),f.fromRed().subn(1).gcd(t)}}return!1}},"7a56":function(t,e,r){"use strict";var n=r("7726"),i=r("86cc"),o=r("9e1e"),s=r("2b4c")("species");t.exports=function(t){var e=n[t];o&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},"7a77":function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},"7aac":function(t,e,r){"use strict";var n=r("c532");t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,r,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(i)&&a.push("path="+i),n.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(t,e){var r="0123456789abcdef".split(""),n=[1,256,65536,16777216],i=[0,8,16,24],o=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],s=function(t){return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(t<<1)>>5,outputBlocks:t>>5,s:function(t){return[].concat(t,t,t,t,t)}([0,0,0,0,0,0,0,0,0,0])}},a=function(t,e){var o,s=e.length,a=t.blocks,h=t.blockCount<<2,l=t.blockCount,c=t.outputBlocks,f=t.s,d=0;while(d<s){if(t.reset)for(t.reset=!1,a[0]=t.block,v=1;v<l+1;++v)a[v]=0;if("string"!==typeof e)for(v=t.start;d<s&&v<h;++d)a[v>>2]|=e[d]<<i[3&v++];else for(v=t.start;d<s&&v<h;++d)o=e.charCodeAt(d),o<128?a[v>>2]|=o<<i[3&v++]:o<2048?(a[v>>2]|=(192|o>>6)<<i[3&v++],a[v>>2]|=(128|63&o)<<i[3&v++]):o<55296||o>=57344?(a[v>>2]|=(224|o>>12)<<i[3&v++],a[v>>2]|=(128|o>>6&63)<<i[3&v++],a[v>>2]|=(128|63&o)<<i[3&v++]):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++d)),a[v>>2]|=(240|o>>18)<<i[3&v++],a[v>>2]|=(128|o>>12&63)<<i[3&v++],a[v>>2]|=(128|o>>6&63)<<i[3&v++],a[v>>2]|=(128|63&o)<<i[3&v++]);if(t.lastByteIndex=v,v>=h){for(t.start=v-h,t.block=a[l],v=0;v<l;++v)f[v]^=a[v];u(f),t.reset=!0}else t.start=v}if(v=t.lastByteIndex,a[v>>2]|=n[3&v],t.lastByteIndex===h)for(a[0]=a[l],v=1;v<l+1;++v)a[v]=0;for(a[l-1]|=2147483648,v=0;v<l;++v)f[v]^=a[v];u(f);var p,m="",v=0,g=0;while(g<c){for(v=0;v<l&&g<c;++v,++g)p=f[v],m+=r[p>>4&15]+r[15&p]+r[p>>12&15]+r[p>>8&15]+r[p>>20&15]+r[p>>16&15]+r[p>>28&15]+r[p>>24&15];g%l===0&&(u(f),v=0)}return"0x"+m},u=function(t){var e,r,n,i,s,a,u,h,l,c,f,d,p,m,v,g,y,b,w,M,_,k,S,x,E,A,O,T,C,P,B,I,R,N,j,L,U,D,F,z,q,H,$,V,K,W,G,Z,J,X,Y,Q,tt,et,rt,nt,it,ot,st,at,ut,ht,lt;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],s=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],h=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(a<<1|u>>>31),r=p^(u<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(h<<1|l>>>31),r=s^(l<<1|h>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(c<<1|f>>>31),r=u^(f<<1|c>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=h^(d<<1|p>>>31),r=l^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=c^(i<<1|s>>>31),r=f^(s<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],v=t[1],W=t[11]<<4|t[10]>>>28,G=t[10]<<4|t[11]>>>28,T=t[20]<<3|t[21]>>>29,C=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,$=t[41]<<18|t[40]>>>14,N=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,B=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,U=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,K=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,k=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~g&b,t[1]=v^~y&w,t[10]=x^~A&T,t[11]=E^~O&C,t[20]=N^~L&D,t[21]=j^~U&F,t[30]=V^~W&Z,t[31]=K^~G&J,t[40]=et^~nt&ot,t[41]=rt^~it&st,t[2]=g^~b&M,t[3]=y^~w&_,t[12]=A^~T&P,t[13]=O^~C&B,t[22]=L^~D&z,t[23]=U^~F&q,t[32]=W^~Z&X,t[33]=G^~J&Y,t[42]=nt^~ot&at,t[43]=it^~st&ut,t[4]=b^~M&k,t[5]=w^~_&S,t[14]=T^~P&I,t[15]=C^~B&R,t[24]=D^~z&H,t[25]=F^~q&$,t[34]=Z^~X&Q,t[35]=J^~Y&tt,t[44]=ot^~at&ht,t[45]=st^~ut&lt,t[6]=M^~k&m,t[7]=_^~S&v,t[16]=P^~I&x,t[17]=B^~R&E,t[26]=z^~H&N,t[27]=q^~$&j,t[36]=X^~Q&V,t[37]=Y^~tt&K,t[46]=at^~ht&et,t[47]=ut^~lt&rt,t[8]=k^~m&g,t[9]=S^~v&y,t[18]=I^~x&A,t[19]=R^~E&O,t[28]=H^~N&L,t[29]=$^~j&U,t[38]=Q^~V&W,t[39]=tt^~K&G,t[48]=ht^~et&nt,t[49]=lt^~rt&it,t[0]^=o[n],t[1]^=o[n+1]},h=function(t){return function(e){var r;if("0x"===e.slice(0,2)){r=[];for(var n=2,i=e.length;n<i;n+=2)r.push(parseInt(e.slice(n,n+2),16))}else r=e;return a(s(t,t),r)}};t.exports={keccak256:h(256),keccak512:h(512),keccak256s:h(256),keccak512s:h(512)}},"7be5":function(t,e,r){r("1cf4");const n=(t,e)=>parseInt(t.slice(2*e+2,2*e+4),16),i=t=>{let e;e="undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues?window.crypto.getRandomValues(new Uint8Array(t)):r("1c46").randomBytes(t);let n="0x";for(let r=0;r<t;++r)n+=("00"+e[r].toString(16)).slice(-2);return n},o=t=>(t.length-2)/2,s=t=>"0x"+t.reduce((t,e)=>t+e.slice(2),""),a=(t,e,r)=>"0x"+r.slice(2*t+2,2*e+2),u=t=>{let e="0x";for(let r=0,n=o(t);r<n;++r)e+=t.slice(2*(n-r),2*(n-r+1));return e},h=(t,e)=>e.length===2*t+2?e:h(t,"0x0"+e.slice(2)),l=(t,e)=>e.length===2*t+2?e:l(t,e+"0"),c=t=>{let e=[];for(let r=2,n=t.length;r<n;r+=2)e.push(parseInt(t.slice(r,r+2),16));return e},f=t=>{let e="0x";for(let r=0,n=t.length;r<n;++r){let n=t[r];e+=(n<16?"0":"")+n.toString(16)}return e},d=t=>new Uint8Array(c(t)),p=t=>f([].slice.call(t,0)),m=t=>{let e=t.toString(16);return e.length%2===0?"0x"+e:"0x0"+e},v=t=>parseInt(t.slice(2),16),g=(t,e)=>t.concat(e.slice(2)),y=t=>"0x0"===t?"0x":t.length%2===0?t:"0x0"+t.slice(2),b=t=>"0"===t[2]?"0x"+t.slice(3):t,w=t=>{let e="0x";for(let r=0;r<t.length;++r)e+=("00"+t.charCodeAt(r).toString(16)).slice(-2);return e},M=t=>{let e="";for(let r=2;r<t.length;r+=2)e+=String.fromCharCode(parseInt(t.slice(r,r+2),16));return e},_=t=>{const e=t=>{const e=t.toString(16);return e.length<2?"0"+e:e};let r="0x";for(let n=0;n!=t.length;n++){let i=t.charCodeAt(n);if(i<128)r+=e(i);else{if(i<2048)r+=e(i>>6|192);else{if(i>55295&&i<56320){if(++n==t.length)return null;let o=t.charCodeAt(n);if(o<56320||o>57343)return null;i=65536+((1023&i)<<10)+(1023&o),r+=e(i>>18|240),r+=e(i>>12&63|128)}else r+=e(i>>12|224);r+=e(i>>6&63|128)}r+=e(63&i|128)}}return r},k=t=>{let e="",r=0,i=o(t);while(r<i){let o=n(t,r++);if(o>127){if(o>191&&o<224){if(r>=i)return null;o=(31&o)<<6|63&n(t,r)}else if(o>223&&o<240){if(r+1>=i)return null;o=(15&o)<<12|(63&n(t,r))<<6|63&n(t,++r)}else{if(!(o>239&&o<248))return null;if(r+2>=i)return null;o=(7&o)<<18|(63&n(t,r))<<12|(63&n(t,++r))<<6|63&n(t,++r)}++r}if(o<=65535)e+=String.fromCharCode(o);else{if(!(o<=1114111))return null;o-=65536,e+=String.fromCharCode(o>>10|55296),e+=String.fromCharCode(1023&o|56320)}}return e};t.exports={random:i,length:o,concat:g,flatten:s,slice:a,reverse:u,pad:h,padRight:l,fromAscii:w,toAscii:M,fromString:_,toString:k,fromNumber:m,toNumber:v,fromNat:y,toNat:b,fromArray:f,toArray:c,fromUint8Array:p,toUint8Array:d}},"7cdf":function(t,e,r){var n=r("5ca1");n(n.S,"Number",{isInteger:r("9c12")})},"7d2a":function(t,e){var r=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>r||e!==e)throw new TypeError("Bad key length")}},"7d72":function(t,e,r){"use strict";var n=r("8707").Buffer,i=n.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){if(!t)return"utf8";var e;while(1)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function s(t){var e=o(t);if("string"!==typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}function a(t){var e;switch(this.encoding=s(t),this.encoding){case"utf16le":this.text=p,this.end=m,e=4;break;case"utf8":this.fillLast=c,e=4;break;case"base64":this.text=v,this.end=g,e=3;break;default:return this.write=y,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function u(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function h(t,e,r){var n=e.length-1;if(n<r)return 0;var i=u(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(e[n]),i>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0))}function l(t,e,r){if(128!==(192&e[0]))return t.lastNeed=0,"<22>";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"<22>";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"<22>"}}function c(t){var e=this.lastTotal-this.lastNeed,r=l(this,t,e);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function f(t,e){var r=h(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"<22>":e}function p(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function m(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function v(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function g(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function y(t){return t.toString(this.encoding)}function b(t){return t&&t.length?this.write(t):""}e.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),void 0===e)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},a.prototype.end=d,a.prototype.text=f,a.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},"7d92":function(t,e,r){var n=e;n.utils=r("c3c0"),n.common=r("edc9"),n.sha=r("5919"),n.ripemd=r("bb44"),n.hmac=r("2137"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},"7d96":function(t,e){const r="0123456789abcdef".split(""),n=[1,256,65536,16777216],i=[0,8,16,24],o=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],s=t=>({blocks:[],reset:!0,block:0,start:0,blockCount:1600-(t<<1)>>5,outputBlocks:t>>5,s:(t=>[].concat(t,t,t,t,t))([0,0,0,0,0,0,0,0,0,0])}),a=(t,e)=>{var o,s=e.length,a=t.blocks,h=t.blockCount<<2,l=t.blockCount,c=t.outputBlocks,f=t.s,d=0;while(d<s){if(t.reset)for(t.reset=!1,a[0]=t.block,v=1;v<l+1;++v)a[v]=0;if("string"!==typeof e)for(v=t.start;d<s&&v<h;++d)a[v>>2]|=e[d]<<i[3&v++];else for(v=t.start;d<s&&v<h;++d)o=e.charCodeAt(d),o<128?a[v>>2]|=o<<i[3&v++]:o<2048?(a[v>>2]|=(192|o>>6)<<i[3&v++],a[v>>2]|=(128|63&o)<<i[3&v++]):o<55296||o>=57344?(a[v>>2]|=(224|o>>12)<<i[3&v++],a[v>>2]|=(128|o>>6&63)<<i[3&v++],a[v>>2]|=(128|63&o)<<i[3&v++]):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++d)),a[v>>2]|=(240|o>>18)<<i[3&v++],a[v>>2]|=(128|o>>12&63)<<i[3&v++],a[v>>2]|=(128|o>>6&63)<<i[3&v++],a[v>>2]|=(128|63&o)<<i[3&v++]);if(t.lastByteIndex=v,v>=h){for(t.start=v-h,t.block=a[l],v=0;v<l;++v)f[v]^=a[v];u(f),t.reset=!0}else t.start=v}if(v=t.lastByteIndex,a[v>>2]|=n[3&v],t.lastByteIndex===h)for(a[0]=a[l],v=1;v<l+1;++v)a[v]=0;for(a[l-1]|=2147483648,v=0;v<l;++v)f[v]^=a[v];u(f);var p,m="",v=0,g=0;while(g<c){for(v=0;v<l&&g<c;++v,++g)p=f[v],m+=r[p>>4&15]+r[15&p]+r[p>>12&15]+r[p>>8&15]+r[p>>20&15]+r[p>>16&15]+r[p>>28&15]+r[p>>24&15];g%l===0&&(u(f),v=0)}return"0x"+m},u=t=>{var e,r,n,i,s,a,u,h,l,c,f,d,p,m,v,g,y,b,w,M,_,k,S,x,E,A,O,T,C,P,B,I,R,N,j,L,U,D,F,z,q,H,$,V,K,W,G,Z,J,X,Y,Q,tt,et,rt,nt,it,ot,st,at,ut,ht,lt;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],s=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],h=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(a<<1|u>>>31),r=p^(u<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(h<<1|l>>>31),r=s^(l<<1|h>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(c<<1|f>>>31),r=u^(f<<1|c>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=h^(d<<1|p>>>31),r=l^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=c^(i<<1|s>>>31),r=f^(s<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],v=t[1],W=t[11]<<4|t[10]>>>28,G=t[10]<<4|t[11]>>>28,T=t[20]<<3|t[21]>>>29,C=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,$=t[41]<<18|t[40]>>>14,N=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,B=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,U=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,K=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,k=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~g&b,t[1]=v^~y&w,t[10]=x^~A&T,t[11]=E^~O&C,t[20]=N^~L&D,t[21]=j^~U&F,t[30]=V^~W&Z,t[31]=K^~G&J,t[40]=et^~nt&ot,t[41]=rt^~it&st,t[2]=g^~b&M,t[3]=y^~w&_,t[12]=A^~T&P,t[13]=O^~C&B,t[22]=L^~D&z,t[23]=U^~F&q,t[32]=W^~Z&X,t[33]=G^~J&Y,t[42]=nt^~ot&at,t[43]=it^~st&ut,t[4]=b^~M&k,t[5]=w^~_&S,t[14]=T^~P&I,t[15]=C^~B&R,t[24]=D^~z&H,t[25]=F^~q&$,t[34]=Z^~X&Q,t[35]=J^~Y&tt,t[44]=ot^~at&ht,t[45]=st^~ut&lt,t[6]=M^~k&m,t[7]=_^~S&v,t[16]=P^~I&x,t[17]=B^~R&E,t[26]=z^~H&N,t[27]=q^~$&j,t[36]=X^~Q&V,t[37]=Y^~tt&K,t[46]=at^~ht&et,t[47]=ut^~lt&rt,t[8]=k^~m&g,t[9]=S^~v&y,t[18]=I^~x&A,t[19]=R^~E&O,t[28]=H^~N&L,t[29]=$^~j&U,t[38]=Q^~V&W,t[39]=tt^~K&G,t[48]=ht^~et&nt,t[49]=lt^~rt&it,t[0]^=o[n],t[1]^=o[n+1]},h=t=>e=>{var r;if("0x"===e.slice(0,2)){r=[];for(var n=2,i=e.length;n<i;n+=2)r.push(parseInt(e.slice(n,n+2),16))}else r=e;return a(s(t,t),r)};t.exports={keccak256:h(256),keccak512:h(512),keccak256s:h(256),keccak512s:h(512)}},"7e3c":function(t,e,r){var n;if("object"===typeof globalThis)n=globalThis;else try{n=r("6787")}catch(a){}finally{if(n||"undefined"===typeof window||(n=window),!n)throw new Error("Could not determine global this")}var i=n.WebSocket||n.MozWebSocket,o=r("1168");function s(t,e){var r;return r=e?new i(t,e):new i(t),r}i&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(t){Object.defineProperty(s,t,{get:function(){return i[t]}})})),t.exports={w3cwebsocket:i?s:null,version:o}},"7e78":function(t,e,r){var n=r("3fb5"),i=r("b672"),o=r("8707").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function u(){this.init(),this._w=a,i.call(this,64,56)}function h(t){return t<<1|t>>>31}function l(t){return t<<5|t>>>27}function c(t){return t<<30|t>>>2}function f(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=h(e[u-3]^e[u-8]^e[u-14]^e[u-16]);for(var d=0;d<80;++d){var p=~~(d/20),m=l(r)+f(p,n,i,o)+a+e[d]+s[p]|0;a=o,o=i,i=c(n),n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},"7f20":function(t,e,r){var n=r("86cc").f,i=r("69a8"),o=r("2b4c")("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},"7f44":function(t){t.exports=JSON.parse('{"name":"EIP-2537","number":2537,"comment":"BLS12-381 precompiles","url":"https://eips.ethereum.org/EIPS/eip-2537","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{"Bls12381G1AddGas":{"v":600,"d":"Gas cost of a single BLS12-381 G1 addition precompile-call"},"Bls12381G1MulGas":{"v":12000,"d":"Gas cost of a single BLS12-381 G1 multiplication precompile-call"},"Bls12381G2AddGas":{"v":4500,"d":"Gas cost of a single BLS12-381 G2 addition precompile-call"},"Bls12381G2MulGas":{"v":55000,"d":"Gas cost of a single BLS12-381 G2 multiplication precompile-call"},"Bls12381PairingBaseGas":{"v":115000,"d":"Base gas cost of BLS12-381 pairing check"},"Bls12381PairingPerPairGas":{"v":23000,"d":"Per-pair gas cost of BLS12-381 pairing check"},"Bls12381MapG1Gas":{"v":5500,"d":"Gas cost of BLS12-381 map field element to G1"},"Bls12381MapG2Gas":{"v":110000,"d":"Gas cost of BLS12-381 map field element to G2"},"Bls12381MultiExpGasDiscount":{"v":[[1,1200],[2,888],[3,764],[4,641],[5,594],[6,547],[7,500],[8,453],[9,438],[10,423],[11,408],[12,394],[13,379],[14,364],[15,349],[16,334],[17,330],[18,326],[19,322],[20,318],[21,314],[22,310],[23,306],[24,302],[25,298],[26,294],[27,289],[28,285],[29,281],[30,277],[31,273],[32,269],[33,268],[34,266],[35,265],[36,263],[37,262],[38,260],[39,259],[40,257],[41,256],[42,254],[43,253],[44,251],[45,250],[46,248],[47,247],[48,245],[49,244],[50,242],[51,241],[52,239],[53,238],[54,236],[55,235],[56,233],[57,232],[58,231],[59,229],[60,228],[61,226],[62,225],[63,223],[64,222],[65,221],[66,220],[67,219],[68,219],[69,218],[70,217],[71,216],[72,216],[73,215],[74,214],[75,213],[76,213],[77,212],[78,211],[79,211],[80,210],[81,209],[82,208],[83,208],[84,207],[85,206],[86,205],[87,205],[88,204],[89,203],[90,202],[91,202],[92,201],[93,200],[94,199],[95,199],[96,198],[97,197],[98,196],[99,196],[100,195],[101,194],[102,193],[103,193],[104,192],[105,191],[106,191],[107,190],[108,189],[109,188],[110,188],[111,187],[112,186],[113,185],[114,185],[115,184],[116,183],[117,182],[118,182],[119,181],[120,180],[121,179],[122,179],[123,178],[124,177],[125,176],[126,176],[127,175],[128,174]],"d":"Discount gas costs of calls to the MultiExp precompiles with `k` (point, scalar) pair"}},"vm":{},"pow":{}}')},"7f7a":function(t,e,r){var n=e;n.bignum=r("bc12"),n.define=r("ef3a").define,n.base=r("41df"),n.constants=r("0211"),n.decoders=r("20f6"),n.encoders=r("343e")},"7f7f":function(t,e,r){var n=r("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in i||r("9e1e")&&n(i,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},"7fd8":function(t,e,r){"use strict";var n={addresses:{main:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",ropsten:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",rinkeby:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",goerli:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},interfaceIds:{addr:"0x3b3b57de",setAddr:"0x3b3b57de",pubkey:"0xc8690233",setPubkey:"0xc8690233",contenthash:"0xbc1c58d1",setContenthash:"0xbc1c58d1",content:"0xd8389dc5",setContent:"0xd8389dc5"}};t.exports=n},8079:function(t,e,r){var n=r("7726"),i=r("1991").set,o=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,u="process"==r("2d95")(s);t.exports=function(){var t,e,r,h=function(){var n,i;u&&(n=s.domain)&&n.exit();while(t){i=t.fn,t=t.next;try{i()}catch(o){throw t?r():e=void 0,o}}e=void 0,n&&n.enter()};if(u)r=function(){s.nextTick(h)};else if(!o||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);r=function(){l.then(h)}}else r=function(){i.call(n,h)};else{var c=!0,f=document.createTextNode("");new o(h).observe(f,{characterData:!0}),r=function(){f.data=c=!c}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},"80af":function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s=r(15).Buffer}catch(E){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var s=t.charCodeAt(o)-48;n<<=4,n|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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"],l=[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],c=[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){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?h[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=l[t],d=c[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:h[f-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function v(t,e,r){var n=new g;return n.mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?m(this,t,e):v(this,t,e),r},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},g.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=f(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(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 b(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 w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){S.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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(w,b),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,b),i(_,b),i(k,b),k.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}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 w;else if("p224"===t)e=new M;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("62e4")(t))},8111:function(t,e,r){"use strict";const n=r("cfab"),i={};for(const[o,s]of Object.entries(n))i[o.toUpperCase().replace(/-/g,"_")]=s;t.exports=Object.freeze(i)},"82f0":function(t,e,r){var n=r("39f5"),i=r("8707").Buffer,o=r("6430"),s=r("3fb5"),a=r("3f62"),u=r("8c8a"),h=r("bd9d");function l(t,e){var r=0;t.length!==e.length&&r++;for(var n=Math.min(t.length,e.length),i=0;i<n;++i)r+=t[i]^e[i];return r}function c(t,e,r){if(12===e.length)return t._finID=i.concat([e,i.from([0,0,0,1])]),i.concat([e,i.from([0,0,0,2])]);var n=new a(r),o=e.length,s=o%16;n.update(e),s&&(s=16-s,n.update(i.alloc(s,0))),n.update(i.alloc(8,0));var u=8*o,l=i.alloc(8);l.writeUIntBE(u,0,8),n.update(l),t._finID=n.state;var c=i.from(t._finID);return h(c),c}function f(t,e,r,s){o.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(e);var h=this._cipher.encryptBlock(u);this._ghash=new a(h),r=c(this,r,h),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}s(f,o),f.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=i.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&l(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},f.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=f},8360:function(t,e,r){var n=r("41df").Reporter,i=r("41df").EncoderBuffer,o=r("41df").DecoderBuffer,s=r("da3e"),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a),h=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function l(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r["default"]=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=l;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var t=this._baseState,e={};c.forEach((function(r){e[r]=t[r]}));var r=new this.constructor(e.parent);return r._baseState=e,r},l.prototype._wrap=function(){var t=this._baseState;u.forEach((function(e){this[e]=function(){var r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}}),this)},l.prototype._init=function(t){var e=this._baseState;s(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),s.equal(e.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(t){var e=this._baseState,r=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==r.length&&(s(null===e.children),e.children=r,r.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(s(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!==typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(r){r==(0|r)&&(r|=0);var n=t[r];e[n]=r})),e})))},h.forEach((function(t){l.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),a.forEach((function(t){l.prototype[t]=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===e.tag),e.tag=t,this._useArgs(r),this}})),l.prototype.use=function(t){s(t);var e=this._baseState;return s(null===e.use),e.use=t,this},l.prototype.optional=function(){var t=this._baseState;return t.optional=!0,this},l.prototype.def=function(t){var e=this._baseState;return s(null===e["default"]),e["default"]=t,e.optional=!0,this},l.prototype.explicit=function(t){var e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.explicit=t,this},l.prototype.implicit=function(t){var e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.implicit=t,this},l.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},l.prototype.key=function(t){var e=this._baseState;return s(null===e.key),e.key=t,this},l.prototype.any=function(){var t=this._baseState;return t.any=!0,this},l.prototype.choice=function(t){var e=this._baseState;return s(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},l.prototype.contains=function(t){var e=this._baseState;return s(null===e.use),e.contains=t,this},l.prototype._decode=function(t,e){var r=this._baseState;if(null===r.parent)return t.wrapResult(r.children[0]._decode(t,e));var n,i=r["default"],s=!0,a=null;if(null!==r.key&&(a=t.enterKey(r.key)),r.optional){var u=null;if(null!==r.explicit?u=r.explicit:null!==r.implicit?u=r.implicit:null!==r.tag&&(u=r.tag),null!==u||r.any){if(s=this._peekTag(t,u,r.any),t.isError(s))return s}else{var h=t.save();try{null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),s=!0}catch(p){s=!1}t.restore(h)}}if(r.obj&&s&&(n=t.enterObject()),s){if(null!==r.explicit){var l=this._decodeTag(t,r.explicit);if(t.isError(l))return l;t=l}var c=t.offset;if(null===r.use&&null===r.choice){if(r.any)h=t.save();var f=this._decodeTag(t,null!==r.implicit?r.implicit:r.tag,r.any);if(t.isError(f))return f;r.any?i=t.raw(h):t=f}if(e&&e.track&&null!==r.tag&&e.track(t.path(),c,t.length,"tagged"),e&&e.track&&null!==r.tag&&e.track(t.path(),t.offset,t.length,"content"),i=r.any?i:null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),t.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(t,e)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var d=new o(i);i=this._getUse(r.contains,t._reporterState.obj)._decode(d,e)}}return r.obj&&s&&(i=t.leaveObject(n)),null===r.key||null===i&&!0!==s?null!==a&&t.exitKey(a):t.leaveKey(a,r.key,i),i},l.prototype._decodeGeneric=function(t,e,r){var n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},l.prototype._getUse=function(t,e){var r=this._baseState;return r.useDecoder=this._use(t,e),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},l.prototype._decodeChoice=function(t,e){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var s=t.save(),a=r.choice[o];try{var u=a._decode(t,e);if(t.isError(u))return!1;n={type:o,value:u},i=!0}catch(h){return t.restore(s),!1}return!0}),this),i?n:t.error("Choice not matched")},l.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},l.prototype._encode=function(t,e,r){var n=this._baseState;if(null===n["default"]||n["default"]!==t){var i=this._encodeValue(t,e,r);if(void 0!==i&&!this._skipDefault(i,e,r))return i}},l.prototype._encodeValue=function(t,e,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new n);var o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i["default"])return;t=i["default"]}var s=null,a=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)s=this._getUse(i.contains,r)._encode(t,e),a=!0;else if(i.children)s=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,e,t);if(null===r._baseState.key)return e.error("Child should have a key");var n=e.enterKey(r._baseState.key);if("object"!==typeof t)return e.error("Child expected, but input is not object");var i=r._encode(t[r._baseState.key],e,t);return e.leaveKey(n),i}),this).filter((function(t){return t})),s=this._createEncoderBuffer(s);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,s=this._createEncoderBuffer(t.map((function(r){var n=this._baseState;return this._getUse(n.args[0],t)._encode(r,e)}),u))}else null!==i.use?o=this._getUse(i.use,r)._encode(t,e):(s=this._encodePrimitive(i.tag,t),a=!0);if(!i.any&&null===i.choice){var h=null!==i.implicit?i.implicit:i.tag,l=null===i.implicit?"universal":"context";null===h?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(h,a,l,s))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},l.prototype._encodeChoice=function(t,e){var r=this._baseState,n=r.choice[t.type];return n||s(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(t.value,e)},l.prototype._encodePrimitive=function(t,e){var r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},l.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},l.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},8362:function(t,e){t.exports=n;var r=Object.prototype.toString;function n(t){if(!t)return!1;var e=r.call(t);return"[object Function]"===e||"function"===typeof t&&"[object RegExp]"!==e||"undefined"!==typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}},8378:function(t,e){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},"83a1":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"83b9":function(t,e,r){"use strict";var n=r("d925"),i=r("e683");t.exports=function(t,e){return t&&!n(e)?i(t,e):e}},"83d5":function(t,e){t.exports=function(t,e){var r=t.length,n=-1;while(++n<r)t[n]^=e[n];return t}},8463:function(t,e,r){"use strict";(function(t){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t["default"]=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.rlphash=e.ripemd160FromArray=e.ripemd160FromString=e.ripemd160=e.sha256FromArray=e.sha256FromString=e.sha256=e.keccakFromArray=e.keccakFromHexString=e.keccakFromString=e.keccak256=e.keccak=void 0;var s=r("c331"),a=r("98e6"),u=o(r("a3ca")),h=r("0c30"),l=r("29b1");e.keccak=function(t,e){switch(void 0===e&&(e=256),l.assertIsBuffer(t),e){case 224:return s.keccak224(t);case 256:return s.keccak256(t);case 384:return s.keccak384(t);case 512:return s.keccak512(t);default:throw new Error("Invald algorithm: keccak"+e)}},e.keccak256=function(t){return e.keccak(t)},e.keccakFromString=function(r,n){void 0===n&&(n=256),l.assertIsString(r);var i=t.from(r,"utf8");return e.keccak(i,n)},e.keccakFromHexString=function(t,r){return void 0===r&&(r=256),l.assertIsHexString(t),e.keccak(h.toBuffer(t),r)},e.keccakFromArray=function(t,r){return void 0===r&&(r=256),l.assertIsArray(t),e.keccak(h.toBuffer(t),r)};var c=function(t){return t=h.toBuffer(t),a("sha256").update(t).digest()};e.sha256=function(t){return l.assertIsBuffer(t),c(t)},e.sha256FromString=function(t){return l.assertIsString(t),c(t)},e.sha256FromArray=function(t){return l.assertIsArray(t),c(t)};var f=function(t,e){t=h.toBuffer(t);var r=a("rmd160").update(t).digest();return!0===e?h.setLengthLeft(r,32):r};e.ripemd160=function(t,e){return l.assertIsBuffer(t),f(t,e)},e.ripemd160FromString=function(t,e){return l.assertIsString(t),f(t,e)},e.ripemd160FromArray=function(t,e){return l.assertIsArray(t),f(t,e)},e.rlphash=function(t){return e.keccak(u.encode(t))}}).call(this,r("b639").Buffer)},"84f2":function(t,e){t.exports={}},"85b1":function(t,e,r){var n=r("5162");t.exports=function(t){return"string"!==typeof t?t:n(t)?t.slice(2):t}},"85b3":function(t,e,r){var n=r("3fb5"),i=r("3768");function o(t){i.call(this,t),this.enc="pem"}n(o,i),t.exports=o,o.prototype.encode=function(t,e){for(var r=i.prototype.encode.call(this,t),n=r.toString("base64"),o=["-----BEGIN "+e.label+"-----"],s=0;s<n.length;s+=64)o.push(n.slice(s,s+64));return o.push("-----END "+e.label+"-----"),o.join("\n")}},8602:function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r("37da"));var i=r("65eb");e.XMLHttpRequestEventTarget=i.XMLHttpRequestEventTarget},"86cc":function(t,e,r){var n=r("cb7c"),i=r("c69a"),o=r("6a99"),s=Object.defineProperty;e.f=r("9e1e")?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return s(t,e,r)}catch(a){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},8707:function(t,e,r){var n=r("b639"),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),o(i,s),s.from=function(t,e,r){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"===typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},"87f3":function(t,e,r){var n=r("5ca1");n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},8947:function(t,e,r){var n=r("bac2"),i=r("82f0"),o=r("8707").Buffer,s=r("09f5"),a=r("6430"),u=r("39f5"),h=r("ae84"),l=r("3fb5");function c(t,e,r){a.call(this),this._cache=new d,this._cipher=new u.AES(e),this._prev=o.from(r),this._mode=t,this._autopadding=!0}l(c,a),c.prototype._update=function(t){var e,r;this._cache.add(t);var n=[];while(e=this._cache.get())r=this._mode.encrypt(this,e),n.push(r);return o.concat(n)};var f=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function p(t,e,r){var a=n[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"===typeof e&&(e=o.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);if("string"===typeof r&&(r=o.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===a.type?new s(a.module,e,r):"auth"===a.type?new i(a.module,e,r):new c(a.module,e,r)}function m(t,e){var r=n[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=h(e,!1,r.key,r.iv);return p(t,i.key,i.iv)}c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=o.concat([this.cache,t])},d.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},d.prototype.flush=function(){var t=16-this.cache.length,e=o.allocUnsafe(t),r=-1;while(++r<t)e.writeUInt8(t,r);return o.concat([this.cache,e])},e.createCipheriv=p,e.createCipher=m},"899d":function(t,e,r){"use strict";var n=r("8f78"),i=r("c044").errors,o=function(t){this.requestManager=t,this.requests=[]};o.prototype.add=function(t){this.requests.push(t)},o.prototype.execute=function(){var t=this.requests;this.requestManager.sendBatch(t,(function(e,r){r=r||[],t.map((function(t,e){return r[e]||{}})).forEach((function(r,o){if(t[o].callback){if(r&&r.error)return t[o].callback(i.ErrorResponse(r));if(!n.isValidResponse(r))return t[o].callback(i.InvalidResponse(r));try{t[o].callback(null,t[o].format?t[o].format(r.result):r.result)}catch(e){t[o].callback(e)}}}))}))},t.exports=o},"8af2":function(t){t.exports=JSON.parse('{"name":"berlin","comment":"HF targeted for July 2020 following the Muir Glacier HF","url":"https://eips.ethereum.org/EIPS/eip-2070","status":"Draft","eips":[2565,2929,2718,2930]}')},"8b71":function(t,e,r){var n=r("0211");e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=n._reverse(e.tag)},"8b95":function(t,e,r){"use strict";var n=r("c3c0"),i=r("b525");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},"8b97":function(t,e,r){var n=r("d3f4"),i=r("cb7c"),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=r("9b43")(Function.call,r("11e9").f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,r){return o(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:o}},"8be6":function(t,e,r){var n=r("8707").Buffer;t.exports=function(t,e,r){if(n.isBuffer(t))return t;if("string"===typeof t)return n.from(t,e);if(ArrayBuffer.isView(t))return n.from(t.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},"8c05":function(t,e){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},"8c4f":function(t,e,r){"use strict";
/*!
* vue-router v3.4.2
* (c) 2020 Evan You
* @license MIT
*/function n(t,e){0}function i(t,e){for(var r in e)t[r]=e[r];return t}var o={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var r=e.props,n=e.children,o=e.parent,a=e.data;a.routerView=!0;var u=o.$createElement,h=r.name,l=o.$route,c=o._routerViewCache||(o._routerViewCache={}),f=0,d=!1;while(o&&o._routerRoot!==o){var p=o.$vnode?o.$vnode.data:{};p.routerView&&f++,p.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(a.routerViewDepth=f,d){var m=c[h],v=m&&m.component;return v?(m.configProps&&s(v,a,m.route,m.configProps),u(v,a,n)):u()}var g=l.matched[f],y=g&&g.components[h];if(!g||!y)return c[h]=null,u();c[h]={component:y},a.registerRouteInstance=function(t,e){var r=g.instances[h];(e&&r!==t||!e&&r===t)&&(g.instances[h]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){g.instances[h]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[h]&&(g.instances[h]=t.componentInstance)};var b=g.props&&g.props[h];return b&&(i(c[h],{route:l,configProps:b}),s(y,a,l,b)),u(y,a,n)}};function s(t,e,r,n){var o=e.props=a(r,n);if(o){o=e.props=i({},o);var s=e.attrs=e.attrs||{};for(var u in o)t.props&&u in t.props||(s[u]=o[u],delete o[u])}}function a(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}var u=/[!'()*]/g,h=function(t){return"%"+t.charCodeAt(0).toString(16)},l=/%2C/g,c=function(t){return encodeURIComponent(t).replace(u,h).replace(l,",")},f=decodeURIComponent;function d(t,e,r){void 0===e&&(e={});var n,i=r||m;try{n=i(t||"")}catch(a){n={}}for(var o in e){var s=e[o];n[o]=Array.isArray(s)?s.map(p):p(s)}return n}var p=function(t){return null==t||"object"===typeof t?t:String(t)};function m(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach((function(t){var r=t.replace(/\+/g," ").split("="),n=f(r.shift()),i=r.length>0?f(r.join("=")):null;void 0===e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]})),e):e}function v(t){var e=t?Object.keys(t).map((function(e){var r=t[e];if(void 0===r)return"";if(null===r)return c(e);if(Array.isArray(r)){var n=[];return r.forEach((function(t){void 0!==t&&(null===t?n.push(c(e)):n.push(c(e)+"="+c(t)))})),n.join("&")}return c(e)+"="+c(r)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var g=/\/?$/;function y(t,e,r,n){var i=n&&n.options.stringifyQuery,o=e.query||{};try{o=b(o)}catch(a){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:_(e,i),matched:t?M(t):[]};return r&&(s.redirectedFrom=_(r,i)),Object.freeze(s)}function b(t){if(Array.isArray(t))return t.map(b);if(t&&"object"===typeof t){var e={};for(var r in t)e[r]=b(t[r]);return e}return t}var w=y(null,{path:"/"});function M(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function _(t,e){var r=t.path,n=t.query;void 0===n&&(n={});var i=t.hash;void 0===i&&(i="");var o=e||v;return(r||"/")+o(n)+i}function k(t,e){return e===w?t===e:!!e&&(t.path&&e.path?t.path.replace(g,"")===e.path.replace(g,"")&&t.hash===e.hash&&S(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&S(t.query,e.query)&&S(t.params,e.params)))}function S(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var r=Object.keys(t),n=Object.keys(e);return r.length===n.length&&r.every((function(r){var n=t[r],i=e[r];return null==n||null==i?n===i:"object"===typeof n&&"object"===typeof i?S(n,i):String(n)===String(i)}))}function x(t,e){return 0===t.path.replace(g,"/").indexOf(e.path.replace(g,"/"))&&(!e.hash||t.hash===e.hash)&&E(t.query,e.query)}function E(t,e){for(var r in e)if(!(r in t))return!1;return!0}function A(t,e,r){var n=t.charAt(0);if("/"===n)return t;if("?"===n||"#"===n)return e+t;var i=e.split("/");r&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?i.pop():"."!==a&&i.push(a)}return""!==i[0]&&i.unshift(""),i.join("/")}function O(t){var e="",r="",n=t.indexOf("#");n>=0&&(e=t.slice(n),t=t.slice(0,n));var i=t.indexOf("?");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{path:t,query:r,hash:e}}function T(t){return t.replace(/\/\//g,"/")}var C=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},P=J,B=L,I=U,R=z,N=Z,j=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function L(t,e){var r,n=[],i=0,o=0,s="",a=e&&e.delimiter||"/";while(null!=(r=j.exec(t))){var u=r[0],h=r[1],l=r.index;if(s+=t.slice(o,l),o=l+u.length,h)s+=h[1];else{var c=t[o],f=r[2],d=r[3],p=r[4],m=r[5],v=r[6],g=r[7];s&&(n.push(s),s="");var y=null!=f&&null!=c&&c!==f,b="+"===v||"*"===v,w="?"===v||"*"===v,M=r[2]||a,_=p||m;n.push({name:d||i++,prefix:f||"",delimiter:M,optional:w,repeat:b,partial:y,asterisk:!!g,pattern:_?H(_):g?".*":"[^"+q(M)+"]+?"})}}return o<t.length&&(s+=t.substr(o)),s&&n.push(s),n}function U(t,e){return z(L(t,e),e)}function D(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function F(t){return encodeURI(t).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function z(t,e){for(var r=new Array(t.length),n=0;n<t.length;n++)"object"===typeof t[n]&&(r[n]=new RegExp("^(?:"+t[n].pattern+")$",V(e)));return function(e,n){for(var i="",o=e||{},s=n||{},a=s.pretty?D:encodeURIComponent,u=0;u<t.length;u++){var h=t[u];if("string"!==typeof h){var l,c=o[h.name];if(null==c){if(h.optional){h.partial&&(i+=h.prefix);continue}throw new TypeError('Expected "'+h.name+'" to be defined')}if(C(c)){if(!h.repeat)throw new TypeError('Expected "'+h.name+'" to not repeat, but received `'+JSON.stringify(c)+"`");if(0===c.length){if(h.optional)continue;throw new TypeError('Expected "'+h.name+'" to not be empty')}for(var f=0;f<c.length;f++){if(l=a(c[f]),!r[u].test(l))throw new TypeError('Expected all "'+h.name+'" to match "'+h.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===f?h.prefix:h.delimiter)+l}}else{if(l=h.asterisk?F(c):a(c),!r[u].test(l))throw new TypeError('Expected "'+h.name+'" to match "'+h.pattern+'", but received "'+l+'"');i+=h.prefix+l}}else i+=h}return i}}function q(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function H(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function $(t,e){return t.keys=e,t}function V(t){return t&&t.sensitive?"":"i"}function K(t,e){var r=t.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)e.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return $(t,e)}function W(t,e,r){for(var n=[],i=0;i<t.length;i++)n.push(J(t[i],e,r).source);var o=new RegExp("(?:"+n.join("|")+")",V(r));return $(o,e)}function G(t,e,r){return Z(L(t,r),e,r)}function Z(t,e,r){C(e)||(r=e||r,e=[]),r=r||{};for(var n=r.strict,i=!1!==r.end,o="",s=0;s<t.length;s++){var a=t[s];if("string"===typeof a)o+=q(a);else{var u=q(a.prefix),h="(?:"+a.pattern+")";e.push(a),a.repeat&&(h+="(?:"+u+h+")*"),h=a.optional?a.partial?u+"("+h+")?":"(?:"+u+"("+h+"))?":u+"("+h+")",o+=h}}var l=q(r.delimiter||"/"),c=o.slice(-l.length)===l;return n||(o=(c?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),o+=i?"$":n&&c?"":"(?="+l+"|$)",$(new RegExp("^"+o,V(r)),e)}function J(t,e,r){return C(e)||(r=e||r,e=[]),r=r||{},t instanceof RegExp?K(t,e):C(t)?W(t,e,r):G(t,e,r)}P.parse=B,P.compile=I,P.tokensToFunction=R,P.tokensToRegExp=N;var X=Object.create(null);function Y(t,e,r){e=e||{};try{var n=X[t]||(X[t]=P.compile(t));return"string"===typeof e.pathMatch&&(e[0]=e.pathMatch),n(e,{pretty:!0})}catch(i){return""}finally{delete e[0]}}function Q(t,e,r,n){var o="string"===typeof t?{path:t}:t;if(o._normalized)return o;if(o.name){o=i({},t);var s=o.params;return s&&"object"===typeof s&&(o.params=i({},s)),o}if(!o.path&&(o.params||o.query||o.hash)&&e){o=i({},o),o._normalized=!0;var a=i(i({},e.params),o.params);if(e.name)o.name=e.name,o.params=a;else if(e.matched.length){var u=e.matched[e.matched.length-1].path;o.path=Y(u,a,"path "+e.path)}else 0;return o}var h=O(o.path||""),l=e&&e.path||"/",c=h.path?A(h.path,l,r||o.append):l,f=d(h.query,o.query,n&&n.options.parseQuery),p=o.hash||h.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:c,query:f,hash:p}}var tt,et=[String,Object],rt=[String,Array],nt=function(){},it={name:"RouterLink",props:{to:{type:et,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:rt,default:"click"}},render:function(t){var e=this,r=this.$router,n=this.$route,o=r.resolve(this.to,n,this.append),s=o.location,a=o.route,u=o.href,h={},l=r.options.linkActiveClass,c=r.options.linkExactActiveClass,f=null==l?"router-link-active":l,d=null==c?"router-link-exact-active":c,p=null==this.activeClass?f:this.activeClass,m=null==this.exactActiveClass?d:this.exactActiveClass,v=a.redirectedFrom?y(null,Q(a.redirectedFrom),null,r):a;h[m]=k(n,v),h[p]=this.exact?h[m]:x(n,v);var g=h[m]?this.ariaCurrentValue:null,b=function(t){ot(t)&&(e.replace?r.replace(s,nt):r.push(s,nt))},w={click:ot};Array.isArray(this.event)?this.event.forEach((function(t){w[t]=b})):w[this.event]=b;var M={class:h},_=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:u,route:a,navigate:b,isActive:h[p],isExactActive:h[m]});if(_){if(1===_.length)return _[0];if(_.length>1||!_.length)return 0===_.length?t():t("span",{},_)}if("a"===this.tag)M.on=w,M.attrs={href:u,"aria-current":g};else{var S=st(this.$slots.default);if(S){S.isStatic=!1;var E=S.data=i({},S.data);for(var A in E.on=E.on||{},E.on){var O=E.on[A];A in w&&(E.on[A]=Array.isArray(O)?O:[O])}for(var T in w)T in E.on?E.on[T].push(w[T]):E.on[T]=b;var C=S.data.attrs=i({},S.data.attrs);C.href=u,C["aria-current"]=g}else M.on=w}return t(this.tag,M,this.$slots.default)}};function ot(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function st(t){if(t)for(var e,r=0;r<t.length;r++){if(e=t[r],"a"===e.tag)return e;if(e.children&&(e=st(e.children)))return e}}function at(t){if(!at.installed||tt!==t){at.installed=!0,tt=t;var e=function(t){return void 0!==t},r=function(t,r){var n=t.$options._parentVnode;e(n)&&e(n=n.data)&&e(n=n.registerRouteInstance)&&n(t,r)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",o),t.component("RouterLink",it);var n=t.config.optionMergeStrategies;n.beforeRouteEnter=n.beforeRouteLeave=n.beforeRouteUpdate=n.created}}var ut="undefined"!==typeof window;function ht(t,e,r,n){var i=e||[],o=r||Object.create(null),s=n||Object.create(null);t.forEach((function(t){lt(i,o,s,t)}));for(var a=0,u=i.length;a<u;a++)"*"===i[a]&&(i.push(i.splice(a,1)[0]),u--,a--);return{pathList:i,pathMap:o,nameMap:s}}function lt(t,e,r,n,i,o){var s=n.path,a=n.name;var u=n.pathToRegexpOptions||{},h=ft(s,i,u.strict);"boolean"===typeof n.caseSensitive&&(u.sensitive=n.caseSensitive);var l={path:h,regex:ct(h,u),components:n.components||{default:n.component},instances:{},name:a,parent:i,matchAs:o,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{},props:null==n.props?{}:n.components?n.props:{default:n.props}};if(n.children&&n.children.forEach((function(n){var i=o?T(o+"/"+n.path):void 0;lt(t,e,r,n,l,i)})),e[l.path]||(t.push(l.path),e[l.path]=l),void 0!==n.alias)for(var c=Array.isArray(n.alias)?n.alias:[n.alias],f=0;f<c.length;++f){var d=c[f];0;var p={path:d,children:n.children};lt(t,e,r,p,i,l.path||"/")}a&&(r[a]||(r[a]=l))}function ct(t,e){var r=P(t,[],e);return r}function ft(t,e,r){return r||(t=t.replace(/\/$/,"")),"/"===t[0]||null==e?t:T(e.path+"/"+t)}function dt(t,e){var r=ht(t),n=r.pathList,i=r.pathMap,o=r.nameMap;function s(t){ht(t,n,i,o)}function a(t,r,s){var a=Q(t,r,!1,e),u=a.name;if(u){var h=o[u];if(!h)return l(null,a);var c=h.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!==typeof a.params&&(a.params={}),r&&"object"===typeof r.params)for(var f in r.params)!(f in a.params)&&c.indexOf(f)>-1&&(a.params[f]=r.params[f]);return a.path=Y(h.path,a.params,'named route "'+u+'"'),l(h,a,s)}if(a.path){a.params={};for(var d=0;d<n.length;d++){var p=n[d],m=i[p];if(pt(m.regex,a.path,a.params))return l(m,a,s)}}return l(null,a)}function u(t,r){var n=t.redirect,i="function"===typeof n?n(y(t,r,null,e)):n;if("string"===typeof i&&(i={path:i}),!i||"object"!==typeof i)return l(null,r);var s=i,u=s.name,h=s.path,c=r.query,f=r.hash,d=r.params;if(c=s.hasOwnProperty("query")?s.query:c,f=s.hasOwnProperty("hash")?s.hash:f,d=s.hasOwnProperty("params")?s.params:d,u){o[u];return a({_normalized:!0,name:u,query:c,hash:f,params:d},void 0,r)}if(h){var p=mt(h,t),m=Y(p,d,'redirect route with path "'+p+'"');return a({_normalized:!0,path:m,query:c,hash:f},void 0,r)}return l(null,r)}function h(t,e,r){var n=Y(r,e.params,'aliased route with path "'+r+'"'),i=a({_normalized:!0,path:n});if(i){var o=i.matched,s=o[o.length-1];return e.params=i.params,l(s,e)}return l(null,e)}function l(t,r,n){return t&&t.redirect?u(t,n||r):t&&t.matchAs?h(t,r,t.matchAs):y(t,r,n,e)}return{match:a,addRoutes:s}}function pt(t,e,r){var n=e.match(t);if(!n)return!1;if(!r)return!0;for(var i=1,o=n.length;i<o;++i){var s=t.keys[i-1],a="string"===typeof n[i]?decodeURIComponent(n[i]):n[i];s&&(r[s.name||"pathMatch"]=a)}return!0}function mt(t,e){return A(t,e.parent?e.parent.path:"/",!0)}var vt=ut&&window.performance&&window.performance.now?window.performance:Date;function gt(){return vt.now().toFixed(3)}var yt=gt();function bt(){return yt}function wt(t){return yt=t}var Mt=Object.create(null);function _t(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),r=i({},window.history.state);return r.key=bt(),window.history.replaceState(r,"",e),window.addEventListener("popstate",xt),function(){window.removeEventListener("popstate",xt)}}function kt(t,e,r,n){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=Et(),s=i.call(t,e,r,n?o:null);s&&("function"===typeof s.then?s.then((function(t){It(t,o)})).catch((function(t){0})):It(s,o))}))}}function St(){var t=bt();t&&(Mt[t]={x:window.pageXOffset,y:window.pageYOffset})}function xt(t){St(),t.state&&t.state.key&&wt(t.state.key)}function Et(){var t=bt();if(t)return Mt[t]}function At(t,e){var r=document.documentElement,n=r.getBoundingClientRect(),i=t.getBoundingClientRect();return{x:i.left-n.left-e.x,y:i.top-n.top-e.y}}function Ot(t){return Pt(t.x)||Pt(t.y)}function Tt(t){return{x:Pt(t.x)?t.x:window.pageXOffset,y:Pt(t.y)?t.y:window.pageYOffset}}function Ct(t){return{x:Pt(t.x)?t.x:0,y:Pt(t.y)?t.y:0}}function Pt(t){return"number"===typeof t}var Bt=/^#\d/;function It(t,e){var r="object"===typeof t;if(r&&"string"===typeof t.selector){var n=Bt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(n){var i=t.offset&&"object"===typeof t.offset?t.offset:{};i=Ct(i),e=At(n,i)}else Ot(t)&&(e=Tt(t))}else r&&Ot(t)&&(e=Tt(t));e&&window.scrollTo(e.x,e.y)}var Rt=ut&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function Nt(t,e){St();var r=window.history;try{if(e){var n=i({},r.state);n.key=bt(),r.replaceState(n,"",t)}else r.pushState({key:wt(gt())},"",t)}catch(o){window.location[e?"replace":"assign"](t)}}function jt(t){Nt(t,!0)}function Lt(t,e,r){var n=function(i){i>=t.length?r():t[i]?e(t[i],(function(){n(i+1)})):n(i+1)};n(0)}var Ut={redirected:2,aborted:4,cancelled:8,duplicated:16};function Dt(t,e){return Ht(t,e,Ut.redirected,'Redirected when going from "'+t.fullPath+'" to "'+Vt(e)+'" via a navigation guard.')}function Ft(t,e){var r=Ht(t,e,Ut.duplicated,'Avoided redundant navigation to current location: "'+t.fullPath+'".');return r.name="NavigationDuplicated",r}function zt(t,e){return Ht(t,e,Ut.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function qt(t,e){return Ht(t,e,Ut.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}function Ht(t,e,r,n){var i=new Error(n);return i._isRouter=!0,i.from=t,i.to=e,i.type=r,i}var $t=["params","query","hash"];function Vt(t){if("string"===typeof t)return t;if("path"in t)return t.path;var e={};return $t.forEach((function(r){r in t&&(e[r]=t[r])})),JSON.stringify(e,null,2)}function Kt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Wt(t,e){return Kt(t)&&t._isRouter&&(null==e||t.type===e)}function Gt(t){return function(e,r,n){var i=!1,o=0,s=null;Zt(t,(function(t,e,r,a){if("function"===typeof t&&void 0===t.cid){i=!0,o++;var u,h=Qt((function(e){Yt(e)&&(e=e.default),t.resolved="function"===typeof e?e:tt.extend(e),r.components[a]=e,o--,o<=0&&n()})),l=Qt((function(t){var e="Failed to resolve async component "+a+": "+t;s||(s=Kt(t)?t:new Error(e),n(s))}));try{u=t(h,l)}catch(f){l(f)}if(u)if("function"===typeof u.then)u.then(h,l);else{var c=u.component;c&&"function"===typeof c.then&&c.then(h,l)}}})),i||n()}}function Zt(t,e){return Jt(t.map((function(t){return Object.keys(t.components).map((function(r){return e(t.components[r],t.instances[r],t,r)}))})))}function Jt(t){return Array.prototype.concat.apply([],t)}var Xt="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Yt(t){return t.__esModule||Xt&&"Module"===t[Symbol.toStringTag]}function Qt(t){var e=!1;return function(){var r=[],n=arguments.length;while(n--)r[n]=arguments[n];if(!e)return e=!0,t.apply(this,r)}}var te=function(t,e){this.router=t,this.base=ee(e),this.current=w,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function ee(t){if(!t)if(ut){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function re(t,e){var r,n=Math.max(t.length,e.length);for(r=0;r<n;r++)if(t[r]!==e[r])break;return{updated:e.slice(0,r),activated:e.slice(r),deactivated:t.slice(r)}}function ne(t,e,r,n){var i=Zt(t,(function(t,n,i,o){var s=ie(t,e);if(s)return Array.isArray(s)?s.map((function(t){return r(t,n,i,o)})):r(s,n,i,o)}));return Jt(n?i.reverse():i)}function ie(t,e){return"function"!==typeof t&&(t=tt.extend(t)),t.options[e]}function oe(t){return ne(t,"beforeRouteLeave",ae,!0)}function se(t){return ne(t,"beforeRouteUpdate",ae)}function ae(t,e){if(e)return function(){return t.apply(e,arguments)}}function ue(t,e,r){return ne(t,"beforeRouteEnter",(function(t,n,i,o){return he(t,i,o,e,r)}))}function he(t,e,r,n,i){return function(o,s,a){return t(o,s,(function(t){"function"===typeof t&&n.push((function(){le(t,e.instances,r,i)})),a(t)}))}}function le(t,e,r,n){e[r]&&!e[r]._isBeingDestroyed?t(e[r]):n()&&setTimeout((function(){le(t,e,r,n)}),16)}te.prototype.listen=function(t){this.cb=t},te.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},te.prototype.onError=function(t){this.errorCbs.push(t)},te.prototype.transitionTo=function(t,e,r){var n,i=this;try{n=this.router.match(t,this.current)}catch(o){throw this.errorCbs.forEach((function(t){t(o)})),o}this.confirmTransition(n,(function(){var t=i.current;i.updateRoute(n),e&&e(n),i.ensureURL(),i.router.afterHooks.forEach((function(e){e&&e(n,t)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(n)})))}),(function(t){r&&r(t),t&&!i.ready&&(i.ready=!0,Wt(t,Ut.redirected)?i.readyCbs.forEach((function(t){t(n)})):i.readyErrorCbs.forEach((function(e){e(t)})))}))},te.prototype.confirmTransition=function(t,e,r){var i=this,o=this.current,s=function(t){!Wt(t)&&Kt(t)&&(i.errorCbs.length?i.errorCbs.forEach((function(e){e(t)})):(n(!1,"uncaught error during route navigation:"),console.error(t))),r&&r(t)},a=t.matched.length-1,u=o.matched.length-1;if(k(t,o)&&a===u&&t.matched[a]===o.matched[u])return this.ensureURL(),s(Ft(o,t));var h=re(this.current.matched,t.matched),l=h.updated,c=h.deactivated,f=h.activated,d=[].concat(oe(c),this.router.beforeHooks,se(l),f.map((function(t){return t.beforeEnter})),Gt(f));this.pending=t;var p=function(e,r){if(i.pending!==t)return s(zt(o,t));try{e(t,o,(function(e){!1===e?(i.ensureURL(!0),s(qt(o,t))):Kt(e)?(i.ensureURL(!0),s(e)):"string"===typeof e||"object"===typeof e&&("string"===typeof e.path||"string"===typeof e.name)?(s(Dt(o,t)),"object"===typeof e&&e.replace?i.replace(e):i.push(e)):r(e)}))}catch(n){s(n)}};Lt(d,p,(function(){var r=[],n=function(){return i.current===t},a=ue(f,r,n),u=a.concat(i.router.resolveHooks);Lt(u,p,(function(){if(i.pending!==t)return s(zt(o,t));i.pending=null,e(t),i.router.app&&i.router.app.$nextTick((function(){r.forEach((function(t){t()}))}))}))}))},te.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},te.prototype.setupListeners=function(){},te.prototype.teardownListeners=function(){this.listeners.forEach((function(t){t()})),this.listeners=[]};var ce=function(t){function e(e,r){t.call(this,e,r),this._startLocation=fe(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,r=e.options.scrollBehavior,n=Rt&&r;n&&this.listeners.push(_t());var i=function(){var r=t.current,i=fe(t.base);t.current===w&&i===t._startLocation||t.transitionTo(i,(function(t){n&&kt(e,t,r,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,r){var n=this,i=this,o=i.current;this.transitionTo(t,(function(t){Nt(T(n.base+t.fullPath)),kt(n.router,t,o,!1),e&&e(t)}),r)},e.prototype.replace=function(t,e,r){var n=this,i=this,o=i.current;this.transitionTo(t,(function(t){jt(T(n.base+t.fullPath)),kt(n.router,t,o,!1),e&&e(t)}),r)},e.prototype.ensureURL=function(t){if(fe(this.base)!==this.current.fullPath){var e=T(this.base+this.current.fullPath);t?Nt(e):jt(e)}},e.prototype.getCurrentLocation=function(){return fe(this.base)},e}(te);function fe(t){var e=decodeURI(window.location.pathname);return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var de=function(t){function e(e,r,n){t.call(this,e,r),n&&pe(this.base)||me()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,r=e.options.scrollBehavior,n=Rt&&r;n&&this.listeners.push(_t());var i=function(){var e=t.current;me()&&t.transitionTo(ve(),(function(r){n&&kt(t.router,r,e,!0),Rt||be(r.fullPath)}))},o=Rt?"popstate":"hashchange";window.addEventListener(o,i),this.listeners.push((function(){window.removeEventListener(o,i)}))}},e.prototype.push=function(t,e,r){var n=this,i=this,o=i.current;this.transitionTo(t,(function(t){ye(t.fullPath),kt(n.router,t,o,!1),e&&e(t)}),r)},e.prototype.replace=function(t,e,r){var n=this,i=this,o=i.current;this.transitionTo(t,(function(t){be(t.fullPath),kt(n.router,t,o,!1),e&&e(t)}),r)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ve()!==e&&(t?ye(e):be(e))},e.prototype.getCurrentLocation=function(){return ve()},e}(te);function pe(t){var e=fe(t);if(!/^\/#/.test(e))return window.location.replace(T(t+"/#"+e)),!0}function me(){var t=ve();return"/"===t.charAt(0)||(be("/"+t),!1)}function ve(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";t=t.slice(e+1);var r=t.indexOf("?");if(r<0){var n=t.indexOf("#");t=n>-1?decodeURI(t.slice(0,n))+t.slice(n):decodeURI(t)}else t=decodeURI(t.slice(0,r))+t.slice(r);return t}function ge(t){var e=window.location.href,r=e.indexOf("#"),n=r>=0?e.slice(0,r):e;return n+"#"+t}function ye(t){Rt?Nt(ge(t)):window.location.hash=t}function be(t){Rt?jt(ge(t)):window.location.replace(ge(t))}var we=function(t){function e(e,r){t.call(this,e,r),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,r){var n=this;this.transitionTo(t,(function(t){n.stack=n.stack.slice(0,n.index+1).concat(t),n.index++,e&&e(t)}),r)},e.prototype.replace=function(t,e,r){var n=this;this.transitionTo(t,(function(t){n.stack=n.stack.slice(0,n.index).concat(t),e&&e(t)}),r)},e.prototype.go=function(t){var e=this,r=this.index+t;if(!(r<0||r>=this.stack.length)){var n=this.stack[r];this.confirmTransition(n,(function(){e.index=r,e.updateRoute(n)}),(function(t){Wt(t,Ut.duplicated)&&(e.index=r)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(te),Me=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=dt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Rt&&!1!==t.fallback,this.fallback&&(e="hash"),ut||(e="abstract"),this.mode=e,e){case"history":this.history=new ce(this,t.base);break;case"hash":this.history=new de(this,t.base,this.fallback);break;case"abstract":this.history=new we(this,t.base);break;default:0}},_e={currentRoute:{configurable:!0}};function ke(t,e){return t.push(e),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function Se(t,e,r){var n="hash"===r?"#"+e:e;return t?T(t+"/"+n):n}Me.prototype.match=function(t,e,r){return this.matcher.match(t,e,r)},_e.currentRoute.get=function(){return this.history&&this.history.current},Me.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var r=e.apps.indexOf(t);r>-1&&e.apps.splice(r,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardownListeners()})),!this.app){this.app=t;var r=this.history;if(r instanceof ce||r instanceof de){var n=function(t){var n=r.current,i=e.options.scrollBehavior,o=Rt&&i;o&&"fullPath"in t&&kt(e,t,n,!1)},i=function(t){r.setupListeners(),n(t)};r.transitionTo(r.getCurrentLocation(),i,i)}r.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Me.prototype.beforeEach=function(t){return ke(this.beforeHooks,t)},Me.prototype.beforeResolve=function(t){return ke(this.resolveHooks,t)},Me.prototype.afterEach=function(t){return ke(this.afterHooks,t)},Me.prototype.onReady=function(t,e){this.history.onReady(t,e)},Me.prototype.onError=function(t){this.history.onError(t)},Me.prototype.push=function(t,e,r){var n=this;if(!e&&!r&&"undefined"!==typeof Promise)return new Promise((function(e,r){n.history.push(t,e,r)}));this.history.push(t,e,r)},Me.prototype.replace=function(t,e,r){var n=this;if(!e&&!r&&"undefined"!==typeof Promise)return new Promise((function(e,r){n.history.replace(t,e,r)}));this.history.replace(t,e,r)},Me.prototype.go=function(t){this.history.go(t)},Me.prototype.back=function(){this.go(-1)},Me.prototype.forward=function(){this.go(1)},Me.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Me.prototype.resolve=function(t,e,r){e=e||this.history.current;var n=Q(t,e,r,this),i=this.match(n,e),o=i.redirectedFrom||i.fullPath,s=this.history.base,a=Se(s,o,this.mode);return{location:n,route:i,href:a,normalizedTo:n,resolved:i}},Me.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==w&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Me.prototype,_e),Me.install=at,Me.version="3.4.2",Me.isNavigationFailure=Wt,Me.NavigationFailureType=Ut,ut&&window.Vue&&window.Vue.use(Me),e["a"]=Me},"8c8a":function(t,e,r){(function(e){t.exports=function(t,r){for(var n=Math.min(t.length,r.length),i=new e(n),o=0;o<n;++o)i[o]=t[o]^r[o];return i}}).call(this,r("b639").Buffer)},"8df4":function(t,e,r){"use strict";var n=r("7a77");function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t,e=new i((function(e){t=e}));return{token:e,cancel:t}},t.exports=i},"8df7":function(t,e,r){var n=r("3fb5"),i=r("b639").Buffer,o=r("cfbd");function s(t){o.call(this,t),this.enc="pem"}n(s,o),t.exports=s,s.prototype.decode=function(t,e){for(var r=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,u=-1,h=0;h<r.length;h++){var l=r[h].match(s);if(null!==l&&l[2]===n){if(-1!==a){if("END"!==l[1])break;u=h;break}if("BEGIN"!==l[1])break;a=h}}if(-1===a||-1===u)throw new Error("PEM section not found for: "+n);var c=r.slice(a+1,u).join("");c.replace(/[^a-z0-9\+\/=]+/gi,"");var f=new i(c,"base64");return o.prototype.decode.call(this,f,e)}},"8e6e":function(t,e,r){var n=r("5ca1"),i=r("990b"),o=r("6821"),s=r("11e9"),a=r("f1ae");n(n.S,"Object",{getOwnPropertyDescriptors:function(t){var e,r,n=o(t),u=s.f,h=i(n),l={},c=0;while(h.length>c)r=u(n,e=h[c++]),void 0!==r&&a(l,e,r);return l}})},"8f78":function(t,e,r){"use strict";var n={messageId:0,toPayload:function(t,e){if(!t)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(e)+'"!');return n.messageId++,{jsonrpc:"2.0",id:n.messageId,method:t,params:e||[]}},isValidResponse:function(t){return Array.isArray(t)?t.every(e):e(t);function e(t){return!!t&&!t.error&&"2.0"===t.jsonrpc&&("number"===typeof t.id||"string"===typeof t.id)&&void 0!==t.result}},toBatchPayload:function(t){return t.map((function(t){return n.toPayload(t.method,t.params)}))}};t.exports=n},9019:function(t,e,r){"use strict";(function(e){function r(t,r){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(r?r(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(s,this,t)):e.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!r&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(n,o,t)):e.nextTick(n,o,t):r?(e.nextTick(i,o),r(t)):e.nextTick(i,o)})),this)}function n(t,e){s(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(t,e){t.emit("error",e)}function a(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:r,undestroy:o,errorOrDestroy:a}}).call(this,r("f28c"))},9093:function(t,e,r){var n=r("ce10"),i=r("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},"90c6":function(t,e,r){"use strict";function n(t){return/^\d+(\.\d+)?$/.test(t)}function i(t){return Number.isNaN?Number.isNaN(t):t!==t}r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return i}))},9152:function(t,e){e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,h=u>>1,l=-7,c=r?i-1:0,f=r?-1:1,d=t[e+c];for(c+=f,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+t[e+c],c+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+c],c+=f,l-=8);if(0===o)o=1-h;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=h}return(d?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,h=8*o-i-1,l=(1<<h)-1,c=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+c>=1?f/u:f*Math.pow(2,1-c),e*u>=2&&(s++,u/=2),s+c>=l?(a=0,s=l):s+c>=1?(a=(e*u-1)*Math.pow(2,i),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,h+=i;h>0;t[r+d]=255&s,d+=p,s/=256,h-=8);t[r+d-p]|=128*m}},"919c":function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},"91dd":function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,o){e=e||"&",r=r||"=";var s={};if("string"!==typeof t||0===t.length)return s;var a=/\+/g;t=t.split(e);var u=1e3;o&&"number"===typeof o.maxKeys&&(u=o.maxKeys);var h=t.length;u>0&&h>u&&(h=u);for(var l=0;l<h;++l){var c,f,d,p,m=t[l].replace(a,"%20"),v=m.indexOf(r);v>=0?(c=m.substr(0,v),f=m.substr(v+1)):(c=m,f=""),d=decodeURIComponent(c),p=decodeURIComponent(f),n(s,d)?i(s[d])?s[d].push(p):s[d]=[s[d],p]:s[d]=p}return s};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},"925e":function(t,e,r){(function(e,n,i){var o=r("a9f1"),s=r("3fb5"),a=r("c90b"),u=r("e372"),h=r("d938"),l=a.IncomingMessage,c=a.readyStates;function f(t,e){return o.fetch&&e?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&t?"arraybuffer":o.vbArray&&t?"text:vbarray":"text"}var d=t.exports=function(t){var r,n=this;u.Writable.call(n),n._opts=t,n._body=[],n._headers={},t.auth&&n.setHeader("Authorization","Basic "+new e(t.auth).toString("base64")),Object.keys(t.headers).forEach((function(e){n.setHeader(e,t.headers[e])}));var i=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!o.abortController)i=!1,r=!0;else if("prefer-streaming"===t.mode)r=!1;else if("allow-wrong-content-type"===t.mode)r=!o.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");r=!0}n._mode=f(r,i),n._fetchTimer=null,n.on("finish",(function(){n._onFinish()}))};function p(t){try{var e=t.status;return null!==e&&0!==e}catch(r){return!1}}s(d,u.Writable),d.prototype.setHeader=function(t,e){var r=this,n=t.toLowerCase();-1===m.indexOf(n)&&(r._headers[n]={name:t,value:e})},d.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},d.prototype.removeHeader=function(t){var e=this;delete e._headers[t.toLowerCase()]},d.prototype._onFinish=function(){var t=this;if(!t._destroyed){var r=t._opts,s=t._headers,a=null;"GET"!==r.method&&"HEAD"!==r.method&&(a=o.arraybuffer?h(e.concat(t._body)):o.blobConstructor?new n.Blob(t._body.map((function(t){return h(t)})),{type:(s["content-type"]||{}).value||""}):e.concat(t._body).toString());var u=[];if(Object.keys(s).forEach((function(t){var e=s[t].name,r=s[t].value;Array.isArray(r)?r.forEach((function(t){u.push([e,t])})):u.push([e,r])})),"fetch"===t._mode){var l=null;if(o.abortController){var f=new AbortController;l=f.signal,t._fetchAbortController=f,"requestTimeout"in r&&0!==r.requestTimeout&&(t._fetchTimer=n.setTimeout((function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()}),r.requestTimeout))}n.fetch(t._opts.url,{method:t._opts.method,headers:u,body:a||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:l}).then((function(e){t._fetchResponse=e,t._connect()}),(function(e){n.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)}))}else{var d=t._xhr=new n.XMLHttpRequest;try{d.open(t._opts.method,t._opts.url,!0)}catch(p){return void i.nextTick((function(){t.emit("error",p)}))}"responseType"in d&&(d.responseType=t._mode.split(":")[0]),"withCredentials"in d&&(d.withCredentials=!!r.withCredentials),"text"===t._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&(d.timeout=r.requestTimeout,d.ontimeout=function(){t.emit("requestTimeout")}),u.forEach((function(t){d.setRequestHeader(t[0],t[1])})),t._response=null,d.onreadystatechange=function(){switch(d.readyState){case c.LOADING:case c.DONE:t._onXHRProgress();break}},"moz-chunked-arraybuffer"===t._mode&&(d.onprogress=function(){t._onXHRProgress()}),d.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{d.send(a)}catch(p){return void i.nextTick((function(){t.emit("error",p)}))}}}},d.prototype._onXHRProgress=function(){var t=this;p(t._xhr)&&!t._destroyed&&(t._response||t._connect(),t._response._onXHRProgress())},d.prototype._connect=function(){var t=this;t._destroyed||(t._response=new l(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",(function(e){t.emit("error",e)})),t.emit("response",t._response))},d.prototype._write=function(t,e,r){var n=this;n._body.push(t),r()},d.prototype.abort=d.prototype.destroy=function(){var t=this;t._destroyed=!0,n.clearTimeout(t._fetchTimer),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort()},d.prototype.end=function(t,e,r){var n=this;"function"===typeof t&&(r=t,t=void 0),u.Writable.prototype.end.call(n,t,e,r)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,r("b639").Buffer,r("c8ba"),r("f28c"))},"92a9":function(t,e,r){(function(e){const{Transform:n}=r("d485");t.exports=t=>class r extends n{constructor(e,r,n,i){super(i),this._rate=e,this._capacity=r,this._delimitedSuffix=n,this._options=i,this._state=new t,this._state.initialize(e,r),this._finalized=!1}_transform(t,e,r){let n=null;try{this.update(t,e)}catch(i){n=i}r(n)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,r){if(!e.isBuffer(t)&&"string"!==typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return e.isBuffer(t)||(t=e.from(t,r)),this._state.absorb(t),this}squeeze(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(t);return void 0!==e&&(r=r.toString(e)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new r(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}}).call(this,r("b639").Buffer)},"93e6":function(t,e,r){"use strict";var n=r("0632").Buffer,i=r("334a").Transform,o=r("3fb5");function s(t,e){if(!n.isBuffer(t)&&"string"!==typeof t)throw new TypeError(e+" must be a string or a buffer")}function a(t){i.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}o(a,i),a.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(i){n=i}r(n)},a.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)},a.prototype.update=function(t,e){if(s(t,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(t)||(t=n.from(t,e));var r=this._block,i=0;while(this._blockOffset+t.length-i>=this._blockSize){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=t[i++];this._update(),this._blockOffset=0}while(i<t.length)r[this._blockOffset++]=t[i++];for(var a=0,u=8*t.length;u>0;++a)this._length[a]+=u,u=this._length[a]/4294967296|0,u>0&&(this._length[a]-=4294967296*u);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},a.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=a},"945d":function(t,e,r){"use strict";var n=r("7d92"),i=r("0cbb"),o=r("f3a3"),s=o.assert,a=o.parseBytes,u=r("380f"),h=r("44a3");function l(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof l))return new l(t);t=i[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=l,l.prototype.sign=function(t,e){t=a(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),o=this.encodePoint(i),s=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),u=n.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},l.prototype.verify=function(t,e,r){t=a(t),e=this.makeSignature(e);var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S()),s=e.R().add(n.pub().mul(i));return s.eq(o)},l.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(t){return u.fromPublic(this,t)},l.prototype.keyFromSecret=function(t){return u.fromSecret(this,t)},l.prototype.makeSignature=function(t){return t instanceof h?t:new h(this,t)},l.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},l.prototype.decodePoint=function(t){t=o.parseBytes(t);var e=t.length-1,r=t.slice(0,e).concat(-129&t[e]),n=0!==(128&t[e]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},l.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(t){return o.intFromLE(t)},l.prototype.isPoint=function(t){return t instanceof this.pointClass}},9490:function(t,e,r){(function(t){var n=r("925e"),i=r("c90b"),o=r("53a8"),s=r("8c05"),a=r("0b16"),u=e;u.request=function(e,r){e="string"===typeof e?a.parse(e):o(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",s=e.protocol||i,u=e.hostname||e.host,h=e.port,l=e.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),e.url=(u?s+"//"+u:"")+(h?":"+h:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var c=new n(e);return r&&c.on("response",r),c},u.get=function(t,e){var r=u.request(t,e);return r.end(),r},u.ClientRequest=n,u.IncomingMessage=i.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=s,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,r("c8ba"))},9505:function(t,e,r){(function(e,r){
/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
*
* @version 0.5.7
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2015-2016
* @license MIT
*/
(function(){"use strict";var n="object"===typeof window?window:{},i=!n.JS_SHA3_NO_NODE_JS&&"object"===typeof e&&e.versions&&e.versions.node;i&&(n=r);for(var o=!n.JS_SHA3_NO_COMMON_JS&&"object"===typeof t&&t.exports,s="0123456789abcdef".split(""),a=[31,7936,2031616,520093696],u=[1,256,65536,16777216],h=[6,1536,393216,100663296],l=[0,8,16,24],c=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],f=[224,256,384,512],d=[128,256],p=["hex","buffer","arrayBuffer","array"],m=function(t,e,r){return function(n){return new A(t,e,t).update(n)[r]()}},v=function(t,e,r){return function(n,i){return new A(t,e,i).update(n)[r]()}},g=function(t,e){var r=m(t,e,"hex");r.create=function(){return new A(t,e,t)},r.update=function(t){return r.create().update(t)};for(var n=0;n<p.length;++n){var i=p[n];r[i]=m(t,e,i)}return r},y=function(t,e){var r=v(t,e,"hex");r.create=function(r){return new A(t,e,r)},r.update=function(t,e){return r.create(e).update(t)};for(var n=0;n<p.length;++n){var i=p[n];r[i]=v(t,e,i)}return r},b=[{name:"keccak",padding:u,bits:f,createMethod:g},{name:"sha3",padding:h,bits:f,createMethod:g},{name:"shake",padding:a,bits:d,createMethod:y}],w={},M=[],_=0;_<b.length;++_)for(var k=b[_],S=k.bits,x=0;x<S.length;++x){var E=k.name+"_"+S[x];M.push(E),w[E]=k.createMethod(S[x],k.padding)}function A(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}A.prototype.update=function(t){var e="string"!==typeof t;e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));var r,n,i=t.length,o=this.blocks,s=this.byteCount,a=this.blockCount,u=0,h=this.s;while(u<i){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<a+1;++r)o[r]=0;if(e)for(r=this.start;u<i&&r<s;++u)o[r>>2]|=t[u]<<l[3&r++];else for(r=this.start;u<i&&r<s;++u)n=t.charCodeAt(u),n<128?o[r>>2]|=n<<l[3&r++]:n<2048?(o[r>>2]|=(192|n>>6)<<l[3&r++],o[r>>2]|=(128|63&n)<<l[3&r++]):n<55296||n>=57344?(o[r>>2]|=(224|n>>12)<<l[3&r++],o[r>>2]|=(128|n>>6&63)<<l[3&r++],o[r>>2]|=(128|63&n)<<l[3&r++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++u)),o[r>>2]|=(240|n>>18)<<l[3&r++],o[r>>2]|=(128|n>>12&63)<<l[3&r++],o[r>>2]|=(128|n>>6&63)<<l[3&r++],o[r>>2]|=(128|63&n)<<l[3&r++]);if(this.lastByteIndex=r,r>=s){for(this.start=r-s,this.block=o[a],r=0;r<a;++r)h[r]^=o[r];O(h),this.reset=!0}else this.start=r}return this},A.prototype.finalize=function(){var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];O(n)},A.prototype.toString=A.prototype.hex=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,u="";while(a<n){for(o=0;o<e&&a<n;++o,++a)t=r[o],u+=s[t>>4&15]+s[15&t]+s[t>>12&15]+s[t>>8&15]+s[t>>20&15]+s[t>>16&15]+s[t>>28&15]+s[t>>24&15];a%e===0&&(O(r),o=0)}return i&&(t=r[o],i>0&&(u+=s[t>>4&15]+s[15&t]),i>1&&(u+=s[t>>12&15]+s[t>>8&15]),i>2&&(u+=s[t>>20&15]+s[t>>16&15])),u},A.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);var u=new Uint32Array(t);while(s<n){for(o=0;o<e&&s<n;++o,++s)u[s]=r[o];s%e===0&&O(r)}return i&&(u[o]=r[o],t=t.slice(0,a)),t},A.prototype.buffer=A.prototype.arrayBuffer,A.prototype.digest=A.prototype.array=function(){this.finalize();var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,a=0,u=[];while(a<i){for(s=0;s<r&&a<i;++s,++a)t=a<<2,e=n[s],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;a%r===0&&O(n)}return o&&(t=a<<2,e=n[s],o>0&&(u[t]=255&e),o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u};var O=function(t){var e,r,n,i,o,s,a,u,h,l,f,d,p,m,v,g,y,b,w,M,_,k,S,x,E,A,O,T,C,P,B,I,R,N,j,L,U,D,F,z,q,H,$,V,K,W,G,Z,J,X,Y,Q,tt,et,rt,nt,it,ot,st,at,ut,ht,lt;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],h=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(s<<1|a>>>31),r=p^(a<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|h>>>31),r=o^(h<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(l<<1|f>>>31),r=a^(f<<1|l>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(d<<1|p>>>31),r=h^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],v=t[1],W=t[11]<<4|t[10]>>>28,G=t[10]<<4|t[11]>>>28,T=t[20]<<3|t[21]>>>29,C=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,$=t[41]<<18|t[40]>>>14,N=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,B=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,U=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,K=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,k=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~g&b,t[1]=v^~y&w,t[10]=x^~A&T,t[11]=E^~O&C,t[20]=N^~L&D,t[21]=j^~U&F,t[30]=V^~W&Z,t[31]=K^~G&J,t[40]=et^~nt&ot,t[41]=rt^~it&st,t[2]=g^~b&M,t[3]=y^~w&_,t[12]=A^~T&P,t[13]=O^~C&B,t[22]=L^~D&z,t[23]=U^~F&q,t[32]=W^~Z&X,t[33]=G^~J&Y,t[42]=nt^~ot&at,t[43]=it^~st&ut,t[4]=b^~M&k,t[5]=w^~_&S,t[14]=T^~P&I,t[15]=C^~B&R,t[24]=D^~z&H,t[25]=F^~q&$,t[34]=Z^~X&Q,t[35]=J^~Y&tt,t[44]=ot^~at&ht,t[45]=st^~ut&lt,t[6]=M^~k&m,t[7]=_^~S&v,t[16]=P^~I&x,t[17]=B^~R&E,t[26]=z^~H&N,t[27]=q^~$&j,t[36]=X^~Q&V,t[37]=Y^~tt&K,t[46]=at^~ht&et,t[47]=ut^~lt&rt,t[8]=k^~m&g,t[9]=S^~v&y,t[18]=I^~x&A,t[19]=R^~E&O,t[28]=H^~N&L,t[29]=$^~j&U,t[38]=Q^~V&W,t[39]=tt^~K&G,t[48]=ht^~et&nt,t[49]=lt^~rt&it,t[0]^=c[n],t[1]^=c[n+1]};if(o)t.exports=w;else for(_=0;_<M.length;++_)n[M[_]]=w[M[_]]})()}).call(this,r("f28c"),r("c8ba"))},"956a":function(t,e,r){var n=r("1e3c"),i=r("fda6"),o=r("bac2"),s=r("0be8"),a=r("ae84");function u(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!s[t])throw new TypeError("invalid suite type");r=8*s[t].key,n=s[t].iv}var i=a(e,!1,r,n);return l(t,i.key,i.iv)}function h(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!s[t])throw new TypeError("invalid suite type");r=8*s[t].key,n=s[t].iv}var i=a(e,!1,r,n);return c(t,i.key,i.iv)}function l(t,e,r){if(t=t.toLowerCase(),o[t])return i.createCipheriv(t,e,r);if(s[t])return new n({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function c(t,e,r){if(t=t.toLowerCase(),o[t])return i.createDecipheriv(t,e,r);if(s[t])return new n({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}function f(){return Object.keys(s).concat(i.getCiphers())}e.createCipher=e.Cipher=u,e.createCipheriv=e.Cipheriv=l,e.createDecipher=e.Decipher=h,e.createDecipheriv=e.Decipheriv=c,e.listCiphers=e.getCiphers=f},"966d":function(t,e,r){"use strict";(function(e){function r(t,r,n,i){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:o=new Array(a-1),s=0;while(s<o.length)o[s++]=arguments[s];return e.nextTick((function(){t.apply(null,o)}))}}"undefined"===typeof e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:r}:t.exports=e}).call(this,r("f28c"))},"96a5":function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),t}var h=r("b639"),l=h.Buffer,c=r(8),f=c.inspect,d=f&&f.custom||"inspect";function p(t,e,r){l.prototype.copy.call(t,e,r)}t.exports=function(){function t(){s(this,t),this.head=null,this.tail=null,this.length=0}return u(t,[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,r=""+e.data;while(e=e.next)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return l.alloc(0);var e=l.allocUnsafe(t>>>0),r=this.head,n=0;while(r)p(r.data,e,n),n+=r.data.length,r=r.next;return e}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;t-=n.length;while(e=e.next){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),t-=o,0===t){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=l.allocUnsafe(t),r=this.head,n=1;r.data.copy(e),t-=r.data.length;while(r=r.next){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:d,value:function(t,e){return f(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(B){u=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new T(n||[]);return o._invoke=x(t,r,s),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(B){return{type:"throw",arg:B}}}t.wrap=h;var c="suspendedStart",f="suspendedYield",d="executing",p="completed",m={};function v(){}function g(){}function y(){}var b={};b[o]=function(){return this};var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==r&&n.call(M,o)&&(b=M);var _=y.prototype=v.prototype=Object.create(b);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,a){var u=l(t[i],t,o);if("throw"!==u.type){var h=u.arg,c=h.value;return c&&"object"===typeof c&&n.call(c,"__await")?e.resolve(c.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(c).then((function(t){h.value=t,s(h)}),(function(t){return r("throw",t,s,a)}))}a(u.arg)}var i;function o(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}this._invoke=o}function x(t,e,r){var n=c;return function(i,o){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return P()}r.method=i,r.arg=o;while(1){var s=r.delegate;if(s){var a=E(s,r);if(a){if(a===m)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===c)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?p:f,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=l(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function C(t){if(t){var r=t[o];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,s=function r(){while(++i<t.length)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return s.next=s}}return{next:P}}function P(){return{value:e,done:!0}}return g.prototype=_.constructor=y,y.constructor=g,g.displayName=u(y,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,a,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},k(S.prototype),S.prototype[s]=function(){return this},t.AsyncIterator=S,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var s=new S(h(e,r,n,i),o);return t.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},k(_),u(_,a,"Generator"),_[o]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){while(e.length){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=C,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return a.type="throw",a.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var u=n.call(s,"catchLoc"),h=n.call(s,"finallyLoc");if(u&&h){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=n}catch(i){Function("r","regeneratorRuntime = r")(n)}},"96fb":function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},9744:function(t,e,r){"use strict";var n=r("4588"),i=r("be13");t.exports=function(t){var e=String(i(this)),r="",o=n(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(r+=e);return r}},9778:function(t){t.exports=JSON.parse('{"name":"homestead","comment":"Homestead hardfork with protocol and network changes","url":"https://eips.ethereum.org/EIPS/eip-606","status":"Final","gasConfig":{},"gasPrices":{"delegatecall":{"v":40,"d":"Base fee of the DELEGATECALL opcode"}},"vm":{},"pow":{}}')},"980c":function(t,e,r){var n=r("39a9").Buffer,i=r("399f"),o=r("3337").ec,s=r("2aee"),a=r("cd91");function u(t,e,r,o,a){var u=s(r);if("ec"===u.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return h(t,e,u)}if("dsa"===u.type){if("dsa"!==o)throw new Error("wrong public key type");return l(t,e,u)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");e=n.concat([a,e]);var c=u.modulus.byteLength(),f=[1],d=0;while(e.length+f.length+2<c)f.push(255),d++;f.push(0);var p=-1;while(++p<e.length)f.push(e[p]);f=n.from(f);var m=i.mont(u.modulus);t=new i(t).toRed(m),t=t.redPow(new i(u.publicExponent)),t=n.from(t.fromRed().toArray());var v=d<8?1:0;c=Math.min(t.length,f.length),t.length!==f.length&&(v=1),p=-1;while(++p<c)v|=t[p]^f[p];return 0===v}function h(t,e,r){var n=a[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),s=r.data.subjectPrivateKey.data;return i.verify(e,t,s)}function l(t,e,r){var n=r.data.p,o=r.data.q,a=r.data.g,u=r.data.pub_key,h=s.signature.decode(t,"der"),l=h.s,f=h.r;c(l,o),c(f,o);var d=i.mont(n),p=l.invm(o),m=a.toRed(d).redPow(new i(e).mul(p).mod(o)).fromRed().mul(u.toRed(d).redPow(f.mul(p).mod(o)).fromRed()).mod(n).mod(o);return 0===m.cmp(f)}function c(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}t.exports=u},9850:function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);function i(t,e){var n=e||0,i=r;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}t.exports=i},"98e6":function(t,e,r){"use strict";var n=r("3fb5"),i=r("f576"),o=r("b5ca"),s=r("69f2"),a=r("6430");function u(t){a.call(this,"digest"),this._hash=t}n(u,a),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return t=t.toLowerCase(),"md5"===t?new i:"rmd160"===t||"ripemd160"===t?new o:new u(s(t))}},"990b":function(t,e,r){var n=r("9093"),i=r("2621"),o=r("cb7c"),s=r("7726").Reflect;t.exports=s&&s.ownKeys||function(t){var e=n.f(o(t)),r=i.f;return r?e.concat(r(t)):e}},"990e":function(t,e,r){"use strict";(function(t){function r(e){return function(r){var n=e();return n.update(r),t.from(n.digest())}}Object.defineProperty(e,"__esModule",{value:!0}),e.createHashFunction=r}).call(this,r("b639").Buffer)},"99e5":function(t,e,r){"use strict";var n=r("1b3e").version,i=r("c063"),o=r("e15f"),s=r("795e"),a=r("a297"),u=r("1a2f"),h=r("ac5c"),l=r("5ba3"),c=function(){var t=this;i.packageInit(this,arguments),this.version=n,this.utils=l,this.eth=new o(this),this.shh=new u(this),this.bzz=new h(this);var e=this.setProvider;this.setProvider=function(r,n){return e.apply(t,arguments),t.eth.setRequestManager(t._requestManager),t.shh.setRequestManager(t._requestManager),t.bzz.setProvider(r),!0}};c.version=n,c.utils=l,c.modules={Eth:o,Net:s,Personal:a,Shh:u,Bzz:h},i.addProviders(c),t.exports=c},"9a12":function(t,e,r){"use strict";(function(e){var n=r("5162"),i=r("85b1");function o(t){var e=t;if("string"!==typeof e)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof e+", while padToEven.");return e.length%2&&(e="0"+e),e}function s(t){var e=t.toString(16);return"0x"+e}function a(t){var r=s(t);return new e(o(r.slice(2)),"hex")}function u(t){if("string"!==typeof t)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof t+"'.");return e.byteLength(t,"utf8")}function h(t,e,r){if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof t+"'");if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof e+"'");return e[Boolean(r)?"some":"every"]((function(e){return t.indexOf(e)>=0}))}function l(t){var r=new e(o(i(t).replace(/^0+|0+$/g,"")),"hex");return r.toString("utf8")}function c(t){var e="",r=0,n=t.length;for("0x"===t.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(t.substr(r,2),16);e+=String.fromCharCode(i)}return e}function f(t){var r=new e(t,"utf8");return"0x"+o(r.toString("hex")).replace(/^0+|0+$/g,"")}function d(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r),i=n.toString(16);e+=i.length<2?"0"+i:i}return"0x"+e}function p(t,e,r){if(!Array.isArray(t))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof t+"'");if("string"!==typeof e)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof e+"'.");for(var n=[],i=0;i<t.length;i++){var o=t[i][e];if(r&&!o)o="";else if("string"!==typeof o)throw new Error("invalid abi");n.push(o)}return n}function m(t,e){return!("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}t.exports={arrayContainsArray:h,intToBuffer:a,getBinarySize:u,isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:s,fromAscii:d,fromUtf8:f,toAscii:c,toUtf8:l,getKeys:p,isHexString:m}}).call(this,r("b639").Buffer)},"9b43":function(t,e,r){var n=r("d8e8");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},"9bda":function(t,e,r){"use strict";r.d(e,"d",(function(){return a})),r.d(e,"e",(function(){return u})),r.d(e,"f",(function(){return h})),r.d(e,"b",(function(){return l})),r.d(e,"g",(function(){return c})),r.d(e,"c",(function(){return m})),r.d(e,"a",(function(){return v}));var n=r("ffb2");const i="properties/5.4.0";var o=function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const s=new n["Logger"](i);function a(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function u(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||"object"!==typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function h(t){return o(this,void 0,void 0,(function*(){const e=Object.keys(t).map(e=>{const r=t[e];return Promise.resolve(r).then(t=>({key:e,value:t}))}),r=yield Promise.all(e);return r.reduce((t,e)=>(t[e.key]=e.value,t),{})}))}function l(t,e){t&&"object"===typeof t||s.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||s.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function c(t){const e={};for(const r in t)e[r]=t[r];return e}const f={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function d(t){if(void 0===t||null===t||f[typeof t])return!0;if(Array.isArray(t)||"object"===typeof t){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let r=0;r<e.length;r++)if(!d(t[e[r]]))return!1;return!0}return s.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function p(t){if(d(t))return t;if(Array.isArray(t))return Object.freeze(t.map(t=>m(t)));if("object"===typeof t){const e={};for(const r in t){const n=t[r];void 0!==n&&a(e,r,m(n))}return e}return s.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function m(t){return p(t)}class v{constructor(t){for(const e in t)this[e]=m(t[e])}}},"9c12":function(t,e,r){var n=r("d3f4"),i=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&i(t)===t}},"9c29":function(t,e,r){r("ec30")("Uint32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},"9c6c":function(t,e,r){var n=r("2b4c")("unscopables"),i=Array.prototype;void 0==i[n]&&r("32e9")(i,n,{}),t.exports=function(t){i[n][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"9d28":function(t,e,r){"use strict";t.exports=i;var n=r("f1c8");function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r("3fb5")(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},"9d56":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"d",(function(){return o})),r.d(e,"c",(function(){return s})),r.d(e,"a",(function(){return a}));var n=r("e36d");const i=n["a"].from(-1),o=n["a"].from(0),s=n["a"].from(1),a=n["a"].from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},"9d8a":function(t,e,r){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i={};function o(t,e,r){function o(t,r,n){return"string"===typeof e?e:e(t,r,n)}r||(r=Error);var s=function(t){function e(e,r,n){return t.call(this,o(e,r,n))||this}return n(e,t),e}(r);s.prototype.name=r.name,s.prototype.code=t,i[t]=s}function s(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function a(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function u(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function h(t,e,r){return"number"!==typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,i;if("string"===typeof e&&a(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be",u(t," argument"))i="The ".concat(t," ").concat(n," ").concat(s(e,"type"));else{var o=h(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(n," ").concat(s(e,"type"))}return i+=". Received type ".concat(typeof r),i}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},"9def":function(t,e,r){var n=r("4588"),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},"9e1e":function(t,e,r){t.exports=!r("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"9e6a":function(t,e,r){"use strict";var n=r("d233"),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},s=function(t,e){for(var r={},n=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,s=e.parameterLimit===1/0?void 0:e.parameterLimit,a=n.split(e.delimiter,s),u=0;u<a.length;++u){var h,l,c=a[u],f=c.indexOf("]="),d=-1===f?c.indexOf("="):f+1;-1===d?(h=e.decoder(c,o.decoder),l=e.strictNullHandling?null:""):(h=e.decoder(c.slice(0,d),o.decoder),l=e.decoder(c.slice(d+1),o.decoder)),i.call(r,h)?r[h]=[].concat(r[h]).concat(l):r[h]=l}return r},a=function(t,e,r){for(var n=e,i=t.length-1;i>=0;--i){var o,s=t[i];if("[]"===s)o=[],o=o.concat(n);else{o=r.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(a,10);!isNaN(u)&&s!==a&&String(u)===a&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[],o[u]=n):o[a]=n}n=o}return n},u=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,u=o.exec(n),h=u?n.slice(0,u.index):n,l=[];if(h){if(!r.plainObjects&&i.call(Object.prototype,h)&&!r.allowPrototypes)return;l.push(h)}var c=0;while(null!==(u=s.exec(n))&&c<r.depth){if(c+=1,!r.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(u[1])}return u&&l.push("["+n.slice(u.index)+"]"),a(l,e,r)}};t.exports=function(t,e){var r=e?n.assign({},e):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!==typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"===typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:o.delimiter,r.depth="number"===typeof r.depth?r.depth:o.depth,r.arrayLimit="number"===typeof r.arrayLimit?r.arrayLimit:o.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"===typeof r.decoder?r.decoder:o.decoder,r.allowDots="boolean"===typeof r.allowDots?r.allowDots:o.allowDots,r.plainObjects="boolean"===typeof r.plainObjects?r.plainObjects:o.plainObjects,r.allowPrototypes="boolean"===typeof r.allowPrototypes?r.allowPrototypes:o.allowPrototypes,r.parameterLimit="number"===typeof r.parameterLimit?r.parameterLimit:o.parameterLimit,r.strictNullHandling="boolean"===typeof r.strictNullHandling?r.strictNullHandling:o.strictNullHandling,""===t||null===t||"undefined"===typeof t)return r.plainObjects?Object.create(null):{};for(var i="string"===typeof t?s(t,r):t,a=r.plainObjects?Object.create(null):{},h=Object.keys(i),l=0;l<h.length;++l){var c=h[l],f=u(c,i[c],r);a=n.merge(a,f,r)}return n.compact(a)}},"9eec":function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.chains=e._getInitializedChains=void 0;var o=i(r("c905")),s=i(r("0dc4")),a=i(r("a063")),u=i(r("fdd3")),h=i(r("b4b7")),l=i(r("5f3a"));function c(t){var e,r,i={1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",5:"goerli",123:"calaveras"},c={mainnet:o.default,ropsten:s.default,rinkeby:a.default,kovan:u.default,goerli:h.default,calaveras:l.default};if(t)try{for(var f=n(t),d=f.next();!d.done;d=f.next()){var p=d.value,m=p.name;i[p.chainId.toString()]=m,c[m]=p}}catch(v){e={error:v}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(e)throw e.error}}return c["names"]=i,c}e._getInitializedChains=c,e.chains=c()},"9f6a":function(t,e,r){"use strict";(function(e){const r=2147483647;function n(t){const e=new Uint32Array([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]);let r=1779033703,n=3144134277,i=1013904242,o=2773480762,s=1359893119,a=2600822924,u=528734635,h=1541459225;const l=new Uint32Array(64);function c(t){let c=0,f=t.length;while(f>=64){let d,p,m,v,g,y=r,b=n,w=i,M=o,_=s,k=a,S=u,x=h;for(p=0;p<16;p++)m=c+4*p,l[p]=(255&t[m])<<24|(255&t[m+1])<<16|(255&t[m+2])<<8|255&t[m+3];for(p=16;p<64;p++)d=l[p-2],v=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,d=l[p-15],g=(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3,l[p]=(v+l[p-7]|0)+(g+l[p-16]|0)|0;for(p=0;p<64;p++)v=(((_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&k^~_&S)|0)+(x+(e[p]+l[p]|0)|0)|0,g=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&b^y&w^b&w)|0,x=S,S=k,k=_,_=M+v|0,M=w,w=b,b=y,y=v+g|0;r=r+y|0,n=n+b|0,i=i+w|0,o=o+M|0,s=s+_|0,a=a+k|0,u=u+S|0,h=h+x|0,c+=64,f-=64}}c(t);let f,d=t.length%64,p=t.length/536870912|0,m=t.length<<3,v=d<56?56:120,g=t.slice(t.length-d,t.length);for(g.push(128),f=d+1;f<v;f++)g.push(0);return g.push(p>>>24&255),g.push(p>>>16&255),g.push(p>>>8&255),g.push(p>>>0&255),g.push(m>>>24&255),g.push(m>>>16&255),g.push(m>>>8&255),g.push(m>>>0&255),c(g),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,h>>>24&255,h>>>16&255,h>>>8&255,h>>>0&255]}function i(t,e,r){t=t.length<=64?t:n(t);const i=64+e.length+4,o=new Array(i),s=new Array(64);let a,u=[];for(a=0;a<64;a++)o[a]=54;for(a=0;a<t.length;a++)o[a]^=t[a];for(a=0;a<e.length;a++)o[64+a]=e[a];for(a=i-4;a<i;a++)o[a]=0;for(a=0;a<64;a++)s[a]=92;for(a=0;a<t.length;a++)s[a]^=t[a];function h(){for(let t=i-1;t>=i-4;t--){if(o[t]++,o[t]<=255)return;o[t]=0}}while(r>=32)h(),u=u.concat(n(s.concat(n(o)))),r-=32;return r>0&&(h(),u=u.concat(n(s.concat(n(o))).slice(0,r))),u}function o(t,e,r,n,i){let o;for(h(t,16*(2*r-1),i,0,16),o=0;o<2*r;o++)u(t,16*o,i,16),a(i,n),h(i,0,t,e+16*o,16);for(o=0;o<r;o++)h(t,e+2*o*16,t,16*o,16);for(o=0;o<r;o++)h(t,e+16*(2*o+1),t,16*(o+r),16)}function s(t,e){return t<<e|t>>>32-e}function a(t,e){h(t,0,e,0,16);for(let r=8;r>0;r-=2)e[4]^=s(e[0]+e[12],7),e[8]^=s(e[4]+e[0],9),e[12]^=s(e[8]+e[4],13),e[0]^=s(e[12]+e[8],18),e[9]^=s(e[5]+e[1],7),e[13]^=s(e[9]+e[5],9),e[1]^=s(e[13]+e[9],13),e[5]^=s(e[1]+e[13],18),e[14]^=s(e[10]+e[6],7),e[2]^=s(e[14]+e[10],9),e[6]^=s(e[2]+e[14],13),e[10]^=s(e[6]+e[2],18),e[3]^=s(e[15]+e[11],7),e[7]^=s(e[3]+e[15],9),e[11]^=s(e[7]+e[3],13),e[15]^=s(e[11]+e[7],18),e[1]^=s(e[0]+e[3],7),e[2]^=s(e[1]+e[0],9),e[3]^=s(e[2]+e[1],13),e[0]^=s(e[3]+e[2],18),e[6]^=s(e[5]+e[4],7),e[7]^=s(e[6]+e[5],9),e[4]^=s(e[7]+e[6],13),e[5]^=s(e[4]+e[7],18),e[11]^=s(e[10]+e[9],7),e[8]^=s(e[11]+e[10],9),e[9]^=s(e[8]+e[11],13),e[10]^=s(e[9]+e[8],18),e[12]^=s(e[15]+e[14],7),e[13]^=s(e[12]+e[15],9),e[14]^=s(e[13]+e[12],13),e[15]^=s(e[14]+e[13],18);for(let r=0;r<16;++r)t[r]+=e[r]}function u(t,e,r,n){for(let i=0;i<n;i++)r[i]^=t[e+i]}function h(t,e,r,n,i){while(i--)r[n++]=t[e++]}function l(t){if(!t||"number"!==typeof t.length)return!1;for(let e=0;e<t.length;e++){const r=t[e];if("number"!==typeof r||r%1||r<0||r>=256)return!1}return!0}function c(t,e){if("number"!==typeof t||t%1)throw new Error("invalid "+e);return t}function f(t,e,n,s,a,f,d){if(n=c(n,"N"),s=c(s,"r"),a=c(a,"p"),f=c(f,"dkLen"),0===n||0!==(n&n-1))throw new Error("N must be power of 2");if(n>r/128/s)throw new Error("N too large");if(s>r/128/a)throw new Error("r too large");if(!l(t))throw new Error("password must be an array or buffer");if(t=Array.prototype.slice.call(t),!l(e))throw new Error("salt must be an array or buffer");e=Array.prototype.slice.call(e);let p=i(t,e,128*a*s);const m=new Uint32Array(32*a*s);for(let r=0;r<m.length;r++){const t=4*r;m[r]=(255&p[t+3])<<24|(255&p[t+2])<<16|(255&p[t+1])<<8|(255&p[t+0])<<0}const v=new Uint32Array(64*s),g=new Uint32Array(32*s*n),y=32*s,b=new Uint32Array(16),w=new Uint32Array(16),M=a*n*2;let _,k,S=0,x=null,E=!1,A=0,O=0;const T=d?parseInt(1e3/s):4294967295,C="undefined"!==typeof setImmediate?setImmediate:setTimeout,P=function(){if(E)return d(new Error("cancelled"),S/M);let e;switch(A){case 0:k=32*O*s,h(m,k,v,0,y),A=1,_=0;case 1:e=n-_,e>T&&(e=T);for(let t=0;t<e;t++)h(v,0,g,(_+t)*y,y),o(v,y,s,b,w);if(_+=e,S+=e,d){const t=parseInt(1e3*S/M);if(t!==x){if(E=d(null,S/M),E)break;x=t}}if(_<n)break;_=0,A=2;case 2:e=n-_,e>T&&(e=T);for(let t=0;t<e;t++){const t=16*(2*s-1),e=v[t]&n-1;u(g,e*y,v,y),o(v,y,s,b,w)}if(_+=e,S+=e,d){const t=parseInt(1e3*S/M);if(t!==x){if(E=d(null,S/M),E)break;x=t}}if(_<n)break;if(h(v,0,m,k,y),O++,O<a){A=0;break}p=[];for(let t=0;t<m.length;t++)p.push(m[t]>>0&255),p.push(m[t]>>8&255),p.push(m[t]>>16&255),p.push(m[t]>>24&255);const r=i(t,p,f);return d&&d(null,1,r),r}d&&C(P)};if(!d)while(1){const t=P();if(void 0!=t)return t}P()}const d={scrypt:function(t,e,r,n,i,o,s){return new Promise((function(a,u){let h=0;s&&s(0),f(t,e,r,n,i,o,(function(t,e,r){if(t)u(t);else if(r)s&&1!==h&&s(1),a(new Uint8Array(r));else if(s&&e!==h)return h=e,s(e)}))}))},syncScrypt:function(t,e,r,n,i,o){return new Uint8Array(f(t,e,r,n,i,o))}};t.exports=d})()},"9f9d":function(t,e,r){(function(e){var r;if(e.browser)r="utf-8";else if(e.version){var n=parseInt(e.version.split(".")[0].slice(1),10);r=n>=6?"utf-8":"binary"}else r="utf-8";t.exports=r}).call(this,r("f28c"))},a00b:function(t,e,r){var n,i,o=r("33a0"),s=r("9850"),a=0,u=0;function h(t,e,r){var h=e&&r||0,l=e||[];t=t||{};var c=t.node||n,f=void 0!==t.clockseq?t.clockseq:i;if(null==c||null==f){var d=o();null==c&&(c=n=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==f&&(f=i=16383&(d[6]<<8|d[7]))}var p=void 0!==t.msecs?t.msecs:(new Date).getTime(),m=void 0!==t.nsecs?t.nsecs:u+1,v=p-a+(m-u)/1e4;if(v<0&&void 0===t.clockseq&&(f=f+1&16383),(v<0||p>a)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=p,u=m,i=f,p+=122192928e5;var g=(1e4*(268435455&p)+m)%4294967296;l[h++]=g>>>24&255,l[h++]=g>>>16&255,l[h++]=g>>>8&255,l[h++]=255&g;var y=p/4294967296*1e4&268435455;l[h++]=y>>>8&255,l[h++]=255&y,l[h++]=y>>>24&15|16,l[h++]=y>>>16&255,l[h++]=f>>>8|128,l[h++]=255&f;for(var b=0;b<6;++b)l[h+b]=c[b];return e||s(l)}t.exports=h},a063:function(t){t.exports=JSON.parse('{"name":"rinkeby","chainId":4,"networkId":4,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"clique","clique":{"period":15,"epoch":30000}},"comment":"PoA test network","url":"https://www.rinkeby.io","genesis":{"hash":"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177","timestamp":"0x58ee40ba","gasLimit":4700000,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x53580584816f617295ea26c0e17641e0120cab2f0a8ffb53a866fd53aa8e8c2d"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x3b8e0691"},{"name":"homestead","block":1,"forkHash":"0x60949295"},{"name":"dao","block":null,"forkHash":null},{"name":"tangerineWhistle","block":2,"forkHash":"0x8bde40dd"},{"name":"spuriousDragon","block":3,"forkHash":"0xcb3a64bb"},{"name":"byzantium","block":1035301,"forkHash":"0x8d748b57"},{"name":"constantinople","block":3660663,"forkHash":"0xe49cab14"},{"name":"petersburg","block":4321234,"forkHash":"0xafec6b27"},{"name":"istanbul","block":5435345,"forkHash":"0xcbdb8838"},{"name":"berlin","block":8290928,"forkHash":"0x6910c8bd"},{"name":"london","block":8897988,"forkHash":"0x8e29f2f3"}],"bootstrapNodes":[{"ip":"52.169.42.101","port":30303,"id":"a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf","location":"","comment":"IE"},{"ip":"52.3.158.184","port":30303,"id":"343149e4feefa15d882d9fe4ac7d88f885bd05ebb735e547f12e12080a9fa07c8014ca6fd7f373123488102fe5e34111f8509cf0b7de3f5b44339c9f25e87cb8","location":"","comment":"INFURA"},{"ip":"159.89.28.211","port":30303,"id":"b6b28890b006743680c52e64e0d16db57f28124885595fa03a562be1d2bf0f3a1da297d56b13da25fb992888fd556d4c1a27b1f39d531bde7de1921c90061cc6","location":"","comment":"AKASHA"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.rinkeby.ethdisco.net"]}')},a099:function(t,e,r){e.pbkdf2=r("206d"),e.pbkdf2Sync=r("e07b")},a142:function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"h",(function(){return s})),r.d(e,"i",(function(){return a})),r.d(e,"c",(function(){return u})),r.d(e,"e",(function(){return h})),r.d(e,"f",(function(){return l})),r.d(e,"g",(function(){return c})),r.d(e,"a",(function(){return f})),r.d(e,"d",(function(){return d}));var n=r("8bbf"),i=r.n(n),o="undefined"!==typeof window,s=i.a.prototype.$isServer;function a(){}function u(t){return void 0!==t&&null!==t}function h(t){return"function"===typeof t}function l(t){return null!==t&&"object"===typeof t}function c(t){return l(t)&&h(t.then)&&h(t.catch)}function f(t,e){var r=e.split("."),n=t;return r.forEach((function(t){var e;n=null!=(e=n[t])?e:""})),n}function d(t){return null==t||("object"!==typeof t||0===Object.keys(t).length)}},a255:function(t,e,r){var n=r("3fb5"),i=r("b672"),o=r("8707").Buffer,s=[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],a=new Array(64);function u(){this.init(),this._w=a,i.call(this,64,56)}function h(t,e,r){return r^t&(e^r)}function l(t,e,r){return t&e|r&(t|e)}function c(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function f(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function p(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,u=0|this._f,m=0|this._g,v=0|this._h,g=0;g<16;++g)e[g]=t.readInt32BE(4*g);for(;g<64;++g)e[g]=p(e[g-2])+e[g-7]+d(e[g-15])+e[g-16]|0;for(var y=0;y<64;++y){var b=v+f(a)+h(a,u,m)+s[y]+e[y]|0,w=c(r)+l(r,n,i)|0;v=m,m=u,u=a,a=o+b|0,o=i,i=n,n=r,r=b+w|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=u+this._f|0,this._g=m+this._g|0,this._h=v+this._h|0},u.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},a25c:function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s=r(14).Buffer}catch(E){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var s=t.charCodeAt(o)-48;n<<=4,n|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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"],l=[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],c=[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){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?h[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=l[t],d=c[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:h[f-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function v(t,e,r){var n=new g;return n.mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?m(this,t,e):v(this,t,e),r},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},g.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=f(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(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 b(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 w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){S.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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(w,b),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,b),i(_,b),i(k,b),k.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}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 w;else if("p224"===t)e=new M;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("62e4")(t))},a25f:function(t,e,r){var n=r("7726"),i=n.navigator;t.exports=i&&i.userAgent||""},a297:function(t,e,r){"use strict";var n=r("c063"),i=r("7789"),o=r("5ba3"),s=r("795e"),a=r("c044").formatters,u=function(){var t=this;n.packageInit(this,arguments),this.net=new s(this);var e=null,r="latest";Object.defineProperty(this,"defaultAccount",{get:function(){return e},set:function(t){return t&&(e=o.toChecksumAddress(a.inputAddressFormatter(t))),u.forEach((function(t){t.defaultAccount=e})),t},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return r},set:function(t){return r=t,u.forEach((function(t){t.defaultBlock=r})),t},enumerable:!0});var u=[new i({name:"getAccounts",call:"personal_listAccounts",params:0,outputFormatter:o.toChecksumAddress}),new i({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:o.toChecksumAddress}),new i({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[a.inputAddressFormatter,null,null]}),new i({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[a.inputAddressFormatter]}),new i({name:"importRawKey",call:"personal_importRawKey",params:2}),new i({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[a.inputTransactionFormatter,null]}),new i({name:"signTransaction",call:"personal_signTransaction",params:2,inputFormatter:[a.inputTransactionFormatter,null]}),new i({name:"sign",call:"personal_sign",params:3,inputFormatter:[a.inputSignFormatter,a.inputAddressFormatter,null]}),new i({name:"ecRecover",call:"personal_ecRecover",params:2,inputFormatter:[a.inputSignFormatter,null]})];u.forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager),e.defaultBlock=t.defaultBlock,e.defaultAccount=t.defaultAccount}))};n.addProviders(u),t.exports=u},a390:function(t,e,r){"use strict";class n{constructor(t,e,r,n){this.name=t,this.code=e,this.alphabet=n,r&&n&&(this.engine=r(n))}encode(t){return this.engine.encode(t)}decode(t){return this.engine.decode(t)}isImplemented(){return this.engine}}t.exports=n},a393:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.type=t,this.bubbles=!1,this.cancelable=!1,this.loaded=0,this.lengthComputable=!1,this.total=0}return t}();e.ProgressEvent=n},a3ca:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.getLength=e.decode=e.encode=void 0;var n=r("bc86");function i(e){if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++)r.push(i(e[n]));var o=t.concat(r);return t.concat([s(o.length,192),o])}var a=m(e);return 1===a.length&&a[0]<128?a:t.concat([s(a.length,128),a])}function o(t,e){if("00"===t.slice(0,2))throw new Error("invalid RLP: extra zeros");return parseInt(t,e)}function s(e,r){if(e<56)return t.from([e+r]);var n=f(e),i=n.length/2,o=f(r+55+i);return t.from(o+n,"hex")}function a(e,r){if(void 0===r&&(r=!1),!e||0===e.length)return t.from([]);var n=m(e),i=h(n);if(r)return i;if(0!==i.remainder.length)throw new Error("invalid remainder");return i.data}function u(e){if(!e||0===e.length)return t.from([]);var r=m(e),n=r[0];if(n<=127)return r.length;if(n<=183)return n-127;if(n<=191)return n-182;if(n<=247)return n-191;var i=n-246,s=o(r.slice(1,i).toString("hex"),16);return i+s}function h(e){var r,n,i,s,a,u=[],l=e[0];if(l<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(l<=183){if(r=l-127,i=128===l?t.from([]):e.slice(1,r),2===r&&i[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:i,remainder:e.slice(r)}}if(l<=191){if(n=l-182,e.length-1<n)throw new Error("invalid RLP: not enough bytes for string length");if(r=o(e.slice(1,n).toString("hex"),16),r<=55)throw new Error("invalid RLP: expected string length to be greater than 55");if(i=e.slice(n,r+n),i.length<r)throw new Error("invalid RLP: not enough bytes for string");return{data:i,remainder:e.slice(r+n)}}if(l<=247){r=l-191,s=e.slice(1,r);while(s.length)a=h(s),u.push(a.data),s=a.remainder;return{data:u,remainder:e.slice(r)}}n=l-246,r=o(e.slice(1,n).toString("hex"),16);var c=n+r;if(c>e.length)throw new Error("invalid rlp: total length is larger than the data");if(s=e.slice(n,c),0===s.length)throw new Error("invalid rlp, List has a invalid length");while(s.length)a=h(s),u.push(a.data),s=a.remainder;return{data:u,remainder:e.slice(c)}}function l(t){return"0x"===t.slice(0,2)}function c(t){return"string"!==typeof t?t:l(t)?t.slice(2):t}function f(t){if(t<0)throw new Error("Invalid integer as argument, must be unsigned!");var e=t.toString(16);return e.length%2?"0"+e:e}function d(t){return t.length%2?"0"+t:t}function p(e){var r=f(e);return t.from(r,"hex")}function m(e){if(!t.isBuffer(e)){if("string"===typeof e)return l(e)?t.from(d(c(e)),"hex"):t.from(e);if("number"===typeof e||"bigint"===typeof e)return e?p(e):t.from([]);if(null===e||void 0===e)return t.from([]);if(e instanceof Uint8Array)return t.from(e);if(n.isBN(e))return t.from(e.toArray());throw new Error("invalid type")}return e}e.encode=i,e.decode=a,e.getLength=u}).call(this,r("b639").Buffer)},a481:function(t,e,r){"use strict";var n=r("cb7c"),i=r("4bf8"),o=r("9def"),s=r("4588"),a=r("0390"),u=r("5f1b"),h=Math.max,l=Math.min,c=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};r("214f")("replace",2,(function(t,e,r,m){return[function(n,i){var o=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},function(t,e){var i=m(r,t,this,e);if(i.done)return i.value;var c=n(t),f=String(this),d="function"===typeof e;d||(e=String(e));var g=c.global;if(g){var y=c.unicode;c.lastIndex=0}var b=[];while(1){var w=u(c,f);if(null===w)break;if(b.push(w),!g)break;var M=String(w[0]);""===M&&(c.lastIndex=a(f,o(c.lastIndex),y))}for(var _="",k=0,S=0;S<b.length;S++){w=b[S];for(var x=String(w[0]),E=h(l(s(w.index),f.length),0),A=[],O=1;O<w.length;O++)A.push(p(w[O]));var T=w.groups;if(d){var C=[x].concat(A,E,f);void 0!==T&&C.push(T);var P=String(e.apply(void 0,C))}else P=v(x,f,E,A,T,e);E>=k&&(_+=f.slice(k,E)+P,k=E+x.length)}return _+f.slice(k)}];function v(t,e,n,o,s,a){var u=n+t.length,h=o.length,l=d;return void 0!==s&&(s=i(s),l=f),r.call(a,l,(function(r,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(u);case"<":a=s[i.slice(1,-1)];break;default:var l=+i;if(0===l)return r;if(l>h){var f=c(l/10);return 0===f?r:f<=h?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):r}a=o[l-1]}return void 0===a?"":a}))}}))},a4ca:function(t,e,r){"use strict";var n=r("ba10"),i=r("efab"),o=r("c044").errors,s=r("7e3c").w3cwebsocket,a=function(t,e){n.call(this),e=e||{},this.url=t,this._customTimeout=e.timeout||15e3,this.headers=e.headers||{},this.protocol=e.protocol||void 0,this.reconnectOptions=Object.assign({auto:!1,delay:5e3,maxAttempts:!1,onTimeout:!1},e.reconnect),this.clientConfig=e.clientConfig||void 0,this.requestOptions=e.requestOptions||void 0,this.DATA="data",this.CLOSE="close",this.ERROR="error",this.CONNECT="connect",this.RECONNECT="reconnect",this.connection=null,this.requestQueue=new Map,this.responseQueue=new Map,this.reconnectAttempts=0,this.reconnecting=!1;var r=i.parseURL(t);r.username&&r.password&&(this.headers.authorization="Basic "+i.btoa(r.username+":"+r.password)),r.auth&&(this.headers.authorization="Basic "+i.btoa(r.auth)),Object.defineProperty(this,"connected",{get:function(){return this.connection&&this.connection.readyState===this.connection.OPEN},enumerable:!0}),this.connect()};a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.prototype.connect=function(){this.connection=new s(this.url,this.protocol,void 0,this.headers,this.requestOptions,this.clientConfig),this._addSocketListeners()},a.prototype._onMessage=function(t){var e=this;this._parseResponse("string"===typeof t.data?t.data:"").forEach((function(t){if(t.method&&-1!==t.method.indexOf("_subscription"))e.emit(e.DATA,t);else{var r=t.id;Array.isArray(t)&&(r=t[0].id),e.responseQueue.has(r)&&(void 0!==e.responseQueue.get(r).callback&&e.responseQueue.get(r).callback(!1,t),e.responseQueue.delete(r))}}))},a.prototype._onConnect=function(){if(this.emit(this.CONNECT),this.reconnectAttempts=0,this.reconnecting=!1,this.requestQueue.size>0){var t=this;this.requestQueue.forEach((function(e,r){t.send(e.payload,e.callback),t.requestQueue.delete(r)}))}},a.prototype._onClose=function(t){var e=this;!this.reconnectOptions.auto||[1e3,1001].includes(t.code)&&!1!==t.wasClean?(this.emit(this.CLOSE,t),this.requestQueue.size>0&&this.requestQueue.forEach((function(r,n){r.callback(o.ConnectionNotOpenError(t)),e.requestQueue.delete(n)})),this.responseQueue.size>0&&this.responseQueue.forEach((function(r,n){r.callback(o.InvalidConnection("on WS",t)),e.responseQueue.delete(n)})),this._removeSocketListeners(),this.removeAllListeners()):this.reconnect()},a.prototype._addSocketListeners=function(){this.connection.addEventListener("message",this._onMessage.bind(this)),this.connection.addEventListener("open",this._onConnect.bind(this)),this.connection.addEventListener("close",this._onClose.bind(this))},a.prototype._removeSocketListeners=function(){this.connection.removeEventListener("message",this._onMessage),this.connection.removeEventListener("open",this._onConnect),this.connection.removeEventListener("close",this._onClose)},a.prototype._parseResponse=function(t){var e=this,r=[],n=t.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|");return n.forEach((function(t){e.lastChunk&&(t=e.lastChunk+t);var n=null;try{n=JSON.parse(t)}catch(i){return e.lastChunk=t,clearTimeout(e.lastChunkTimeout),void(e.lastChunkTimeout=setTimeout((function(){e.reconnectOptions.auto&&e.reconnectOptions.onTimeout?e.reconnect():(e.emit(e.ERROR,o.ConnectionTimeout(e._customTimeout)),e.requestQueue.size>0&&e.requestQueue.forEach((function(t,r){t.callback(o.ConnectionTimeout(e._customTimeout)),e.requestQueue.delete(r)})))}),e._customTimeout))}clearTimeout(e.lastChunkTimeout),e.lastChunk=null,n&&r.push(n)})),r},a.prototype.send=function(t,e){var r=this,n=t.id,i={payload:t,callback:e};if(Array.isArray(t)&&(n=t[0].id),this.connection.readyState===this.connection.CONNECTING||this.reconnecting)this.requestQueue.set(n,i);else{if(this.connection.readyState!==this.connection.OPEN)return this.requestQueue.delete(n),this.emit(this.ERROR,o.ConnectionNotOpenError()),void i.callback(o.ConnectionNotOpenError());this.responseQueue.set(n,i),this.requestQueue.delete(n);try{this.connection.send(JSON.stringify(i.payload))}catch(s){i.callback(s),r.responseQueue.delete(n)}}},a.prototype.reset=function(){this.responseQueue.clear(),this.requestQueue.clear(),this.removeAllListeners(),this._removeSocketListeners(),this._addSocketListeners()},a.prototype.disconnect=function(t,e){this._removeSocketListeners(),this.connection.close(t||1e3,e)},a.prototype.supportsSubscriptions=function(){return!0},a.prototype.reconnect=function(){var t=this;this.reconnecting=!0,this.responseQueue.size>0&&this.responseQueue.forEach((function(e,r){e.callback(o.PendingRequestsOnReconnectingError()),t.responseQueue.delete(r)})),!this.reconnectOptions.maxAttempts||this.reconnectAttempts<this.reconnectOptions.maxAttempts?setTimeout((function(){t.reconnectAttempts++,t._removeSocketListeners(),t.emit(t.RECONNECT,t.reconnectAttempts),t.connect()}),this.reconnectOptions.delay):(this.emit(this.ERROR,o.MaxAttemptsReachedOnReconnectingError()),this.reconnecting=!1,this.requestQueue.size>0&&this.requestQueue.forEach((function(e,r){e.callback(o.MaxAttemptsReachedOnReconnectingError()),t.requestQueue.delete(r)})))},t.exports=a},a5b8:function(t,e,r){"use strict";var n=r("d8e8");function i(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)}t.exports.f=function(t){return new i(t)}},a69f:function(t,e,r){var n=r("5ca1");n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},a6b6:function(t,e,r){var n=r("e943"),i=r("85b1");t.exports=function(t){if("string"===typeof t||"number"===typeof t){var e=new n(1),r=String(t).toLowerCase().trim(),o="0x"===r.substr(0,2)||"-0x"===r.substr(0,3),s=i(r);if("-"===s.substr(0,1)&&(s=i(s.slice(1)),e=new n(-1,10)),s=""===s?"0":s,!s.match(/^-?[0-9]+$/)&&s.match(/^[0-9A-Fa-f]+$/)||s.match(/^[a-fA-F]+$/)||!0===o&&s.match(/^[0-9A-Fa-f]+$/))return new n(s,16).mul(e);if((s.match(/^-?[0-9]+$/)||""===s)&&!1===o)return new n(s,10).mul(e)}else if("object"===typeof t&&t.toString&&!t.pop&&!t.push&&t.toString(10).match(/^-?[0-9]+$/)&&(t.mul||t.dividedToIntegerBy))return new n(t.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(t)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},a6ca:function(t,e){(function(){"use strict";function t(e,r,n,i){return this instanceof t?(this.domain=e||void 0,this.path=r||"/",this.secure=!!n,this.script=!!i,this):new t(e,r,n,i)}function r(t,e,n){return t instanceof r?t:this instanceof r?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(n||"/"),this.explicit_path=!1,this.domain=e||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,t&&this.parse(t,e,n),this):new r(t,e,n)}t.All=Object.freeze(Object.create(null)),e.CookieAccessInfo=t,e.Cookie=r,r.prototype.toString=function(){var t=[this.name+"="+this.value];return this.expiration_date!==1/0&&t.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&t.push("domain="+this.domain),this.path&&t.push("path="+this.path),this.secure&&t.push("secure"),this.noscript&&t.push("httponly"),t.join("; ")},r.prototype.toValueString=function(){return this.name+"="+this.value};var n=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function i(){var t,e,n;return this instanceof i?(t=Object.create(null),this.setCookie=function(i,o,s){var a,u;if(i=new r(i,o,s),a=i.expiration_date<=Date.now(),void 0!==t[i.name]){for(e=t[i.name],u=0;u<e.length;u+=1)if(n=e[u],n.collidesWith(i))return a?(e.splice(u,1),0===e.length&&delete t[i.name],!1):(e[u]=i,i);return!a&&(e.push(i),i)}return!a&&(t[i.name]=[i],t[i.name])},this.getCookie=function(r,n){var i,o;if(e=t[r],e)for(o=0;o<e.length;o+=1)if(i=e[o],i.expiration_date<=Date.now())0===e.length&&delete t[i.name];else if(i.matches(n))return i},this.getCookies=function(e){var r,n,i=[];for(r in t)n=this.getCookie(r,e),n&&i.push(n);return i.toString=function(){return i.join(":")},i.toValueString=function(){return i.map((function(t){return t.toValueString()})).join(";")},i},this):new i}r.prototype.parse=function(t,e,n){if(this instanceof r){var i,o=t.split(";").filter((function(t){return!!t})),s=o[0].match(/([^=]+)=([\s\S]*)/);if(!s)return void console.warn("Invalid cookie header encountered. Header: '"+t+"'");var a=s[1],u=s[2];if("string"!==typeof a||0===a.length||"string"!==typeof u)return void console.warn("Unable to extract values from cookie header. Cookie: '"+t+"'");for(this.name=a,this.value=u,i=1;i<o.length;i+=1)switch(s=o[i].match(/([^=]+)(?:=([\s\S]*))?/),a=s[1].trim().toLowerCase(),u=s[2],a){case"httponly":this.noscript=!0;break;case"expires":this.expiration_date=u?Number(Date.parse(u)):1/0;break;case"path":this.path=u?u.trim():"",this.explicit_path=!0;break;case"domain":this.domain=u?u.trim():"",this.explicit_domain=!!this.domain;break;case"secure":this.secure=!0;break}return this.explicit_path||(this.path=n||"/"),this.explicit_domain||(this.domain=e),this}return(new r).parse(t,e,n)},r.prototype.matches=function(e){return e===t.All||!(this.noscript&&e.script||this.secure&&!e.secure||!this.collidesWith(e))},r.prototype.collidesWith=function(t){if(this.path&&!t.path||this.domain&&!t.domain)return!1;if(this.path&&0!==t.path.indexOf(this.path))return!1;if(this.explicit_path&&0!==t.path.indexOf(this.path))return!1;var e=t.domain&&t.domain.replace(/^[\.]/,""),r=this.domain&&this.domain.replace(/^[\.]/,"");if(r===e)return!0;if(r){if(!this.explicit_domain)return!1;var n=e.indexOf(r);return-1!==n&&n===e.length-r.length}return!0},e.CookieJar=i,i.prototype.setCookies=function(t,e,i){t=Array.isArray(t)?t:t.split(n);var o,s,a=[];for(t=t.map((function(t){return new r(t,e,i)})),o=0;o<t.length;o+=1)s=t[o],this.setCookie(s,e,i)&&a.push(s);return a}})()},a7a3:function(t,e,r){},a8c1:function(t,e,r){"use strict";function n(t){return t===window}r.d(e,"d",(function(){return o})),r.d(e,"c",(function(){return s})),r.d(e,"h",(function(){return a})),r.d(e,"b",(function(){return u})),r.d(e,"g",(function(){return h})),r.d(e,"a",(function(){return l})),r.d(e,"e",(function(){return c})),r.d(e,"f",(function(){return f}));var i=/scroll|auto/i;function o(t,e){void 0===e&&(e=window);var r=t;while(r&&"HTML"!==r.tagName&&"BODY"!==r.tagName&&1===r.nodeType&&r!==e){var n=window.getComputedStyle(r),o=n.overflowY;if(i.test(o))return r;r=r.parentNode}return e}function s(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function a(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function u(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function h(t){a(window,t),a(document.body,t)}function l(t,e){if(n(t))return 0;var r=e?s(e):u();return t.getBoundingClientRect().top+r}function c(t){return n(t)?t.innerHeight:t.getBoundingClientRect().height}function f(t){return n(t)?0:t.getBoundingClientRect().top}},a925:function(t,e,r){"use strict";
/*!
* vue-i18n v8.25.0
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/var n=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function i(t,e){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function o(t,e){"undefined"!==typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}var s=Array.isArray;function a(t){return null!==t&&"object"===typeof t}function u(t){return"boolean"===typeof t}function h(t){return"string"===typeof t}var l=Object.prototype.toString,c="[object Object]";function f(t){return l.call(t)===c}function d(t){return null===t||void 0===t}function p(t){return"function"===typeof t}function m(){var t=[],e=arguments.length;while(e--)t[e]=arguments[e];var r=null,n=null;return 1===t.length?a(t[0])||s(t[0])?n=t[0]:"string"===typeof t[0]&&(r=t[0]):2===t.length&&("string"===typeof t[0]&&(r=t[0]),(a(t[1])||s(t[1]))&&(n=t[1])),{locale:r,params:n}}function v(t){return JSON.parse(JSON.stringify(t))}function g(t,e){if(t.delete(e))return t}function y(t){var e=[];return t.forEach((function(t){return e.push(t)})),e}function b(t,e){return!!~t.indexOf(e)}var w=Object.prototype.hasOwnProperty;function M(t,e){return w.call(t,e)}function _(t){for(var e=arguments,r=Object(t),n=1;n<arguments.length;n++){var i=e[n];if(void 0!==i&&null!==i){var o=void 0;for(o in i)M(i,o)&&(a(i[o])?r[o]=_(r[o],i[o]):r[o]=i[o])}}return r}function k(t,e){if(t===e)return!0;var r=a(t),n=a(e);if(!r||!n)return!r&&!n&&String(t)===String(e);try{var i=s(t),o=s(e);if(i&&o)return t.length===e.length&&t.every((function(t,r){return k(t,e[r])}));if(i||o)return!1;var u=Object.keys(t),h=Object.keys(e);return u.length===h.length&&u.every((function(r){return k(t[r],e[r])}))}catch(l){return!1}}function S(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function x(t){return null!=t&&Object.keys(t).forEach((function(e){"string"==typeof t[e]&&(t[e]=S(t[e]))})),t}function E(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){var e=[],r=arguments.length-1;while(r-- >0)e[r]=arguments[r+1];var n=this.$i18n;return n._t.apply(n,[t,n.locale,n._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){var r=[],n=arguments.length-2;while(n-- >0)r[n]=arguments[n+2];var i=this.$i18n;return i._tc.apply(i,[t,i.locale,i._getMessages(),this,e].concat(r))},t.prototype.$te=function(t,e){var r=this.$i18n;return r._te(t,r.locale,r._getMessages(),e)},t.prototype.$d=function(t){var e,r=[],n=arguments.length-1;while(n-- >0)r[n]=arguments[n+1];return(e=this.$i18n).d.apply(e,[t].concat(r))},t.prototype.$n=function(t){var e,r=[],n=arguments.length-1;while(n-- >0)r[n]=arguments[n+1];return(e=this.$i18n).n.apply(e,[t].concat(r))}}var A={beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n)if(t.i18n instanceof xt){if(t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach((function(t){e=_(e,JSON.parse(t))})),Object.keys(e).forEach((function(r){t.i18n.mergeLocaleMessage(r,e[r])}))}catch(s){0}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(f(t.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof xt?this.$root.$i18n:null;if(r&&(t.i18n.root=this.$root,t.i18n.formatter=r.formatter,t.i18n.fallbackLocale=r.fallbackLocale,t.i18n.formatFallbackMessages=r.formatFallbackMessages,t.i18n.silentTranslationWarn=r.silentTranslationWarn,t.i18n.silentFallbackWarn=r.silentFallbackWarn,t.i18n.pluralizationRules=r.pluralizationRules,t.i18n.preserveDirectiveContent=r.preserveDirectiveContent),t.__i18n)try{var n=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach((function(t){n=_(n,JSON.parse(t))})),t.i18n.messages=n}catch(s){0}var i=t.i18n,o=i.sharedMessages;o&&f(o)&&(t.i18n.messages=_(t.i18n.messages,o)),this._i18n=new xt(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof xt?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof xt&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n?(t.i18n instanceof xt||f(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof xt||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof xt)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:function(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)},beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick((function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}},O={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var r=e.data,n=e.parent,i=e.props,o=e.slots,s=n.$i18n;if(s){var a=i.path,u=i.locale,h=i.places,l=o(),c=s.i(a,u,T(l)||h?C(l.default,h):l),f=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return f?t(f,r,c):c}}};function T(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}function C(t,e){var r=e?P(e):{};if(!t)return r;t=t.filter((function(t){return t.tag||""!==t.text.trim()}));var n=t.every(R);return t.reduce(n?B:I,r)}function P(t){return Array.isArray(t)?t.reduce(I,{}):Object.assign({},t)}function B(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function I(t,e,r){return t[r]=e,t}function R(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var N,j={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var r=e.props,i=e.parent,o=e.data,s=i.$i18n;if(!s)return null;var u=null,l=null;h(r.format)?u=r.format:a(r.format)&&(r.format.key&&(u=r.format.key),l=Object.keys(r.format).reduce((function(t,e){var i;return b(n,e)?Object.assign({},t,(i={},i[e]=r.format[e],i)):t}),null));var c=r.locale||s.locale,f=s._ntp(r.value,c,u,l),d=f.map((function(t,e){var r,n=o.scopedSlots&&o.scopedSlots[t.type];return n?n((r={},r[t.type]=t.value,r.index=e,r.parts=f,r)):t.value})),p=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return p?t(p,{attrs:o.attrs,class:o["class"],staticClass:o.staticClass},d):d}};function L(t,e,r){F(t,r)&&q(t,e,r)}function U(t,e,r,n){if(F(t,r)){var i=r.context.$i18n;z(t,r)&&k(e.value,e.oldValue)&&k(t._localeMessage,i.getLocaleMessage(i.locale))||q(t,e,r)}}function D(t,e,r,n){var o=r.context;if(o){var s=r.context.$i18n||{};e.modifiers.preserve||s.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t["_vt"],t._locale=void 0,delete t["_locale"],t._localeMessage=void 0,delete t["_localeMessage"]}else i("Vue instance does not exists in VNode context")}function F(t,e){var r=e.context;return r?!!r.$i18n||(i("VueI18n instance does not exists in Vue instance"),!1):(i("Vue instance does not exists in VNode context"),!1)}function z(t,e){var r=e.context;return t._locale===r.$i18n.locale}function q(t,e,r){var n,o,s=e.value,a=H(s),u=a.path,h=a.locale,l=a.args,c=a.choice;if(u||h||l)if(u){var f=r.context;t._vt=t.textContent=null!=c?(n=f.$i18n).tc.apply(n,[u,c].concat($(h,l))):(o=f.$i18n).t.apply(o,[u].concat($(h,l))),t._locale=f.$i18n.locale,t._localeMessage=f.$i18n.getLocaleMessage(f.$i18n.locale)}else i("`path` is required in v-t directive");else i("value type not supported")}function H(t){var e,r,n,i;return h(t)?e=t:f(t)&&(e=t.path,r=t.locale,n=t.args,i=t.choice),{path:e,locale:r,args:n,choice:i}}function $(t,e){var r=[];return t&&r.push(t),e&&(Array.isArray(e)||f(e))&&r.push(e),r}function V(t){V.installed=!0,N=t;N.version&&Number(N.version.split(".")[0]);E(N),N.mixin(A),N.directive("t",{bind:L,update:U,unbind:D}),N.component(O.name,O),N.component(j.name,j);var e=N.config.optionMergeStrategies;e.i18n=function(t,e){return void 0===e?t:e}}var K=function(){this._caches=Object.create(null)};K.prototype.interpolate=function(t,e){if(!e)return[t];var r=this._caches[t];return r||(r=Z(t),this._caches[t]=r),J(r,e)};var W=/^(?:\d)+/,G=/^(?:\w)+/;function Z(t){var e=[],r=0,n="";while(r<t.length){var i=t[r++];if("{"===i){n&&e.push({type:"text",value:n}),n="";var o="";i=t[r++];while(void 0!==i&&"}"!==i)o+=i,i=t[r++];var s="}"===i,a=W.test(o)?"list":s&&G.test(o)?"named":"unknown";e.push({value:o,type:a})}else"%"===i?"{"!==t[r]&&(n+=i):n+=i}return n&&e.push({type:"text",value:n}),e}function J(t,e){var r=[],n=0,i=Array.isArray(e)?"list":a(e)?"named":"unknown";if("unknown"===i)return r;while(n<t.length){var o=t[n];switch(o.type){case"text":r.push(o.value);break;case"list":r.push(e[parseInt(o.value,10)]);break;case"named":"named"===i&&r.push(e[o.value]);break;case"unknown":0;break}n++}return r}var X=0,Y=1,Q=2,tt=3,et=0,rt=1,nt=2,it=3,ot=4,st=5,at=6,ut=7,ht=8,lt=[];lt[et]={ws:[et],ident:[it,X],"[":[ot],eof:[ut]},lt[rt]={ws:[rt],".":[nt],"[":[ot],eof:[ut]},lt[nt]={ws:[nt],ident:[it,X],0:[it,X],number:[it,X]},lt[it]={ident:[it,X],0:[it,X],number:[it,X],ws:[rt,Y],".":[nt,Y],"[":[ot,Y],eof:[ut,Y]},lt[ot]={"'":[st,X],'"':[at,X],"[":[ot,Q],"]":[rt,tt],eof:ht,else:[ot,X]},lt[st]={"'":[ot,X],eof:ht,else:[st,X]},lt[at]={'"':[ot,X],eof:ht,else:[at,X]};var ct=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ft(t){return ct.test(t)}function dt(t){var e=t.charCodeAt(0),r=t.charCodeAt(t.length-1);return e!==r||34!==e&&39!==e?t:t.slice(1,-1)}function pt(t){if(void 0===t||null===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function mt(t){var e=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(ft(e)?dt(e):"*"+e)}function vt(t){var e,r,n,i,o,s,a,u=[],h=-1,l=et,c=0,f=[];function d(){var e=t[h+1];if(l===st&&"'"===e||l===at&&'"'===e)return h++,n="\\"+e,f[X](),!0}f[Y]=function(){void 0!==r&&(u.push(r),r=void 0)},f[X]=function(){void 0===r?r=n:r+=n},f[Q]=function(){f[X](),c++},f[tt]=function(){if(c>0)c--,l=ot,f[X]();else{if(c=0,void 0===r)return!1;if(r=mt(r),!1===r)return!1;f[Y]()}};while(null!==l)if(h++,e=t[h],"\\"!==e||!d()){if(i=pt(e),a=lt[l],o=a[i]||a["else"]||ht,o===ht)return;if(l=o[0],s=f[o[1]],s&&(n=o[2],n=void 0===n?e:n,!1===s()))return;if(l===ut)return u}}var gt=function(){this._cache=Object.create(null)};gt.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=vt(t),e&&(this._cache[t]=e)),e||[]},gt.prototype.getPathValue=function(t,e){if(!a(t))return null;var r=this.parsePath(e);if(0===r.length)return null;var n=r.length,i=t,o=0;while(o<n){var s=i[r[o]];if(void 0===s||null===s)return null;i=s,o++}return i};var yt,bt=/<\/?[\w\s="/.':;#-\/]+>/,wt=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,Mt=/^@(?:\.([a-z]+))?:/,_t=/[()]/g,kt={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},St=new K,xt=function(t){var e=this;void 0===t&&(t={}),!N&&"undefined"!==typeof window&&window.Vue&&V(window.Vue);var r=t.locale||"en-US",n=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),i=t.messages||{},o=t.dateTimeFormats||{},s=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||St,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new gt,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,this.getChoiceIndex=function(t,r){var n=Object.getPrototypeOf(e);if(n&&n.getChoiceIndex){var i=n.getChoiceIndex;return i.call(e,t,r)}var o=function(t,e){return t=Math.abs(t),2===e?t?t>1?1:0:1:t?Math.min(t,2):0};return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,r]):o(t,r)},this._exist=function(t,r){return!(!t||!r)&&(!d(e._path.getPathValue(t,r))||!!t[r])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,i[t])})),this._initVM({locale:r,fallbackLocale:n,messages:i,dateTimeFormats:o,numberFormats:s})},Et={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0}};xt.prototype._checkLocaleMessage=function(t,e,r){var n=[],a=function(t,e,r,n){if(f(r))Object.keys(r).forEach((function(i){var o=r[i];f(o)?(n.push(i),n.push("."),a(t,e,o,n),n.pop(),n.pop()):(n.push(i),a(t,e,o,n),n.pop())}));else if(s(r))r.forEach((function(r,i){f(r)?(n.push("["+i+"]"),n.push("."),a(t,e,r,n),n.pop(),n.pop()):(n.push("["+i+"]"),a(t,e,r,n),n.pop())}));else if(h(r)){var u=bt.test(r);if(u){var l="Detected HTML in message '"+r+"' of keypath '"+n.join("")+"' at '"+e+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?i(l):"error"===t&&o(l)}}};a(e,t,r,n)},xt.prototype._initVM=function(t){var e=N.config.silent;N.config.silent=!0,this._vm=new N({data:t}),N.config.silent=e},xt.prototype.destroyVM=function(){this._vm.$destroy()},xt.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},xt.prototype.unsubscribeDataChanging=function(t){g(this._dataListeners,t)},xt.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",(function(){var e=y(t._dataListeners),r=e.length;while(r--)N.nextTick((function(){e[r]&&e[r].$forceUpdate()}))}),{deep:!0})},xt.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){t.$set(t,"locale",e),t.$forceUpdate()}),{immediate:!0})},xt.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},Et.vm.get=function(){return this._vm},Et.messages.get=function(){return v(this._getMessages())},Et.dateTimeFormats.get=function(){return v(this._getDateTimeFormats())},Et.numberFormats.get=function(){return v(this._getNumberFormats())},Et.availableLocales.get=function(){return Object.keys(this.messages).sort()},Et.locale.get=function(){return this._vm.locale},Et.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},Et.fallbackLocale.get=function(){return this._vm.fallbackLocale},Et.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},Et.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Et.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},Et.missing.get=function(){return this._missing},Et.missing.set=function(t){this._missing=t},Et.formatter.get=function(){return this._formatter},Et.formatter.set=function(t){this._formatter=t},Et.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Et.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},Et.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Et.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},Et.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Et.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},Et.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Et.warnHtmlInMessage.set=function(t){var e=this,r=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,r!==t&&("warn"===t||"error"===t)){var n=this._getMessages();Object.keys(n).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,n[t])}))}},Et.postTranslation.get=function(){return this._postTranslation},Et.postTranslation.set=function(t){this._postTranslation=t},xt.prototype._getMessages=function(){return this._vm.messages},xt.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},xt.prototype._getNumberFormats=function(){return this._vm.numberFormats},xt.prototype._warnDefault=function(t,e,r,n,i,o){if(!d(r))return r;if(this._missing){var s=this._missing.apply(null,[t,e,n,i]);if(h(s))return s}else 0;if(this._formatFallbackMessages){var a=m.apply(void 0,i);return this._render(e,o,a.params,e)}return e},xt.prototype._isFallbackRoot=function(t){return!t&&!d(this._root)&&this._fallbackRoot},xt.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},xt.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},xt.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},xt.prototype._interpolate=function(t,e,r,n,i,o,a){if(!e)return null;var u,l=this._path.getPathValue(e,r);if(s(l)||f(l))return l;if(d(l)){if(!f(e))return null;if(u=e[r],!h(u)&&!p(u))return null}else{if(!h(l)&&!p(l))return null;u=l}return h(u)&&(u.indexOf("@:")>=0||u.indexOf("@.")>=0)&&(u=this._link(t,e,u,n,"raw",o,a)),this._render(u,i,o,r)},xt.prototype._link=function(t,e,r,n,i,o,a){var u=r,h=u.match(wt);for(var l in h)if(h.hasOwnProperty(l)){var c=h[l],f=c.match(Mt),d=f[0],p=f[1],m=c.replace(d,"").replace(_t,"");if(b(a,m))return u;a.push(m);var v=this._interpolate(t,e,m,n,"raw"===i?"string":i,"raw"===i?void 0:o,a);if(this._isFallbackRoot(v)){if(!this._root)throw Error("unexpected error");var g=this._root.$i18n;v=g._translate(g._getMessages(),g.locale,g.fallbackLocale,m,n,i,o)}v=this._warnDefault(t,m,v,n,s(o)?o:[o],i),this._modifiers.hasOwnProperty(p)?v=this._modifiers[p](v):kt.hasOwnProperty(p)&&(v=kt[p](v)),a.pop(),u=v?u.replace(c,v):u}return u},xt.prototype._createMessageContext=function(t,e,r,n){var i=this,o=s(t)?t:[],u=a(t)?t:{},h=function(t){return o[t]},l=function(t){return u[t]},c=this._getMessages(),f=this.locale;return{list:h,named:l,values:t,formatter:e,path:r,messages:c,locale:f,linked:function(t){return i._interpolate(f,c[f]||{},t,null,n,void 0,[t])}}},xt.prototype._render=function(t,e,r,n){if(p(t))return t(this._createMessageContext(r,this._formatter||St,n,e));var i=this._formatter.interpolate(t,r,n);return i||(i=St.interpolate(t,r,n)),"string"!==e||h(i)?i:i.join("")},xt.prototype._appendItemToChain=function(t,e,r){var n=!1;return b(t,e)||(n=!0,e&&(n="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),r&&r[e]&&(n=r[e]))),n},xt.prototype._appendLocaleToChain=function(t,e,r){var n,i=e.split("-");do{var o=i.join("-");n=this._appendItemToChain(t,o,r),i.splice(-1,1)}while(i.length&&!0===n);return n},xt.prototype._appendBlockToChain=function(t,e,r){for(var n=!0,i=0;i<e.length&&u(n);i++){var o=e[i];h(o)&&(n=this._appendLocaleToChain(t,o,r))}return n},xt.prototype._getLocaleChain=function(t,e){if(""===t)return[];this._localeChainCache||(this._localeChainCache={});var r=this._localeChainCache[t];if(!r){e||(e=this.fallbackLocale),r=[];var n,i=[t];while(s(i))i=this._appendBlockToChain(r,i,e);n=s(e)?e:a(e)?e["default"]?e["default"]:null:e,i=h(n)?[n]:n,i&&this._appendBlockToChain(r,i,null),this._localeChainCache[t]=r}return r},xt.prototype._translate=function(t,e,r,n,i,o,s){for(var a,u=this._getLocaleChain(e,r),h=0;h<u.length;h++){var l=u[h];if(a=this._interpolate(l,t[l],n,i,o,s,[n]),!d(a))return a}return null},xt.prototype._t=function(t,e,r,n){var i,o=[],s=arguments.length-4;while(s-- >0)o[s]=arguments[s+4];if(!t)return"";var a=m.apply(void 0,o);this._escapeParameterHtml&&(a.params=x(a.params));var u=a.locale||e,h=this._translate(r,u,this.fallbackLocale,t,n,"string",a.params);if(this._isFallbackRoot(h)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[t].concat(o))}return h=this._warnDefault(u,t,h,n,o,"string"),this._postTranslation&&null!==h&&void 0!==h&&(h=this._postTranslation(h,t)),h},xt.prototype.t=function(t){var e,r=[],n=arguments.length-1;while(n-- >0)r[n]=arguments[n+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(r))},xt.prototype._i=function(t,e,r,n,i){var o=this._translate(r,e,this.fallbackLocale,t,n,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,i)}return this._warnDefault(e,t,o,n,[i],"raw")},xt.prototype.i=function(t,e,r){return t?(h(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,r)):""},xt.prototype._tc=function(t,e,r,n,i){var o,s=[],a=arguments.length-5;while(a-- >0)s[a]=arguments[a+5];if(!t)return"";void 0===i&&(i=1);var u={count:i,n:i},h=m.apply(void 0,s);return h.params=Object.assign(u,h.params),s=null===h.locale?[h.params]:[h.locale,h.params],this.fetchChoice((o=this)._t.apply(o,[t,e,r,n].concat(s)),i)},xt.prototype.fetchChoice=function(t,e){if(!t||!h(t))return null;var r=t.split("|");return e=this.getChoiceIndex(e,r.length),r[e]?r[e].trim():t},xt.prototype.tc=function(t,e){var r,n=[],i=arguments.length-2;while(i-- >0)n[i]=arguments[i+2];return(r=this)._tc.apply(r,[t,this.locale,this._getMessages(),null,e].concat(n))},xt.prototype._te=function(t,e,r){var n=[],i=arguments.length-3;while(i-- >0)n[i]=arguments[i+3];var o=m.apply(void 0,n).locale||e;return this._exist(r[o],t)},xt.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},xt.prototype.getLocaleMessage=function(t){return v(this._vm.messages[t]||{})},xt.prototype.setLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},xt.prototype.mergeLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,_("undefined"!==typeof this._vm.messages[t]&&Object.keys(this._vm.messages[t]).length?Object.assign({},this._vm.messages[t]):{},e))},xt.prototype.getDateTimeFormat=function(t){return v(this._vm.dateTimeFormats[t]||{})},xt.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},xt.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,_(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},xt.prototype._clearDateTimeFormat=function(t,e){for(var r in e){var n=t+"__"+r;this._dateTimeFormatters.hasOwnProperty(n)&&delete this._dateTimeFormatters[n]}},xt.prototype._localizeDateTime=function(t,e,r,n,i){for(var o=e,s=n[o],a=this._getLocaleChain(e,r),u=0;u<a.length;u++){var h=a[u];if(s=n[h],o=h,!d(s)&&!d(s[i]))break}if(d(s)||d(s[i]))return null;var l=s[i],c=o+"__"+i,f=this._dateTimeFormatters[c];return f||(f=this._dateTimeFormatters[c]=new Intl.DateTimeFormat(o,l)),f.format(t)},xt.prototype._d=function(t,e,r){if(!r)return new Intl.DateTimeFormat(e).format(t);var n=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),r);if(this._isFallbackRoot(n)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(t,r,e)}return n||""},xt.prototype.d=function(t){var e=[],r=arguments.length-1;while(r-- >0)e[r]=arguments[r+1];var n=this.locale,i=null;return 1===e.length?h(e[0])?i=e[0]:a(e[0])&&(e[0].locale&&(n=e[0].locale),e[0].key&&(i=e[0].key)):2===e.length&&(h(e[0])&&(i=e[0]),h(e[1])&&(n=e[1])),this._d(t,n,i)},xt.prototype.getNumberFormat=function(t){return v(this._vm.numberFormats[t]||{})},xt.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},xt.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,_(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},xt.prototype._clearNumberFormat=function(t,e){for(var r in e){var n=t+"__"+r;this._numberFormatters.hasOwnProperty(n)&&delete this._numberFormatters[n]}},xt.prototype._getNumberFormatter=function(t,e,r,n,i,o){for(var s=e,a=n[s],u=this._getLocaleChain(e,r),h=0;h<u.length;h++){var l=u[h];if(a=n[l],s=l,!d(a)&&!d(a[i]))break}if(d(a)||d(a[i]))return null;var c,f=a[i];if(o)c=new Intl.NumberFormat(s,Object.assign({},f,o));else{var p=s+"__"+i;c=this._numberFormatters[p],c||(c=this._numberFormatters[p]=new Intl.NumberFormat(s,f))}return c},xt.prototype._n=function(t,e,r,n){if(!xt.availabilities.numberFormat)return"";if(!r){var i=n?new Intl.NumberFormat(e,n):new Intl.NumberFormat(e);return i.format(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),r,n),s=o&&o.format(t);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(t,Object.assign({},{key:r,locale:e},n))}return s||""},xt.prototype.n=function(t){var e=[],r=arguments.length-1;while(r-- >0)e[r]=arguments[r+1];var i=this.locale,o=null,s=null;return 1===e.length?h(e[0])?o=e[0]:a(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(o=e[0].key),s=Object.keys(e[0]).reduce((function(t,r){var i;return b(n,r)?Object.assign({},t,(i={},i[r]=e[0][r],i)):t}),null)):2===e.length&&(h(e[0])&&(o=e[0]),h(e[1])&&(i=e[1])),this._n(t,i,o,s)},xt.prototype._ntp=function(t,e,r,n){if(!xt.availabilities.numberFormat)return[];if(!r){var i=n?new Intl.NumberFormat(e,n):new Intl.NumberFormat(e);return i.formatToParts(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),r,n),s=o&&o.formatToParts(t);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,r,n)}return s||[]},Object.defineProperties(xt.prototype,Et),Object.defineProperty(xt,"availabilities",{get:function(){if(!yt){var t="undefined"!==typeof Intl;yt={dateTimeFormat:t&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:t&&"undefined"!==typeof Intl.NumberFormat}}return yt}}),xt.install=V,xt.version="8.25.0",e["a"]=xt},a958:function(t,e,r){(function(e){var n=r("a25c"),i=r("11dc");function o(t){var e=a(t),r=e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed();return{blinder:r,unblinder:e.invm(t.modulus)}}function s(t,r){var i=o(r),s=r.modulus.byteLength(),a=(n.mont(r.modulus),new n(t).mul(i.blinder).umod(r.modulus)),u=a.toRed(n.mont(r.prime1)),h=a.toRed(n.mont(r.prime2)),l=r.coefficient,c=r.prime1,f=r.prime2,d=u.redPow(r.exponent1),p=h.redPow(r.exponent2);d=d.fromRed(),p=p.fromRed();var m=d.isub(p).imul(l).umod(c);return m.imul(f),p.iadd(m),new e(p.imul(i.unblinder).umod(r.modulus).toArray(!1,s))}function a(t){var e=t.modulus.byteLength(),r=new n(i(e));while(r.cmp(t.modulus)>=0||!r.umod(t.prime1)||!r.umod(t.prime2))r=new n(i(e));return r}t.exports=s,s.getr=a}).call(this,r("b639").Buffer)},a9f1:function(t,e,r){(function(t){e.fetch=a(t.fetch)&&a(t.ReadableStream),e.writableStream=a(t.WritableStream),e.abortController=a(t.AbortController),e.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),e.blobConstructor=!0}catch(u){}var r;function n(){if(void 0!==r)return r;if(t.XMLHttpRequest){r=new t.XMLHttpRequest;try{r.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(u){r=null}}else r=null;return r}function i(t){var e=n();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(u){}return!1}var o="undefined"!==typeof t.ArrayBuffer,s=o&&a(t.ArrayBuffer.prototype.slice);function a(t){return"function"===typeof t}e.arraybuffer=e.fetch||o&&i("arraybuffer"),e.msstream=!e.fetch&&s&&i("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&o&&i("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||!!n()&&a(n().overrideMimeType),e.vbArray=a(t.VBArray),r=null}).call(this,r("c8ba"))},aa56:function(t,e,r){"use strict";var n=r("c3c0"),i=n.rotr32;function o(t,e,r,n){return 0===t?s(e,r,n):1===t||3===t?u(e,r,n):2===t?a(e,r,n):void 0}function s(t,e,r){return t&e^~t&r}function a(t,e,r){return t&e^t&r^e&r}function u(t,e,r){return t^e^r}function h(t){return i(t,2)^i(t,13)^i(t,22)}function l(t){return i(t,6)^i(t,11)^i(t,25)}function c(t){return i(t,7)^i(t,18)^t>>>3}function f(t){return i(t,17)^i(t,19)^t>>>10}e.ft_1=o,e.ch32=s,e.maj32=a,e.p32=u,e.s0_256=h,e.s1_256=l,e.g0_256=c,e.g1_256=f},aa77:function(t,e,r){var n=r("5ca1"),i=r("be13"),o=r("79e5"),s=r("fdef"),a="["+s+"]",u="…",h=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),c=function(t,e,r){var i={},a=o((function(){return!!s[t]()||u[t]()!=u})),h=i[t]=a?e(f):s[t];r&&(i[r]=h),n(n.P+n.F*a,"String",i)},f=c.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(h,"")),2&e&&(t=t.replace(l,"")),t};t.exports=c},aaa4:function(t,e,r){var n=r("556a"),i=r("d39a"),o=r("320c"),s=r("f9a0"),a=r("4fcc"),u="application/json",h=function(){};function l(t,e,r){if(!t||"string"!==typeof t)throw new TypeError("must specify a URL");if("function"===typeof e&&(r=e,e={}),r&&"function"!==typeof r)throw new TypeError("expected cb to be undefined or a function");r=r||h,e=e||{};var l=e.json?"json":"text";e=o({responseType:l},e);var c=e.headers||{},f=(e.method||"GET").toUpperCase(),d=e.query;return d&&("string"!==typeof d&&(d=n.stringify(d)),t=i(t,d)),"json"===e.responseType&&s(c,"Accept",u),e.json&&"GET"!==f&&"HEAD"!==f&&(s(c,"Content-Type",u),e.body=JSON.stringify(e.body)),e.method=f,e.url=t,e.headers=c,delete e.query,delete e.json,a(e,r)}t.exports=l},aab1:function(t,e,r){var n=r("b639").Buffer,i=r("5ba3"),o=r("4a84").AbiCoder,s=r("4a84").ParamType,a=new o((function(t,e){return!t.match(/^u?int/)||Array.isArray(e)||e&&"object"===typeof e&&"BN"===e.constructor.name?e:e.toString()}));function u(){}var h=function(){};h.prototype.encodeFunctionSignature=function(t){return("function"===typeof t||"object"===typeof t&&t)&&(t=i._jsonInterfaceMethodToString(t)),i.sha3(t).slice(0,10)},h.prototype.encodeEventSignature=function(t){return("function"===typeof t||"object"===typeof t&&t)&&(t=i._jsonInterfaceMethodToString(t)),i.sha3(t)},h.prototype.encodeParameter=function(t,e){return this.encodeParameters([t],[e])},h.prototype.encodeParameters=function(t,e){var r=this;return t=r.mapTypes(t),e=e.map((function(e,n){let i=t[n];if("object"===typeof i&&i.type&&(i=i.type),e=r.formatParam(i,e),"string"===typeof i&&i.includes("tuple")){const t=a._getCoder(s.from(i)),n=(t,e)=>{if("array"===t.name)return e.map(e=>n(a._getCoder(s.from(t.type.replace("[]",""))),e));t.coders.forEach((t,i)=>{"tuple"===t.name?n(t,e[i]):e[i]=r.formatParam(t.name,e[i])})};n(t,e)}return e})),a.encode(t,e)},h.prototype.mapTypes=function(t){var e=this,r=[];return t.forEach((function(t){if("object"===typeof t&&"function"===t.type&&(t=Object.assign({},t,{type:"bytes24"})),e.isSimplifiedStructFormat(t)){var n=Object.keys(t)[0];r.push(Object.assign(e.mapStructNameAndType(n),{components:e.mapStructToCoderFormat(t[n])}))}else r.push(t)})),r},h.prototype.isSimplifiedStructFormat=function(t){return"object"===typeof t&&"undefined"===typeof t.components&&"undefined"===typeof t.name},h.prototype.mapStructNameAndType=function(t){var e="tuple";return t.indexOf("[]")>-1&&(e="tuple[]",t=t.slice(0,-2)),{type:e,name:t}},h.prototype.mapStructToCoderFormat=function(t){var e=this,r=[];return Object.keys(t).forEach((function(n){"object"!==typeof t[n]?r.push({name:n,type:t[n]}):r.push(Object.assign(e.mapStructNameAndType(n),{components:e.mapStructToCoderFormat(t[n])}))})),r},h.prototype.formatParam=function(t,e){const r=new RegExp(/^bytes([0-9]*)$/),o=new RegExp(/^bytes([0-9]*)\[\]$/),s=new RegExp(/^(u?int)([0-9]*)$/),a=new RegExp(/^(u?int)([0-9]*)\[\]$/);if(i.isBN(e)||i.isBigNumber(e))return e.toString(10);if(t.match(o)||t.match(a))return e.map(e=>this.formatParam(t.replace("[]",""),e));let u=t.match(s);if(u){let t=parseInt(u[2]||"256");t/8<e.length&&(e=i.leftPad(e,t))}if(u=t.match(r),u){n.isBuffer(e)&&(e=i.toHex(e));let t=parseInt(u[1]);if(t){let r=2*t;"0x"===e.substring(0,2)&&(r+=2),e.length<r&&(e=i.rightPad(e,2*t))}e.length%2===1&&(e="0x0"+e.substring(2))}return e},h.prototype.encodeFunctionCall=function(t,e){return this.encodeFunctionSignature(t)+this.encodeParameters(t.inputs,e).replace("0x","")},h.prototype.decodeParameter=function(t,e){return this.decodeParameters([t],e)[0]},h.prototype.decodeParameters=function(t,e){return this.decodeParametersWith(t,e,!1)},h.prototype.decodeParametersWith=function(t,e,r){if(t.length>0&&(!e||"0x"===e||"0X"===e))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");var n=a.decode(this.mapTypes(t),"0x"+e.replace(/0x/i,""),r),i=new u;return i.__length__=0,t.forEach((function(t,e){var r=n[i.__length__];r="0x"===r?null:r,i[e]=r,("function"===typeof t||t&&"object"===typeof t)&&t.name&&(i[t.name]=r),i.__length__++})),i},h.prototype.decodeLog=function(t,e,r){var n=this;r=Array.isArray(r)?r:[r],e=e||"";var i=[],o=[],s=0;t.forEach((function(t,e){t.indexed?(o[e]=["bool","int","uint","address","fixed","ufixed"].find((function(e){return-1!==t.type.indexOf(e)}))?n.decodeParameter(t.type,r[s]):r[s],s++):i[e]=t}));var a=e,h=a?this.decodeParametersWith(i,a,!0):[],l=new u;return l.__length__=0,t.forEach((function(t,e){l[e]="string"===t.type?"":null,"undefined"!==typeof h[e]&&(l[e]=h[e]),"undefined"!==typeof o[e]&&(l[e]=o[e]),t.name&&(l[t.name]=l[e]),l.__length__++})),l};var l=new h;t.exports=l},aad6:function(t,e){t.exports=function(t){var e=t.fs,r=t.files,n=t.os,i=t.path,o=t.child_process,s=t.mimetype,a=t.defaultArchives,u=t.request,h=t.downloadUrl,l=t.bytes,c=t.hash,f=t.pick,d=function(t){return function(e){return function(r){return r[t]=e,r}}},p=function(t){return function(e){for(var r={},n=0,i=t.length;n<i;++n)r[t[n]]=e[n];return r}},m=function(t){return function(e){var r={};for(var n in t)r[n]=t[n];for(var i in e)r[i]=e[i];return r}},v=function(t){return function(e){return"".concat(t,"/bzz-raw:/").concat(e)}},g=function(t){return function(e){return new Promise((function(r,n){u(v(t)(e),{responseType:"arraybuffer"},(function(t,e,i){return t?n(t):i.statusCode>=400?n(new Error("Error ".concat(i.statusCode,"."))):r(new Uint8Array(e))}))}))}},y=function(t){return function(e){var r=function e(r){return function(n){return function(i){var o=function(t){return{type:t.contentType,hash:t.hash}},s=function(t){return void 0===t.path?Promise.resolve():"application/bzz-manifest+json"===t.contentType?e(t.hash)(n+t.path)(i):Promise.resolve(d(n+t.path)(o(t))(i))};return g(t)(r).then((function(t){return JSON.parse(D(t)).entries})).then((function(t){return Promise.all(t.map(s))})).then((function(){return i}))}}};return r(e)("")({})}},b=function(t){return function(e){return y(t)(e).then((function(t){return p(Object.keys(t))(Object.keys(t).map((function(e){return t[e].hash})))}))}},w=function(t){return function(e){return y(t)(e).then((function(e){var r=Object.keys(e),n=r.map((function(t){return e[t].hash})),i=r.map((function(t){return e[t].type})),o=n.map(g(t)),s=function(t){return t.map((function(t,e){return{type:i[e],data:t}}))};return Promise.all(o).then((function(t){return p(r)(s(t))}))}))}},M=function(t){return function(e){return function(n){return r.download(v(t)(e))(n)}}},_=function(t){return function(e){return function(r){return b(t)(e).then((function(e){var n=[];for(var o in e)if(o.length>0){var s=i.join(r,o);n.push(M(t)(e[o])(s))}return Promise.all(n).then((function(){return r}))}))}}},k=function(t){return function(e){return new Promise((function(r,n){var i={body:"string"===typeof e?F(e):e,method:"POST"};u("".concat(t,"/bzz-raw:/"),i,(function(t,e){return t?n(t):r(e)}))}))}},S=function(t){return function(e){return function(r){return function(n){var i=function i(o){var s="/"===r[0]?r:"/"+r,a="".concat(t,"/bzz:/").concat(e).concat(s),h={method:"PUT",headers:{"Content-Type":n.type},body:n.data};return new Promise((function(t,e){u(a,h,(function(r,n){return r?e(r):-1!==n.indexOf("error")?e(n):t(n)}))}))["catch"]((function(t){return o>0&&i(o-1)}))};return i(3)}}}},x=function(t){return function(e){return A(t)({"":e})}},E=function(t){return function(r){return e.readFile(r).then((function(e){return x(t)({type:s.lookup(r),data:e})}))}},A=function(t){return function(e){return k(t)("{}").then((function(r){var n=function(r){return function(n){return S(t)(n)(r)(e[r])}},i=function(t,e){return t.then(n(e))};return Object.keys(e).reduce(i,Promise.resolve(r))}))}},O=function(t){return function(r){return e.readFile(r).then(k(t))}},T=function(t){return function(n){return function(i){return r.directoryTree(i).then((function(t){return Promise.all(t.map((function(t){return e.readFile(t)}))).then((function(e){var r=t.map((function(t){return t.slice(i.length)})),n=t.map((function(t){return s.lookup(t)||"text/plain"}));return p(r)(e.map((function(t,e){return{type:n[e],data:t}})))}))})).then((function(t){return m(n?{"":t[n]}:{})(t)})).then(A(t))}}},C=function(t){return function(e){if("data"===e.pick)return f.data().then(k(t));if("file"===e.pick)return f.file().then(x(t));if("directory"===e.pick)return f.directory().then(A(t));if(e.path)switch(e.kind){case"data":return O(t)(e.path);case"file":return E(t)(e.path);case"directory":return T(t)(e.defaultFile)(e.path)}else{if(e.length||"string"===typeof e)return k(t)(e);if(e instanceof Object)return A(t)(e)}return Promise.reject(new Error("Bad arguments"))}},P=function(t){return function(e){return function(r){return L(t)(e).then((function(n){return n?r?_(t)(e)(r):w(t)(e):r?M(t)(e)(r):g(t)(e)}))}}},B=function(t,e){var i=n.platform().replace("win32","windows")+"-"+("x64"===n.arch()?"amd64":"386"),o=(e||a)[i],s=h+o.archive+".tar.gz",u=o.archiveMD5,l=o.binaryMD5;return r.safeDownloadArchived(s)(u)(l)(t)},I=function(t){return new Promise((function(e,r){var n=o.spawn,i=function(t){return function(e){return-1!==(""+e).indexOf(t)}},s=t.account,a=t.password,u=t.dataDir,h=t.ensApi,l=t.privateKey,c=0,f=1,d=2,p="Passphrase",m="Swarm http proxy started",v=c,g=n(t.binPath,["--bzzaccount",s||l,"--datadir",u,"--ens-api",h]),y=function(t){v===c&&i(p)(t)?setTimeout((function(){v=f,g.stdin.write(a+"\n")}),500):i(m)(t)&&(v=d,clearTimeout(w),e(g))};g.stdout.on("data",y),g.stderr.on("data",y);var b=function(){return r(new Error("Couldn't start swarm process."))},w=setTimeout(b,2e4)}))},R=function(t){return new Promise((function(e,r){t.stderr.removeAllListeners("data"),t.stdout.removeAllListeners("data"),t.stdin.removeAllListeners("error"),t.removeAllListeners("error"),t.removeAllListeners("exit"),t.kill("SIGINT");var n=setTimeout((function(){return t.kill("SIGKILL")}),8e3);t.once("close",(function(){clearTimeout(n),e()}))}))},N=function(t){return function(e){return j("http://localhost:8500").then((function(r){return r?e(z("http://localhost:8500")).then((function(){})):B(t.binPath,t.archives).onData((function(e){return(t.onProgress||function(){})(e.length)})).then((function(){return I(t)})).then((function(t){return e(z("http://localhost:8500")).then((function(){return t}))})).then(R)}))}},j=function(t){var e="test",r="c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7";return k(t)(e).then((function(t){return t===r}))["catch"]((function(){return!1}))},L=function(t){return function(e){return g(t)(e).then((function(t){try{return!!JSON.parse(D(t)).entries}catch(e){return!1}}))}},U=function(t){return function(e,r,n,i,o){var s;return"undefined"!==typeof e&&(s=t(e)),"undefined"!==typeof r&&(s=t(r)),"undefined"!==typeof n&&(s=t(n)),"undefined"!==typeof i&&(s=t(i)),"undefined"!==typeof o&&(s=t(o)),s}},D=function(t){return l.toString(l.fromUint8Array(t))},F=function(t){return l.toUint8Array(l.fromString(t))},z=function(t){return{download:function(e,r){return P(t)(e)(r)},downloadData:U(g(t)),downloadDataToDisk:U(M(t)),downloadDirectory:U(w(t)),downloadDirectoryToDisk:U(_(t)),downloadEntries:U(y(t)),downloadRoutes:U(b(t)),isAvailable:function(){return j(t)},upload:function(e){return C(t)(e)},uploadData:U(k(t)),uploadFile:U(x(t)),uploadFileFromDisk:U(x(t)),uploadDataFromDisk:U(O(t)),uploadDirectory:U(A(t)),uploadDirectoryFromDisk:U(T(t)),uploadToManifest:U(S(t)),pick:f,hash:c,fromString:F,toString:D}};return{at:z,local:N,download:P,downloadBinary:B,downloadData:g,downloadDataToDisk:M,downloadDirectory:w,downloadDirectoryToDisk:_,downloadEntries:y,downloadRoutes:b,isAvailable:j,startProcess:I,stopProcess:R,upload:C,uploadData:k,uploadDataFromDisk:O,uploadFile:x,uploadFileFromDisk:E,uploadDirectory:A,uploadDirectoryFromDisk:T,uploadToManifest:S,pick:f,hash:c,fromString:F,toString:D}}},aae3:function(t,e,r){var n=r("d3f4"),i=r("2d95"),o=r("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},ab3a:function(t,e,r){"use strict";const n=r("a390"),i=r("42a71"),o=r("e456"),s=r("c444"),a=r("e8a6"),u=[["base1","1","","1"],["base2","0",i,"01"],["base8","7",i,"01234567"],["base10","9",i,"0123456789"],["base16","f",o,"0123456789abcdef"],["base32","b",s,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",s,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",s,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",s,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",s,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],h=u.reduce((t,e)=>(t[e[0]]=new n(e[0],e[1],e[2],e[3]),t),{}),l=u.reduce((t,e)=>(t[e[1]]=h[e[0]],t),{});t.exports={names:h,codes:l}},ab7e:function(t,e,r){"use strict";function n(t,e){t=t.replace(new RegExp("=","g"),"");const r=t.length;let n=0,i=0,o=0;const s=new Uint8Array(5*r/8|0);for(let a=0;a<r;a++)i=i<<5|e.indexOf(t[a]),n+=5,n>=8&&(s[o++]=i>>>n-8&255,n-=8);return s.buffer}function i(t,e){const r=t.byteLength,n=new Uint8Array(t),i=e.indexOf("=")===e.length-1;i&&(e=e.substring(0,e.length-1));let o=0,s=0,a="";for(let u=0;u<r;u++){s=s<<8|n[u],o+=8;while(o>=5)a+=e[s>>>o-5&31],o-=5}if(o>0&&(a+=e[s<<5-o&31]),i)while(a.length%8!==0)a+="=";return a}t.exports=function(t){return{encode(e){return i("string"===typeof e?Uint8Array.from(e):e,t)},decode(e){for(const r of e)if(t.indexOf(r)<0)throw new Error("invalid base32 character");return n(e,t)}}}},abeb:function(t,e,r){var n,i;(function(r,o){n=[],i=function(){return o()}.apply(e,n),void 0===i||(t.exports=i)})(0,(function(){var t=[new Uint32Array([2157250,2157314,2157378,2157442,2157506,2157570,2157634,0,2157698,2157762,2157826,2157890,2157954,0,2158018,0]),new Uint32Array([2179041,6291456,2179073,6291456,2179105,6291456,2179137,6291456,2179169,6291456,2179201,6291456,2179233,6291456,2179265,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,2113729,2197345,2197377,2113825,2197409,2197441,2113921,2197473,2114017,2197505,2197537,2197569,2197601,2197633,2197665]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672,23068672,0,0,0,0,23068672]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064]),new Uint32Array([2196001,2196033,2196065,2196097,2196129,2196161,2196193,2196225,2196257,2196289,2196321,2196353,2196385,2196417,2196449,2196481]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2177025,6291456,2177057,6291456,2177089,6291456,2177121,6291456,2177153,6291456,2177185,6291456,2177217,6291456,2177249,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456]),new Uint32Array([2134435,2134531,2134627,2134723,2134723,2134819,2134819,2134915,2134915,2135011,2105987,2135107,2135203,2135299,2131587,2135395]),new Uint32Array([0,0,0,0,0,0,0,6291456,2168673,2169249,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354,2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354]),new Uint32Array([2125219,2125315,2152834,2152898,2125411,2152962,2153026,2125506,2125507,2125603,2153090,2153154,2153218,2153282,2153346,2105348]),new Uint32Array([2203393,6291456,2203425,6291456,2203457,6291456,2203489,6291456,6291456,6291456,6291456,2203521,6291456,2181281,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,6291456,2145538,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,6291456]),new Uint32Array([2139426,2160834,2160898,2160962,2134242,2161026,2161090,2161154,2161218,2161282,2161346,2161410,2138658,2161474,2161538,2134722]),new Uint32Array([2119939,2124930,2125026,2106658,2125218,2128962,2129058,2129154,2129250,2129346,2129442,2108866,2108770,2150466,2150530,2150594]),new Uint32Array([2201601,6291456,2201633,6291456,2201665,6291456,2201697,6291456,2201729,6291456,2201761,6291456,2201793,6291456,2201825,6291456]),new Uint32Array([2193537,2193569,2193601,2193633,2193665,2193697,2193729,2193761,2193793,2193825,2193857,2193889,2193921,2193953,2193985,2194017]),new Uint32Array([6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2190561,6291456,2190593,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2190625,6291456,2190657,6291456,23068672]),new Uint32Array([2215905,2215937,2215969,2216001,2216033,2216065,2216097,2216129,2216161,2216193,2216225,2216257,2105441,2216289,2216321,2216353]),new Uint32Array([23068672,18884130,23068672,23068672,23068672,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2191233,2191265,2191297,2191329,2191361,2191393,2191425,2117377,2191457,2191489,2191521,2191553,2191585,2191617,2191649,2117953]),new Uint32Array([2132227,2132323,2132419,2132419,2132515,2132515,2132611,2132707,2132707,2132803,2132899,2132899,2132995,2132995,2133091,2133187]),new Uint32Array([0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10609889,10610785,10609921,10610817,2222241]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([2219969,2157121,2157441,2157505,2157889,2157953,2220001,2158465,2158529,10575617,2156994,2157058,2129923,2130019,2157122,2157186]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2185249,6291456,2185281,6291456,2185313,6291456,2185345,6291456,2185377,6291456,2185409,6291456,2185441,6291456,2185473,6291456]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,6291456,0]),new Uint32Array([2183361,6291456,2183393,6291456,2183425,6291456,2183457,6291456,2183489,6291456,2183521,6291456,2183553,6291456,2183585,6291456]),new Uint32Array([2192161,2192193,2192225,2192257,2192289,2192321,2192353,2192385,2192417,2192449,2192481,2192513,2192545,2192577,2192609,2192641]),new Uint32Array([2212001,2212033,2212065,2212097,2212129,2212161,2212193,2212225,2212257,2212289,2212321,2212353,2212385,2212417,2212449,2207265]),new Uint32Array([2249825,2249857,2249889,2249921,2249954,2250018,2250082,2250145,2250177,2250209,2250241,2250274,2250337,2250370,2250433,2250465]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147905,2147969,2148033,2148097,2148161,2148225,2148289,2148353]),new Uint32Array([10485857,6291456,2197217,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2180353,2180385,2144033,2180417,2180449,2180481,2180513,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10610209,10610465,10610241,10610753,10609857]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2223842,2223906,2223970,2224034,2224098,2224162,2224226,2224290,2224354,2224418,2224482,2224546,2224610,2224674,2224738,2224802]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,18923650,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,18923714,23068672,23068672]),new Uint32Array([2126179,2125538,2126275,2126371,2126467,2125634,2126563,2105603,2105604,2125346,2126659,2126755,2126851,2098179,2098181,2098182]),new Uint32Array([2227426,2227490,2227554,2227618,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2192353,2240642,2240642,2240705,2240737,2240737,2240769,2240802,2240866,2240929,2240961,2240993,2241025,2241057,2241089,2241121]),new Uint32Array([6291456,2170881,2170913,2170945,6291456,2170977,6291456,2171009,2171041,6291456,6291456,6291456,2171073,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2132226,2132514,2163586,2132610,2160386,2133090,2133186,2160450,2160514,2160578,2133570,2106178,2160642,2133858,2160706,2160770]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10532162,10532226,10532290,10532354,10532418,10532482,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2098209,2108353,2108193,2108481,2170241,2111713,2105473,2105569,2105601,2112289,2112481,2098305,2108321,0,0,0]),new Uint32Array([2209121,2209153,2209185,2209217,2209249,2209281,2209313,2209345,2209377,2209409,2209441,2209473,2207265,2209505,2209537,2209569]),new Uint32Array([2189025,6291456,2189057,6291456,2189089,6291456,2189121,6291456,2189153,6291456,2189185,6291456,2189217,6291456,2189249,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2165764,2140004]),new Uint32Array([2215105,6291456,2215137,6291456,6291456,2215169,2215201,6291456,6291456,6291456,2215233,2215265,2215297,2215329,2215361,2215393]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([10505091,10505187,10505283,10505379,10505475,10505571,10505667,10505763,10505859,10505955,10506051,10506147,10506243,10506339,10506435,10506531]),new Uint32Array([2229730,2229794,2229858,2229922,2229986,2230050,2230114,2230178,2230242,2230306,2230370,2230434,2230498,2230562,2230626,2230690]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,0,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([6291456,6291456,6291456,6291456,10502115,10502178,10502211,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2190305,6291456,2190337,6291456,2190369,6291456,2190401,6291456,2190433,6291456,2190465,6291456,2190497,6291456,2190529,6291456]),new Uint32Array([2173793,2173985,2174017,6291456,2173761,2173697,6291456,2174689,6291456,2174017,2174721,6291456,6291456,2174753,2174785,2174817]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609,2100033]),new Uint32Array([2132898,2163842,2163906,2133282,2132034,2131938,2137410,2132802,2132706,2164866,2133282,2160578,2165186,2165186,6291456,6291456]),new Uint32Array([10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059,10501155,10501251,10501347,10501443]),new Uint32Array([2163458,2130978,2131074,2131266,2131362,2163522,2160130,2132066,2131010,2131106,2106018,2131618,2131298,2132034,2131938,2137410]),new Uint32Array([2212961,2116993,2212993,2213025,2213057,2213089,2213121,2213153,2213185,2213217,2213249,2209633,2213281,2213313,2213345,2213377]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2113729,2113825,2113921,2114017,2114113,2114209,2114305,2114401,2114497,2114593,2114689,2114785,2114881,2114977,2115073,2115169]),new Uint32Array([2238177,2238209,2238241,2238273,2238305,2238337,2238337,2217537,2238369,2238401,2238433,2238465,2215649,2238497,2238529,2238561]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0]),new Uint32Array([6291456,0,6291456,2145026,0,6291456,2145090,0,6291456,6291456,0,0,23068672,0,23068672,23068672]),new Uint32Array([2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129,2100289]),new Uint32Array([6291456,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0]),new Uint32Array([2187681,2187713,2187745,2187777,2187809,2187841,2187873,2187905,2187937,2187969,2188001,2188033,2188065,2188097,2188129,2188161]),new Uint32Array([0,10554498,10554562,10554626,10554690,10554754,10554818,10554882,10554946,10555010,10555074,6291456,6291456,0,0,0]),new Uint32Array([2235170,2235234,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0]),new Uint32Array([2181153,6291456,2188897,6291456,6291456,2188929,6291456,6291456,6291456,6291456,6291456,6291456,2111905,2100865,2188961,2188993]),new Uint32Array([2100833,2100897,0,0,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,2112289]),new Uint32Array([6291456,2172833,6291456,2172865,2172897,2172929,2172961,6291456,2172993,6291456,2173025,6291456,2173057,6291456,2173089,6291456]),new Uint32Array([6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,2190721]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456]),new Uint32Array([2184993,6291456,2185025,6291456,2185057,6291456,2185089,6291456,2185121,6291456,2185153,6291456,2185185,6291456,2185217,6291456]),new Uint32Array([2115265,2115361,2115457,2115553,2115649,2115745,2115841,2115937,2116033,2116129,2116225,2116321,2150658,2150722,2200225,6291456]),new Uint32Array([2168321,6291456,2168353,6291456,2168385,6291456,2168417,6291456,2168449,6291456,2168481,6291456,2168513,6291456,2168545,6291456]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,0,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2186625,0,0,6291456,6291456,2186657,2186689,2186721,2173505,0,10496067,10496163,10496259]),new Uint32Array([2178785,6291456,2178817,6291456,2178849,6291456,2178881,6291456,2178913,6291456,2178945,6291456,2178977,6291456,2179009,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2097152,0,0,0,2097152,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2197857,2197889,2197921,2197953,2197985,2198017,0,0,2198049,2198081,2198113,2198145,2198177,2198209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2098209,2167297,2111137,6291456]),new Uint32Array([2171393,6291456,2171425,6291456,2171457,6291456,2171489,6291456,2171521,6291456,2171553,6291456,2171585,6291456,2171617,6291456]),new Uint32Array([2206753,2206785,2195457,2206817,2206849,2206881,2206913,2197153,2197153,2206945,2117857,2206977,2207009,2207041,2207073,2207105]),new Uint32Array([0,0,0,0,0,0,0,23068672,0,0,0,0,2144834,2144898,0,2144962]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,0,2105505,2098241]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,2202049,6291456,2202081,6291456,2202113,6291456,2202145,6291456,2202177,6291456,2202209,6291456,2202241,6291456]),new Uint32Array([10501155,10501251,10501347,10501443,10501539,10501635,10501731,10501827,10501923,10502019,2141731,2105505,2098177,2155586,2166530,0]),new Uint32Array([2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441]),new Uint32Array([2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330,2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10502307,10502403,10502499,10502595,10502691,10502787,10502883,10502979,10503075,10503171,10503267,10503363,10503459,10503555,10503651,10503747]),new Uint32Array([2179937,2179969,2180001,2180033,2156545,2180065,2156577,2180097,2180129,2180161,2180193,2180225,2180257,2180289,2156737,2180321]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,0,0,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([2227682,2227746,2227810,2227874,2227938,2228002,2228066,2228130,2228194,2228258,2228322,2228386,2228450,2228514,2228578,2228642]),new Uint32Array([2105601,2169121,2108193,2170049,2181025,2181057,2112481,2108321,2108289,2181089,2170497,2100865,2181121,2173601,2173633,2173665]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180641,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,6291456,0,6291456,0,6291456,0,0,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2178273,6291456,2178305,6291456,2178337,6291456,2178369,6291456,2178401,6291456,2178433,6291456,2178465,6291456,2178497,6291456]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2237377,2237409,2236225,2237441,2237473,2217441,2215521,2215553,2217473,2237505,2237537,2209697,2237569,2215585,2237601,2237633]),new Uint32Array([2221985,2165601,2165601,2165665,2165665,2222017,2222017,2165729,2165729,2158913,2158913,2158913,2158913,2097281,2097281,2105921]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2149634,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2176897,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2176929,6291456,2176961,6291456,2176993,6291456]),new Uint32Array([2172641,6291456,2172673,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2172705,2172737,6291456,2172769,2172801,6291456]),new Uint32Array([2099173,2104196,2121667,2099395,2121763,2152258,2152322,2098946,2152386,2121859,2121955,2099333,2122051,2104324,2099493,2122147]),new Uint32Array([6291456,6291456,6291456,2145794,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2145858,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,0,0,6291456,0]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,0,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2239074,2239138,2239201,2239233,2239265,2239297,2239329,2239361,0,2239393,2239425,2239425,2239458,2239521,2239553,2209569]),new Uint32Array([14680064,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,6291456,23068672]),new Uint32Array([2108321,2108289,2113153,2098209,2180897,2180929,2180961,2111137,2098241,2108353,2170241,2170273,2180993,2105825,6291456,2105473]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146114,6291456,6291456,6291456,0,0,0]),new Uint32Array([2105921,2105921,2105921,2222049,2222049,2130977,2130977,2130977,2130977,2160065,2160065,2160065,2160065,2097729,2097729,2097729]),new Uint32Array([2218145,2214785,2207937,2218177,2218209,2192993,2210113,2212769,2218241,2218273,2216129,2218305,2216161,2218337,2218369,2218401]),new Uint32Array([0,0,0,2156546,2156610,2156674,2156738,2156802,0,0,0,0,0,2156866,23068672,2156930]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2213409,2213441,2213473,2213505,2213537,2213569,2213601,2213633,2213665,2195681,2213697,2213729,2213761,2213793,2213825,2213857]),new Uint32Array([2100033,2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2201857,6291456,2201889,6291456,2201921,6291456,2201953,6291456,2201985,6291456,2202017,6291456,2176193,2176257,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2188193,2188225,2188257,2188289,2188321,2188353,2188385,2188417,2188449,2188481,2188513,2188545,2188577,2188609,2188641,0]),new Uint32Array([10554529,2221089,0,10502113,10562017,10537921,10538049,2221121,2221153,0,0,0,0,0,0,0]),new Uint32Array([2213889,2213921,2213953,2213985,2214017,2214049,2214081,2194177,2214113,2214145,2214177,2214209,2214241,2214273,2214305,2214337]),new Uint32Array([2166978,2167042,2099169,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180545,6291456,6291456,6291456]),new Uint32Array([10518915,10519011,10519107,10519203,2162242,2162306,2159554,2162370,2159362,2159618,2105922,2162434,2159746,2162498,2159810,2159874]),new Uint32Array([2161730,2161794,2135586,2161858,2161922,2137186,2131810,2160290,2135170,2161986,2137954,2162050,2162114,2162178,10518723,10518819]),new Uint32Array([10506627,10506723,10506819,10506915,10507011,10507107,10507203,10507299,10507395,10507491,10507587,10507683,10507779,10507875,10507971,10508067]),new Uint32Array([6291456,23068672,23068672,23068672,0,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2175873,2175905,2175937,2175969,2176001,2176033,2176065,2176097,2176129,2176161,2176193,2176225,2176257,2176289,2176321,2176353]),new Uint32Array([2140006,2140198,2140390,2140582,2140774,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241]),new Uint32Array([0,23068672,0,0,0,0,0,0,0,2145154,2145218,2145282,6291456,0,2145346,0]),new Uint32Array([0,0,0,0,10531458,10495395,2148545,2143201,2173473,2148865,2173505,0,2173537,0,2173569,2149121]),new Uint32Array([10537282,10495683,2148738,2148802,2148866,0,6291456,2148930,2186593,2173473,2148737,2148865,2148802,10495779,10495875,10495971]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2215425,2215457,2215489,2215521,2215553,2215585,2215617,2215649,2215681,2215713,2215745,2215777,2192033,2215809,2215841,2215873]),new Uint32Array([2242049,2242081,2242113,2242145,2242177,2242209,2242241,2242273,2215937,2242305,2242338,2242401,2242433,2242465,2242497,2216001]),new Uint32Array([10554529,2221089,0,0,10562017,10502113,10538049,10537921,2221185,10489601,10489697,10609889,10609921,2141729,2141793,10610273]),new Uint32Array([2141923,2142019,2142115,2142211,2142307,2142403,2142499,2142595,2142691,0,0,0,0,0,0,0]),new Uint32Array([0,2221185,2221217,10609857,10609857,10489601,10489697,10609889,10609921,2141729,2141793,2221345,2221377,2221409,2221441,2187105]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18923970,23068672,23068672,23068672,0,6291456,6291456]),new Uint32Array([2183105,6291456,2183137,6291456,2183169,6291456,2183201,6291456,2183233,6291456,2183265,6291456,2183297,6291456,2183329,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2134434,2134818,2097666,2097186,2097474,2097698,2105986,2131586,2132450,2131874,2131778,2135970,2135778,2161602,2136162,2161666]),new Uint32Array([2236865,2236897,2236930,2236993,2237025,2235681,2237058,2237121,2237153,2237185,2237217,2217281,2237250,2191233,2237313,2237345]),new Uint32Array([2190049,6291456,2190081,6291456,2190113,6291456,2190145,6291456,2190177,6291456,2190209,6291456,2190241,6291456,2190273,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2101922,2102050,2102178,2102306,10498755,10498851,10498947,10499043,10499139,10499235,10499331,10499427,10499523,10489604,10489732,10489860]),new Uint32Array([2166914,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2181601,2170561,2181633,2181665,2170753,2181697,2172897,2170881,2181729,2170913,2172929,2113441,2181761,2181793,2171009,2173761]),new Uint32Array([0,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2248001,2248033,2248066,2248130,2248193,2248226,2248289,2248322,2248385,2248417,2216673,2248450,2248514,2248577,2248610,2248673]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([2169729,6291456,2169761,6291456,2169793,6291456,2169825,6291456,2169857,2169889,6291456,2169921,6291456,2143329,6291456,2098305]),new Uint32Array([2162178,2163202,2163266,2135170,2136226,2161986,2137954,2159426,2159490,2163330,2159554,2163394,2159682,2139522,2136450,2159746]),new Uint32Array([2173953,2173985,0,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2174209,2174241,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,4271169,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2174273]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,2190785,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2189793,6291456,2189825,6291456,2189857,6291456,2189889,6291456,2189921,6291456,2189953,6291456,2189985,6291456,2190017,6291456]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,0,2098305,2108321,2108289,2100865,2113153,2108481,2113345,0,2098209,2111137]),new Uint32Array([2172129,6291456,2172161,6291456,2172193,6291456,2172225,6291456,2172257,6291456,2172289,6291456,2172321,6291456,2172353,6291456]),new Uint32Array([2214753,6291456,2214785,6291456,6291456,2214817,2214849,2214881,2214913,2214945,2214977,2215009,2215041,2215073,2194401,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10610305,10610337,10575617,2221761,10610401,10610433,10502177,0,10610465,10610497,10610529,10610561,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2187105,2187137,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2199393,2199425,2199457,2199489,2199521,2199553,2199585,2199617,2199649,2199681,2199713,2199745,2199777,2199809,2199841,0]),new Uint32Array([2217249,2217281,2217313,2217345,2217377,2217409,2217441,2217473,2215617,2217505,2217537,2217569,2214753,2217601,2217633,2217665]),new Uint32Array([2170273,2170305,6291456,2170337,2170369,6291456,2170401,2170433,2170465,6291456,6291456,6291456,2170497,2170529,6291456,2170561]),new Uint32Array([2188673,6291456,2188705,2188737,2188769,6291456,6291456,2188801,6291456,2188833,6291456,2188865,6291456,2180929,2181505,2180897]),new Uint32Array([10489988,10490116,10490244,10490372,10490500,10490628,10490756,10490884,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147393,2147457,2147521,2147585,2147649,2147713,2147777,2147841]),new Uint32Array([23068672,23068672,0,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2241153,2241185,2241217,2215809,2241250,2241313,2241345,2241377,2217921,2241377,2241409,2215873,2241441,2241473,2241505,2241537]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220417,2220417,2220449,2220449,2220481,2220481,2220513,2220513,2220545,2220545,2220577,2220577,2220609,2220609,2220641,2220641]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2144002,0,6291456,6291456,0,0,6291456,6291456,6291456]),new Uint32Array([2167105,2167137,2167169,2167201,2167233,2167265,2167297,2167329,2167361,2167393,2167425,2167457,2167489,2167521,2167553,2167585]),new Uint32Array([10575521,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2234146,2234210,2234274,2234338,2234402,2234466,2234530,2234594,2234658,2234722,2234786,2234850,2234914,2234978,2235042,2235106]),new Uint32Array([0,0,0,0,0,0,0,2180577,0,0,0,0,0,2180609,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456]),new Uint32Array([2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2242529,2242561,2242593,2242625,2242657,2242689,2242721,2242753,2207937,2218177,2242785,2242817,2242849,2242882,2242945,2242977]),new Uint32Array([2118049,2105345,2118241,2105441,2118433,2118529,2118625,2118721,2118817,2200257,2200289,2191809,2200321,2200353,2200385,2200417]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2185505,6291456,2185537,6291456,2185569,6291456,2185601,6291456,2185633,6291456,2185665,6291456,2185697,6291456,2185729,6291456]),new Uint32Array([2231970,2232034,2232098,2232162,2232226,2232290,2232354,2232418,2232482,2232546,2232610,2232674,2232738,2232802,2232866,2232930]),new Uint32Array([2218625,2246402,2246466,2246530,2246594,2246657,2246689,2246689,2218657,2219681,2246721,2246753,2246785,2246818,2246881,2208481]),new Uint32Array([2197025,2197057,2197089,2197121,2197153,2197185,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2219137,2216961,2219169,2219201,2219233,2219265,2219297,2217025,2215041,2219329,2217057,2219361,2217089,2219393,2197153,2219426]),new Uint32Array([23068672,23068672,23068672,0,0,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713]),new Uint32Array([2243522,2243585,2243617,2243649,2243681,2210113,2243713,2243746,2243810,2243874,2243937,2243970,2244033,2244065,2244097,2244129]),new Uint32Array([2178017,6291456,2178049,6291456,2178081,6291456,2178113,6291456,2178145,6291456,2178177,6291456,2178209,6291456,2178241,6291456]),new Uint32Array([10553858,2165314,10518722,6291456,10518818,0,10518914,2130690,10519010,2130786,10519106,2130882,10519202,2165378,10554050,2165506]),new Uint32Array([0,0,2135491,2135587,2135683,2135779,2135875,2135971,2135971,2136067,2136163,2136259,2136355,2136355,2136451,2136547]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2220033,2220033,2220065,2220065,2220065,2220065,2220097,2220097,2220097,2220097,2220129,2220129,2220129,2220129,2220161,2220161]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2100897,2100898,2100899,2150018,2100865,2100866,2100867,2100868,2150082,2108481,2109858,2109859,2105569,2105505,2098241,2105601]),new Uint32Array([2097217,2097505,2097505,2097505,2097505,2165570,2165570,2165634,2165634,2165698,2165698,2097858,2097858,0,0,2097152]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10503843,10503939,10504035,10504131,10504227,10504323,10504419,10504515,10504611,10504707,10504803,10504899,10504995,10491140,10491268,0]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,2235297,2220769,2235329,2235361]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2222401,2222433,2222465,10531394,2222497,2222529,2222561,0,2222593,2222625,2222657,2222689,2222721,2222753,2222785,0]),new Uint32Array([2184481,6291456,2184513,6291456,2184545,6291456,2184577,6291456,2184609,6291456,2184641,6291456,2184673,6291456,2184705,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2105570,2156034,2126947,2156098,2153666,2127043,2127139,2156162,0,2127235,2156226,2156290,2156354,2156418,2127331,2127427]),new Uint32Array([2215905,2207041,2153185,2241569,2241601,2241633,2241665,2241697,2241730,2241793,2241825,2241857,2241889,2241921,2241954,2242017]),new Uint32Array([2203777,6291456,2203809,6291456,2203841,6291456,2203873,6291456,2203905,6291456,2173121,2180993,2181249,2203937,2181313,0]),new Uint32Array([2168577,6291456,2168609,6291456,2168641,6291456,2168673,6291456,2168705,6291456,2168737,6291456,2168769,6291456,2168801,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,0,0]),new Uint32Array([2210113,2195521,2210145,2210177,2210209,2210241,2210273,2210305,2210337,2210369,2210401,2210433,2210465,2210497,2210529,2210561]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2228706,2228770,2228834,2228898,2228962,2229026,2229090,2229154,2229218,2229282,2229346,2229410,2229474,2229538,2229602,2229666]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,18874368,18874368,18874368,0,0]),new Uint32Array([2133089,2133281,2133281,2133281,2133281,2160577,2160577,2160577,2160577,2097441,2097441,2097441,2097441,2133857,2133857,2133857]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089]),new Uint32Array([2178529,6291456,2178561,6291456,2178593,6291456,2178625,6291456,2178657,6291456,2178689,6291456,2178721,6291456,2178753,6291456]),new Uint32Array([2221025,2221025,2221057,2221057,2159329,2159329,2159329,2159329,2097217,2097217,2158914,2158914,2158978,2158978,2159042,2159042]),new Uint32Array([2208161,2208193,2208225,2208257,2194433,2208289,2208321,2208353,2208385,2208417,2208449,2208481,2208513,2208545,2208577,2208609]),new Uint32Array([2169217,6291456,2169249,6291456,2169281,6291456,2169313,6291456,2169345,6291456,2169377,6291456,2169409,6291456,2169441,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2133187,2133283,2133283,2133379,2133475,2133571,2133667,2133667,2133763,2133859,2133955,2134051,2134147,2134147,2134243,2134339]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,0]),new Uint32Array([2193089,2193121,2193153,2193185,2117665,2117569,2193217,2193249,2193281,2193313,2193345,2193377,2193409,2193441,2193473,2193505]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184225,6291456,2184257,6291456,2184289,6291456,2184321,6291456,2184353,6291456,2184385,6291456,2184417,6291456,2184449,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2100833,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2200801,2200833,2200865,0]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2181153,2105505,2181185,2167617,2180993]),new Uint32Array([2160002,2160066,2160130,2160194,2160258,2132066,2131010,2131106,2106018,2131618,2160322,2131298,2132034,2131938,2137410,2132226]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2183617,6291456,2183649,6291456,2183681,6291456,2183713,6291456,2183745,6291456,2183777,6291456,2183809,6291456,2183841,6291456]),new Uint32Array([0,6291456,6291456,0,6291456,0,0,6291456,6291456,0,6291456,0,0,6291456,0,0]),new Uint32Array([2250977,2251009,2251041,2251073,2195009,2251106,2251169,2251201,2251233,2251265,2251297,2251330,2251394,2251457,2251489,2251521]),new Uint32Array([2205729,2205761,2205793,2205825,2205857,2205889,2205921,2205953,2205985,2206017,2206049,2206081,2206113,2206145,2206177,2206209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2143170,2168993,6291456,2169025,6291456,2169057,6291456,2169089,6291456,2143234,2169121,6291456,2169153,6291456,2169185,6291456]),new Uint32Array([23068672,23068672,2190689,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2248706,2248769,2248801,2248833,2248865,2248897,2248929,2248962,2249026,2249090,2249154,2240705,2249217,2249249,2249281,2249313]),new Uint32Array([10485857,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10495394,6291456,2098209,6291456,6291456,2097152,6291456,10531394]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([6291456,2186977,6291456,6291456,6291456,6291456,6291456,10537858,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2209601,2209633,2209665,2209697,2209729,2209761,2209793,2209825,2209857,2209889,2209921,2209953,2209985,2210017,2210049,2210081]),new Uint32Array([10501539,10501635,10501731,10501827,10501923,10502019,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2194561,2194593,2194625,2119777,2119873,2194657,2194689,2194721,2194753,2194785,2194817,2194849,2194881,2194913,2194945,2194977]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569]),new Uint32Array([2222818,2222882,2222946,2223010,2223074,2223138,2223202,2223266,2223330,2223394,2223458,2223522,2223586,2223650,2223714,2223778]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672]),new Uint32Array([0,2179553,2179585,2179617,2179649,2144001,2179681,2179713,2179745,2179777,2179809,2156705,2179841,2156833,2179873,2179905]),new Uint32Array([6291456,23068672,6291456,2145602,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,6291456,0,0]),new Uint32Array([2196513,2196545,2196577,2196609,2196641,2196673,2196705,2196737,2196769,2196801,2196833,2196865,2196897,2196929,2196961,2196993]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2177281,6291456,2177313,6291456,2177345,6291456,2177377,6291456,2177409,6291456,2177441,6291456,2177473,6291456,2177505,6291456]),new Uint32Array([2187137,2221473,2221505,2221537,2221569,6291456,6291456,10610209,10610241,10537986,10537986,10537986,10537986,10609857,10609857,10609857]),new Uint32Array([2243009,2243041,2216033,2243074,2243137,2243169,2243201,2219617,2243233,2243265,2243297,2243329,2243362,2243425,2243457,2243489]),new Uint32Array([10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,2097152,4194304,4194304,0,0]),new Uint32Array([2143042,6291456,2143106,2143106,2168833,6291456,2168865,6291456,6291456,2168897,6291456,2168929,6291456,2168961,6291456,2143170]),new Uint32Array([6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2204193,2204225,2204257,2204289,2204321,2204353,2204385,2204417,2204449,2204481,2204513,2204545,2204577,2204609,2204641,2204673]),new Uint32Array([2202753,6291456,2202785,6291456,2202817,6291456,2202849,6291456,2202881,6291456,2202913,6291456,2202945,6291456,2202977,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321]),new Uint32Array([2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842,2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842]),new Uint32Array([2253313,2253346,2253409,2253441,2253473,2253505,2253537,2253569,2253601,2253634,2219393,2253697,2253729,2253761,2253793,2253825]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([2162562,2162626,2131362,2162690,2159938,2160002,2162754,2162818,2160130,2162882,2160194,2160258,2160834,2160898,2161026,2161090]),new Uint32Array([2175361,2175393,2175425,2175457,2175489,2175521,2175553,2175585,2175617,2175649,2175681,2175713,2175745,2175777,2175809,2175841]),new Uint32Array([2253858,2253921,2253954,2254018,2254082,2196737,2254145,2196865,2254177,2254209,2254241,2254273,2197025,2254306,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2202113,2204129,2188705,2204161]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953]),new Uint32Array([2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,0,2108417,0,2111713,2100897,2111905]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2175425,2175489,2175809,2175905,2175937,2175937,2176193,2176417,2180865,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,2143298,2143298,2143298,2143362,2143362,2143362,2143426,2143426,2143426,2171105,6291456,2171137]),new Uint32Array([2120162,2120258,2151618,2151682,2151746,2151810,2151874,2151938,2152002,2120035,2120131,2120227,2152066,2120323,2152130,2120419]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195361,2142433,2236065,2236097,2236129,2236161,2118241,2117473,2236193,2236225,2236257,2236289,0,0,0,0]),new Uint32Array([2189281,6291456,2189313,6291456,2189345,6291456,2189377,6291456,2189409,6291456,2189441,6291456,2189473,6291456,2189505,6291456]),new Uint32Array([6291456,6291456,2145922,6291456,6291456,6291456,6291456,2145986,6291456,6291456,6291456,6291456,2146050,6291456,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10502113,10562017,10610401,10502177,10610433,10538049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,2186401,0,2186433,0,2186465,0,2186497]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,23068672,23068672]),new Uint32Array([0,0,2198241,2198273,2198305,2198337,2198369,2198401,0,0,2198433,2198465,2198497,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,0,23068672,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,2133281,2097505,2105889,0,2097697,2135777,2097633,2097441]),new Uint32Array([2197889,2197921,2197953,2197985,2198017,2198049,2198081,2198113,2198145,2198177,2198209,2198241,2198273,2198305,2198337,2198369]),new Uint32Array([2132514,2132610,2160386,2133090,2133186,2160450,2160514,2133282,2160578,2133570,2106178,2160642,2133858,2160706,2160770,2134146]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,6291456,23068672,23068672,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2184737,6291456,2184769,6291456,2184801,6291456,2184833,6291456,2184865,6291456,2184897,6291456,2184929,6291456,2184961,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,2186753,6291456,6291456,6291456,6291456,2186785,2186817,2186849,2173569,2186881,10496355,10495395,10575521]),new Uint32Array([0,0,2097729,0,0,0,0,2106017,0,2097505,0,2097185,0,2135777,2097633,2097441]),new Uint32Array([2189537,6291456,2189569,6291456,2189601,6291456,2189633,6291456,2189665,6291456,2189697,6291456,2189729,6291456,2189761,6291456]),new Uint32Array([2202497,6291456,2202529,6291456,2202561,6291456,2202593,6291456,2202625,6291456,2202657,6291456,2202689,6291456,2202721,6291456]),new Uint32Array([2245217,2218369,2245249,2245282,2245345,2245377,2245410,2245474,2245537,2245569,2245601,2245633,2245665,2245665,2245697,2245729]),new Uint32Array([6291456,0,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,23068672,6291456,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,2097377,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2176641,6291456,2176673,6291456,2176705,6291456,2176737,6291456,2176769,6291456,2176801,6291456,2176833,6291456,2176865,6291456]),new Uint32Array([2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2174369,2174369,0,0,2100833,2100737]),new Uint32Array([2116513,2190817,2190849,2190881,2190913,2190945,2116609,2190977,2191009,2191041,2191073,2117185,2191105,2191137,2191169,2191201]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2167617,2167649,2167681,2167713,2167745,2167777,2167809,6291456,2167841,2167873,2167905,2167937,2167969,2168001,2168033,4240130]),new Uint32Array([2165122,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122,2134562,2132162,2132834,2136866]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2186209,2186241,2186273,2186305,2186337,2186369,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,0,23068672,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([0,10537921,10610689,10610273,10610497,10610529,10610305,10610721,10489601,10489697,10610337,10575617,10554529,2221761,2197217,10496577]),new Uint32Array([2105473,2105569,2105601,2112289,0,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2125346,2153410,2153474,2127394,2153538,2153602,2153666,2153730,2105507,2105476,2153794,2153858,2153922,2153986,2154050,2105794]),new Uint32Array([2200449,2119681,2200481,2153313,2199873,2199905,2199937,2200513,2200545,2200577,2200609,2119105,2119201,2119297,2119393,2119489]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2175777,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2222273,2197217,2221473,2221505,2221089,2222305,2200865,2099681,2104481,2222337,2099905,2120737,2222369,2103713,2100225,2098785]),new Uint32Array([2201377,6291456,2201409,6291456,2201441,6291456,2201473,6291456,2201505,6291456,2201537,6291456,2201569,6291456,6291456,23068672]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([2200897,6291456,2200929,6291456,2200961,6291456,2200993,6291456,2201025,6291456,2180865,6291456,2201057,6291456,2201089,6291456]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2161154,2161410,2138658,2161474,2161538,2097666,2097186,2097474,2162946,2132450,2163010,2163074,2136162,2163138,2161666,2161730]),new Uint32Array([2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953]),new Uint32Array([0,0,0,0,0,0,23068672,23068672,0,0,0,0,2145410,2145474,0,6291456]),new Uint32Array([2244161,2216065,2212769,2244193,2244225,2244257,2244290,2244353,2244385,2244417,2244449,2218273,2244481,2244514,2244577,2244609]),new Uint32Array([2125730,2125699,2125795,2125891,2125987,2154114,2154178,2154242,2154306,2154370,2154434,2154498,2126082,2126178,2126274,2126083]),new Uint32Array([2237665,2237697,2237697,2237697,2237730,2237793,2237825,2237857,2237890,2237953,2237985,2238017,2238049,2238081,2238113,2238145]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150146,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2214369,2238593,2238625,2238657,2238689,2238721,2238753,2238785,2238817,2238850,2238913,2238945,2238977,2235457,2239009,2239041]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2252066,2252130,2252193,2252225,2252257,2252290,2252353,2252385,2252417,2252449,2252481,2252513,2252545,2252578,2252641,2252673]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,2197857]),new Uint32Array([2224866,2224930,2224994,2225058,2225122,2225186,2225250,2225314,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2219490,2219554,2219617,2219649,2219681,2219714,2219778,2219842,2219905,2219937,0,0,0,0,0,0]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665]),new Uint32Array([2220161,2220161,2220193,2220193,2220193,2220193,2220225,2220225,2220225,2220225,2220257,2220257,2220257,2220257,2220289,2220289]),new Uint32Array([2192673,2192705,2192737,2192769,2192801,2192833,2192865,2118049,2192897,2117473,2117761,2192929,2192961,2192993,2193025,2193057]),new Uint32Array([2179297,6291456,2179329,6291456,2179361,6291456,2179393,6291456,2179425,6291456,2179457,6291456,2179489,6291456,2179521,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2235745,2235777,2193633,2235809,2235841,2235873,2235905,2235937,2235969,2116513,2116705,2236001,2200513,2199905,2200545,2236033]),new Uint32Array([2113153,2108481,2113345,2113441,2232993,2233025,0,0,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761]),new Uint32Array([2170593,6291456,2170625,6291456,2170657,6291456,2170689,2170721,6291456,2170753,6291456,6291456,2170785,6291456,2170817,2170849]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2166786,2166850,0,0,0,0]),new Uint32Array([23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,0]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2134562,2132162,2132834,2136866,2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058]),new Uint32Array([6291456,6291456,2098337,2101441,10531458,2153473,6291456,6291456,10531522,2100737,2108193,6291456,2106499,2106595,2106691,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2233122,2233186,2233250,2233314,2233378,2233442,2233506,2233570,2233634,2233698,2233762,2233826,2233890,2233954,2234018,2234082]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2205217,2205249,2205281,2205313,2205345,2205377,2205409,2205441,2205473,2205505,2205537,2205569,2205601,2205633,2205665,2205697]),new Uint32Array([6291456,0,6291456,0,0,0,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([2173601,2173761,2174081,2173569,2174241,2174113,2173953,6291456,2174305,6291456,2174337,6291456,2174369,6291456,2174401,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2152450,2152514,2099653,2104452,2099813,2122243,2099973,2152578,2122339,2122435,2122531,2122627,2122723,2104580,2122819,2152642]),new Uint32Array([2236385,2236417,2236449,2236482,2236545,2215425,2236577,2236609,2236641,2236673,2215457,2236705,2236737,2236770,2215489,2236833]),new Uint32Array([2163394,2159746,2163458,2131362,2163522,2160130,2163778,2132226,2163842,2132898,2163906,2161410,2138658,2097666,2136162,2163650]),new Uint32Array([2218721,2246913,2246946,2216385,2247010,2247074,2215009,2247137,2247169,2216481,2247201,2247233,2247266,2247330,2247330,0]),new Uint32Array([2129730,2129762,2129858,2129731,2129827,2156482,2156482,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0,0,0,0,6291456,0,0]),new Uint32Array([2203969,2204001,2181377,2204033,2204065,6291456,2204097,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2169473,6291456,2169505,6291456,2169537,6291456,2169569,6291456,2169601,6291456,2169633,6291456,2169665,6291456,2169697,6291456]),new Uint32Array([2141542,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220801,2220801,2220801,2220801,2220833,2220833,2220865,2220865,2220865,2220865,2220897,2220897,2220897,2220897,2139873,2139873]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,0,0,0,0,0,0,6291456,0]),new Uint32Array([2214849,2218433,2218465,2218497,2218529,2218561,2214881,2218593,2218625,2218657,2218689,2218721,2218753,2216545,2218785,2218817]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058,2165122,2132802,2132706,2164866]),new Uint32Array([2207649,2207681,2207713,2207745,2207777,2207809,2207841,2207873,2207905,2207937,2207969,2208001,2208033,2208065,2208097,2208129]),new Uint32Array([2123683,2105092,2152706,2123779,2105220,2152770,2100453,2098755,2123906,2124002,2124098,2124194,2124290,2124386,2124482,2124578]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,0,0,0,0,0,0,0,10485857]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([10508163,10508259,10508355,10508451,2200129,2200161,2192737,2200193,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203553,6291456,2203585,6291456,6291456,6291456,2203617,6291456,2203649,6291456,2203681,6291456,2203713,6291456,2203745,6291456]),new Uint32Array([18884449,18884065,23068672,18884417,18884034,18921185,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18874368]),new Uint32Array([2247393,2247426,2247489,2247521,2247553,2247586,2247649,2247681,2247713,2247745,2247777,2247810,2247873,2247905,2247937,2247969]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,2160577,2133857,2235297,0,2235329,0]),new Uint32Array([2182593,6291456,2182625,6291456,2182657,6291456,2182689,6291456,2182721,6291456,2182753,6291456,2182785,6291456,2182817,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102402,2102403,6291456,2110050]),new Uint32Array([2149890,2108323,2149954,6291456,2113441,6291456,2149057,6291456,2113441,6291456,2105473,2167265,2111137,2105505,6291456,2108353]),new Uint32Array([2219105,2219137,2195233,2251554,2251617,2251649,2251681,2251713,2251746,2251810,2251873,2251905,2251937,2251970,2252033,2219169]),new Uint32Array([2203009,6291456,2203041,6291456,2203073,6291456,2203105,6291456,2203137,6291456,2203169,6291456,2203201,6291456,2203233,6291456]),new Uint32Array([2128195,2128291,2128387,2128483,2128579,2128675,2128771,2128867,2128963,2129059,2129155,2129251,2129347,2129443,2129539,2129635]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2140964,2141156,2140966,2141158,2141350]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2225378,2225442,2225506,2225570,2225634,2225698,2225762,2225826,2225890,2225954,2226018,2226082,2226146,2226210,2226274,2226338]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417]),new Uint32Array([2108353,2108417,0,2105601,2108193,2157121,2157313,2157377,2157441,2100897,6291456,2108419,2173953,2173633,2173633,2173953]),new Uint32Array([2111713,2173121,2111905,2098177,2173153,2173185,2173217,2113153,2113345,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2190753]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,2197249,6291456,2117377,2197281,2197313,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,23068672]),new Uint32Array([2173281,6291456,2173313,6291456,2173345,6291456,2173377,6291456,0,0,10532546,6291456,6291456,6291456,10562017,2173441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2159426,2159490,2159554,2159362,2159618,2159682,2139522,2136450,2159746,2159810,2159874,2130978,2131074,2131266,2131362,2159938]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203233,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2203265,6291456,2203297,6291456,2203329,2203361,6291456]),new Uint32Array([6291456,6291456,2148418,2148482,2148546,0,6291456,2148610,2186529,2186561,2148417,2148545,2148482,10495778,2143969,10495778]),new Uint32Array([2134146,2139426,2160962,2134242,2161218,2161282,2161346,2161410,2138658,2134722,2134434,2134818,2097666,2097346,2097698,2105986]),new Uint32Array([2198881,2198913,2198945,2198977,2199009,2199041,2199073,2199105,2199137,2199169,2199201,2199233,2199265,2199297,2199329,2199361]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([10610561,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2183873,6291456,2183905,6291456,2183937,6291456,2183969,6291456,2184001,6291456,2184033,6291456,2184065,6291456,2184097,6291456]),new Uint32Array([2244642,2244706,2244769,2244801,2218305,2244833,2244865,2244897,2244929,2244961,2244993,2245026,2245089,2245122,2245185,0]),new Uint32Array([6291456,6291456,2116513,2116609,2116705,2116801,2199873,2199905,2199937,2199969,2190913,2200001,2200033,2200065,2200097,2191009]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2180673,2180705,2180737,2180769,2180801,2180833,0,0]),new Uint32Array([2098081,2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150402]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,2145666,2145730,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665]),new Uint32Array([2187073,6291456,6291456,6291456,6291456,2098241,2098241,2108353,2100897,2111905,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102404,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2100612,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10485857]),new Uint32Array([2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([2217697,2217729,2217761,2217793,2217825,2217857,2217889,2217921,2217953,2215873,2217985,2215905,2218017,2218049,2218081,2218113]),new Uint32Array([2211233,2218849,2216673,2218881,2218913,2218945,2218977,2219009,2216833,2219041,2215137,2219073,2216865,2209505,2219105,2216897]),new Uint32Array([2240097,2240129,2240161,2240193,2240225,2240257,2240289,2240321,2240353,2240386,2240449,2240481,2240513,2240545,2207905,2240578]),new Uint32Array([6291456,6291456,2202273,6291456,2202305,6291456,2202337,6291456,2202369,6291456,2202401,6291456,2202433,6291456,2202465,6291456]),new Uint32Array([0,23068672,23068672,18923394,23068672,18923458,18923522,18884099,18923586,18884195,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2201121,6291456,2201153,6291456,2201185,6291456,2201217,6291456,2201249,6291456,2201281,6291456,2201313,6291456,2201345,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2211041,2211073,2211105,2211137,2211169,2211201,2211233,2211265,2211297,2211329,2211361,2211393,2211425,2211457,2211489,2211521]),new Uint32Array([2181825,6291456,2181857,6291456,2181889,6291456,2181921,6291456,2181953,6291456,2181985,6291456,2182017,6291456,2182049,6291456]),new Uint32Array([2162337,2097633,2097633,2097633,2097633,2132705,2132705,2132705,2132705,2097153,2097153,2097153,2097153,2133089,2133089,2133089]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,2148545,6291456,2173473,6291456,2148865,6291456,2173505,6291456,2173537,6291456,2173569,6291456,2149121,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2207137,2207169,2207201,2207233,2207265,2207297,2207329,2207361,2207393,2207425,2207457,2207489,2207521,2207553,2207585,2207617]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,23068672,23068672,0,0,0,0,0,0]),new Uint32Array([2198401,2198433,2198465,2198497,0,2198529,2198561,2198593,2198625,2198657,2198689,2198721,2198753,2198785,2198817,2198849]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2216385,2118721,2216417,2216449,2216481,2216513,2216545,2211233,2216577,2216609,2216641,2216673,2216705,2216737,2216737,2216769]),new Uint32Array([2216801,2216833,2216865,2216897,2216929,2216961,2216993,2215169,2217025,2217057,2217089,2217121,2217154,2217217,0,0]),new Uint32Array([2210593,2191809,2210625,2210657,2210689,2210721,2210753,2210785,2210817,2210849,2191297,2210881,2210913,2210945,2210977,2211009]),new Uint32Array([0,0,2105825,0,0,2111905,2105473,0,0,2112289,2108193,2112481,2112577,0,2098305,2108321]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,2097153,2134241,0,2132705,0,0,2131297,0,2133089,0,2133857,0,2220769,0,2235361]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,6291456,6291456,14680064]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2171873,6291456,2171905,6291456,2171937,6291456,2171969,6291456,2172001,6291456,2172033,6291456,2172065,6291456,2172097,6291456]),new Uint32Array([2220929,2220929,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2133857,2134145,2134145,2134145,2134145,2134241,2134241,2134241,2134241,2105889,2105889,2105889,2105889,2097185,2097185,2097185]),new Uint32Array([2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,10499619,10499715,10499811,10499907]),new Uint32Array([0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2144322,2144386,2144450,2144514,2144578,2144642,2144706,2144770]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0,0,2111905,2105473,2105569]),new Uint32Array([2236321,2236353,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2152194,2121283,2103684,2103812,2097986,2098533,2097990,2098693,2098595,2098853,2099013,2103940,2121379,2121475,2121571,2104068]),new Uint32Array([2206241,2206273,2206305,2206337,2206369,2206401,2206433,2206465,2206497,2206529,2206561,2206593,2206625,2206657,2206689,2206721]),new Uint32Array([6291456,6291456,6291456,6291456,16777216,16777216,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,10538818,10538882,6291456,6291456,2150338]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2214369,2214401,2214433,2214465,2214497,2214529,2214561,2214593,2194977,2214625,2195073,2214657,2214689,2214721,6291456,6291456]),new Uint32Array([2097152,2097152,2097152,2097152,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2182081,6291456,2182113,6291456,2182145,6291456,2182177,6291456,2182209,6291456,2182241,6291456,2182273,6291456,2182305,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146881,2146945,2147009,2147073,2147137,2147201,2147265,2147329]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672]),new Uint32Array([0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2122915,2123011,2123107,2104708,2123203,2123299,2123395,2100133,2104836,2100290,2100293,2104962,2104964,2098052,2123491,2123587]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,2171169,6291456,2171201,6291456,2171233,6291456,2171265,6291456,2171297,6291456,2171329,6291456,6291456,2171361,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2148994,2149058,2149122,0,6291456,2149186,2186945,2173537,2148993,2149121,2149058,10531458,10496066,0]),new Uint32Array([2195009,2195041,2195073,2195105,2195137,2195169,2195201,2195233,2195265,2195297,2195329,2195361,2195393,2195425,2195457,2195489]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,6291456,6291456]),new Uint32Array([2182849,6291456,2182881,6291456,2182913,6291456,2182945,6291456,2182977,6291456,2183009,6291456,2183041,6291456,2183073,6291456]),new Uint32Array([2211553,2210081,2211585,2211617,2211649,2211681,2211713,2211745,2211777,2211809,2209569,2211841,2211873,2211905,2211937,2211969]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2166594,2127298,2166658,2142978,2141827,2166722]),new Uint32Array([2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2185761,2185793,2185825,2185857,2185889,2185921,0,0]),new Uint32Array([6291456,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456]),new Uint32Array([0,0,0,2220961,2220961,2220961,2220961,2144193,2144193,2159201,2159201,2159265,2159265,2144194,2220993,2220993]),new Uint32Array([2192641,2235393,2235425,2152257,2116609,2235457,2235489,2200065,2235521,2235553,2235585,2212449,2235617,2235649,2235681,2235713]),new Uint32Array([2194049,2194081,2194113,2194145,2194177,2194209,2194241,2194273,2194305,2194337,2194369,2194401,2194433,2194465,2194497,2194529]),new Uint32Array([2196673,2208641,2208673,2208705,2208737,2208769,2208801,2208833,2208865,2208897,2208929,2208961,2208993,2209025,2209057,2209089]),new Uint32Array([2191681,2191713,2191745,2191777,2153281,2191809,2191841,2191873,2191905,2191937,2191969,2192001,2192033,2192065,2192097,2192129]),new Uint32Array([2230946,2231010,2231074,2231138,2231202,2231266,2231330,2231394,2231458,2231522,2231586,2231650,2231714,2231778,2231842,2231906]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2185953,2185985,2186017,2186049,2186081,2186113,2186145,2186177]),new Uint32Array([2139811,2139907,2097284,2105860,2105988,2106116,2106244,2097444,2097604,2097155,10485778,10486344,2106372,6291456,0,0]),new Uint32Array([2110051,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2172385,6291456,2172417,6291456,2172449,6291456,2172481,6291456,2172513,6291456,2172545,6291456,2172577,6291456,2172609,6291456]),new Uint32Array([0,0,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2249345,2249377,2249409,2249441,2249473,2249505,2249537,2249570,2210209,2249633,2249665,2249697,2249729,2249761,2249793,2216769]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2187169,2187201,2187233,2187265,2187297,2187329,2187361,2187393,2187425,2187457,2187489,2187521,2187553,2187585,2187617,2187649]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,6291456,6291456,0,0,0,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2182337,6291456,2182369,6291456,2182401,6291456,2182433,6291456,2182465,6291456,2182497,6291456,2182529,6291456,2182561,6291456]),new Uint32Array([2138179,2138275,2138371,2138467,2134243,2134435,2138563,2138659,2138755,2138851,2138947,2139043,2138947,2138755,2139139,2139235]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2250498,2250562,2250625,2250657,2208321,2250689,2250721,2250753,2250785,2250817,2250849,2218945,2250881,2250913,2250945,0]),new Uint32Array([2170369,2105569,2098305,2108481,2173249,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,0,2108193,0,0,0,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2100897,2100897,2105569,2105569,6291456,2112289,2149826,6291456,6291456,2112481,2112577,2098177,2098177,2098177,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,2169953,2169985,6291456,2170017,6291456,2170049,2170081,6291456,2170113,2170145,2170177,6291456,6291456,2170209,2170241]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220641,2220641,2220673,2220673,2220673,2220673,2220705,2220705,2220705,2220705,2220737,2220737,2220737,2220737,2220769,2220769]),new Uint32Array([2127650,2127746,2127842,2127938,2128034,2128130,2128226,2128322,2128418,2127523,2127619,2127715,2127811,2127907,2128003,2128099]),new Uint32Array([2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177]),new Uint32Array([0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2204705,2204737,2204769,2204801,2204833,2204865,2204897,2204929,2204961,2204993,2205025,2205057,2205089,2205121,2205153,2205185]),new Uint32Array([2176385,6291456,2176417,6291456,2176449,6291456,2176481,6291456,2176513,6291456,2176545,6291456,2176577,6291456,2176609,6291456]),new Uint32Array([2195521,2195553,2195585,2195617,2195649,2195681,2117857,2195713,2195745,2195777,2195809,2195841,2195873,2195905,2195937,2195969]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113]),new Uint32Array([2131586,2132450,2135970,2135778,2161602,2136162,2163650,2161794,2135586,2163714,2137186,2131810,2160290,2135170,2097506,2159554]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,0,0,0,0]),new Uint32Array([2116513,2116609,2116705,2116801,2116897,2116993,2117089,2117185,2117281,2117377,2117473,2117569,2117665,2117761,2117857,2117953]),new Uint32Array([2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100802,2101154,2101282,2101410,2101538,2101666,2101794]),new Uint32Array([2100289,2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2098977,2150241,2150305]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,2109955,6291456,6291456,0,0,0,0]),new Uint32Array([18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,0,0]),new Uint32Array([2130979,2131075,2131075,2131171,2131267,2131363,2131459,2131555,2131651,2131651,2131747,2131843,2131939,2132035,2132131,2132227]),new Uint32Array([0,2177793,6291456,2177825,6291456,2177857,6291456,2177889,6291456,2177921,6291456,2177953,6291456,2177985,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2113345,0,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2136643,2136739,2136835,2136931,2137027,2137123,2137219,2137315,2137411,2137507,2137603,2137699,2137795,2137891,2137987,2138083]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2174433,6291456,2174465,6291456,2174497,6291456,2174529,6291456,2174561,6291456,2174593,6291456,2174625,6291456,2174657,6291456]),new Uint32Array([0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([10496547,10496643,2105505,2149698,6291456,10496739,10496835,2170273,6291456,2149762,2105825,2111713,2111713,2111713,2111713,2168673]),new Uint32Array([6291456,2143490,2143490,2143490,2171649,6291456,2171681,2171713,2171745,6291456,2171777,6291456,2171809,6291456,2171841,6291456]),new Uint32Array([2159106,2159106,2159170,2159170,2159234,2159234,2159298,2159298,2159298,2159362,2159362,2159362,2106401,2106401,2106401,2106401]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137]),new Uint32Array([2108417,2181217,2181249,2181281,2170433,2170401,2181313,2181345,2181377,2181409,2181441,2181473,2181505,2181537,2170529,2181569]),new Uint32Array([2218433,2245761,2245793,2245825,2245857,2245890,2245953,2245986,2209665,2246050,2246113,2246146,2246210,2246274,2246337,2246369]),new Uint32Array([2230754,2230818,2230882,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184129,6291456,2184161,6291456,2184193,6291456,6291456,6291456,6291456,6291456,2146818,2183361,6291456,6291456,2142978,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2135170,2097506,2130691,2130787,2130883,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122]),new Uint32Array([2108515,2108611,2100740,2108707,2108803,2108899,2108995,2109091,2109187,2109283,2109379,2109475,2109571,2109667,2109763,2100738]),new Uint32Array([2102788,2102916,2103044,2120515,2103172,2120611,2120707,2098373,2103300,2120803,2120899,2120995,2103428,2103556,2121091,2121187]),new Uint32Array([2158082,2158146,0,2158210,2158274,0,2158338,2158402,2158466,2129922,2158530,2158594,2158658,2158722,2158786,2158850]),new Uint32Array([10499619,10499715,10499811,10499907,10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059]),new Uint32Array([2239585,2239618,2239681,2239713,0,2191969,2239745,2239777,2192033,2239809,2239841,2239874,2239937,2239970,2240033,2240065]),new Uint32Array([2252705,2252738,2252801,2252833,2252865,2252897,2252930,2252994,2253057,2253089,2253121,2253154,2253217,2253250,2219361,2219361]),new Uint32Array([2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,10538050,10538114,10538178,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2226402,2226466,2226530,2226594,2226658,2226722,2226786,2226850,2226914,2226978,2227042,2227106,2227170,2227234,2227298,2227362]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,2144066,2144130,2144194,2144258,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2124674,2124770,2123875,2123971,2124067,2124163,2124259,2124355,2124451,2124547,2124643,2124739,2124835,2124931,2125027,2125123]),new Uint32Array([2168065,6291456,2168097,6291456,2168129,6291456,2168161,6291456,2168193,6291456,2168225,6291456,2168257,6291456,2168289,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2100610,2100611,6291456,2107842,2107843,6291456,6291456,6291456,6291456,10537922,6291456,10537986,6291456]),new Uint32Array([2174849,2174881,2174913,2174945,2174977,2175009,2175041,2175073,2175105,2175137,2175169,2175201,2175233,2175265,2175297,2175329]),new Uint32Array([2154562,2154626,2154690,2154754,2141858,2154818,2154882,2127298,2154946,2127298,2155010,2155074,2155138,2155202,2155266,2155202]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0]),new Uint32Array([2200641,2150786,2150850,2150914,2150978,2151042,2106562,2151106,2150562,2151170,2151234,2151298,2151362,2151426,2151490,2151554]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456]),new Uint32Array([2220289,2220289,2220321,2220321,2220321,2220321,2220353,2220353,2220353,2220353,2220385,2220385,2220385,2220385,2220417,2220417]),new Uint32Array([2155330,2155394,0,2155458,2155522,2155586,2105732,0,2155650,2155714,2155778,2125314,2155842,2155906,2126274,2155970]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0]),new Uint32Array([2097729,2106017,2106017,2106017,2106017,2131297,2131297,2131297,2131297,2106081,2106081,2162049,2162049,2105953,2105953,2162337]),new Uint32Array([2097185,2097697,2097697,2097697,2097697,2135777,2135777,2135777,2135777,2097377,2097377,2097377,2097377,2097601,2097601,2097217]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([2139331,2139427,2139523,2139043,2133571,2132611,2139619,2139715,0,0,0,0,0,0,0,0]),new Uint32Array([2174113,2174145,2100897,2098177,2108289,2100865,2173601,2173633,2173985,2174113,2174145,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,23068672,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,18923778,23068672,23068672,23068672,23068672,18923842,23068672,23068672,23068672,23068672,18923906,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,0,2133857,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2177537,6291456,2177569,6291456,2177601,6291456,2177633,6291456,2177665,6291456,2177697,6291456,2177729,6291456,2177761,6291456]),new Uint32Array([2212481,2212513,2212545,2212577,2197121,2212609,2212641,2212673,2212705,2212737,2212769,2212801,2212833,2212865,2212897,2212929]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2098241,2108353,2170209,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,6291456,2108193,2172417,2112481,2098177]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456])],e=new Uint16Array([616,616,565,147,161,411,330,2,131,131,328,454,241,408,86,86,696,113,285,350,325,301,473,214,639,232,447,64,369,598,124,672,567,223,621,154,107,86,86,86,86,86,86,505,86,68,634,86,218,218,218,218,486,218,218,513,188,608,216,86,217,463,668,85,700,360,184,86,86,86,647,402,153,10,346,718,662,260,145,298,117,1,443,342,138,54,563,86,240,572,218,70,387,86,118,460,641,602,86,86,306,218,86,692,86,86,86,86,86,162,707,86,458,26,86,218,638,86,86,86,86,86,65,449,86,86,306,183,86,58,391,667,86,157,131,131,131,131,86,433,131,406,31,218,247,86,86,693,218,581,351,86,438,295,69,462,45,126,173,650,14,295,69,97,168,187,641,78,523,390,69,108,287,664,173,219,83,295,69,108,431,426,173,694,412,115,628,52,257,398,641,118,501,121,69,579,151,423,173,620,464,121,69,382,151,476,173,27,53,121,86,594,578,226,173,86,632,130,86,96,228,268,641,622,563,86,86,21,148,650,131,131,321,43,144,343,381,531,131,131,178,20,86,399,156,375,164,541,30,60,715,198,92,118,131,131,86,86,306,407,86,280,457,196,488,358,131,131,244,86,86,143,86,86,86,86,86,667,563,86,86,86,86,86,86,86,86,86,86,86,86,86,336,363,86,86,336,86,86,380,678,67,86,86,86,678,86,86,86,512,86,307,86,708,86,86,86,86,86,528,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,563,307,86,86,86,86,86,104,450,337,86,720,86,32,450,397,86,86,86,587,218,558,708,708,293,708,86,86,86,86,86,694,205,86,8,86,86,86,86,549,86,667,697,697,679,86,458,460,86,86,650,86,708,543,86,86,86,245,86,86,86,140,218,127,708,708,458,197,131,131,131,131,500,86,86,483,251,86,306,510,515,86,722,86,86,86,65,201,86,86,483,580,470,86,86,86,368,131,131,131,694,114,110,555,86,86,123,721,163,142,713,418,86,317,675,209,218,218,218,371,545,592,629,490,603,199,46,320,525,680,310,279,388,111,42,252,593,607,235,617,410,377,50,548,135,356,17,520,189,116,392,600,349,332,482,699,690,535,119,106,451,71,152,667,131,218,218,265,671,637,492,504,533,683,269,269,658,86,86,86,86,86,86,86,86,86,491,619,86,86,6,86,86,86,86,86,86,86,86,86,86,86,229,86,86,86,86,86,86,86,86,86,86,86,86,667,86,86,171,131,118,131,656,206,234,571,89,334,670,246,311,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,534,86,86,86,86,86,86,82,86,86,86,86,86,430,86,86,86,86,86,86,86,86,86,599,86,324,86,470,69,640,264,131,626,101,174,86,86,667,233,105,73,374,394,221,204,84,28,326,86,86,471,86,86,86,109,573,86,171,200,200,200,200,218,218,86,86,86,86,460,131,131,131,86,506,86,86,86,86,86,220,404,34,614,47,442,305,25,612,338,601,648,7,344,255,131,131,51,86,312,507,563,86,86,86,86,588,86,86,86,86,86,530,511,86,458,3,435,384,556,522,230,527,86,118,86,86,717,86,137,273,79,181,484,23,93,112,655,249,417,703,370,87,98,313,684,585,155,465,596,481,695,18,416,428,61,701,706,282,643,495,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,86,86,86,171,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,650,131,422,542,420,263,24,172,86,86,86,86,86,566,86,86,132,540,395,353,494,519,19,485,284,472,131,131,131,16,714,86,211,708,86,86,86,694,698,86,86,483,704,708,218,272,86,86,120,86,159,478,86,307,247,86,86,663,597,459,627,667,86,86,277,455,39,302,86,250,86,86,86,271,99,452,306,281,329,400,200,86,86,362,549,352,646,461,323,586,86,86,4,708,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,717,86,518,86,86,650,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,125,554,480,300,613,72,333,288,561,544,604,48,719,91,169,176,590,224,76,191,29,559,560,231,537,166,477,538,256,437,131,131,469,167,40,0,685,266,441,705,239,642,475,568,640,610,299,673,517,318,385,22,202,180,179,359,424,215,90,66,521,653,467,682,453,409,479,88,131,661,35,303,15,262,666,630,712,131,131,618,659,175,218,195,347,193,227,261,150,165,709,546,294,569,710,270,413,376,524,55,242,38,419,529,170,657,3,304,122,379,278,131,651,86,67,576,458,458,131,131,86,86,86,86,86,86,86,118,309,86,86,547,86,86,86,86,667,650,664,131,131,86,86,56,131,131,131,131,131,131,131,131,86,307,86,86,86,664,238,650,86,86,717,86,118,86,86,315,86,59,86,86,574,549,131,131,340,57,436,86,86,86,86,86,86,458,708,499,691,62,86,650,86,86,694,86,86,86,319,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,86,549,694,131,131,131,131,131,131,131,131,131,77,86,86,139,86,502,86,86,86,667,595,131,131,131,86,12,86,13,86,609,131,131,131,131,86,86,86,625,86,669,86,86,182,129,86,5,694,104,86,86,86,86,131,131,86,86,386,171,86,86,86,345,86,324,86,589,86,213,36,131,131,131,131,131,86,86,86,86,104,131,131,131,141,290,80,677,86,86,86,267,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,515,86,86,33,136,669,86,711,515,86,86,550,640,86,104,708,515,86,159,372,717,86,86,444,515,86,86,663,37,86,563,460,86,390,624,702,131,131,131,131,389,59,708,86,86,341,208,708,635,295,69,108,431,508,100,190,131,131,131,131,131,131,131,131,86,86,86,649,516,660,131,131,86,86,86,218,631,708,131,131,131,131,131,131,131,131,131,131,86,86,341,575,238,514,131,131,86,86,86,218,291,708,307,131,86,86,306,367,708,131,131,131,86,378,697,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,615,253,86,86,86,292,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,104,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,69,86,341,553,549,86,307,86,86,645,275,455,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,708,131,131,131,131,131,131,86,86,86,86,86,86,667,460,86,86,86,86,86,86,86,86,86,86,86,86,717,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,104,86,667,459,131,131,131,131,131,131,86,458,225,86,86,86,516,549,11,390,405,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,460,44,218,197,711,515,131,131,131,131,664,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,118,307,104,286,591,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,681,86,86,75,185,314,582,86,358,496,474,86,104,131,86,86,86,86,146,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,171,86,640,131,131,131,131,131,131,131,131,246,503,689,339,674,81,258,415,439,128,562,366,414,246,503,689,583,222,557,316,636,665,186,355,95,670,246,503,689,339,674,557,258,415,439,186,355,95,670,246,503,689,446,644,536,652,331,532,335,440,274,421,297,570,74,425,364,425,606,552,403,509,134,365,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,218,218,218,498,218,218,577,627,551,497,572,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,553,354,236,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,296,455,131,131,456,243,103,86,41,459,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,9,276,158,716,393,564,383,489,401,654,210,654,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,650,86,86,86,86,86,86,717,667,563,563,563,86,549,102,686,133,246,605,86,448,86,86,207,307,131,131,131,641,86,177,611,445,373,194,584,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,307,171,86,86,86,86,86,86,86,717,86,86,86,86,86,460,131,131,650,86,86,86,694,708,86,86,694,86,458,131,131,131,131,131,131,667,694,289,650,667,131,131,86,640,131,131,664,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,460,86,86,86,86,86,86,86,86,86,86,86,86,86,458,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,466,203,149,429,94,432,160,687,539,63,237,283,192,248,348,259,427,526,396,676,254,468,487,212,327,623,49,633,322,493,434,688,357,361,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131]),r="صلى الله عليه وسلمجل جلالهキロメートルrads2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン110viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalms2ckgاكبرمحمدصلعمرسولریال141234 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀a/ca/sc/oc/utelfax1719132315253545165618385878xii03∮∮∮(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)::====(ᄀ)(ᄂ)(ᄃ)(ᄅ)(ᄆ)(ᄇ)(ᄉ)(ᄋ)(ᄌ)(ᄎ)(ᄏ)(ᄐ)(ᄑ)(ᄒ)(가)(나)(다)(라)(마)(바)(사)(아)(자)(차)(카)(타)(파)(하)(주)(一)(二)(三)(四)(五)(六)(七)(八)(九)(十)(月)(火)(水)(木)(金)(土)(日)(株)(有)(社)(名)(特)(財)(祝)(労)(代)(呼)(学)(監)(企)(資)(協)(祭)(休)(自)(至)pte10月11月12月ergltdアールインチウォンオンスオームカイリガロンガンマギニーケースコルナコーポセンチダースットハイツパーツピクルフランペニヒヘルツペンスページベータボルトポンドホールホーンマイルマッハマルクヤードヤールユアンルピー10点11点12点13点14点15点16点17点18点19点20点21点22点23点24点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmvmam10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯sppv ̄ ́ ̧ssi̇ijl·ʼndžljnjdz ̆ ̇ ̊ ̨ ̃ ̋ ιեւاٴوٴۇٴيٴक़ख़ग़ज़ड़ढ़फ़य़ড়ঢ়য়ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ଡ଼ଢ଼ําໍາຫນຫມགྷཌྷདྷབྷཛྷཀྵཱཱིུྲྀླྀྒྷྜྷྡྷྦྷྫྷྐྵaʾιιιιιιιιιιιιιιιιιιιιιιιιιαιάιι ͂ὴιηιήιῆιὼιωιώιῶι ̳!! ̅???!!?rs°c°fnosmtmivix⫝̸ ゙ ゚よりコト333435참고주의363738394042444546474849503月4月5月6月7月8月9月hgevギガデシドルナピコビルペソホンリラレムdaauovpciu平成昭和大正明治naμakakbmbgbpfnfμfμgmgμlmldlklfmnmμmpsnsμsmsnvμvkvpwnwμwmwkwkωmωbqcccddbgyhainkkktlnlxphprsrsvwbstմնմեմիվնմխיִײַשׁשׂאַאָאּבּגּדּהּוּזּטּיּךּכּלּמּנּסּףּפּצּקּרּתּוֹבֿכֿפֿאלئائەئوئۇئۆئۈئېئىئجئحئمئيبجبمبىبيتىتيثجثمثىثيخحضجضمطحظمغجفجفحفىفيقحقىقيكاكجكحكخكلكىكينخنىنيهجهىهييىذٰرٰىٰئرئزئنبزبنترتزتنثرثزثنمانرنزننيريزئخئهبهتهصخنههٰثهسهشهطىطيعىعيغىغيسىسيشىشيصىصيضىضيشخشرسرصرضراً ًـًـّ ْـْلآلألإ𝅗𝅥0,1,2,3,4,5,6,7,8,9,wzhvsdwcmcmddjほかココàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįĵķĺļľłńņňŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷÿźżɓƃƅɔƈɖɗƌǝəɛƒɠɣɩɨƙɯɲɵơƣƥʀƨʃƭʈưʊʋƴƶʒƹƽǎǐǒǔǖǘǚǜǟǡǣǥǧǩǫǭǯǵƕƿǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟƞȣȥȧȩȫȭȯȱȳⱥȼƚⱦɂƀʉʌɇɉɋɍɏɦɹɻʁʕͱͳʹͷ;ϳέίόύβγδεζθκλνξοπρστυφχψϊϋϗϙϛϝϟϡϣϥϧϩϫϭϯϸϻͻͼͽѐёђѓєѕіїјљњћќѝўџабвгдежзийклмнопрстуфхцчшщъыьэюяѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯաբգդզէըթժլծկհձղճյշոչպջռստրցփքօֆ་ⴧⴭნᏰᏱᏲᏳᏴᏵꙋɐɑᴂɜᴖᴗᴝᴥɒɕɟɡɥɪᵻʝɭᶅʟɱɰɳɴɸʂƫᴜʐʑḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿἐἑἒἓἔἕἰἱἲἳἴἵἶἷὀὁὂὃὄὅὑὓὕὗᾰᾱὲΐῐῑὶΰῠῡὺῥ`ὸ‐+−∑〈〉ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞⱡɫᵽɽⱨⱪⱬⱳⱶȿɀⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳬⳮⳳⵡ母龟丨丶丿乙亅亠人儿入冂冖冫几凵刀力勹匕匚匸卜卩厂厶又口囗士夂夊夕女子宀寸小尢尸屮山巛工己巾干幺广廴廾弋弓彐彡彳心戈戶手支攴文斗斤方无曰欠止歹殳毋比毛氏气爪父爻爿片牙牛犬玄玉瓜瓦甘生用田疋疒癶白皮皿目矛矢石示禸禾穴立竹米糸缶网羊羽老而耒耳聿肉臣臼舌舛舟艮色艸虍虫血行衣襾見角言谷豆豕豸貝赤走足身車辛辰辵邑酉釆里長門阜隶隹雨靑非面革韋韭音頁風飛食首香馬骨高髟鬥鬯鬲鬼魚鳥鹵鹿麥麻黃黍黑黹黽鼎鼓鼠鼻齊齒龍龜龠.〒卄卅ᄁᆪᆬᆭᄄᆰᆱᆲᆳᆴᆵᄚᄈᄡᄊ짜ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵᄔᄕᇇᇈᇌᇎᇓᇗᇙᄜᇝᇟᄝᄞᄠᄢᄣᄧᄩᄫᄬᄭᄮᄯᄲᄶᅀᅇᅌᇱᇲᅗᅘᅙᆄᆅᆈᆑᆒᆔᆞᆡ上中下甲丙丁天地問幼箏우秘男適優印注項写左右医宗夜テヌモヨヰヱヲꙁꙃꙅꙉꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝺꝼᵹꝿꞁꞃꞅꞇꞑꞓꞗꞛꞝꞡꞣꞥꞧꞩɬʞʇꭓꞵꞷꬷᎣᎤᎦᎧᎨᎯᎰᎱᎲᎴᎵᎶᎸᎹᎺᎾᎿᏄᏅᏆᏇᏈᏉᏊᏋᏌᏍᏐᏑᏖᏗᏘᏛᏜᏝᏠᏡᏣᏤᏥᏨᏩᏪᏫᏬᏭᏯ豈更賈滑串句契喇奈懶癩羅蘿螺裸邏樂洛烙珞落酪駱亂卵欄爛蘭鸞嵐濫藍襤拉臘蠟廊朗浪狼郎來冷勞擄櫓爐盧蘆虜路露魯鷺碌祿綠菉錄論壟弄籠聾牢磊賂雷壘屢樓淚漏累縷陋勒肋凜凌稜綾菱陵讀拏諾丹寧怒率異北磻便復不泌數索參塞省葉說殺沈拾若掠略亮兩凉梁糧良諒量勵呂廬旅濾礪閭驪麗黎曆歷轢年憐戀撚漣煉璉秊練聯輦蓮連鍊列劣咽烈裂廉念捻殮簾獵令囹嶺怜玲瑩羚聆鈴零靈領例禮醴隸惡了僚寮尿料燎療蓼遼暈阮劉杻柳流溜琉留硫紐類戮陸倫崙淪輪律慄栗隆利吏履易李梨泥理痢罹裏裡離匿溺吝燐璘藺隣鱗麟林淋臨笠粒狀炙識什茶刺切度拓糖宅洞暴輻降廓兀嗀塚晴凞猪益礼神祥福靖精蘒諸逸都飯飼館鶴郞隷侮僧免勉勤卑喝嘆器塀墨層悔慨憎懲敏既暑梅海渚漢煮爫琢碑祉祈祐祖禍禎穀突節縉繁署者臭艹著褐視謁謹賓贈辶難響頻恵𤋮舘並况全侀充冀勇勺啕喙嗢墳奄奔婢嬨廒廙彩徭惘慎愈慠戴揄搜摒敖望杖滛滋瀞瞧爵犯瑱甆画瘝瘟盛直睊着磌窱类絛缾荒華蝹襁覆調請諭變輸遲醙鉶陼韛頋鬒𢡊𢡄𣏕㮝䀘䀹𥉉𥳐𧻓齃龎עםٱٻپڀٺٿٹڤڦڄڃچڇڍڌڎڈژڑکگڳڱںڻۀہھۓڭۋۅۉ、〖〗—_{}【】《》「」『』[]#&*-<>\\$%@ءؤة\"'^|~⦅⦆・ゥャ¢£¬¦¥₩│←↑→↓■○𐐨𐐩𐐪𐐫𐐬𐐭𐐮𐐯𐐰𐐱𐐲𐐳𐐴𐐵𐐶𐐷𐐸𐐹𐐺𐐻𐐼𐐽𐐾𐐿𐑀𐑁𐑂𐑃𐑄𐑅𐑆𐑇𐑈𐑉𐑊𐑋𐑌𐑍𐑎𐑏𐓘𐓙𐓚𐓛𐓜𐓝𐓞𐓟𐓠𐓡𐓢𐓣𐓤𐓥𐓦𐓧𐓨𐓩𐓪𐓫𐓬𐓭𐓮𐓯𐓰𐓱𐓲𐓳𐓴𐓵𐓶𐓷𐓸𐓹𐓺𐓻𐳀𐳁𐳂𐳃𐳄𐳅𐳆𐳇𐳈𐳉𐳊𐳋𐳌𐳍𐳎𐳏𐳐𐳑𐳒𐳓𐳔𐳕𐳖𐳗𐳘𐳙𐳚𐳛𐳜𐳝𐳞𐳟𐳠𐳡𐳢𐳣𐳤𐳥𐳦𐳧𐳨𐳩𐳪𐳫𐳬𐳭𐳮𐳯𐳰𐳱𐳲𑣀𑣁𑣂𑣃𑣄𑣅𑣆𑣇𑣈𑣉𑣊𑣋𑣌𑣍𑣎𑣏𑣐𑣑𑣒𑣓𑣔𑣕𑣖𑣗𑣘𑣙𑣚𑣛𑣜𑣝𑣞𑣟ıȷ∇∂𞤢𞤣𞤤𞤥𞤦𞤧𞤨𞤩𞤪𞤫𞤬𞤭𞤮𞤯𞤰𞤱𞤲𞤳𞤴𞤵𞤶𞤷𞤸𞤹𞤺𞤻𞤼𞤽𞤾𞤿𞥀𞥁𞥂𞥃ٮڡٯ字双多解交映無前後再新初終販声吹演投捕遊指禁空合満申割営配得可丽丸乁𠄢你侻倂偺備像㒞𠘺兔兤具𠔜㒹內𠕋冗冤仌冬𩇟刃㓟刻剆剷㔕包匆卉博即卽卿𠨬灰及叟𠭣叫叱吆咞吸呈周咢哶唐啓啣善喫喳嗂圖圗噑噴壮城埴堍型堲報墬𡓤売壷夆夢奢𡚨𡛪姬娛娧姘婦㛮嬈嬾𡧈寃寘寳𡬘寿将㞁屠峀岍𡷤嵃𡷦嵮嵫嵼巡巢㠯巽帨帽幩㡢𢆃㡼庰庳庶𪎒𢌱舁弢㣇𣊸𦇚形彫㣣徚忍志忹悁㤺㤜𢛔惇慈慌慺憲憤憯懞戛扝抱拔捐𢬌挽拼捨掃揤𢯱搢揅掩㨮摩摾撝摷㩬敬𣀊旣書晉㬙㬈㫤冒冕最暜肭䏙朡杞杓𣏃㭉柺枅桒𣑭梎栟椔楂榣槪檨𣚣櫛㰘次𣢧歔㱎歲殟殻𣪍𡴋𣫺汎𣲼沿泍汧洖派浩浸涅𣴞洴港湮㴳滇𣻑淹潮𣽞𣾎濆瀹瀛㶖灊災灷炭𠔥煅𤉣熜爨牐𤘈犀犕𤜵𤠔獺王㺬玥㺸瑇瑜璅瓊㼛甤𤰶甾𤲒𢆟瘐𤾡𤾸𥁄㿼䀈𥃳𥃲𥄙𥄳眞真瞋䁆䂖𥐝硎䃣𥘦𥚚𥛅秫䄯穊穏𥥼𥪧䈂𥮫篆築䈧𥲀糒䊠糨糣紀𥾆絣䌁緇縂繅䌴𦈨𦉇䍙𦋙罺𦌾羕翺𦓚𦔣聠𦖨聰𣍟䏕育脃䐋脾媵𦞧𦞵𣎓𣎜舄辞䑫芑芋芝劳花芳芽苦𦬼茝荣莭茣莽菧荓菊菌菜𦰶𦵫𦳕䔫蓱蓳蔖𧏊蕤𦼬䕝䕡𦾱𧃒䕫虐虧虩蚩蚈蜎蛢蜨蝫螆蟡蠁䗹衠𧙧裗裞䘵裺㒻𧢮𧥦䚾䛇誠𧲨貫賁贛起𧼯𠠄跋趼跰𠣞軔𨗒𨗭邔郱鄑𨜮鄛鈸鋗鋘鉼鏹鐕𨯺開䦕閷𨵷䧦雃嶲霣𩅅𩈚䩮䩶韠𩐊䪲𩒖頩𩖶飢䬳餩馧駂駾䯎𩬰鱀鳽䳎䳭鵧𪃎䳸𪄅𪈎𪊑䵖黾鼅鼏鼖𪘀";function n(r){return r>=196608?r>=917760&&r<=917999?18874368:0:t[e[r>>4]][15&r]}return{mapStr:r,mapChar:n}}))},ac4f:function(t,e,r){"use strict";var n;function i(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var o=r("d113").codes,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(t){if(t)throw t}function h(t){return t.setHeader&&"function"===typeof t.abort}function l(t,e,o,s){s=i(s);var u=!1;t.on("close",(function(){u=!0})),void 0===n&&(n=r("42a7")),n(t,{readable:e,writable:o},(function(t){if(t)return s(t);u=!0,s()}));var l=!1;return function(e){if(!u&&!l)return l=!0,h(t)?t.abort():"function"===typeof t.destroy?t.destroy():void s(e||new a("pipe"))}}function c(t){t()}function f(t,e){return t.pipe(e)}function d(t){return t.length?"function"!==typeof t[t.length-1]?u:t.pop():u}function p(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=d(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new s("streams");var o=e.map((function(t,r){var s=r<e.length-1,a=r>0;return l(t,s,a,(function(t){n||(n=t),t&&o.forEach(c),s||(o.forEach(c),i(n))}))}));return e.reduce(f)}t.exports=p},ac5c:function(t,e,r){"use strict";var n=r("33fb"),i=function t(e){this.givenProvider=t.givenProvider,e&&e._requestManager&&(e=e.currentProvider),"undefined"!==typeof document&&(this.pick=n.pick),this.setProvider(e)};i.givenProvider=null,"undefined"!==typeof ethereum&&ethereum.bzz&&(i.givenProvider=ethereum.bzz),i.prototype.setProvider=function(t){if(t&&"object"===typeof t&&"string"===typeof t.bzz&&(t=t.bzz),"string"!==typeof t){this.currentProvider=null;var e=new Error("No provider set, please set one using bzz.setProvider().");return this.download=this.upload=this.isAvailable=function(){throw e},!1}return this.currentProvider=t,this.download=n.at(t).download,this.upload=n.at(t).upload,this.isAvailable=n.at(t).isAvailable,!0},t.exports=i},ac6a:function(t,e,r){for(var n=r("cadf"),i=r("0d58"),o=r("2aba"),s=r("7726"),a=r("32e9"),u=r("84f2"),h=r("2b4c"),l=h("iterator"),c=h("toStringTag"),f=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),m=0;m<p.length;m++){var v,g=p[m],y=d[g],b=s[g],w=b&&b.prototype;if(w&&(w[l]||a(w,l,f),w[c]||a(w,c,g),u[g]=f,y))for(v in n)w[v]||o(w,v,n[v],!0)}},acc3:function(t,e,r){"use strict";(function(t){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t["default"]=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__read||function(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{while((void 0===e||e-- >0)&&!(n=o.next()).done)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o["return"])&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isZeroAddress=e.zeroAddress=e.importPublic=e.privateToAddress=e.privateToPublic=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isValidAddress=e.Account=void 0;var u=a(r("f654")),h=a(r("399f")),l=o(r("a3ca")),c=r("2213"),f=r("9a12"),d=r("510b"),p=r("0c30"),m=r("8463"),v=r("29b1"),g=r("6a9d"),y=function(){function t(t,e,r,n){void 0===t&&(t=new h.default(0)),void 0===e&&(e=new h.default(0)),void 0===r&&(r=d.KECCAK256_RLP),void 0===n&&(n=d.KECCAK256_NULL),this.nonce=t,this.balance=e,this.stateRoot=r,this.codeHash=n,this._validate()}return t.fromAccountData=function(e){var r=e.nonce,n=e.balance,i=e.stateRoot,o=e.codeHash;return new t(r?new h.default(p.toBuffer(r)):void 0,n?new h.default(p.toBuffer(n)):void 0,i?p.toBuffer(i):void 0,o?p.toBuffer(o):void 0)},t.fromRlpSerializedAccount=function(t){var e=l.decode(t);if(!Array.isArray(e))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(e)},t.fromValuesArray=function(e){var r=s(e,4),n=r[0],i=r[1],o=r[2],a=r[3];return new t(new h.default(n),new h.default(i),o,a)},t.prototype._validate=function(){if(this.nonce.lt(new h.default(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new h.default(0)))throw new Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},t.prototype.raw=function(){return[g.bnToUnpaddedBuffer(this.nonce),g.bnToUnpaddedBuffer(this.balance),this.stateRoot,this.codeHash]},t.prototype.serialize=function(){return l.encode(this.raw())},t.prototype.isContract=function(){return!this.codeHash.equals(d.KECCAK256_NULL)},t.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(d.KECCAK256_NULL)},t}();e.Account=y,e.isValidAddress=function(t){try{v.assertIsString(t)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(t)},e.toChecksumAddress=function(t,e){v.assertIsHexString(t);var r=f.stripHexPrefix(t).toLowerCase(),n="";if(e){var i=g.toType(e,g.TypeOutput.BN);n=i.toString()+"0x"}for(var o=m.keccakFromString(n+r).toString("hex"),s="0x",a=0;a<r.length;a++)parseInt(o[a],16)>=8?s+=r[a].toUpperCase():s+=r[a];return s},e.isValidChecksumAddress=function(t,r){return e.isValidAddress(t)&&e.toChecksumAddress(t,r)===t},e.generateAddress=function(e,r){v.assertIsBuffer(e),v.assertIsBuffer(r);var n=new h.default(r);return n.isZero()?m.rlphash([e,null]).slice(-20):m.rlphash([e,t.from(n.toArray())]).slice(-20)},e.generateAddress2=function(e,r,n){v.assertIsBuffer(e),v.assertIsBuffer(r),v.assertIsBuffer(n),u.default(20===e.length),u.default(32===r.length);var i=m.keccak256(t.concat([t.from("ff","hex"),e,r,m.keccak256(n)]));return i.slice(-20)},e.isValidPrivate=function(t){return c.privateKeyVerify(t)},e.isValidPublic=function(e,r){return void 0===r&&(r=!1),v.assertIsBuffer(e),64===e.length?c.publicKeyVerify(t.concat([t.from([4]),e])):!!r&&c.publicKeyVerify(e)},e.pubToAddress=function(e,r){return void 0===r&&(r=!1),v.assertIsBuffer(e),r&&64!==e.length&&(e=t.from(c.publicKeyConvert(e,!1).slice(1))),u.default(64===e.length),m.keccak(e).slice(-20)},e.publicToAddress=e.pubToAddress,e.privateToPublic=function(e){return v.assertIsBuffer(e),t.from(c.publicKeyCreate(e,!1)).slice(1)},e.privateToAddress=function(t){return e.publicToAddress(e.privateToPublic(t))},e.importPublic=function(e){return v.assertIsBuffer(e),64!==e.length&&(e=t.from(c.publicKeyConvert(e,!1).slice(1))),e},e.zeroAddress=function(){var t=20,e=p.zeros(t);return p.bufferToHex(e)},e.isZeroAddress=function(t){try{v.assertIsString(t)}catch(n){return!1}var r=e.zeroAddress();return r===t}}).call(this,r("b639").Buffer)},ad06:function(t,e,r){"use strict";var n=r("2638"),i=r.n(n),o=r("d282"),s=r("ea8e"),a=r("ba31"),u=r("6f2f"),h=Object(o["a"])("icon"),l=h[0],c=h[1];function f(t){return!!t&&-1!==t.indexOf("/")}var d={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function p(t){return t&&d[t]||t}function m(t,e,r,n){var o,h=p(e.name),l=f(h);return t(e.tag,i()([{class:[e.classPrefix,l?"":e.classPrefix+"-"+h],style:{color:e.color,fontSize:Object(s["a"])(e.size)}},Object(a["b"])(n,!0)]),[r.default&&r.default(),l&&t("img",{class:c("image"),attrs:{src:h}}),t(u["a"],{attrs:{dot:e.dot,info:null!=(o=e.badge)?o:e.info}})])}m.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:c()}},e["a"]=l(m)},ad25:function(t,e,r){var n=r("2aee"),i=r("11dc"),o=r("98e6"),s=r("f460"),a=r("83d5"),u=r("0106"),h=r("5291"),l=r("a958"),c=r("8707").Buffer;function f(t,e){var r=t.modulus.byteLength(),n=e.length,h=o("sha1").update(c.alloc(0)).digest(),l=h.length,f=2*l;if(n>r-f-2)throw new Error("message too long");var d=c.alloc(r-n-f-2),p=r-l-1,m=i(l),v=a(c.concat([h,d,c.alloc(1,1),e],p),s(m,p)),g=a(m,s(v,l));return new u(c.concat([c.alloc(1),g,v],r))}function d(t,e,r){var n,i=e.length,o=t.modulus.byteLength();if(i>o-11)throw new Error("message too long");return n=r?c.alloc(o-i-3,255):p(o-i-3),new u(c.concat([c.from([0,r?1:2]),n,c.alloc(1),e],o))}function p(t){var e,r=c.allocUnsafe(t),n=0,o=i(2*t),s=0;while(n<t)s===o.length&&(o=i(2*t),s=0),e=o[s++],e&&(r[n++]=e);return r}t.exports=function(t,e,r){var i;i=t.padding?t.padding:r?1:4;var o,s=n(t);if(4===i)o=f(s,e);else if(1===i)o=d(s,e,r);else{if(3!==i)throw new Error("unknown padding");if(o=new u(e),o.cmp(s.modulus)>=0)throw new Error("data too long for modulus")}return r?l(o,s):h(o,s)}},ad71:function(t,e,r){"use strict";(function(e,n){var i=r("966d");t.exports=_;var o,s=r("e3db");_.ReadableState=M;r("faa1").EventEmitter;var a=function(t,e){return t.listeners(e).length},u=r("429b"),h=r("8707").Buffer,l=e.Uint8Array||function(){};function c(t){return h.from(t)}function f(t){return h.isBuffer(t)||t instanceof l}var d=Object.create(r("3a7c"));d.inherits=r("3fb5");var p=r(3),m=void 0;m=p&&p.debuglog?p.debuglog("stream"):function(){};var v,g=r("5e1a"),y=r("4681");d.inherits(_,u);var b=["error","close","destroy","pause","resume"];function w(t,e,r){if("function"===typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?s(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}function M(t,e){o=o||r("b19a"),t=t||{};var n=e instanceof o;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,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&&(v||(v=r("7d72").StringDecoder),this.decoder=new v(t.encoding),this.encoding=t.encoding)}function _(t){if(o=o||r("b19a"),!(this instanceof _))return new _(t);this._readableState=new M(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function k(t,e,r,n,i){var o,s=t._readableState;null===e?(s.reading=!1,C(t,s)):(i||(o=x(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?("string"===typeof e||s.objectMode||Object.getPrototypeOf(e)===h.prototype||(e=c(e)),n?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):S(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||0!==e.length?S(t,s,e,!1):I(t,s)):S(t,s,e,!1))):n||(s.reading=!1));return E(s)}function S(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&P(t)),I(t,e)}function x(t,e){var r;return f(e)||"string"===typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function E(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}Object.defineProperty(_.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),_.prototype.destroy=y.destroy,_.prototype._undestroy=y.undestroy,_.prototype._destroy=function(t,e){this.push(null),e(t)},_.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof t&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=h.from(t,e),e=""),r=!0),k(this,t,e,!1,r)},_.prototype.unshift=function(t){return k(this,t,null,!0,!1)},_.prototype.isPaused=function(){return!1===this._readableState.flowing},_.prototype.setEncoding=function(t){return v||(v=r("7d72").StringDecoder),this._readableState.decoder=new v(t),this._readableState.encoding=t,this};var A=8388608;function O(t){return t>=A?t=A:(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=O(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,P(t)}}function P(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(m("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(B,t):B(t))}function B(t){m("emit readable"),t.emit("readable"),D(t)}function I(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(R,t,e))}function R(t,e){var r=e.length;while(!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark){if(m("maybeReadMore read 0"),t.read(0),r===e.length)break;r=e.length}e.readingMore=!1}function N(t){return function(){var e=t._readableState;m("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,D(t))}}function j(t){m("readable nexttick read 0"),t.read(0)}function L(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(U,t,e))}function U(t,e){e.reading||(m("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),D(t),e.flowing&&!e.reading&&t.read(0)}function D(t){var e=t._readableState;m("flow",e.flowing);while(e.flowing&&null!==t.read());}function F(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=z(t,e.buffer,e.decoder),r);var r}function z(t,e,r){var n;return t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?q(t,e):H(t,e),n}function q(t,e){var r=e.head,n=1,i=r.data;t-=i.length;while(r=r.next){var o=r.data,s=t>o.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),t-=s,0===t){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++n}return e.length-=n,i}function H(t,e){var r=h.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;while(n=n.next){var o=n.data,s=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,s),t-=s,0===t){s===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++i}return e.length-=i,r}function $(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(V,e,t))}function V(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function K(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}_.prototype.read=function(t){m("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return m("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?$(this):P(this),null;if(t=T(t,e),0===t&&e.ended)return 0===e.length&&$(this),null;var n,i=e.needReadable;return m("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,m("length less than watermark",i)),e.ended||e.reading?(i=!1,m("reading or ended",i)):i&&(m("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=T(r,e))),n=t>0?F(t,e):null,null===n?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&$(this)),null!==n&&this.emit("data",n),n},_.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},_.prototype.pipe=function(t,e){var r=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 s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr,u=s?l:M;function h(t,e){m("onunpipe"),t===r&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d())}function l(){m("onend"),t.end()}o.endEmitted?i.nextTick(u):r.once("end",u),t.on("unpipe",h);var c=N(r);t.on("drain",c);var f=!1;function d(){m("cleanup"),t.removeListener("close",y),t.removeListener("finish",b),t.removeListener("drain",c),t.removeListener("error",g),t.removeListener("unpipe",h),r.removeListener("end",l),r.removeListener("end",M),r.removeListener("data",v),f=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}var p=!1;function v(e){m("ondata"),p=!1;var n=t.write(e);!1!==n||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==K(o.pipes,t))&&!f&&(m("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function g(e){m("onerror",e),M(),t.removeListener("error",g),0===a(t,"error")&&t.emit("error",e)}function y(){t.removeListener("finish",b),M()}function b(){m("onfinish"),t.removeListener("close",y),M()}function M(){m("unpipe"),r.unpipe(t)}return r.on("data",v),w(t,"error",g),t.once("close",y),t.once("finish",b),t.emit("pipe",r),o.flowing||(m("pipe resume"),r.resume()),t},_.prototype.unpipe=function(t){var e=this._readableState,r={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,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var s=K(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},_.prototype.on=function(t,e){var r=u.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&P(this):i.nextTick(j,this))}return r},_.prototype.addListener=_.prototype.on,_.prototype.resume=function(){var t=this._readableState;return t.flowing||(m("resume"),t.flowing=!0,L(this,t)),this},_.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this},_.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(m("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(m("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)){var o=e.push(i);o||(n=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<b.length;o++)t.on(b[o],this.emit.bind(this,b[o]));return this._read=function(e){m("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),_._fromList=F}).call(this,r("c8ba"),r("f28c"))},ade3:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))},ae84:function(t,e,r){var n=r("8707").Buffer,i=r("f576");function o(t,e,r,o){if(n.isBuffer(t)||(t=n.from(t,"binary")),e&&(n.isBuffer(e)||(e=n.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");var s=r/8,a=n.alloc(s),u=n.alloc(o||0),h=n.alloc(0);while(s>0||o>0){var l=new i;l.update(h),l.update(t),e&&l.update(e),h=l.digest();var c=0;if(s>0){var f=a.length-s;c=Math.min(s,h.length),h.copy(a,f,0,c),s-=c}if(c<h.length&&o>0){var d=u.length-o,p=Math.min(o,h.length-c);h.copy(u,d,c,c+p),o-=p}}return h.fill(0),{key:a,iv:u}}t.exports=o},aec4:function(t,e,r){"use strict";var n=r("6e11"),i=r("2c0b"),o=r("00d7"),s=r("c044").formatters,a=r("5ba3"),u=r("36b5"),h=r("14b4");function l(t){var e=this;this.ens=t,this.contract=t.checkNetwork().then((function(t){var r=new n(u,t);return r.setProvider(e.ens.eth.currentProvider),r}))}l.prototype.owner=function(t,e){return console.warn('Deprecated: Please use the "getOwner" method instead of "owner".'),this.getOwner(t,e)},l.prototype.getOwner=function(t,e){var r=new o(!0);return this.contract.then((function(e){return e.methods.owner(i.hash(t)).call()})).then((function(t){"function"!==typeof e?r.resolve(t):e(t,t)})).catch((function(t){"function"!==typeof e?r.reject(t):e(t,null)})),r.eventEmitter},l.prototype.setOwner=function(t,e,r,n){var a=new o(!0);return this.contract.then((function(n){return n.methods.setOwner(i.hash(t),s.inputAddressFormatter(e)).send(r)})).then((function(t){"function"!==typeof n?a.resolve(t):n(t,t)})).catch((function(t){"function"!==typeof n?a.reject(t):n(t,null)})),a.eventEmitter},l.prototype.getTTL=function(t,e){var r=new o(!0);return this.contract.then((function(e){return e.methods.ttl(i.hash(t)).call()})).then((function(t){"function"!==typeof e?r.resolve(t):e(t,t)})).catch((function(t){"function"!==typeof e?r.reject(t):e(t,null)})),r.eventEmitter},l.prototype.setTTL=function(t,e,r,n){var s=new o(!0);return this.contract.then((function(n){return n.methods.setTTL(i.hash(t),e).send(r)})).then((function(t){"function"!==typeof n?s.resolve(t):n(t,t)})).catch((function(t){"function"!==typeof n?s.reject(t):n(t,null)})),s.eventEmitter},l.prototype.setSubnodeOwner=function(t,e,r,n,u){var h=new o(!0);return a.isHexStrict(e)||(e=a.sha3(e)),this.contract.then((function(o){return o.methods.setSubnodeOwner(i.hash(t),e,s.inputAddressFormatter(r)).send(n)})).then((function(t){"function"!==typeof u?h.resolve(t):u(t,t)})).catch((function(t){"function"!==typeof u?h.reject(t):u(t,null)})),h.eventEmitter},l.prototype.setRecord=function(t,e,r,n,a,u){var h=new o(!0);return this.contract.then((function(o){return o.methods.setRecord(i.hash(t),s.inputAddressFormatter(e),s.inputAddressFormatter(r),n).send(a)})).then((function(t){"function"!==typeof u?h.resolve(t):u(t,t)})).catch((function(t){"function"!==typeof u?h.reject(t):u(t,null)})),h.eventEmitter},l.prototype.setSubnodeRecord=function(t,e,r,n,u,h,l){var c=new o(!0);return a.isHexStrict(e)||(e=a.sha3(e)),this.contract.then((function(o){return o.methods.setSubnodeRecord(i.hash(t),e,s.inputAddressFormatter(r),s.inputAddressFormatter(n),u).send(h)})).then((function(t){"function"!==typeof l?c.resolve(t):l(t,t)})).catch((function(t){"function"!==typeof l?c.reject(t):l(t,null)})),c.eventEmitter},l.prototype.setApprovalForAll=function(t,e,r,n){var i=new o(!0);return this.contract.then((function(n){return n.methods.setApprovalForAll(s.inputAddressFormatter(t),e).send(r)})).then((function(t){"function"!==typeof n?i.resolve(t):n(t,t)})).catch((function(t){"function"!==typeof n?i.reject(t):n(t,null)})),i.eventEmitter},l.prototype.isApprovedForAll=function(t,e,r){var n=new o(!0);return this.contract.then((function(r){return r.methods.isApprovedForAll(s.inputAddressFormatter(t),s.inputAddressFormatter(e)).call()})).then((function(t){"function"!==typeof r?n.resolve(t):r(t,t)})).catch((function(t){"function"!==typeof r?n.reject(t):r(t,null)})),n.eventEmitter},l.prototype.recordExists=function(t,e){var r=new o(!0);return this.contract.then((function(e){return e.methods.recordExists(i.hash(t)).call()})).then((function(t){"function"!==typeof e?r.resolve(t):e(t,t)})).catch((function(t){"function"!==typeof e?r.reject(t):e(t,null)})),r.eventEmitter},l.prototype.resolver=function(t,e){return console.warn('Deprecated: Please use the "getResolver" method instead of "resolver".'),this.getResolver(t,e)},l.prototype.getResolver=function(t,e){var r=this;return this.contract.then((function(e){return e.methods.resolver(i.hash(t)).call()})).then((function(t){var i=new n(h,t);if(i.setProvider(r.ens.eth.currentProvider),"function"!==typeof e)return i;e(i,i)})).catch((function(t){if("function"!==typeof e)throw t;e(t,null)}))},l.prototype.setResolver=function(t,e,r,n){var a=new o(!0);return this.contract.then((function(n){return n.methods.setResolver(i.hash(t),s.inputAddressFormatter(e)).send(r)})).then((function(t){"function"!==typeof n?a.resolve(t):n(t,t)})).catch((function(t){"function"!==typeof n?a.reject(t):n(t,null)})),a.eventEmitter},t.exports=l},af3a:function(t,e){t.exports=s;var r=128,n=127,i=~n,o=Math.pow(2,31);function s(t,e,n){e=e||[],n=n||0;var a=n;while(t>=o)e[n++]=255&t|r,t/=128;while(t&i)e[n++]=255&t|r,t>>>=7;return e[n]=0|t,s.bytes=n-a+1,e}},af56:function(t,e,r){r("ec30")("Uint16",2,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},b047:function(t,e,r){(function(t,r){(function(t,r){r(e)})(0,(function(e){"use strict";var n="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{};function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}function o(t,e){return e={exports:{}},t(e,e.exports),e.exports}function s(t){return t&&t["default"]||t}for(var a=g,u=b,h=_,l=[],c=[],f="undefined"!==typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,m=d.length;p<m;++p)l[p]=d[p],c[d.charCodeAt(p)]=p;function v(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function g(t){var e=v(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function y(t,e,r){return 3*(e+r)/4-r}function b(t){var e,r,n=v(t),i=n[0],o=n[1],s=new f(y(t,i,o)),a=0,u=o>0?i-4:i;for(r=0;r<u;r+=4)e=c[t.charCodeAt(r)]<<18|c[t.charCodeAt(r+1)]<<12|c[t.charCodeAt(r+2)]<<6|c[t.charCodeAt(r+3)],s[a++]=e>>16&255,s[a++]=e>>8&255,s[a++]=255&e;return 2===o&&(e=c[t.charCodeAt(r)]<<2|c[t.charCodeAt(r+1)]>>4,s[a++]=255&e),1===o&&(e=c[t.charCodeAt(r)]<<10|c[t.charCodeAt(r+1)]<<4|c[t.charCodeAt(r+2)]>>2,s[a++]=e>>8&255,s[a++]=255&e),s}function w(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function M(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(w(n));return i.join("")}function _(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(M(t,s,s+o>a?a:s+o));return 1===n?(e=t[r-1],i.push(l[e>>2]+l[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],i.push(l[e>>10]+l[e>>4&63]+l[e<<2&63]+"=")),i.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;var k={byteLength:a,toByteArray:u,fromByteArray:h},S=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,h=u>>1,l=-7,c=r?i-1:0,f=r?-1:1,d=t[e+c];for(c+=f,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+t[e+c],c+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+c],c+=f,l-=8);if(0===o)o=1-h;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=h}return(d?-1:1)*s*Math.pow(2,o-n)},x=function(t,e,r,n,i,o){var s,a,u,h=8*o-i-1,l=(1<<h)-1,c=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+c>=1?f/u:f*Math.pow(2,1-c),e*u>=2&&(s++,u/=2),s+c>=l?(a=0,s=l):s+c>=1?(a=(e*u-1)*Math.pow(2,i),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,h+=i;h>0;t[r+d]=255&s,d+=p,s/=256,h-=8);t[r+d-p]|=128*m},E={read:S,write:x},A=o((function(t,e){var r="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;var n=2147483647;function i(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(r){return!1}}function o(t){if(t>n)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return a(t,e,r)}function a(t,e,r){if("string"===typeof t)return c(t,e);if(ArrayBuffer.isView(t))return f(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(J(t,ArrayBuffer)||t&&J(t.buffer,ArrayBuffer))return d(t,e,r);if("undefined"!==typeof SharedArrayBuffer&&(J(t,SharedArrayBuffer)||t&&J(t.buffer,SharedArrayBuffer)))return d(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);var i=p(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t,e,r){return u(t),t<=0?o(t):void 0!==e?"string"===typeof r?o(t).fill(e,r):o(t).fill(e):o(t)}function l(t){return u(t),o(t<0?0:0|m(t))}function c(t,e){if("string"===typeof e&&""!==e||(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|g(t,e),n=o(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function f(t){for(var e=t.length<0?0:0|m(t.length),r=o(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function d(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function p(t){if(s.isBuffer(t)){var e=0|m(t.length),r=o(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!==typeof t.length||X(t.length)?o(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}function m(t){if(t>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),s.alloc(+t)}function g(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||J(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(i)return n?-1:V(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return j(this,e,r);case"utf8":case"utf-8":return P(this,e,r);case"ascii":return R(this,e,r);case"latin1":case"binary":return N(this,e,r);case"base64":return C(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function w(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,X(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:M(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):M(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function M(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;o<a;o++)if(h(t,o)===h(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var c=!0,f=0;f<u;f++)if(h(t,o+f)!==h(e,f)){c=!1;break}if(c)return o}return-1}function _(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(X(a))return s;t[r+s]=a}return s}function S(t,e,r,n){return Z(V(e,t.length-r),t,r,n)}function x(t,e,r,n){return Z(K(e),t,r,n)}function A(t,e,r,n){return x(t,e,r,n)}function O(t,e,r,n){return Z(G(e),t,r,n)}function T(t,e,r,n){return Z(W(e,t.length-r),t,r,n)}function C(t,e,r){return 0===e&&r===t.length?k.fromByteArray(t):k.fromByteArray(t.slice(e,r))}function P(t,e,r){r=Math.min(t.length,r);var n=[],i=e;while(i<r){var o,s,a,u,h=t[i],l=null,c=h>239?4:h>223?3:h>191?2:1;if(i+c<=r)switch(c){case 1:h<128&&(l=h);break;case 2:o=t[i+1],128===(192&o)&&(u=(31&h)<<6|63&o,u>127&&(l=u));break;case 3:o=t[i+1],s=t[i+2],128===(192&o)&&128===(192&s)&&(u=(15&h)<<12|(63&o)<<6|63&s,u>2047&&(u<55296||u>57343)&&(l=u));break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(u=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a,u>65535&&u<1114112&&(l=u))}null===l?(l=65533,c=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=c}return I(n)}e.kMaxLength=n,s.TYPED_ARRAY_SUPPORT=i(),s.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return a(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return h(t,e,r)},s.allocUnsafe=function(t){return l(t)},s.allocUnsafeSlow=function(t){return l(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(J(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),J(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=s.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(J(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},s.byteLength=g,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?P(this,0,t):y.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,i){if(J(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,a=r-e,u=Math.min(o,a),h=this.slice(n,i),l=t.slice(e,r),c=0;c<u;++c)if(h[c]!==l[c]){o=h[c],a=l[c];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return w(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return w(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return _(this,t,e,r);case"utf8":case"utf-8":return S(this,t,e,r);case"ascii":return x(this,t,e,r);case"latin1":case"binary":return A(this,t,e,r);case"base64":return O(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function I(t){var e=t.length;if(e<=B)return String.fromCharCode.apply(String,t);var r="",n=0;while(n<e)r+=String.fromCharCode.apply(String,t.slice(n,n+=B));return r}function R(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function N(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function j(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Y[t[o]];return i}function L(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function U(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function F(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function z(t,e,r,n,i){return e=+e,r>>>=0,i||F(t,e,r,4,34028234663852886e22,-34028234663852886e22),E.write(t,e,r,n,23,4),r+4}function q(t,e,r,n,i){return e=+e,r>>>=0,i||F(t,e,r,8,17976931348623157e292,-17976931348623157e292),E.write(t,e,r,n,52,8),r+8}s.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||U(t,e,this.length);var n=this[t],i=1,o=0;while(++o<e&&(i*=256))n+=this[t+o]*i;return n},s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||U(t,e,this.length);var n=this[t+--e],i=1;while(e>0&&(i*=256))n+=this[t+--e]*i;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||U(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||U(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||U(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||U(t,e,this.length);var n=this[t],i=1,o=0;while(++o<e&&(i*=256))n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||U(t,e,this.length);var n=e,i=1,o=this[t+--n];while(n>0&&(i*=256))o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return t>>>=0,e||U(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||U(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||U(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||U(t,4,this.length),E.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||U(t,4,this.length),E.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||U(t,8,this.length),E.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||U(t,8,this.length),E.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;D(this,t,e,r,i,0)}var o=1,s=0;this[e]=255&t;while(++s<r&&(o*=256))this[e+s]=t/o&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;D(this,t,e,r,i,0)}var o=r-1,s=1;this[e+o]=255&t;while(--o>=0&&(s*=256))this[e+o]=t/s&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);D(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;this[e]=255&t;while(++o<r&&(s*=256))t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);D(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;this[e+o]=255&t;while(--o>=0&&(s*=256))t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return z(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return z(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return q(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return q(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"===typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var o=i-1;o>=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},s.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"===typeof t?t&=255:"boolean"===typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=s.isBuffer(t)?t:s.from(t,n),u=a.length;if(0===u)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=a[o%u]}return this};var H=/[^+/0-9A-Za-z-_]/g;function $(t){if(t=t.split("=")[0],t=t.trim().replace(H,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function V(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function K(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function W(t,e){for(var r,n,i,o=[],s=0;s<t.length;++s){if((e-=2)<0)break;r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n)}return o}function G(t){return k.toByteArray($(t))}function Z(t,e,r,n){for(var i=0;i<n;++i){if(i+r>=e.length||i>=t.length)break;e[i+r]=t[i]}return i}function J(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!==t}var Y=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()})),O=(A.Buffer,A.SlowBuffer,A.INSPECT_MAX_BYTES,A.kMaxLength,o((function(t){(function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"===typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o=A.Buffer}catch(x){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var s=t.charCodeAt(o)-48;n<<=4,n|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function a(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}i.isBN=function(t){return t instanceof i||null!==t&&"object"===typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},i.prototype._initNumber=function(t,e,n){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):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},i.prototype._initArray=function(t,e,n){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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},i.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=s(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,n++);r+6!==e&&(i=s(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,u=Math.min(o,o-s)+r,h=0,l=r;l<u;l+=n)h=a(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=a(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},i.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.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"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],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()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function f(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}i.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],c=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,n=0!==o||s!==this.length-1?u[6-c.length]+c+n:c+n,i+=2,i>=26&&(i-=26,s--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var f=h[t],d=l[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),n=p.isZero()?m+n:u[f-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.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},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(t,e){return r("undefined"!==typeof o),this.toArrayLike(o,t,e)},i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},i.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},i.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},i.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function p(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function m(t,e,r){var n=new v;return n.mulp(t,e,r)}function v(t,e){this.x=t,this.y=e}Math.imul||(d=f),i.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?d(this,t,e):n<63?f(this,t,e):n<1024?p(this,t,e):m(this,t,e),r},v.prototype.makeRBT=function(t){for(var e=new Array(t),r=i.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},v.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},v.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},v.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},v.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},v.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,n,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],n[2*s]=8191&o,o>>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)n[s]=0;r(0===o),r(0===(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},v.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),m(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){r("number"===typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=c(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<n;this.words[e]=u|s,s=a>>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},i.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=n;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return!1;var o=this.words[n];return!!(o&i)},i.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return r("number"===typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},i.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,n){var i,o,s=t.length+n;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)o=(0|this.words[i+n])+a,a=o>>26,this.words[i+n]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),o=t,s=0|o.words[o.length-1],a=this._countBits(s);r=26-a,0!==r&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var u,h=n.length-o.length;if("mod"!==e){u=new i(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(o,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[o.length+f])+(0|n.words[o.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(o,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(o,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},i.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(o=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(o=a.div.neg()),{div:o,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,s,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},i.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var o=new i(1),s=new i(0),a=new i(0),u=new i(1),h=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++h;var l=n.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(c)),o.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),o.isub(a),s.isub(u)):(n.isub(e),a.isub(o),u.isub(s))}return{a:a,b:u,gcd:n.iushln(h)}},i.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var o,s=new i(1),a=new i(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(n.words[0]&f)&&c<26;++c,f<<=1);if(c>0){n.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return o=0===e.cmpn(1)?s:a,o.cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0===(1&this.words[0])},i.prototype.isOdd=function(){return 1===(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new k(t)},i.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)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=i._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 S(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},n(b,y),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-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,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(w,y),n(M,y),n(_,y),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return g[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.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")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new i(1)).iushrn(2);return this.pow(t,n)}var o=this.m.subn(1),s=0;while(!o.isZero()&&0===o.andln(1))s++,o.iushrn(1);r(!o.isZero());var a=new i(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new i(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,o),f=this.pow(t,o.addn(1).iushrn(1)),d=this.pow(t,o),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();r(v<p);var g=this.pow(c,new i(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new i(1).toRed(this),n[1]=t;for(var o=2;o<n.length;o++)n[o]=this.mul(n[o-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),o=e.length-1;o>=0;o--){for(var l=e.words[o],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===o&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new S(t)},n(S,k),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},S.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,n)}))),T=(O.BN,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="logger/5.0.6"}))),C=(i(T),T.version,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=!1,n=!1,i={debug:1,default:2,info:2,warning:3,error:4,off:5},o=i["default"],s=null;function a(){try{var t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(e){try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}var u,h,l=a();(function(t){t["DEBUG"]="DEBUG",t["INFO"]="INFO",t["WARNING"]="WARNING",t["ERROR"]="ERROR",t["OFF"]="OFF"})(u=e.LogLevel||(e.LogLevel={})),function(t){t["UNKNOWN_ERROR"]="UNKNOWN_ERROR",t["NOT_IMPLEMENTED"]="NOT_IMPLEMENTED",t["UNSUPPORTED_OPERATION"]="UNSUPPORTED_OPERATION",t["NETWORK_ERROR"]="NETWORK_ERROR",t["SERVER_ERROR"]="SERVER_ERROR",t["TIMEOUT"]="TIMEOUT",t["BUFFER_OVERRUN"]="BUFFER_OVERRUN",t["NUMERIC_FAULT"]="NUMERIC_FAULT",t["MISSING_NEW"]="MISSING_NEW",t["INVALID_ARGUMENT"]="INVALID_ARGUMENT",t["MISSING_ARGUMENT"]="MISSING_ARGUMENT",t["UNEXPECTED_ARGUMENT"]="UNEXPECTED_ARGUMENT",t["CALL_EXCEPTION"]="CALL_EXCEPTION",t["INSUFFICIENT_FUNDS"]="INSUFFICIENT_FUNDS",t["NONCE_EXPIRED"]="NONCE_EXPIRED",t["REPLACEMENT_UNDERPRICED"]="REPLACEMENT_UNDERPRICED",t["UNPREDICTABLE_GAS_LIMIT"]="UNPREDICTABLE_GAS_LIMIT"}(h=e.ErrorCode||(e.ErrorCode={}));var c=function(){function t(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}return t.prototype._log=function(t,e){var r=t.toLowerCase();null==i[r]&&this.throwArgumentError("invalid log level name","logLevel",t),o>i[r]||console.log.apply(console,e)},t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._log(t.levels.DEBUG,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._log(t.levels.INFO,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._log(t.levels.WARNING,e)},t.prototype.makeError=function(e,r,i){if(n)return this.makeError("censored error",r,{});r||(r=t.errors.UNKNOWN_ERROR),i||(i={});var o=[];Object.keys(i).forEach((function(t){try{o.push(t+"="+JSON.stringify(i[t]))}catch(a){o.push(t+"="+JSON.stringify(i[t].toString()))}})),o.push("code="+r),o.push("version="+this.version);var s=e;o.length&&(e+=" ("+o.join(", ")+")");var a=new Error(e);return a.reason=s,a.code=r,Object.keys(i).forEach((function(t){a[t]=i[t]})),a},t.prototype.throwError=function(t,e,r){throw this.makeError(t,e,r)},t.prototype.throwArgumentError=function(e,r,n){return this.throwError(e,t.errors.INVALID_ARGUMENT,{argument:r,value:n})},t.prototype.assert=function(t,e,r,n){t||this.throwError(e,r,n)},t.prototype.assertArgument=function(t,e,r,n){t||this.throwArgumentError(e,r,n)},t.prototype.checkNormalize=function(e){null==e&&(e="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",t.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})},t.prototype.checkSafeUint53=function(e,r){"number"===typeof e&&(null==r&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))},t.prototype.checkArgumentCount=function(e,r,n){n=n?": "+n:"",e<r&&this.throwError("missing argument"+n,t.errors.MISSING_ARGUMENT,{count:e,expectedCount:r}),e>r&&this.throwError("too many arguments"+n,t.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})},t.prototype.checkNew=function(e,r){e!==Object&&null!=e||this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})},t.prototype.checkAbstract=function(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",t.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})},t.globalLogger=function(){return s||(s=new t(T.version)),s},t.setCensorship=function(e,i){if(!e&&i&&this.globalLogger().throwError("cannot permanently disable censorship",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),r){if(!e)return;this.globalLogger().throwError("error censorship permanent",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}n=!!e,r=!!i},t.setLogLevel=function(e){var r=i[e.toLowerCase()];null!=r?o=r:t.globalLogger().warn("invalid log level - "+e)},t.errors=h,t.levels=u,t}();e.Logger=c}))),P=(i(C),C.LogLevel,C.ErrorCode,C.Logger,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="bytes/5.0.5"}))),B=(i(P),P.version,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger(P.version);function n(t){return!!t.toHexString}function i(t){return t.slice||(t.slice=function(){var e=Array.prototype.slice.call(arguments);return i(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function o(t){return c(t)&&!(t.length%2)||s(t)}function s(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"===typeof t)return!1;if(null==t.length)return!1;for(var e=0;e<t.length;e++){var r=t[e];if(r<0||r>=256||r%1)return!1}return!0}function a(t,e){if(e||(e={}),"number"===typeof t){r.checkSafeUint53(t,"invalid arrayify value");var o=[];while(t)o.unshift(255&t),t=parseInt(String(t/256));return 0===o.length&&o.push(0),i(new Uint8Array(o))}if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),n(t)&&(t=t.toHexString()),c(t)){var a=t.substring(2);a.length%2&&("left"===e.hexPad?a="0x0"+a.substring(2):"right"===e.hexPad?a+="0":r.throwArgumentError("hex data is odd-length","value",t));o=[];for(var u=0;u<a.length;u+=2)o.push(parseInt(a.substring(u,u+2),16));return i(new Uint8Array(o))}return s(t)?i(new Uint8Array(t)):r.throwArgumentError("invalid arrayify value","value",t)}function u(t){var e=t.map((function(t){return a(t)})),r=e.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(r);return e.reduce((function(t,e){return n.set(e,t),t+e.length}),0),i(n)}function h(t){var e=a(t);if(0===e.length)return e;var r=0;while(r<e.length&&0===e[r])r++;return r&&(e=e.slice(r)),e}function l(t,e){t=a(t),t.length>e&&r.throwArgumentError("value out of range","value",arguments[0]);var n=new Uint8Array(e);return n.set(t,e-t.length),i(n)}function c(t,e){return!("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}e.isBytesLike=o,e.isBytes=s,e.arrayify=a,e.concat=u,e.stripZeros=h,e.zeroPad=l,e.isHexString=c;var f="0123456789abcdef";function d(t,e){if(e||(e={}),"number"===typeof t){r.checkSafeUint53(t,"invalid hexlify value");var i="";while(t)i=f[15&t]+i,t=Math.floor(t/16);return i.length?(i.length%2&&(i="0"+i),"0x"+i):"0x00"}if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),n(t))return t.toHexString();if(c(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":r.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(s(t)){for(var o="0x",a=0;a<t.length;a++){var u=t[a];o+=f[(240&u)>>4]+f[15&u]}return o}return r.throwArgumentError("invalid hexlify value","value",t)}function p(t){if("string"!==typeof t)t=d(t);else if(!c(t)||t.length%2)return null;return(t.length-2)/2}function m(t,e,n){return"string"!==typeof t?t=d(t):(!c(t)||t.length%2)&&r.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=n?"0x"+t.substring(e,2+2*n):"0x"+t.substring(e)}function v(t){var e="0x";return t.forEach((function(t){e+=d(t).substring(2)})),e}function g(t){var e=y(d(t,{hexPad:"left"}));return"0x"===e?"0x0":e}function y(t){"string"!==typeof t&&(t=d(t)),c(t)||r.throwArgumentError("invalid hex string","value",t),t=t.substring(2);var e=0;while(e<t.length&&"0"===t[e])e++;return"0x"+t.substring(e)}function b(t,e){"string"!==typeof t?t=d(t):c(t)||r.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&r.throwArgumentError("value out of range","value",arguments[1]);while(t.length<2*e+2)t="0x0"+t.substring(2);return t}function w(t){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(o(t)){var n=a(t);65!==n.length&&r.throwArgumentError("invalid signature string; must be 65 bytes","signature",t),e.r=d(n.slice(0,32)),e.s=d(n.slice(32,64)),e.v=n[64],e.v<27&&(0===e.v||1===e.v?e.v+=27:r.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(n[32]|=128),e._vs=d(n.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){var i=l(a(e._vs),32);e._vs=d(i);var s=i[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=s:e.recoveryParam!==s&&r.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),i[0]&=127;var u=d(i);null==e.s?e.s=u:e.s!==u&&r.throwArgumentError("signature v mismatch _vs","signature",t)}null==e.recoveryParam?null==e.v?r.throwArgumentError("signature missing v and recoveryParam","signature",t):e.recoveryParam=1-e.v%2:null==e.v?e.v=27+e.recoveryParam:e.recoveryParam!==1-e.v%2&&r.throwArgumentError("signature recoveryParam mismatch v","signature",t),null!=e.r&&c(e.r)?e.r=b(e.r,32):r.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&c(e.s)?e.s=b(e.s,32):r.throwArgumentError("signature missing or invalid s","signature",t);var h=a(e.s);h[0]>=128&&r.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(h[0]|=128);var f=d(h);e._vs&&(c(e._vs)||r.throwArgumentError("signature invalid _vs","signature",t),e._vs=b(e._vs,32)),null==e._vs?e._vs=f:e._vs!==f&&r.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e}function M(t){return t=w(t),d(u([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}e.hexlify=d,e.hexDataLength=p,e.hexDataSlice=m,e.hexConcat=v,e.hexValue=g,e.hexStripZeros=y,e.hexZeroPad=b,e.splitSignature=w,e.joinSignature=M}))),I=(i(B),B.isBytesLike,B.isBytes,B.arrayify,B.concat,B.stripZeros,B.zeroPad,B.isHexString,B.hexlify,B.hexDataLength,B.hexDataSlice,B.hexConcat,B.hexValue,B.hexStripZeros,B.hexZeroPad,B.splitSignature,B.joinSignature,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="bignumber/5.0.8"}))),R=(i(I),I.version,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger(I.version),n={},i=9007199254740991;function o(t){return null!=t&&(s.isBigNumber(t)||"number"===typeof t&&t%1===0||"string"===typeof t&&!!t.match(/^-?[0-9]+$/)||B.isHexString(t)||"bigint"===typeof t||B.isBytes(t))}e.isBigNumberish=o;var s=function(){function t(e,i){var o=this.constructor;r.checkNew(o,t),e!==n&&r.throwError("cannot call constructor directly; use BigNumber.from",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=i,this._isBigNumber=!0,Object.freeze(this)}return t.prototype.fromTwos=function(t){return u(h(this).fromTwos(t))},t.prototype.toTwos=function(t){return u(h(this).toTwos(t))},t.prototype.abs=function(){return"-"===this._hex[0]?t.from(this._hex.substring(1)):this},t.prototype.add=function(t){return u(h(this).add(h(t)))},t.prototype.sub=function(t){return u(h(this).sub(h(t)))},t.prototype.div=function(e){var r=t.from(e);return r.isZero()&&l("division by zero","div"),u(h(this).div(h(e)))},t.prototype.mul=function(t){return u(h(this).mul(h(t)))},t.prototype.mod=function(t){var e=h(t);return e.isNeg()&&l("cannot modulo negative values","mod"),u(h(this).umod(e))},t.prototype.pow=function(t){var e=h(t);return e.isNeg()&&l("cannot raise to negative values","pow"),u(h(this).pow(e))},t.prototype.and=function(t){var e=h(t);return(this.isNegative()||e.isNeg())&&l("cannot 'and' negative values","and"),u(h(this).and(e))},t.prototype.or=function(t){var e=h(t);return(this.isNegative()||e.isNeg())&&l("cannot 'or' negative values","or"),u(h(this).or(e))},t.prototype.xor=function(t){var e=h(t);return(this.isNegative()||e.isNeg())&&l("cannot 'xor' negative values","xor"),u(h(this).xor(e))},t.prototype.mask=function(t){return(this.isNegative()||t<0)&&l("cannot mask negative values","mask"),u(h(this).maskn(t))},t.prototype.shl=function(t){return(this.isNegative()||t<0)&&l("cannot shift negative values","shl"),u(h(this).shln(t))},t.prototype.shr=function(t){return(this.isNegative()||t<0)&&l("cannot shift negative values","shr"),u(h(this).shrn(t))},t.prototype.eq=function(t){return h(this).eq(h(t))},t.prototype.lt=function(t){return h(this).lt(h(t))},t.prototype.lte=function(t){return h(this).lte(h(t))},t.prototype.gt=function(t){return h(this).gt(h(t))},t.prototype.gte=function(t){return h(this).gte(h(t))},t.prototype.isNegative=function(){return"-"===this._hex[0]},t.prototype.isZero=function(){return h(this).isZero()},t.prototype.toNumber=function(){try{return h(this).toNumber()}catch(t){l("overflow","toNumber",this.toString())}return null},t.prototype.toString=function(){return 0!==arguments.length&&r.throwError("bigNumber.toString does not accept parameters",C.Logger.errors.UNEXPECTED_ARGUMENT,{}),h(this).toString(10)},t.prototype.toHexString=function(){return this._hex},t.prototype.toJSON=function(t){return{type:"BigNumber",hex:this.toHexString()}},t.from=function(e){if(e instanceof t)return e;if("string"===typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new t(n,a(e)):e.match(/^-?[0-9]+$/)?new t(n,a(new O.BN(e))):r.throwArgumentError("invalid BigNumber string","value",e);if("number"===typeof e)return e%1&&l("underflow","BigNumber.from",e),(e>=i||e<=-i)&&l("overflow","BigNumber.from",e),t.from(String(e));var o=e;if("bigint"===typeof o)return t.from(o.toString());if(B.isBytes(o))return t.from(B.hexlify(o));if(o)if(o.toHexString){var s=o.toHexString();if("string"===typeof s)return t.from(s)}else{s=o._hex;if(null==s&&"BigNumber"===o.type&&(s=o.hex),"string"===typeof s&&(B.isHexString(s)||"-"===s[0]&&B.isHexString(s.substring(1))))return t.from(s)}return r.throwArgumentError("invalid BigNumber value","value",e)},t.isBigNumber=function(t){return!(!t||!t._isBigNumber)},t}();function a(t){if("string"!==typeof t)return a(t.toString(16));if("-"===t[0])return t=t.substring(1),"-"===t[0]&&r.throwArgumentError("invalid hex","value",t),t=a(t),"0x00"===t?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";t.length%2&&(t="0x0"+t.substring(2));while(t.length>4&&"0x00"===t.substring(0,4))t="0x"+t.substring(4);return t}function u(t){return s.from(a(t))}function h(t){var e=s.from(t).toHexString();return"-"===e[0]?new O.BN("-"+e.substring(3),16):new O.BN(e.substring(2),16)}function l(t,e,n){var i={fault:t,operation:e};return null!=n&&(i.value=n),r.throwError(t,C.Logger.errors.NUMERIC_FAULT,i)}e.BigNumber=s}))),N=(i(R),R.isBigNumberish,R.BigNumber,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger(I.version),n={},i=R.BigNumber.from(0),o=R.BigNumber.from(-1);function s(t,e,n,i){var o={fault:e,operation:n};return void 0!==i&&(o.value=i),r.throwError(t,C.Logger.errors.NUMERIC_FAULT,o)}var a="0";while(a.length<256)a+=a;function u(t){if("number"!==typeof t)try{t=R.BigNumber.from(t).toNumber()}catch(e){}return"number"===typeof t&&t>=0&&t<=256&&!(t%1)?"1"+a.substring(0,t):r.throwArgumentError("invalid decimal size","decimals",t)}function h(t,e){null==e&&(e=0);var r=u(e);t=R.BigNumber.from(t);var n=t.lt(i);n&&(t=t.mul(o));var s=t.mod(r).toString();while(s.length<r.length-1)s="0"+s;s=s.match(/^([0-9]*[1-9]|0)(0*)/)[1];var a=t.div(r).toString();return t=a+"."+s,n&&(t="-"+t),t}function l(t,e){null==e&&(e=0);var n=u(e);if("string"===typeof t&&t.match(/^-?[0-9.,]+$/)||r.throwArgumentError("invalid decimal value","value",t),n.length-1===0)return R.BigNumber.from(t);var i="-"===t.substring(0,1);i&&(t=t.substring(1)),"."===t&&r.throwArgumentError("missing value","value",t);var a=t.split(".");a.length>2&&r.throwArgumentError("too many decimal points","value",t);var h=a[0],l=a[1];h||(h="0"),l||(l="0"),l.length>n.length-1&&s("fractional component exceeds decimals","underflow","parseFixed");while(l.length<n.length-1)l+="0";var c=R.BigNumber.from(h),f=R.BigNumber.from(l),d=c.mul(n).add(f);return i&&(d=d.mul(o)),d}e.formatFixed=h,e.parseFixed=l;var c=function(){function t(t,e,i,o){t!==n&&r.throwError("cannot use FixedFormat constructor; use FixedFormat.from",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=e,this.width=i,this.decimals=o,this.name=(e?"":"u")+"fixed"+String(i)+"x"+String(o),this._multiplier=u(o),Object.freeze(this)}return t.from=function(e){if(e instanceof t)return e;var i=!0,o=128,s=18;if("string"===typeof e){if("fixed"===e);else if("ufixed"===e)i=!1;else if(null!=e){var a=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);a||r.throwArgumentError("invalid fixed format","format",e),i="u"!==a[1],o=parseInt(a[2]),s=parseInt(a[3])}}else if(e){var u=function(t,n,i){return null==e[t]?i:(typeof e[t]!==n&&r.throwArgumentError("invalid fixed format ("+t+" not "+n+")","format."+t,e[t]),e[t])};i=u("signed","boolean",i),o=u("width","number",o),s=u("decimals","number",s)}return o%8&&r.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",o),s>80&&r.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",s),new t(n,i,o,s)},t}();e.FixedFormat=c;var f=function(){function t(e,i,o,s){var a=this.constructor;r.checkNew(a,t),e!==n&&r.throwError("cannot use FixedNumber constructor; use FixedNumber.from",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=s,this._hex=i,this._value=o,this._isFixedNumber=!0,Object.freeze(this)}return t.prototype._checkFormat=function(t){this.format.name!==t.format.name&&r.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)},t.prototype.addUnsafe=function(e){this._checkFormat(e);var r=l(this._value,this.format.decimals),n=l(e._value,e.format.decimals);return t.fromValue(r.add(n),this.format.decimals,this.format)},t.prototype.subUnsafe=function(e){this._checkFormat(e);var r=l(this._value,this.format.decimals),n=l(e._value,e.format.decimals);return t.fromValue(r.sub(n),this.format.decimals,this.format)},t.prototype.mulUnsafe=function(e){this._checkFormat(e);var r=l(this._value,this.format.decimals),n=l(e._value,e.format.decimals);return t.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},t.prototype.divUnsafe=function(e){this._checkFormat(e);var r=l(this._value,this.format.decimals),n=l(e._value,e.format.decimals);return t.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},t.prototype.floor=function(){var e=this.toString().split("."),r=t.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(d)),r},t.prototype.ceiling=function(){var e=this.toString().split("."),r=t.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(d)),r},t.prototype.round=function(e){null==e&&(e=0);var n=this.toString().split(".");if((e<0||e>80||e%1)&&r.throwArgumentError("invalid decimal count","decimals",e),n[1].length<=e)return this;var i=t.from("1"+a.substring(0,e));return this.mulUnsafe(i).addUnsafe(p).floor().divUnsafe(i)},t.prototype.isZero=function(){return"0.0"===this._value},t.prototype.isNegative=function(){return"-"===this._value[0]},t.prototype.toString=function(){return this._value},t.prototype.toHexString=function(t){if(null==t)return this._hex;t%8&&r.throwArgumentError("invalid byte width","width",t);var e=R.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString();return B.hexZeroPad(e,t/8)},t.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},t.prototype.toFormat=function(e){return t.fromString(this._value,e)},t.fromValue=function(e,r,n){return null!=n||null==r||R.isBigNumberish(r)||(n=r,r=null),null==r&&(r=0),null==n&&(n="fixed"),t.fromString(h(e,r),c.from(n))},t.fromString=function(e,r){null==r&&(r="fixed");var o=c.from(r),a=l(e,o.decimals);!o.signed&&a.lt(i)&&s("unsigned value cannot be negative","overflow","value",e);var u=null;o.signed?u=a.toTwos(o.width).toHexString():(u=a.toHexString(),u=B.hexZeroPad(u,o.width/8));var f=h(a,o.decimals);return new t(n,u,f,o)},t.fromBytes=function(e,r){null==r&&(r="fixed");var i=c.from(r);if(B.arrayify(e).length>i.width/8)throw new Error("overflow");var o=R.BigNumber.from(e);i.signed&&(o=o.fromTwos(i.width));var s=o.toTwos((i.signed?0:1)+i.width).toHexString(),a=h(o,i.decimals);return new t(n,s,a,i)},t.from=function(e,n){if("string"===typeof e)return t.fromString(e,n);if(B.isBytes(e))return t.fromBytes(e,n);try{return t.fromValue(e,0,n)}catch(i){if(i.code!==C.Logger.errors.INVALID_ARGUMENT)throw i}return r.throwArgumentError("invalid FixedNumber value","value",e)},t.isFixedNumber=function(t){return!(!t||!t._isFixedNumber)},t}();e.FixedNumber=f;var d=f.from(1),p=f.from("0.5")}))),j=(i(N),N.formatFixed,N.parseFixed,N.FixedFormat,N.FixedNumber,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.BigNumber=R.BigNumber,e.formatFixed=N.formatFixed,e.FixedFormat=N.FixedFormat,e.FixedNumber=N.FixedNumber,e.parseFixed=N.parseFixed}))),L=(i(j),j.BigNumber,j.formatFixed,j.FixedFormat,j.FixedNumber,j.parseFixed,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="properties/5.0.4"}))),U=(i(L),L.version,o((function(t,e){var r=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},i=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var o=new C.Logger(L.version);function s(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function a(t,e){for(var r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||"object"!==typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function u(t){return r(this,void 0,void 0,(function(){var e,r;return i(this,(function(n){switch(n.label){case 0:return e=Object.keys(t).map((function(e){var r=t[e];return Promise.resolve(r).then((function(t){return{key:e,value:t}}))})),[4,Promise.all(e)];case 1:return r=n.sent(),[2,r.reduce((function(t,e){return t[e.key]=e.value,t}),{})]}}))}))}function h(t,e){t&&"object"===typeof t||o.throwArgumentError("invalid object","object",t),Object.keys(t).forEach((function(r){e[r]||o.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)}))}function l(t){var e={};for(var r in t)e[r]=t[r];return e}e.defineReadOnly=s,e.getStatic=a,e.resolveProperties=u,e.checkProperties=h,e.shallowCopy=l;var c={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function f(t){if(void 0===t||null===t||c[typeof t])return!0;if(Array.isArray(t)||"object"===typeof t){if(!Object.isFrozen(t))return!1;for(var e=Object.keys(t),r=0;r<e.length;r++)if(!f(t[e[r]]))return!1;return!0}return o.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function d(t){if(f(t))return t;if(Array.isArray(t))return Object.freeze(t.map((function(t){return p(t)})));if("object"===typeof t){var e={};for(var r in t){var n=t[r];void 0!==n&&s(e,r,p(n))}return e}return o.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function p(t){return d(t)}e.deepCopy=p;var m=function(){function t(t){for(var e in t)this[e]=p(t[e])}return t}();e.Description=m}))),D=(i(U),U.defineReadOnly,U.getStatic,U.resolveProperties,U.checkProperties,U.shallowCopy,U.deepCopy,U.Description,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="abi/5.0.7"}))),F=(i(D),D.version,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=new C.Logger(D.version),o={},s={calldata:!0,memory:!0,storage:!0},a={calldata:!0,memory:!0};function u(t,e){if("bytes"===t||"string"===t){if(s[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&a[e])return!0;return(s[e]||"payable"===e)&&i.throwArgumentError("invalid modifier","name",e),!1}function h(t,e){var r=t;function n(e){i.throwArgumentError("unexpected character at position "+e,"param",t)}function o(t){var r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");for(var s={type:"",name:"",state:{allowType:!0}},a=s,h=0;h<t.length;h++){var l=t[h];switch(l){case"(":a.state.allowType&&""===a.type?a.type="tuple":a.state.allowParams||n(h),a.state.allowType=!1,a.type=M(a.type),a.components=[o(a)],a=a.components[0];break;case")":delete a.state,"indexed"===a.name&&(e||n(h),a.indexed=!0,a.name=""),u(a.type,a.name)&&(a.name=""),a.type=M(a.type);var c=a;a=a.parent,a||n(h),delete c.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,"indexed"===a.name&&(e||n(h),a.indexed=!0,a.name=""),u(a.type,a.name)&&(a.name=""),a.type=M(a.type);var f=o(a.parent);a.parent.components.push(f),delete a.parent,a=f;break;case" ":a.state.allowType&&""!==a.type&&(a.type=M(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&("indexed"===a.name?(e||n(h),a.indexed&&n(h),a.indexed=!0,a.name=""):u(a.type,a.name)?a.name="":a.state.allowName=!1);break;case"[":a.state.allowArray||n(h),a.type+=l,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||n(h),a.type+=l,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=l,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=l,delete a.state.allowArray):a.state.readArray?a.type+=l:n(h)}}return a.parent&&i.throwArgumentError("unexpected eof","param",t),delete s.state,"indexed"===a.name?(e||n(r.length-7),a.indexed&&n(r.length-7),a.indexed=!0,a.name=""):u(a.type,a.name)&&(a.name=""),s.type=M(s.type),s}function l(t,e){for(var r in e)U.defineReadOnly(t,r,e[r])}e.FormatTypes=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"});var c=new RegExp(/^(.*)\[([0-9]*)\]$/),f=function(){function t(e,r){e!==o&&i.throwError("use fromString",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),l(this,r);var n=this.type.match(c);l(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:t.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return t.prototype.format=function(t){if(t||(t=e.FormatTypes.sighash),e.FormatTypes[t]||i.throwArgumentError("invalid format type","format",t),t===e.FormatTypes.json){var r={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"===typeof this.indexed&&(r.indexed=this.indexed),this.components&&(r.components=this.components.map((function(e){return JSON.parse(e.format(t))}))),JSON.stringify(r)}var n="";return"array"===this.baseType?(n+=this.arrayChildren.format(t),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==e.FormatTypes.sighash&&(n+=this.type),n+="("+this.components.map((function(e){return e.format(t)})).join(t===e.FormatTypes.full?", ":",")+")"):n+=this.type,t!==e.FormatTypes.sighash&&(!0===this.indexed&&(n+=" indexed"),t===e.FormatTypes.full&&this.name&&(n+=" "+this.name)),n},t.from=function(e,r){return"string"===typeof e?t.fromString(e,r):t.fromObject(e)},t.fromObject=function(e){return t.isParamType(e)?e:new t(o,{name:e.name||null,type:M(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(t.fromObject):null})},t.fromString=function(e,r){function n(e){return t.fromObject({name:e.name,type:e.type,indexed:e.indexed,components:e.components})}return n(h(e,!!r))},t.isParamType=function(t){return!(null==t||!t._isParamType)},t}();function d(t,e){return x(t).map((function(t){return f.fromString(t,e)}))}e.ParamType=f;var p=function(){function t(t,e){t!==o&&i.throwError("use a static from method",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),l(this,e),this._isFragment=!0,Object.freeze(this)}return t.from=function(e){return t.isFragment(e)?e:"string"===typeof e?t.fromString(e):t.fromObject(e)},t.fromObject=function(e){if(t.isFragment(e))return e;switch(e.type){case"function":return w.fromObject(e);case"event":return m.fromObject(e);case"constructor":return b.fromObject(e);case"fallback":case"receive":return null}return i.throwArgumentError("invalid fragment object","value",e)},t.fromString=function(t){return t=t.replace(/\s/g," "),t=t.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),t=t.trim(),"event"===t.split(" ")[0]?m.fromString(t.substring(5).trim()):"function"===t.split(" ")[0]?w.fromString(t.substring(8).trim()):"constructor"===t.split("(")[0].trim()?b.fromString(t.trim()):i.throwArgumentError("unsupported fragment","value",t)},t.isFragment=function(t){return!(!t||!t._isFragment)},t}();e.Fragment=p;var m=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.format=function(t){if(t||(t=e.FormatTypes.sighash),e.FormatTypes[t]||i.throwArgumentError("invalid format type","format",t),t===e.FormatTypes.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((function(e){return JSON.parse(e.format(t))}))});var r="";return t!==e.FormatTypes.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map((function(e){return e.format(t)})).join(t===e.FormatTypes.full?", ":",")+") ",t!==e.FormatTypes.sighash&&this.anonymous&&(r+="anonymous "),r.trim()},n.from=function(t){return"string"===typeof t?n.fromString(t):n.fromObject(t)},n.fromObject=function(t){if(n.isEventFragment(t))return t;"event"!==t.type&&i.throwArgumentError("invalid event object","value",t);var e={name:k(t.name),anonymous:t.anonymous,inputs:t.inputs?t.inputs.map(f.fromObject):[],type:"event"};return new n(o,e)},n.fromString=function(t){var e=t.match(S);e||i.throwArgumentError("invalid event string","value",t);var r=!1;return e[3].split(" ").forEach((function(t){switch(t.trim()){case"anonymous":r=!0;break;case"":break;default:i.warn("unknown modifier: "+t)}})),n.fromObject({name:e[1].trim(),anonymous:r,inputs:d(e[2],!0),type:"event"})},n.isEventFragment=function(t){return t&&t._isFragment&&"event"===t.type},n}(p);function v(t,e){e.gas=null;var r=t.split("@");return 1!==r.length?(r.length>2&&i.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||i.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=j.BigNumber.from(r[1]),r[0]):t}function g(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach((function(t){switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}}))}function y(t){var e={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(e.stateMutability=t.stateMutability,e.constant="view"===e.stateMutability||"pure"===e.stateMutability,null!=t.constant&&!!t.constant!==e.constant&&i.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable="payable"===e.stateMutability,null!=t.payable&&!!t.payable!==e.payable&&i.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):null!=t.payable?(e.payable=!!t.payable,null!=t.constant||e.payable||"constructor"===t.type||i.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&i.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):"constructor"!==t.type&&i.throwArgumentError("unable to determine stateMutability","value",t),e}e.EventFragment=m;var b=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.format=function(t){if(t||(t=e.FormatTypes.sighash),e.FormatTypes[t]||i.throwArgumentError("invalid format type","format",t),t===e.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(e){return JSON.parse(e.format(t))}))});t===e.FormatTypes.sighash&&i.throwError("cannot format a constructor for sighash",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var r="constructor("+this.inputs.map((function(e){return e.format(t)})).join(t===e.FormatTypes.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(r+=this.stateMutability+" "),r.trim()},n.from=function(t){return"string"===typeof t?n.fromString(t):n.fromObject(t)},n.fromObject=function(t){if(n.isConstructorFragment(t))return t;"constructor"!==t.type&&i.throwArgumentError("invalid constructor object","value",t);var e=y(t);e.constant&&i.throwArgumentError("constructor cannot be constant","value",t);var r={name:null,type:t.type,inputs:t.inputs?t.inputs.map(f.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?j.BigNumber.from(t.gas):null};return new n(o,r)},n.fromString=function(t){var e={type:"constructor"};t=v(t,e);var r=t.match(S);return r&&"constructor"===r[1].trim()||i.throwArgumentError("invalid constructor string","value",t),e.inputs=d(r[2].trim(),!1),g(r[3].trim(),e),n.fromObject(e)},n.isConstructorFragment=function(t){return t&&t._isFragment&&"constructor"===t.type},n}(p);e.ConstructorFragment=b;var w=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.format=function(t){if(t||(t=e.FormatTypes.sighash),e.FormatTypes[t]||i.throwArgumentError("invalid format type","format",t),t===e.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(e){return JSON.parse(e.format(t))})),ouputs:this.outputs.map((function(e){return JSON.parse(e.format(t))}))});var r="";return t!==e.FormatTypes.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map((function(e){return e.format(t)})).join(t===e.FormatTypes.full?", ":",")+") ",t!==e.FormatTypes.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(r+=this.stateMutability+" "):this.constant&&(r+="view "),this.outputs&&this.outputs.length&&(r+="returns ("+this.outputs.map((function(e){return e.format(t)})).join(", ")+") "),null!=this.gas&&(r+="@"+this.gas.toString()+" ")),r.trim()},n.from=function(t){return"string"===typeof t?n.fromString(t):n.fromObject(t)},n.fromObject=function(t){if(n.isFunctionFragment(t))return t;"function"!==t.type&&i.throwArgumentError("invalid function object","value",t);var e=y(t),r={type:t.type,name:k(t.name),constant:e.constant,inputs:t.inputs?t.inputs.map(f.fromObject):[],outputs:t.outputs?t.outputs.map(f.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?j.BigNumber.from(t.gas):null};return new n(o,r)},n.fromString=function(t){var e={type:"function"};t=v(t,e);var r=t.split(" returns ");r.length>2&&i.throwArgumentError("invalid function string","value",t);var o=r[0].match(S);if(o||i.throwArgumentError("invalid function signature","value",t),e.name=o[1].trim(),e.name&&k(e.name),e.inputs=d(o[2],!1),g(o[3].trim(),e),r.length>1){var s=r[1].match(S);""==s[1].trim()&&""==s[3].trim()||i.throwArgumentError("unexpected tokens","value",t),e.outputs=d(s[2],!1)}else e.outputs=[];return n.fromObject(e)},n.isFunctionFragment=function(t){return t&&t._isFragment&&"function"===t.type},n}(b);function M(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}e.FunctionFragment=w;var _=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function k(t){return t&&t.match(_)||i.throwArgumentError('invalid identifier "'+t+'"',"value",t),t}var S=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function x(t){t=t.trim();for(var e=[],r="",n=0,o=0;o<t.length;o++){var s=t[o];","===s&&0===n?(e.push(r),r=""):(r+=s,"("===s?n++:")"===s&&(n--,-1===n&&i.throwArgumentError("unbalanced parenthesis","value",t)))}return r&&e.push(r),e}}))),z=(i(F),F.FormatTypes,F.ParamType,F.Fragment,F.EventFragment,F.ConstructorFragment,F.FunctionFragment,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger(D.version);function n(t){var e=[],r=function(t,n){if(Array.isArray(n))for(var i in n){var o=t.slice();o.push(i);try{r(o,n[i])}catch(s){e.push({path:o,error:s})}}};return r([],t),e}e.checkResultErrors=n;var i=function(){function t(t,e,r,n){this.name=t,this.type=e,this.localName=r,this.dynamic=n}return t.prototype._throwError=function(t,e){r.throwArgumentError(t,this.localName,e)},t}();e.Coder=i;var o=function(){function t(t){U.defineReadOnly(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return Object.defineProperty(t.prototype,"data",{get:function(){return B.hexConcat(this._data)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._dataLength},enumerable:!0,configurable:!0}),t.prototype._writeData=function(t){return this._data.push(t),this._dataLength+=t.length,t.length},t.prototype.appendWriter=function(t){return this._writeData(B.concat(t._data))},t.prototype.writeBytes=function(t){var e=B.arrayify(t),r=e.length%this.wordSize;return r&&(e=B.concat([e,this._padding.slice(r)])),this._writeData(e)},t.prototype._getValue=function(t){var e=B.arrayify(j.BigNumber.from(t));return e.length>this.wordSize&&r.throwError("value out-of-bounds",C.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=B.concat([this._padding.slice(e.length%this.wordSize),e])),e},t.prototype.writeValue=function(t){return this._writeData(this._getValue(t))},t.prototype.writeUpdatableValue=function(){var t=this,e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){t._data[e]=t._getValue(r)}},t}();e.Writer=o;var s=function(){function t(t,e,r,n){U.defineReadOnly(this,"_data",B.arrayify(t)),U.defineReadOnly(this,"wordSize",e||32),U.defineReadOnly(this,"_coerceFunc",r),U.defineReadOnly(this,"allowLoose",n),this._offset=0}return Object.defineProperty(t.prototype,"data",{get:function(){return B.hexlify(this._data)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"consumed",{get:function(){return this._offset},enumerable:!0,configurable:!0}),t.coerce=function(t,e){var r=t.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(e=e.toNumber()),e},t.prototype.coerce=function(e,r){return this._coerceFunc?this._coerceFunc(e,r):t.coerce(e,r)},t.prototype._peekBytes=function(t,e,n){var i=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&n&&this._offset+e<=this._data.length?i=e:r.throwError("data out-of-bounds",C.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)},t.prototype.subReader=function(e){return new t(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)},t.prototype.readBytes=function(t,e){var r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)},t.prototype.readValue=function(){return j.BigNumber.from(this.readBytes(this.wordSize))},t}();e.Reader=s}))),q=(i(z),z.checkResultErrors,z.Coder,z.Writer,z.Reader,o((function(t){
/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
*
* @version 0.5.7
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2015-2016
* @license MIT
*/
(function(){var e="object"===typeof window?window:{},i=!e.JS_SHA3_NO_NODE_JS&&"object"===typeof r&&r.versions&&r.versions.node;i&&(e=n);for(var o=!e.JS_SHA3_NO_COMMON_JS&&t.exports,s="0123456789abcdef".split(""),a=[31,7936,2031616,520093696],u=[1,256,65536,16777216],h=[6,1536,393216,100663296],l=[0,8,16,24],c=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],f=[224,256,384,512],d=[128,256],p=["hex","buffer","arrayBuffer","array"],m=function(t,e,r){return function(n){return new A(t,e,t).update(n)[r]()}},v=function(t,e,r){return function(n,i){return new A(t,e,i).update(n)[r]()}},g=function(t,e){var r=m(t,e,"hex");r.create=function(){return new A(t,e,t)},r.update=function(t){return r.create().update(t)};for(var n=0;n<p.length;++n){var i=p[n];r[i]=m(t,e,i)}return r},y=function(t,e){var r=v(t,e,"hex");r.create=function(r){return new A(t,e,r)},r.update=function(t,e){return r.create(e).update(t)};for(var n=0;n<p.length;++n){var i=p[n];r[i]=v(t,e,i)}return r},b=[{name:"keccak",padding:u,bits:f,createMethod:g},{name:"sha3",padding:h,bits:f,createMethod:g},{name:"shake",padding:a,bits:d,createMethod:y}],w={},M=[],_=0;_<b.length;++_)for(var k=b[_],S=k.bits,x=0;x<S.length;++x){var E=k.name+"_"+S[x];M.push(E),w[E]=k.createMethod(S[x],k.padding)}function A(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}A.prototype.update=function(t){var e="string"!==typeof t;e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));var r,n,i=t.length,o=this.blocks,s=this.byteCount,a=this.blockCount,u=0,h=this.s;while(u<i){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<a+1;++r)o[r]=0;if(e)for(r=this.start;u<i&&r<s;++u)o[r>>2]|=t[u]<<l[3&r++];else for(r=this.start;u<i&&r<s;++u)n=t.charCodeAt(u),n<128?o[r>>2]|=n<<l[3&r++]:n<2048?(o[r>>2]|=(192|n>>6)<<l[3&r++],o[r>>2]|=(128|63&n)<<l[3&r++]):n<55296||n>=57344?(o[r>>2]|=(224|n>>12)<<l[3&r++],o[r>>2]|=(128|n>>6&63)<<l[3&r++],o[r>>2]|=(128|63&n)<<l[3&r++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++u)),o[r>>2]|=(240|n>>18)<<l[3&r++],o[r>>2]|=(128|n>>12&63)<<l[3&r++],o[r>>2]|=(128|n>>6&63)<<l[3&r++],o[r>>2]|=(128|63&n)<<l[3&r++]);if(this.lastByteIndex=r,r>=s){for(this.start=r-s,this.block=o[a],r=0;r<a;++r)h[r]^=o[r];O(h),this.reset=!0}else this.start=r}return this},A.prototype.finalize=function(){var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];O(n)},A.prototype.toString=A.prototype.hex=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,u="";while(a<n){for(o=0;o<e&&a<n;++o,++a)t=r[o],u+=s[t>>4&15]+s[15&t]+s[t>>12&15]+s[t>>8&15]+s[t>>20&15]+s[t>>16&15]+s[t>>28&15]+s[t>>24&15];a%e===0&&(O(r),o=0)}return i&&(t=r[o],i>0&&(u+=s[t>>4&15]+s[15&t]),i>1&&(u+=s[t>>12&15]+s[t>>8&15]),i>2&&(u+=s[t>>20&15]+s[t>>16&15])),u},A.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);var u=new Uint32Array(t);while(s<n){for(o=0;o<e&&s<n;++o,++s)u[s]=r[o];s%e===0&&O(r)}return i&&(u[o]=r[o],t=t.slice(0,a)),t},A.prototype.buffer=A.prototype.arrayBuffer,A.prototype.digest=A.prototype.array=function(){this.finalize();var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,a=0,u=[];while(a<i){for(s=0;s<r&&a<i;++s,++a)t=a<<2,e=n[s],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;a%r===0&&O(n)}return o&&(t=a<<2,e=n[s],o>0&&(u[t]=255&e),o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u};var O=function(t){var e,r,n,i,o,s,a,u,h,l,f,d,p,m,v,g,y,b,w,M,_,k,S,x,E,A,O,T,C,P,B,I,R,N,j,L,U,D,F,z,q,H,$,V,K,W,G,Z,J,X,Y,Q,tt,et,rt,nt,it,ot,st,at,ut,ht,lt;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],h=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(s<<1|a>>>31),r=p^(a<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|h>>>31),r=o^(h<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(l<<1|f>>>31),r=a^(f<<1|l>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(d<<1|p>>>31),r=h^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],v=t[1],W=t[11]<<4|t[10]>>>28,G=t[10]<<4|t[11]>>>28,T=t[20]<<3|t[21]>>>29,C=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,$=t[41]<<18|t[40]>>>14,N=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,B=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,U=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,K=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,k=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~g&b,t[1]=v^~y&w,t[10]=x^~A&T,t[11]=E^~O&C,t[20]=N^~L&D,t[21]=j^~U&F,t[30]=V^~W&Z,t[31]=K^~G&J,t[40]=et^~nt&ot,t[41]=rt^~it&st,t[2]=g^~b&M,t[3]=y^~w&_,t[12]=A^~T&P,t[13]=O^~C&B,t[22]=L^~D&z,t[23]=U^~F&q,t[32]=W^~Z&X,t[33]=G^~J&Y,t[42]=nt^~ot&at,t[43]=it^~st&ut,t[4]=b^~M&k,t[5]=w^~_&S,t[14]=T^~P&I,t[15]=C^~B&R,t[24]=D^~z&H,t[25]=F^~q&$,t[34]=Z^~X&Q,t[35]=J^~Y&tt,t[44]=ot^~at&ht,t[45]=st^~ut&lt,t[6]=M^~k&m,t[7]=_^~S&v,t[16]=P^~I&x,t[17]=B^~R&E,t[26]=z^~H&N,t[27]=q^~$&j,t[36]=X^~Q&V,t[37]=Y^~tt&K,t[46]=at^~ht&et,t[47]=ut^~lt&rt,t[8]=k^~m&g,t[9]=S^~v&y,t[18]=I^~x&A,t[19]=R^~E&O,t[28]=H^~N&L,t[29]=$^~j&U,t[38]=Q^~V&W,t[39]=tt^~K&G,t[48]=ht^~et&nt,t[49]=lt^~rt&it,t[0]^=c[n],t[1]^=c[n+1]};if(o)t.exports=w;else for(_=0;_<M.length;++_)e[M[_]]=w[M[_]]})()}))),H=o((function(t,e){var r=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(q);function o(t){return"0x"+i.default.keccak_256(B.arrayify(t))}e.keccak256=o})),$=(i(H),H.keccak256,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="rlp/5.0.4"}))),V=(i($),$.version,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger($.version);function n(t){var e=[];while(t)e.unshift(255&t),t>>=8;return e}function i(t,e,r){for(var n=0,i=0;i<r;i++)n=256*n+t[e+i];return n}function o(t){if(Array.isArray(t)){var e=[];if(t.forEach((function(t){e=e.concat(o(t))})),e.length<=55)return e.unshift(192+e.length),e;var i=n(e.length);return i.unshift(247+i.length),i.concat(e)}B.isBytesLike(t)||r.throwArgumentError("RLP object must be BytesLike","object",t);var s=Array.prototype.slice.call(B.arrayify(t));if(1===s.length&&s[0]<=127)return s;if(s.length<=55)return s.unshift(128+s.length),s;var a=n(s.length);return a.unshift(183+a.length),a.concat(s)}function s(t){return B.hexlify(o(t))}function a(t,e,n,i){var o=[];while(n<e+1+i){var s=u(t,n);o.push(s.result),n+=s.consumed,n>e+1+i&&r.throwError("child data too short",C.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+i,result:o}}function u(t,e){if(0===t.length&&r.throwError("data too short",C.Logger.errors.BUFFER_OVERRUN,{}),t[e]>=248){var n=t[e]-247;e+1+n>t.length&&r.throwError("data short segment too short",C.Logger.errors.BUFFER_OVERRUN,{});var o=i(t,e+1,n);return e+1+n+o>t.length&&r.throwError("data long segment too short",C.Logger.errors.BUFFER_OVERRUN,{}),a(t,e,e+1+n,n+o)}if(t[e]>=192){var s=t[e]-192;return e+1+s>t.length&&r.throwError("data array too short",C.Logger.errors.BUFFER_OVERRUN,{}),a(t,e,e+1,s)}if(t[e]>=184){n=t[e]-183;e+1+n>t.length&&r.throwError("data array too short",C.Logger.errors.BUFFER_OVERRUN,{});var u=i(t,e+1,n);e+1+n+u>t.length&&r.throwError("data array too short",C.Logger.errors.BUFFER_OVERRUN,{});var h=B.hexlify(t.slice(e+1+n,e+1+n+u));return{consumed:1+n+u,result:h}}if(t[e]>=128){var l=t[e]-128;e+1+l>t.length&&r.throwError("data too short",C.Logger.errors.BUFFER_OVERRUN,{});h=B.hexlify(t.slice(e+1,e+1+l));return{consumed:1+l,result:h}}return{consumed:1,result:B.hexlify(t[e])}}function h(t){var e=B.arrayify(t),n=u(e,0);return n.consumed!==e.length&&r.throwArgumentError("invalid rlp data","data",t),n.result}e.encode=s,e.decode=h}))),K=(i(V),V.encode,V.decode,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="address/5.0.5"}))),W=(i(K),K.version,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger(K.version);function n(t){B.isHexString(t,20)||r.throwArgumentError("invalid address","address",t),t=t.toLowerCase();for(var e=t.substring(2).split(""),n=new Uint8Array(40),i=0;i<40;i++)n[i]=e[i].charCodeAt(0);var o=B.arrayify(H.keccak256(n));for(i=0;i<40;i+=2)o[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(15&o[i>>1])>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}var i=9007199254740991;function o(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}for(var s={},a=0;a<10;a++)s[String(a)]=String(a);for(a=0;a<26;a++)s[String.fromCharCode(65+a)]=String(10+a);var u=Math.floor(o(i));function h(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";var e=t.split("").map((function(t){return s[t]})).join("");while(e.length>=u){var r=e.substring(0,u);e=parseInt(r,10)%97+e.substring(r.length)}var n=String(98-parseInt(e,10)%97);while(n.length<2)n="0"+n;return n}function l(t){var e=null;if("string"!==typeof t&&r.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=n(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&r.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){t.substring(2,4)!==h(t)&&r.throwArgumentError("bad icap checksum","address",t),e=new O.BN(t.substring(4),36).toString(16);while(e.length<40)e="0"+e;e=n("0x"+e)}else r.throwArgumentError("invalid address","address",t);return e}function c(t){try{return l(t),!0}catch(e){}return!1}function f(t){var e=new O.BN(l(t).substring(2),16).toString(36).toUpperCase();while(e.length<30)e="0"+e;return"XE"+h("XE00"+e)+e}function d(t){var e=null;try{e=l(t.from)}catch(i){r.throwArgumentError("missing from address","transaction",t)}var n=B.stripZeros(B.arrayify(j.BigNumber.from(t.nonce).toHexString()));return l(B.hexDataSlice(H.keccak256(V.encode([e,n])),12))}function p(t,e,n){return 32!==B.hexDataLength(e)&&r.throwArgumentError("salt must be 32 bytes","salt",e),32!==B.hexDataLength(n)&&r.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),l(B.hexDataSlice(H.keccak256(B.concat(["0xff",l(t),e,n])),12))}e.getAddress=l,e.isAddress=c,e.getIcapAddress=f,e.getContractAddress=d,e.getCreate2Address=p}))),G=(i(W),W.getAddress,W.isAddress,W.getIcapAddress,W.getContractAddress,W.getCreate2Address,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){return t.call(this,"address","address",e,!1)||this}return r(e,t),e.prototype.encode=function(t,e){try{W.getAddress(e)}catch(r){this._throwError(r.message,e)}return t.writeValue(e)},e.prototype.decode=function(t){return W.getAddress(B.hexZeroPad(t.readValue().toHexString(),20))},e}(z.Coder);e.AddressCoder=i}))),Z=(i(G),G.AddressCoder,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var r=t.call(this,e.name,e.type,void 0,e.dynamic)||this;return r.coder=e,r}return r(e,t),e.prototype.encode=function(t,e){return this.coder.encode(t,e)},e.prototype.decode=function(t){return this.coder.decode(t)},e}(z.Coder);e.AnonymousCoder=i}))),J=(i(Z),Z.AnonymousCoder,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=new C.Logger(D.version);function o(t,e,r){var n=null;if(Array.isArray(r))n=r;else if(r&&"object"===typeof r){var o={};n=e.map((function(t){var e=t.localName;return e||i.throwError("cannot encode object for signature with missing names",C.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),o[e]&&i.throwError("cannot encode object for signature with duplicate names",C.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),o[e]=!0,r[e]}))}else i.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&i.throwArgumentError("types/value length mismatch","tuple",r);var s=new z.Writer(t.wordSize),a=new z.Writer(t.wordSize),u=[];e.forEach((function(t,e){var r=n[e];if(t.dynamic){var i=a.length;t.encode(a,r);var o=s.writeUpdatableValue();u.push((function(t){o(t+i)}))}else t.encode(s,r)})),u.forEach((function(t){t(s.length)}));var h=t.appendWriter(s);return h+=t.appendWriter(a),h}function s(t,e){var r=[],n=t.subReader(0);e.forEach((function(e){var i=null;if(e.dynamic){var o=t.readValue(),s=n.subReader(o.toNumber());try{i=e.decode(s)}catch(a){if(a.code===C.Logger.errors.BUFFER_OVERRUN)throw a;i=a,i.baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(a){if(a.code===C.Logger.errors.BUFFER_OVERRUN)throw a;i=a,i.baseType=e.name,i.name=e.localName,i.type=e.type}void 0!=i&&r.push(i)}));var i=e.reduce((function(t,e){var r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});e.forEach((function(t,e){var n=t.localName;if(n&&1===i[n]&&("length"===n&&(n="_length"),null==r[n])){var o=r[e];o instanceof Error?Object.defineProperty(r,n,{get:function(){throw o}}):r[n]=o}}));for(var o=function(t){var e=r[t];e instanceof Error&&Object.defineProperty(r,t,{get:function(){throw e}})},s=0;s<r.length;s++)o(s);return Object.freeze(r)}e.pack=o,e.unpack=s;var a=function(t){function e(e,r,n){var i=this,o=e.type+"["+(r>=0?r:"")+"]",s=-1===r||e.dynamic;return i=t.call(this,"array",o,n,s)||this,i.coder=e,i.length=r,i}return r(e,t),e.prototype.encode=function(t,e){Array.isArray(e)||this._throwError("expected array value",e);var r=this.length;-1===r&&(r=e.length,t.writeValue(e.length)),i.checkArgumentCount(e.length,r,"coder array"+(this.localName?" "+this.localName:""));for(var n=[],s=0;s<e.length;s++)n.push(this.coder);return o(t,n,e)},e.prototype.decode=function(t){var e=this.length;-1===e&&(e=t.readValue().toNumber());for(var r=[],n=0;n<e;n++)r.push(new Z.AnonymousCoder(this.coder));return t.coerce(this.name,s(t,r))},e}(z.Coder);e.ArrayCoder=a}))),X=(i(J),J.pack,J.unpack,J.ArrayCoder,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){return t.call(this,"bool","bool",e,!1)||this}return r(e,t),e.prototype.encode=function(t,e){return t.writeValue(e?1:0)},e.prototype.decode=function(t){return t.coerce(this.type,!t.readValue().isZero())},e}(z.Coder);e.BooleanCoder=i}))),Y=(i(X),X.BooleanCoder,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e,r){return t.call(this,e,e,r,!0)||this}return r(e,t),e.prototype.encode=function(t,e){e=B.arrayify(e);var r=t.writeValue(e.length);return r+=t.writeBytes(e),r},e.prototype.decode=function(t){return t.readBytes(t.readValue().toNumber(),!0)},e}(z.Coder);e.DynamicBytesCoder=i;var o=function(t){function e(e){return t.call(this,"bytes",e)||this}return r(e,t),e.prototype.decode=function(e){return e.coerce(this.name,B.hexlify(t.prototype.decode.call(this,e)))},e}(i);e.BytesCoder=o}))),Q=(i(Y),Y.DynamicBytesCoder,Y.BytesCoder,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e,r){var n=this,i="bytes"+String(e);return n=t.call(this,i,i,r,!1)||this,n.size=e,n}return r(e,t),e.prototype.encode=function(t,e){var r=B.arrayify(e);return r.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(r)},e.prototype.decode=function(t){return t.coerce(this.name,B.hexlify(t.readBytes(this.size)))},e}(z.Coder);e.FixedBytesCoder=i}))),tt=(i(Q),Q.FixedBytesCoder,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){return t.call(this,"null","",e,!1)||this}return r(e,t),e.prototype.encode=function(t,e){return null!=e&&this._throwError("not null",e),t.writeBytes([])},e.prototype.decode=function(t){return t.readBytes(0),t.coerce(this.name,null)},e}(z.Coder);e.NullCoder=i}))),et=(i(tt),tt.NullCoder,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r="0x0000000000000000000000000000000000000000";e.AddressZero=r;var n="0x0000000000000000000000000000000000000000000000000000000000000000";e.HashZero=n;var i="Ξ";e.EtherSymbol=i;var o=j.BigNumber.from(-1);e.NegativeOne=o;var s=j.BigNumber.from(0);e.Zero=s;var a=j.BigNumber.from(1);e.One=a;var u=j.BigNumber.from(2);e.Two=u;var h=j.BigNumber.from("1000000000000000000");e.WeiPerEther=h;var l=j.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");e.MaxUint256=l}))),rt=(i(et),et.AddressZero,et.HashZero,et.EtherSymbol,et.NegativeOne,et.Zero,et.One,et.Two,et.WeiPerEther,et.MaxUint256,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e,r,n){var i=this,o=(r?"int":"uint")+8*e;return i=t.call(this,o,o,n,!1)||this,i.size=e,i.signed=r,i}return r(e,t),e.prototype.encode=function(t,e){var r=j.BigNumber.from(e),n=et.MaxUint256.mask(8*t.wordSize);if(this.signed){var i=n.mask(8*this.size-1);(r.gt(i)||r.lt(i.add(et.One).mul(et.NegativeOne)))&&this._throwError("value out-of-bounds",e)}else(r.lt(et.Zero)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",e);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*t.wordSize)),t.writeValue(r)},e.prototype.decode=function(t){var e=t.readValue().mask(8*this.size);return this.signed&&(e=e.fromTwos(8*this.size)),t.coerce(this.name,e)},e}(z.Coder);e.NumberCoder=i}))),nt=(i(rt),rt.NumberCoder,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="strings/5.0.5"}))),it=(i(nt),nt.version,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r,n,i=new C.Logger(nt.version);function o(t,e,r,n,o){return i.throwArgumentError("invalid codepoint at offset "+e+"; "+t,"bytes",r)}function s(t,e,r,i,o){if(t===n.BAD_PREFIX||t===n.UNEXPECTED_CONTINUE){for(var s=0,a=e+1;a<r.length;a++){if(r[a]>>6!==2)break;s++}return s}return t===n.OVERRUN?r.length-e-1:0}function a(t,e,r,i,o){return t===n.OVERLONG?(i.push(o),0):(i.push(65533),s(t,e,r,i,o))}function u(t,r){null==r&&(r=e.Utf8ErrorFuncs.error),t=B.arrayify(t);var i=[],o=0;while(o<t.length){var s=t[o++];if(s>>7!==0){var a=null,u=null;if(192===(224&s))a=1,u=127;else if(224===(240&s))a=2,u=2047;else{if(240!==(248&s)){o+=r(128===(192&s)?n.UNEXPECTED_CONTINUE:n.BAD_PREFIX,o-1,t,i);continue}a=3,u=65535}if(o-1+a>=t.length)o+=r(n.OVERRUN,o-1,t,i);else{for(var h=s&(1<<8-a-1)-1,l=0;l<a;l++){var c=t[o];if(128!=(192&c)){o+=r(n.MISSING_CONTINUE,o,t,i),h=null;break}h=h<<6|63&c,o++}null!==h&&(h>1114111?o+=r(n.OUT_OF_RANGE,o-1-a,t,i,h):h>=55296&&h<=57343?o+=r(n.UTF16_SURROGATE,o-1-a,t,i,h):h<=u?o+=r(n.OVERLONG,o-1-a,t,i,h):i.push(h))}}else i.push(s)}return i}function h(t,e){void 0===e&&(e=r.current),e!=r.current&&(i.checkNormalize(),t=t.normalize(e));for(var n=[],o=0;o<t.length;o++){var s=t.charCodeAt(o);if(s<128)n.push(s);else if(s<2048)n.push(s>>6|192),n.push(63&s|128);else if(55296==(64512&s)){o++;var a=t.charCodeAt(o);if(o>=t.length||56320!==(64512&a))throw new Error("invalid utf-8 string");var u=65536+((1023&s)<<10)+(1023&a);n.push(u>>18|240),n.push(u>>12&63|128),n.push(u>>6&63|128),n.push(63&u|128)}else n.push(s>>12|224),n.push(s>>6&63|128),n.push(63&s|128)}return B.arrayify(n)}function l(t){var e="0000"+t.toString(16);return"\\u"+e.substring(e.length-4)}function c(t,e){return'"'+u(t,e).map((function(t){if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?l(t):(t-=65536,l(55296+(t>>10&1023))+l(56320+(1023&t)))})).join("")+'"'}function f(t){return t.map((function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t)))})).join("")}function d(t,e){return f(u(t,e))}function p(t,e){return void 0===e&&(e=r.current),u(h(t,e))}(function(t){t["current"]="",t["NFC"]="NFC",t["NFD"]="NFD",t["NFKC"]="NFKC",t["NFKD"]="NFKD"})(r=e.UnicodeNormalizationForm||(e.UnicodeNormalizationForm={})),function(t){t["UNEXPECTED_CONTINUE"]="unexpected continuation byte",t["BAD_PREFIX"]="bad codepoint prefix",t["OVERRUN"]="string overrun",t["MISSING_CONTINUE"]="missing continuation byte",t["OUT_OF_RANGE"]="out of UTF-8 range",t["UTF16_SURROGATE"]="UTF-16 surrogate",t["OVERLONG"]="overlong representation"}(n=e.Utf8ErrorReason||(e.Utf8ErrorReason={})),e.Utf8ErrorFuncs=Object.freeze({error:o,ignore:s,replace:a}),e.toUtf8Bytes=h,e._toEscapedUtf8String=c,e._toUtf8String=f,e.toUtf8String=d,e.toUtf8CodePoints=p}))),ot=(i(it),it.UnicodeNormalizationForm,it.Utf8ErrorReason,it.Utf8ErrorFuncs,it.toUtf8Bytes,it._toEscapedUtf8String,it._toUtf8String,it.toUtf8String,it.toUtf8CodePoints,o((function(t,e){function r(t){var e=it.toUtf8Bytes(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return B.hexlify(B.concat([e,et.HashZero]).slice(0,32))}function n(t){var e=B.arrayify(t);if(32!==e.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==e[31])throw new Error("invalid bytes32 string - no null terminator");var r=31;while(0===e[r-1])r--;return it.toUtf8String(e.slice(0,r))}Object.defineProperty(e,"__esModule",{value:!0}),e.formatBytes32String=r,e.parseBytes32String=n}))),st=(i(ot),ot.formatBytes32String,ot.parseBytes32String,o((function(t,e){function r(t){if(t.length%4!==0)throw new Error("bad data");for(var e=[],r=0;r<t.length;r+=4)e.push(parseInt(t.substring(r,r+4),16));return e}function n(t,e){e||(e=function(t){return[parseInt(t,16)]});var r=0,n={};return t.split(",").forEach((function(t){var i=t.split(":");r+=parseInt(i[0],16),n[r]=e(i[1])})),n}function i(t){var e=0;return t.split(",").map((function(t){var r=t.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");var n=e+parseInt(r[0],16);return e=parseInt(r[1],16),{l:n,h:e}}))}function o(t,e){for(var r=0,n=0;n<e.length;n++){var i=e[n];if(r+=i.l,t>=r&&t<=r+i.h&&(t-r)%(i.d||1)===0){if(i.e&&-1!==i.e.indexOf(t-r))continue;return i}}return null}Object.defineProperty(e,"__esModule",{value:!0});var s=i("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),a="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(t){return parseInt(t,16)})),u=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],h=n("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),l=n("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),c=n("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",r),f=i("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function d(t){return t.reduce((function(t,e){return e.forEach((function(e){t.push(e)})),t}),[])}function p(t){return!!o(t,s)}function m(t){var e=o(t,u);if(e)return[t+e.s];var r=h[t];if(r)return r;var n=l[t];if(n)return[t+n[0]];var i=c[t];return i||null}function v(t){return!!o(t,f)}function g(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();var e=it.toUtf8CodePoints(t);e=d(e.map((function(t){if(a.indexOf(t)>=0)return[];if(t>=65024&&t<=65039)return[];var e=m(t);return e||[t]}))),e=it.toUtf8CodePoints(it._toUtf8String(e),it.UnicodeNormalizationForm.NFKC),e.forEach((function(t){if(v(t))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),e.forEach((function(t){if(p(t))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var r=it._toUtf8String(e);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw new Error("invalid hyphen");if(r.length>63)throw new Error("too long");return r}e._nameprepTableA1=p,e._nameprepTableB2=m,e._nameprepTableC=v,e.nameprep=g}))),at=(i(st),st._nameprepTableA1,st._nameprepTableB2,st._nameprepTableC,st.nameprep,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatBytes32String=ot.formatBytes32String,e.parseBytes32String=ot.parseBytes32String,e.nameprep=st.nameprep,e._toEscapedUtf8String=it._toEscapedUtf8String,e.toUtf8Bytes=it.toUtf8Bytes,e.toUtf8CodePoints=it.toUtf8CodePoints,e.toUtf8String=it.toUtf8String,e.UnicodeNormalizationForm=it.UnicodeNormalizationForm,e.Utf8ErrorFuncs=it.Utf8ErrorFuncs,e.Utf8ErrorReason=it.Utf8ErrorReason}))),ut=(i(at),at.formatBytes32String,at.parseBytes32String,at.nameprep,at._toEscapedUtf8String,at.toUtf8Bytes,at.toUtf8CodePoints,at.toUtf8String,at.UnicodeNormalizationForm,at.Utf8ErrorFuncs,at.Utf8ErrorReason,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){return t.call(this,"string",e)||this}return r(e,t),e.prototype.encode=function(e,r){return t.prototype.encode.call(this,e,at.toUtf8Bytes(r))},e.prototype.decode=function(e){return at.toUtf8String(t.prototype.decode.call(this,e))},e}(Y.DynamicBytesCoder);e.StringCoder=i}))),ht=(i(ut),ut.StringCoder,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e,r){var n=this,i=!1,o=[];e.forEach((function(t){t.dynamic&&(i=!0),o.push(t.type)}));var s="tuple("+o.join(",")+")";return n=t.call(this,"tuple",s,r,i)||this,n.coders=e,n}return r(e,t),e.prototype.encode=function(t,e){return J.pack(t,this.coders,e)},e.prototype.decode=function(t){return t.coerce(this.name,J.unpack(t,this.coders))},e}(z.Coder);e.TupleCoder=i}))),lt=(i(ht),ht.TupleCoder,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger(D.version),n=new RegExp(/^bytes([0-9]*)$/),i=new RegExp(/^(u?int)([0-9]*)$/),o=function(){function t(e){var n=this.constructor;r.checkNew(n,t),U.defineReadOnly(this,"coerceFunc",e||null)}return t.prototype._getCoder=function(t){var e=this;switch(t.baseType){case"address":return new G.AddressCoder(t.name);case"bool":return new X.BooleanCoder(t.name);case"string":return new ut.StringCoder(t.name);case"bytes":return new Y.BytesCoder(t.name);case"array":return new J.ArrayCoder(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new ht.TupleCoder((t.components||[]).map((function(t){return e._getCoder(t)})),t.name);case"":return new tt.NullCoder(t.name)}var o=t.type.match(i);if(o){var s=parseInt(o[2]||"256");return(0===s||s>256||s%8!==0)&&r.throwArgumentError("invalid "+o[1]+" bit length","param",t),new rt.NumberCoder(s/8,"int"===o[1],t.name)}if(o=t.type.match(n),o){s=parseInt(o[1]);return(0===s||s>32)&&r.throwArgumentError("invalid bytes length","param",t),new Q.FixedBytesCoder(s,t.name)}return r.throwArgumentError("invalid type","type",t.type)},t.prototype._getWordSize=function(){return 32},t.prototype._getReader=function(t,e){return new z.Reader(t,this._getWordSize(),this.coerceFunc,e)},t.prototype._getWriter=function(){return new z.Writer(this._getWordSize())},t.prototype.encode=function(t,e){var n=this;t.length!==e.length&&r.throwError("types/values length mismatch",C.Logger.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});var i=t.map((function(t){return n._getCoder(F.ParamType.from(t))})),o=new ht.TupleCoder(i,"_"),s=this._getWriter();return o.encode(s,e),s.data},t.prototype.decode=function(t,e,r){var n=this,i=t.map((function(t){return n._getCoder(F.ParamType.from(t))})),o=new ht.TupleCoder(i,"_");return o.decode(this._getReader(B.arrayify(e),r))},t}();e.AbiCoder=o,e.defaultAbiCoder=new o}))),ct=(i(lt),lt.AbiCoder,lt.defaultAbiCoder,o((function(t,e){function r(t){return H.keccak256(at.toUtf8Bytes(t))}Object.defineProperty(e,"__esModule",{value:!0}),e.id=r}))),ft=(i(ct),ct.id,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="hash/5.0.6"}))),dt=(i(ft),ft.version,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger(ft.version),n=new Uint8Array(32);n.fill(0);var i=new RegExp("^((.*)\\.)?([^.]+)$");function o(t){try{for(var e=t.split("."),r=0;r<e.length;r++)if(0===at.nameprep(e[r]).length)throw new Error("empty");return!0}catch(n){}return!1}function s(t){"string"!==typeof t&&r.throwArgumentError("invalid address - "+String(t),"name",t);var e=n;while(t.length){var o=t.match(i),s=at.toUtf8Bytes(at.nameprep(o[3]));e=H.keccak256(B.concat([e,H.keccak256(s)])),t=o[2]||""}return B.hexlify(e)}e.isValidName=o,e.namehash=s}))),pt=(i(dt),dt.isValidName,dt.namehash,o((function(t,e){function r(t){return"string"===typeof t&&(t=at.toUtf8Bytes(t)),H.keccak256(B.concat([at.toUtf8Bytes(e.messagePrefix),at.toUtf8Bytes(String(t.length)),t]))}Object.defineProperty(e,"__esModule",{value:!0}),e.messagePrefix="Ethereum Signed Message:\n",e.hashMessage=r}))),mt=(i(pt),pt.messagePrefix,pt.hashMessage,o((function(t,e){var r=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},i=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var o=new C.Logger(ft.version),s=new Uint8Array(32);s.fill(0);var a=j.BigNumber.from(-1),u=j.BigNumber.from(0),h=j.BigNumber.from(1),l=j.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function c(t){var e=B.arrayify(t),r=e.length%32;return r?B.hexConcat([e,s.slice(r)]):B.hexlify(e)}var f=B.hexZeroPad(h.toHexString(),32),d=B.hexZeroPad(u.toHexString(),32),p={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},m=["name","version","chainId","verifyingContract","salt"];function v(t){return function(e){return"string"!==typeof e&&o.throwArgumentError("invalid domain value for "+JSON.stringify(t),"domain."+t,e),e}}var g={name:v("name"),version:v("version"),chainId:function(t){try{return j.BigNumber.from(t).toString()}catch(e){}return o.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return W.getAddress(t).toLowerCase()}catch(e){}return o.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{var e=B.arrayify(t);if(32!==e.length)throw new Error("bad length");return B.hexlify(e)}catch(r){}return o.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function y(t){var e=t.match(/^(u?)int(\d*)$/);if(e){var r=""===e[1],n=parseInt(e[2]||"256");(n%8!==0||n>256||e[2]&&e[2]!==String(n))&&o.throwArgumentError("invalid numeric width","type",t);var i=l.mask(r?n-1:n),s=r?i.add(h).mul(a):u;return function(e){var r=j.BigNumber.from(e);return(r.lt(s)||r.gt(i))&&o.throwArgumentError("value out-of-bounds for "+t,"value",e),B.hexZeroPad(r.toTwos(256).toHexString(),32)}}e=t.match(/^bytes(\d+)$/);if(e){var p=parseInt(e[1]);return(0===p||p>32||e[1]!==String(p))&&o.throwArgumentError("invalid bytes width","type",t),function(e){var r=B.arrayify(e);return r.length!==p&&o.throwArgumentError("invalid length for "+t,"value",e),c(e)}}switch(t){case"address":return function(t){return B.hexZeroPad(W.getAddress(t),32)};case"bool":return function(t){return t?f:d};case"bytes":return function(t){return H.keccak256(t)};case"string":return function(t){return ct.id(t)}}return null}function b(t,e){return t+"("+e.map((function(t){var e=t.name,r=t.type;return r+" "+e})).join(",")+")"}var w=function(){function t(t){U.defineReadOnly(this,"types",Object.freeze(U.deepCopy(t))),U.defineReadOnly(this,"_encoderCache",{}),U.defineReadOnly(this,"_types",{});var e={},r={},n={};Object.keys(t).forEach((function(t){e[t]={},r[t]=[],n[t]={}}));var i=function(n){var i={};t[n].forEach((function(s){i[s.name]&&o.throwArgumentError("duplicate variable name "+JSON.stringify(s.name)+" in "+JSON.stringify(n),"types",t),i[s.name]=!0;var a=s.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===n&&o.throwArgumentError("circular type reference to "+JSON.stringify(a),"types",t);var u=y(a);u||(r[a]||o.throwArgumentError("unknown type "+JSON.stringify(a),"types",t),r[a].push(n),e[n][a]=!0)}))};for(var s in t)i(s);var a=Object.keys(r).filter((function(t){return 0===r[t].length}));function u(i,s){s[i]&&o.throwArgumentError("circular type reference to "+JSON.stringify(i),"types",t),s[i]=!0,Object.keys(e[i]).forEach((function(t){r[t]&&(u(t,s),Object.keys(s).forEach((function(e){n[e][t]=!0})))})),delete s[i]}for(var h in 0===a.length?o.throwArgumentError("missing primary type","types",t):a.length>1&&o.throwArgumentError("ambiguous primary types or unused types: "+a.map((function(t){return JSON.stringify(t)})).join(", "),"types",t),U.defineReadOnly(this,"primaryType",a[0]),u(this.primaryType,{}),n){var l=Object.keys(n[h]);l.sort(),this._types[h]=b(h,t[h])+l.map((function(e){return b(e,t[e])})).join("")}}return t.prototype.getEncoder=function(t){var e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e},t.prototype._getEncoder=function(t){var e=this,r=y(t);if(r)return r;var n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){var i=n[1],s=this.getEncoder(i),a=parseInt(n[3]);return function(t){a>=0&&t.length!==a&&o.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);var r=t.map(s);return e._types[i]&&(r=r.map(H.keccak256)),H.keccak256(B.hexConcat(r))}}var u=this.types[t];if(u){var h=ct.id(this._types[t]);return function(t){var r=u.map((function(r){var n=r.name,i=r.type,o=e.getEncoder(i)(t[n]);return e._types[i]?H.keccak256(o):o}));return r.unshift(h),B.hexConcat(r)}}return o.throwArgumentError("unknown type: "+t,"type",t)},t.prototype.encodeType=function(t){var e=this._types[t];return e||o.throwArgumentError("unknown type: "+JSON.stringify(t),"name",t),e},t.prototype.encodeData=function(t,e){return this.getEncoder(t)(e)},t.prototype.hashStruct=function(t,e){return H.keccak256(this.encodeData(t,e))},t.prototype.encode=function(t){return this.encodeData(this.primaryType,t)},t.prototype.hash=function(t){return this.hashStruct(this.primaryType,t)},t.prototype._visit=function(t,e,r){var n=this,i=y(t);if(i)return r(t,e);var s=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s){var a=s[1],u=parseInt(s[3]);return u>=0&&e.length!==u&&o.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map((function(t){return n._visit(a,t,r)}))}var h=this.types[t];return h?h.reduce((function(t,i){var o=i.name,s=i.type;return t[o]=n._visit(s,e[o],r),t}),{}):o.throwArgumentError("unknown type: "+t,"type",t)},t.prototype.visit=function(t,e){return this._visit(this.primaryType,t,e)},t.from=function(e){return new t(e)},t.getPrimaryType=function(e){return t.from(e).primaryType},t.hashStruct=function(e,r,n){return t.from(r).hashStruct(e,n)},t.hashDomain=function(e){var r=[];for(var n in e){var i=p[n];i||o.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",e),r.push({name:n,type:i})}return r.sort((function(t,e){return m.indexOf(t.name)-m.indexOf(e.name)})),t.hashStruct("EIP712Domain",{EIP712Domain:r},e)},t.encode=function(e,r,n){return B.hexConcat(["0x1901",t.hashDomain(e),t.from(r).hash(n)])},t.hash=function(e,r,n){return H.keccak256(t.encode(e,r,n))},t.resolveNames=function(e,n,o,s){return r(this,void 0,void 0,(function(){var r,a,u,h,l,c,f,d;return i(this,(function(i){switch(i.label){case 0:for(h in e=U.shallowCopy(e),r={},e.verifyingContract&&!B.isHexString(e.verifyingContract,20)&&(r[e.verifyingContract]="0x"),a=t.from(n),a.visit(o,(function(t,e){return"address"!==t||B.isHexString(e,20)||(r[e]="0x"),e})),u=[],r)u.push(h);l=0,i.label=1;case 1:return l<u.length?(c=u[l],f=r,d=c,[4,s(c)]):[3,4];case 2:f[d]=i.sent(),i.label=3;case 3:return l++,[3,1];case 4:return e.verifyingContract&&r[e.verifyingContract]&&(e.verifyingContract=r[e.verifyingContract]),o=a.visit(o,(function(t,e){return"address"===t&&r[e]?r[e]:e})),[2,{domain:e,value:o}]}}))}))},t.getPayload=function(e,r,n){t.hashDomain(e);var i={},s=[];m.forEach((function(t){var r=e[t];null!=r&&(i[t]=g[t](r),s.push({name:t,type:p[t]}))}));var a=t.from(r),u=U.shallowCopy(r);return u.EIP712Domain&&(u.EIP712Domain=s),a.encode(n),{types:u,domain:i,primaryType:a.primaryType,message:a.visit(n,(function(t,e){if(t.match(/^bytes(\d*)/))return B.hexlify(B.arrayify(e));if(t.match(/^u?int/)){var r="",n=j.BigNumber.from(e);return n.isNegative()&&(r="-",n=n.mul(-1)),r+B.hexValue(n.toHexString())}switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!==typeof e&&o.throwArgumentError("invalid string","value",e),e}return o.throwArgumentError("unsupported type","type",t)}))}},t}();e.TypedDataEncoder=w}))),vt=(i(mt),mt.TypedDataEncoder,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.id=ct.id,e.isValidName=dt.isValidName,e.namehash=dt.namehash,e.hashMessage=pt.hashMessage,e.messagePrefix=pt.messagePrefix,e._TypedDataEncoder=mt.TypedDataEncoder}))),gt=(i(vt),vt.id,vt.isValidName,vt.namehash,vt.hashMessage,vt.messagePrefix,vt._TypedDataEncoder,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.checkResultErrors=z.checkResultErrors;var i=new C.Logger(D.version),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(U.Description);e.LogDescription=o;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(U.Description);e.TransactionDescription=s;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.isIndexed=function(t){return!(!t||!t._isIndexed)},e}(U.Description);function u(t,e){var r=new Error("deferred error during ABI decoding triggered accessing "+t);return r.error=e,r}e.Indexed=a;var h=function(){function t(e){var r=this.constructor,n=this;i.checkNew(r,t);var o=[];o="string"===typeof e?JSON.parse(e):e,U.defineReadOnly(this,"fragments",o.map((function(t){return F.Fragment.from(t)})).filter((function(t){return null!=t}))),U.defineReadOnly(this,"_abiCoder",U.getStatic(r,"getAbiCoder")()),U.defineReadOnly(this,"functions",{}),U.defineReadOnly(this,"errors",{}),U.defineReadOnly(this,"events",{}),U.defineReadOnly(this,"structs",{}),this.fragments.forEach((function(t){var e=null;switch(t.type){case"constructor":return n.deploy?void i.warn("duplicate definition - constructor"):void U.defineReadOnly(n,"deploy",t);case"function":e=n.functions;break;case"event":e=n.events;break;default:return}var r=t.format();e[r]?i.warn("duplicate definition - "+r):e[r]=t})),this.deploy||U.defineReadOnly(this,"deploy",F.ConstructorFragment.from({payable:!1,type:"constructor"})),U.defineReadOnly(this,"_isInterface",!0)}return t.prototype.format=function(t){t||(t=F.FormatTypes.full),t===F.FormatTypes.sighash&&i.throwArgumentError("interface does not support formatting sighash","format",t);var e=this.fragments.map((function(e){return e.format(t)}));return t===F.FormatTypes.json?JSON.stringify(e.map((function(t){return JSON.parse(t)}))):e},t.getAbiCoder=function(){return lt.defaultAbiCoder},t.getAddress=function(t){return W.getAddress(t)},t.getSighash=function(t){return B.hexDataSlice(vt.id(t.format()),0,4)},t.getEventTopic=function(t){return vt.id(t.format())},t.prototype.getFunction=function(t){if(B.isHexString(t)){for(var e in this.functions)if(t===this.getSighash(e))return this.functions[e];i.throwArgumentError("no matching function","sighash",t)}if(-1===t.indexOf("(")){var r=t.trim(),n=Object.keys(this.functions).filter((function(t){return t.split("(")[0]===r}));return 0===n.length?i.throwArgumentError("no matching function","name",r):n.length>1&&i.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var o=this.functions[F.FunctionFragment.fromString(t).format()];return o||i.throwArgumentError("no matching function","signature",t),o},t.prototype.getEvent=function(t){if(B.isHexString(t)){var e=t.toLowerCase();for(var r in this.events)if(e===this.getEventTopic(r))return this.events[r];i.throwArgumentError("no matching event","topichash",e)}if(-1===t.indexOf("(")){var n=t.trim(),o=Object.keys(this.events).filter((function(t){return t.split("(")[0]===n}));return 0===o.length?i.throwArgumentError("no matching event","name",n):o.length>1&&i.throwArgumentError("multiple matching events","name",n),this.events[o[0]]}var s=this.events[F.EventFragment.fromString(t).format()];return s||i.throwArgumentError("no matching event","signature",t),s},t.prototype.getSighash=function(t){return"string"===typeof t&&(t=this.getFunction(t)),U.getStatic(this.constructor,"getSighash")(t)},t.prototype.getEventTopic=function(t){return"string"===typeof t&&(t=this.getEvent(t)),U.getStatic(this.constructor,"getEventTopic")(t)},t.prototype._decodeParams=function(t,e){return this._abiCoder.decode(t,e)},t.prototype._encodeParams=function(t,e){return this._abiCoder.encode(t,e)},t.prototype.encodeDeploy=function(t){return this._encodeParams(this.deploy.inputs,t||[])},t.prototype.decodeFunctionData=function(t,e){"string"===typeof t&&(t=this.getFunction(t));var r=B.arrayify(e);return B.hexlify(r.slice(0,4))!==this.getSighash(t)&&i.throwArgumentError("data signature does not match function "+t.name+".","data",B.hexlify(r)),this._decodeParams(t.inputs,r.slice(4))},t.prototype.encodeFunctionData=function(t,e){return"string"===typeof t&&(t=this.getFunction(t)),B.hexlify(B.concat([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))},t.prototype.decodeFunctionResult=function(t,e){"string"===typeof t&&(t=this.getFunction(t));var r=B.arrayify(e),n=null,o=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,r)}catch(s){}break;case 4:"0x08c379a0"===B.hexlify(r.slice(0,4))&&(o="Error(string)",n=this._abiCoder.decode(["string"],r.slice(4))[0]);break}return i.throwError("call revert exception",C.Logger.errors.CALL_EXCEPTION,{method:t.format(),errorSignature:o,errorArgs:[n],reason:n})},t.prototype.encodeFunctionResult=function(t,e){return"string"===typeof t&&(t=this.getFunction(t)),B.hexlify(this._abiCoder.encode(t.outputs,e||[]))},t.prototype.encodeFilterTopics=function(t,e){var r=this;"string"===typeof t&&(t=this.getEvent(t)),e.length>t.inputs.length&&i.throwError("too many arguments for "+t.format(),C.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});var n=[];t.anonymous||n.push(this.getEventTopic(t));var o=function(t,e){return"string"===t.type?vt.id(e):"bytes"===t.type?H.keccak256(B.hexlify(e)):("address"===t.type&&r._abiCoder.encode(["address"],[e]),B.hexZeroPad(B.hexlify(e),32))};e.forEach((function(e,r){var s=t.inputs[r];s.indexed?null==e?n.push(null):"array"===s.baseType||"tuple"===s.baseType?i.throwArgumentError("filtering with tuples or arrays not supported","contract."+s.name,e):Array.isArray(e)?n.push(e.map((function(t){return o(s,t)}))):n.push(o(s,e)):null!=e&&i.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+s.name,e)}));while(n.length&&null===n[n.length-1])n.pop();return n},t.prototype.encodeEventLog=function(t,e){var r=this;"string"===typeof t&&(t=this.getEvent(t));var n=[],o=[],s=[];return t.anonymous||n.push(this.getEventTopic(t)),e.length!==t.inputs.length&&i.throwArgumentError("event arguments/values mismatch","values",e),t.inputs.forEach((function(t,i){var a=e[i];if(t.indexed)if("string"===t.type)n.push(vt.id(a));else if("bytes"===t.type)n.push(H.keccak256(a));else{if("tuple"===t.baseType||"array"===t.baseType)throw new Error("not implemented");n.push(r._abiCoder.encode([t.type],[a]))}else o.push(t),s.push(a)})),{data:this._abiCoder.encode(o,s),topics:n}},t.prototype.decodeEventLog=function(t,e,r){if("string"===typeof t&&(t=this.getEvent(t)),null!=r&&!t.anonymous){var n=this.getEventTopic(t);B.isHexString(r[0],32)&&r[0].toLowerCase()===n||i.throwError("fragment/topic mismatch",C.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var o=[],s=[],h=[];t.inputs.forEach((function(t,e){t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(o.push(F.ParamType.fromObject({type:"bytes32",name:t.name})),h.push(!0)):(o.push(t),h.push(!1)):(s.push(t),h.push(!1))}));var l=null!=r?this._abiCoder.decode(o,B.concat(r)):null,c=this._abiCoder.decode(s,e,!0),f=[],d=0,p=0;t.inputs.forEach((function(t,e){if(t.indexed)if(null==l)f[e]=new a({_isIndexed:!0,hash:null});else if(h[e])f[e]=new a({_isIndexed:!0,hash:l[p++]});else try{f[e]=l[p++]}catch(n){f[e]=n}else try{f[e]=c[d++]}catch(n){f[e]=n}if(t.name&&null==f[t.name]){var r=f[e];r instanceof Error?Object.defineProperty(f,t.name,{get:function(){throw u("property "+JSON.stringify(t.name),r)}}):f[t.name]=r}}));for(var m=function(t){var e=f[t];e instanceof Error&&Object.defineProperty(f,t,{get:function(){throw u("index "+t,e)}})},v=0;v<f.length;v++)m(v);return Object.freeze(f)},t.prototype.parseTransaction=function(t){var e=this.getFunction(t.data.substring(0,10).toLowerCase());return e?new s({args:this._abiCoder.decode(e.inputs,"0x"+t.data.substring(10)),functionFragment:e,name:e.name,signature:e.format(),sighash:this.getSighash(e),value:j.BigNumber.from(t.value||"0")}):null},t.prototype.parseLog=function(t){var e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new o({eventFragment:e,name:e.name,signature:e.format(),topic:this.getEventTopic(e),args:this.decodeEventLog(e,t.data,t.topics)})},t.isInterface=function(t){return!(!t||!t._isInterface)},t}();e.Interface=h}))),yt=(i(gt),gt.checkResultErrors,gt.LogDescription,gt.TransactionDescription,gt.Indexed,gt.Interface,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConstructorFragment=F.ConstructorFragment,e.EventFragment=F.EventFragment,e.FormatTypes=F.FormatTypes,e.Fragment=F.Fragment,e.FunctionFragment=F.FunctionFragment,e.ParamType=F.ParamType,e.AbiCoder=lt.AbiCoder,e.defaultAbiCoder=lt.defaultAbiCoder,e.checkResultErrors=gt.checkResultErrors,e.Indexed=gt.Indexed,e.Interface=gt.Interface,e.LogDescription=gt.LogDescription,e.TransactionDescription=gt.TransactionDescription}))),bt=(i(yt),yt.ConstructorFragment,yt.EventFragment,yt.FormatTypes,yt.Fragment,yt.FunctionFragment,yt.ParamType,yt.AbiCoder,yt.defaultAbiCoder,yt.checkResultErrors,yt.Indexed,yt.Interface,yt.LogDescription,yt.TransactionDescription,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="abstract-provider/5.0.5"}))),wt=(i(bt),bt.version,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=new C.Logger(bt.version),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.isForkEvent=function(t){return!(!t||!t._isForkEvent)},e}(U.Description);e.ForkEvent=o;var s=function(t){function e(e,r){var n=this;return B.isHexString(e,32)||i.throwArgumentError("invalid blockHash","blockHash",e),n=t.call(this,{_isForkEvent:!0,_isBlockForkEvent:!0,expiry:r||0,blockHash:e})||this,n}return r(e,t),e}(o);e.BlockForkEvent=s;var a=function(t){function e(e,r){var n=this;return B.isHexString(e,32)||i.throwArgumentError("invalid transaction hash","hash",e),n=t.call(this,{_isForkEvent:!0,_isTransactionForkEvent:!0,expiry:r||0,hash:e})||this,n}return r(e,t),e}(o);e.TransactionForkEvent=a;var u=function(t){function e(e,r,n){var o=this;return B.isHexString(e,32)||i.throwArgumentError("invalid transaction hash","beforeHash",e),B.isHexString(r,32)||i.throwArgumentError("invalid transaction hash","afterHash",r),o=t.call(this,{_isForkEvent:!0,_isTransactionOrderForkEvent:!0,expiry:n||0,beforeHash:e,afterHash:r})||this,o}return r(e,t),e}(o);e.TransactionOrderForkEvent=u;var h=function(){function t(){var e=this.constructor;i.checkAbstract(e,t),U.defineReadOnly(this,"_isProvider",!0)}return t.prototype.addListener=function(t,e){return this.on(t,e)},t.prototype.removeListener=function(t,e){return this.off(t,e)},t.isProvider=function(t){return!(!t||!t._isProvider)},t}();e.Provider=h}))),Mt=(i(wt),wt.ForkEvent,wt.BlockForkEvent,wt.TransactionForkEvent,wt.TransactionOrderForkEvent,wt.Provider,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="abstract-signer/5.0.7"}))),_t=(i(Mt),Mt.version,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var s=new C.Logger(Mt.version),a=["chainId","data","from","gasLimit","gasPrice","nonce","to","value"],u=[C.Logger.errors.INSUFFICIENT_FUNDS,C.Logger.errors.NONCE_EXPIRED,C.Logger.errors.REPLACEMENT_UNDERPRICED],h=function(){function t(){var e=this.constructor;s.checkAbstract(e,t),U.defineReadOnly(this,"_isSigner",!0)}return t.prototype.getBalance=function(t){return i(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return this._checkProvider("getBalance"),[4,this.provider.getBalance(this.getAddress(),t)];case 1:return[2,e.sent()]}}))}))},t.prototype.getTransactionCount=function(t){return i(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return this._checkProvider("getTransactionCount"),[4,this.provider.getTransactionCount(this.getAddress(),t)];case 1:return[2,e.sent()]}}))}))},t.prototype.estimateGas=function(t){return i(this,void 0,void 0,(function(){var e;return o(this,(function(r){switch(r.label){case 0:return this._checkProvider("estimateGas"),[4,U.resolveProperties(this.checkTransaction(t))];case 1:return e=r.sent(),[4,this.provider.estimateGas(e)];case 2:return[2,r.sent()]}}))}))},t.prototype.call=function(t,e){return i(this,void 0,void 0,(function(){var r;return o(this,(function(n){switch(n.label){case 0:return this._checkProvider("call"),[4,U.resolveProperties(this.checkTransaction(t))];case 1:return r=n.sent(),[4,this.provider.call(r,e)];case 2:return[2,n.sent()]}}))}))},t.prototype.sendTransaction=function(t){var e=this;return this._checkProvider("sendTransaction"),this.populateTransaction(t).then((function(t){return e.signTransaction(t).then((function(t){return e.provider.sendTransaction(t)}))}))},t.prototype.getChainId=function(){return i(this,void 0,void 0,(function(){var t;return o(this,(function(e){switch(e.label){case 0:return this._checkProvider("getChainId"),[4,this.provider.getNetwork()];case 1:return t=e.sent(),[2,t.chainId]}}))}))},t.prototype.getGasPrice=function(){return i(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return this._checkProvider("getGasPrice"),[4,this.provider.getGasPrice()];case 1:return[2,t.sent()]}}))}))},t.prototype.resolveName=function(t){return i(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return this._checkProvider("resolveName"),[4,this.provider.resolveName(t)];case 1:return[2,e.sent()]}}))}))},t.prototype.checkTransaction=function(t){for(var e in t)-1===a.indexOf(e)&&s.throwArgumentError("invalid transaction key: "+e,"transaction",t);var r=U.shallowCopy(t);return null==r.from?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then((function(e){return e[0]!==e[1]&&s.throwArgumentError("from address mismatch","transaction",t),e[0]})),r},t.prototype.populateTransaction=function(t){return i(this,void 0,void 0,(function(){var e,r=this;return o(this,(function(n){switch(n.label){case 0:return[4,U.resolveProperties(this.checkTransaction(t))];case 1:return e=n.sent(),null!=e.to&&(e.to=Promise.resolve(e.to).then((function(t){return r.resolveName(t)}))),null==e.gasPrice&&(e.gasPrice=this.getGasPrice()),null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch((function(t){if(u.indexOf(t.code)>=0)throw t;return s.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",C.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,tx:e})}))),null==e.chainId?e.chainId=this.getChainId():e.chainId=Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then((function(e){return 0!==e[1]&&e[0]!==e[1]&&s.throwArgumentError("chainId address mismatch","transaction",t),e[0]})),[4,U.resolveProperties(e)];case 2:return[2,n.sent()]}}))}))},t.prototype._checkProvider=function(t){this.provider||s.throwError("missing provider",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})},t.isSigner=function(t){return!(!t||!t._isSigner)},t}();e.Signer=h;var l=function(t){function e(r,n){var i=this.constructor,o=this;return s.checkNew(i,e),o=t.call(this)||this,U.defineReadOnly(o,"address",r),U.defineReadOnly(o,"provider",n||null),o}return r(e,t),e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype._fail=function(t,e){return Promise.resolve().then((function(){s.throwError(t,C.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}))},e.prototype.signMessage=function(t){return this._fail("VoidSigner cannot sign messages","signMessage")},e.prototype.signTransaction=function(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")},e.prototype._signTypedData=function(t,e,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")},e.prototype.connect=function(t){return new e(this.address,t)},e}(h);e.VoidSigner=l}))),kt=(i(_t),_t.Signer,_t.VoidSigner,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="contracts/5.0.5"}))),St=(i(kt),kt.version,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},s=n&&n.__spreadArrays||function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<r;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a=new C.Logger(kt.version),u={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0};function h(t,e){return i(this,void 0,void 0,(function(){var r,n;return o(this,(function(i){switch(i.label){case 0:return[4,e];case 1:r=i.sent();try{return[2,W.getAddress(r)]}catch(o){}return t||a.throwError("a provider or signer is needed to resolve ENS names",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"}),[4,t.resolveName(r)];case 2:return n=i.sent(),null==n&&a.throwArgumentError("resolver or addr is not configured for ENS name","name",r),[2,n]}}))}))}function l(t,e,r){return i(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return Array.isArray(r)?[4,Promise.all(r.map((function(r,n){return l(t,Array.isArray(e)?e[n]:e[r.name],r)})))]:[3,2];case 1:return[2,n.sent()];case 2:return"address"!==r.type?[3,4]:[4,h(t,e)];case 3:return[2,n.sent()];case 4:return"tuple"!==r.type?[3,6]:[4,l(t,e,r.components)];case 5:return[2,n.sent()];case 6:return"array"!==r.baseType?[3,8]:Array.isArray(e)?[4,Promise.all(e.map((function(e){return l(t,e,r.arrayChildren)})))]:[2,Promise.reject(new Error("invalid value for array"))];case 7:return[2,n.sent()];case 8:return[2,e]}}))}))}function c(t,e,r){return i(this,void 0,void 0,(function(){var n,s,u,c,f,d,p,m,v,g,y=this;return o(this,(function(b){switch(b.label){case 0:return n={},r.length===e.inputs.length+1&&"object"===typeof r[r.length-1]&&(n=U.shallowCopy(r.pop())),a.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=U.resolveProperties({override:h(t.signer,n.from),signer:t.signer.getAddress()}).then((function(t){return i(y,void 0,void 0,(function(){return o(this,(function(e){return W.getAddress(t.signer)!==t.override&&a.throwError("Contract with a Signer cannot override from",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),[2,t.override]}))}))})):n.from=t.signer.getAddress():n.from&&(n.from=h(t.provider,n.from)),[4,U.resolveProperties({args:l(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:U.resolveProperties(n)||{}})];case 1:if(s=b.sent(),u=t.interface.encodeFunctionData(e,s.args),c={data:u,to:s.address},f=s.overrides,null!=f.nonce&&(c.nonce=j.BigNumber.from(f.nonce).toNumber()),null!=f.gasLimit&&(c.gasLimit=j.BigNumber.from(f.gasLimit)),null!=f.gasPrice&&(c.gasPrice=j.BigNumber.from(f.gasPrice)),null!=f.from&&(c.from=f.from),null==c.gasLimit&&null!=e.gas){for(d=21e3,p=B.arrayify(u),m=0;m<p.length;m++)d+=4,p[m]&&(d+=64);c.gasLimit=j.BigNumber.from(e.gas).add(d)}return f.value&&(v=j.BigNumber.from(f.value),v.isZero()||e.payable||a.throwError("non-payable method cannot override value",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),c.value=v),delete n.nonce,delete n.gasLimit,delete n.gasPrice,delete n.from,delete n.value,g=Object.keys(n).filter((function(t){return null!=n[t]})),g.length&&a.throwError("cannot override "+g.map((function(t){return JSON.stringify(t)})).join(","),C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:g}),[2,c]}}))}))}function f(t,e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return c(t,e,r)}}function d(t,e){var r=t.signer||t.provider;return function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return i(this,void 0,void 0,(function(){var i;return o(this,(function(o){switch(o.label){case 0:return r||a.throwError("estimate require a provider or signer",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"}),[4,c(t,e,n)];case 1:return i=o.sent(),[4,r.estimateGas(i)];case 2:return[2,o.sent()]}}))}))}}function p(t,e,r){var n=t.signer||t.provider;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return i(this,void 0,void 0,(function(){var i,a,u,h,l;return o(this,(function(o){switch(o.label){case 0:return i=void 0,s.length!==e.inputs.length+1||"object"!==typeof s[s.length-1]?[3,3]:(a=U.shallowCopy(s.pop()),null==a.blockTag?[3,2]:[4,a.blockTag]);case 1:i=o.sent(),o.label=2;case 2:delete a.blockTag,s.push(a),o.label=3;case 3:return null==t.deployTransaction?[3,5]:[4,t._deployed(i)];case 4:o.sent(),o.label=5;case 5:return[4,c(t,e,s)];case 6:return u=o.sent(),[4,n.call(u,i)];case 7:h=o.sent();try{return l=t.interface.decodeFunctionResult(e,h),r&&1===e.outputs.length&&(l=l[0]),[2,l]}catch(f){throw f.code===C.Logger.errors.CALL_EXCEPTION&&(f.address=t.address,f.args=s,f.transaction=u),f}return[2]}}))}))}}function m(t,e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return i(this,void 0,void 0,(function(){var n,i,s;return o(this,(function(o){switch(o.label){case 0:return t.signer||a.throwError("sending a transaction requires a signer",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null==t.deployTransaction?[3,2]:[4,t._deployed()];case 1:o.sent(),o.label=2;case 2:return[4,c(t,e,r)];case 3:return n=o.sent(),[4,t.signer.sendTransaction(n)];case 4:return i=o.sent(),s=i.wait.bind(i),i.wait=function(e){return s(e).then((function(e){return e.events=e.logs.map((function(r){var n=U.deepCopy(r),i=null;try{i=t.interface.parseLog(r)}catch(o){}return i&&(n.args=i.args,n.decode=function(e,r){return t.interface.decodeEventLog(i.eventFragment,e,r)},n.event=i.name,n.eventSignature=i.signature),n.removeListener=function(){return t.provider},n.getBlock=function(){return t.provider.getBlock(e.blockHash)},n.getTransaction=function(){return t.provider.getTransaction(e.transactionHash)},n.getTransactionReceipt=function(){return Promise.resolve(e)},n})),e}))},[2,i]}}))}))}}function v(t,e,r){return e.constant?p(t,e,r):m(t,e)}function g(t){return!t.address||null!=t.topics&&0!==t.topics.length?(t.address||"*")+"@"+(t.topics?t.topics.map((function(t){return Array.isArray(t)?t.join("|"):t})).join(":"):""):"*"}var y=function(){function t(t,e){U.defineReadOnly(this,"tag",t),U.defineReadOnly(this,"filter",e),this._listeners=[]}return t.prototype.addListener=function(t,e){this._listeners.push({listener:t,once:e})},t.prototype.removeListener=function(t){var e=!1;this._listeners=this._listeners.filter((function(r){return!(!e&&r.listener===t)||(e=!0,!1)}))},t.prototype.removeAllListeners=function(){this._listeners=[]},t.prototype.listeners=function(){return this._listeners.map((function(t){return t.listener}))},t.prototype.listenerCount=function(){return this._listeners.length},t.prototype.run=function(t){var e=this,r=this.listenerCount();return this._listeners=this._listeners.filter((function(r){var n=t.slice();return setTimeout((function(){r.listener.apply(e,n)}),0),!r.once})),r},t.prototype.prepareEvent=function(t){},t.prototype.getEmit=function(t){return[t]},t}(),b=function(t){function e(){return t.call(this,"error",null)||this}return r(e,t),e}(y),w=function(t){function e(e,r,n,i){var o=this,s={address:e},u=r.getEventTopic(n);return i?(u!==i[0]&&a.throwArgumentError("topic mismatch","topics",i),s.topics=i.slice()):s.topics=[u],o=t.call(this,g(s),s)||this,U.defineReadOnly(o,"address",e),U.defineReadOnly(o,"interface",r),U.defineReadOnly(o,"fragment",n),o}return r(e,t),e.prototype.prepareEvent=function(e){var r=this;t.prototype.prepareEvent.call(this,e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=function(t,e){return r.interface.decodeEventLog(r.fragment,t,e)};try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(n){e.args=null,e.decodeError=n}},e.prototype.getEmit=function(t){var e=yt.checkResultErrors(t.args);if(e.length)throw e[0].error;var r=(t.args||[]).slice();return r.push(t),r},e}(y),M=function(t){function e(e,r){var n=t.call(this,"*",{address:e})||this;return U.defineReadOnly(n,"address",e),U.defineReadOnly(n,"interface",r),n}return r(e,t),e.prototype.prepareEvent=function(e){var r=this;t.prototype.prepareEvent.call(this,e);try{var n=this.interface.parseLog(e);e.event=n.name,e.eventSignature=n.signature,e.decode=function(t,e){return r.interface.decodeEventLog(n.eventFragment,t,e)},e.args=n.args}catch(i){}},e}(y),_=function(){function t(e,r,n){var i=this.constructor,o=this;a.checkNew(i,t),U.defineReadOnly(this,"interface",U.getStatic(i,"getInterface")(r)),null==n?(U.defineReadOnly(this,"provider",null),U.defineReadOnly(this,"signer",null)):_t.Signer.isSigner(n)?(U.defineReadOnly(this,"provider",n.provider||null),U.defineReadOnly(this,"signer",n)):wt.Provider.isProvider(n)?(U.defineReadOnly(this,"provider",n),U.defineReadOnly(this,"signer",null)):a.throwArgumentError("invalid signer or provider","signerOrProvider",n),U.defineReadOnly(this,"callStatic",{}),U.defineReadOnly(this,"estimateGas",{}),U.defineReadOnly(this,"functions",{}),U.defineReadOnly(this,"populateTransaction",{}),U.defineReadOnly(this,"filters",{});var s={};if(Object.keys(this.interface.events).forEach((function(t){var e=o.interface.events[t];U.defineReadOnly(o.filters,t,(function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return{address:o.address,topics:o.interface.encodeFilterTopics(e,t)}})),s[e.name]||(s[e.name]=[]),s[e.name].push(t)})),Object.keys(s).forEach((function(t){var e=s[t];1===e.length?U.defineReadOnly(o.filters,t,o.filters[e[0]]):a.warn("Duplicate definition of "+t+" ("+e.join(", ")+")")})),U.defineReadOnly(this,"_runningEvents",{}),U.defineReadOnly(this,"_wrappedEmits",{}),U.defineReadOnly(this,"address",e),this.provider)U.defineReadOnly(this,"resolvedAddress",h(this.provider,e));else try{U.defineReadOnly(this,"resolvedAddress",Promise.resolve(W.getAddress(e)))}catch(c){a.throwError("provider is required to use ENS name as contract address",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}var u={},l={};Object.keys(this.interface.functions).forEach((function(t){var e=o.interface.functions[t];if(l[t])a.warn("Duplicate ABI entry for "+JSON.stringify(name));else{l[t]=!0;var r=e.name;u[r]||(u[r]=[]),u[r].push(t),null==o[t]&&U.defineReadOnly(o,t,v(o,e,!0)),null==o.functions[t]&&U.defineReadOnly(o.functions,t,v(o,e,!1)),null==o.callStatic[t]&&U.defineReadOnly(o.callStatic,t,p(o,e,!0)),null==o.populateTransaction[t]&&U.defineReadOnly(o.populateTransaction,t,f(o,e)),null==o.estimateGas[t]&&U.defineReadOnly(o.estimateGas,t,d(o,e))}})),Object.keys(u).forEach((function(t){var e=u[t];if(!(e.length>1)){var r=e[0];null==o[t]&&U.defineReadOnly(o,t,o[r]),null==o.functions[t]&&U.defineReadOnly(o.functions,t,o.functions[r]),null==o.callStatic[t]&&U.defineReadOnly(o.callStatic,t,o.callStatic[r]),null==o.populateTransaction[t]&&U.defineReadOnly(o.populateTransaction,t,o.populateTransaction[r]),null==o.estimateGas[t]&&U.defineReadOnly(o.estimateGas,t,o.estimateGas[r])}}))}return t.getContractAddress=function(t){return W.getContractAddress(t)},t.getInterface=function(t){return yt.Interface.isInterface(t)?t:new yt.Interface(t)},t.prototype.deployed=function(){return this._deployed()},t.prototype._deployed=function(t){var e=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return e})):this._deployedPromise=this.provider.getCode(this.address,t).then((function(t){return"0x"===t&&a.throwError("contract not deployed",C.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:e.address,operation:"getDeployed"}),e}))),this._deployedPromise},t.prototype.fallback=function(t){var e=this;this.signer||a.throwError("sending a transactions require a signer",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var r=U.shallowCopy(t||{});return["from","to"].forEach((function(t){null!=r[t]&&a.throwError("cannot override "+t,C.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})})),r.to=this.resolvedAddress,this.deployed().then((function(){return e.signer.sendTransaction(r)}))},t.prototype.connect=function(t){"string"===typeof t&&(t=new _t.VoidSigner(t,this.provider));var e=new this.constructor(this.address,this.interface,t);return this.deployTransaction&&U.defineReadOnly(e,"deployTransaction",this.deployTransaction),e},t.prototype.attach=function(t){return new this.constructor(t,this.interface,this.signer||this.provider)},t.isIndexed=function(t){return yt.Indexed.isIndexed(t)},t.prototype._normalizeRunningEvent=function(t){return this._runningEvents[t.tag]?this._runningEvents[t.tag]:t},t.prototype._getRunningEvent=function(t){if("string"===typeof t){if("error"===t)return this._normalizeRunningEvent(new b);if("event"===t)return this._normalizeRunningEvent(new y("event",null));if("*"===t)return this._normalizeRunningEvent(new M(this.address,this.interface));var e=this.interface.getEvent(t);return this._normalizeRunningEvent(new w(this.address,this.interface,e))}if(t.topics&&t.topics.length>0){try{var r=t.topics[0];if("string"!==typeof r)throw new Error("invalid topic");e=this.interface.getEvent(r);return this._normalizeRunningEvent(new w(this.address,this.interface,e,t.topics))}catch(i){}var n={address:this.address,topics:t.topics};return this._normalizeRunningEvent(new y(g(n),n))}return this._normalizeRunningEvent(new M(this.address,this.interface))},t.prototype._checkRunningEvents=function(t){if(0===t.listenerCount()){delete this._runningEvents[t.tag];var e=this._wrappedEmits[t.tag];e&&(this.provider.off(t.filter,e),delete this._wrappedEmits[t.tag])}},t.prototype._wrapEvent=function(t,e,r){var n=this,i=U.deepCopy(e);return i.removeListener=function(){r&&(t.removeListener(r),n._checkRunningEvents(t))},i.getBlock=function(){return n.provider.getBlock(e.blockHash)},i.getTransaction=function(){return n.provider.getTransaction(e.transactionHash)},i.getTransactionReceipt=function(){return n.provider.getTransactionReceipt(e.transactionHash)},t.prepareEvent(i),i},t.prototype._addEventListener=function(t,e,r){var n=this;if(this.provider||a.throwError("events require a provider or a signer with a provider",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),t.addListener(e,r),this._runningEvents[t.tag]=t,!this._wrappedEmits[t.tag]){var i=function(r){var i=n._wrapEvent(t,r,e);if(null==i.decodeError)try{var o=t.getEmit(i);n.emit.apply(n,s([t.filter],o))}catch(a){i.decodeError=a.error}null!=t.filter&&n.emit("event",i),null!=i.decodeError&&n.emit("error",i.decodeError,i)};this._wrappedEmits[t.tag]=i,null!=t.filter&&this.provider.on(t.filter,i)}},t.prototype.queryFilter=function(t,e,r){var n=this,i=this._getRunningEvent(t),o=U.shallowCopy(i.filter);return"string"===typeof e&&B.isHexString(e,32)?(null!=r&&a.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),o.blockHash=e):(o.fromBlock=null!=e?e:0,o.toBlock=null!=r?r:"latest"),this.provider.getLogs(o).then((function(t){return t.map((function(t){return n._wrapEvent(i,t,null)}))}))},t.prototype.on=function(t,e){return this._addEventListener(this._getRunningEvent(t),e,!1),this},t.prototype.once=function(t,e){return this._addEventListener(this._getRunningEvent(t),e,!0),this},t.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!this.provider)return!1;var n=this._getRunningEvent(t),i=n.run(e)>0;return this._checkRunningEvents(n),i},t.prototype.listenerCount=function(t){return this.provider?this._getRunningEvent(t).listenerCount():0},t.prototype.listeners=function(t){if(!this.provider)return[];if(null==t){var e=[];for(var r in this._runningEvents)this._runningEvents[r].listeners().forEach((function(t){e.push(t)}));return e}return this._getRunningEvent(t).listeners()},t.prototype.removeAllListeners=function(t){if(!this.provider)return this;if(null==t){for(var e in this._runningEvents){var r=this._runningEvents[e];r.removeAllListeners(),this._checkRunningEvents(r)}return this}var n=this._getRunningEvent(t);return n.removeAllListeners(),this._checkRunningEvents(n),this},t.prototype.off=function(t,e){if(!this.provider)return this;var r=this._getRunningEvent(t);return r.removeListener(e),this._checkRunningEvents(r),this},t.prototype.removeListener=function(t,e){return this.off(t,e)},t}();e.Contract=_;var k=function(){function t(t,e,r){var n=this.constructor,i=null;i="string"===typeof e?e:B.isBytes(e)?B.hexlify(e):e&&"string"===typeof e.object?e.object:"!","0x"!==i.substring(0,2)&&(i="0x"+i),(!B.isHexString(i)||i.length%2)&&a.throwArgumentError("invalid bytecode","bytecode",e),r&&!_t.Signer.isSigner(r)&&a.throwArgumentError("invalid signer","signer",r),U.defineReadOnly(this,"bytecode",i),U.defineReadOnly(this,"interface",U.getStatic(n,"getInterface")(t)),U.defineReadOnly(this,"signer",r||null)}return t.prototype.getDeployTransaction=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={};if(t.length===this.interface.deploy.inputs.length+1&&"object"===typeof t[t.length-1])for(var n in r=U.shallowCopy(t.pop()),r)if(!u[n])throw new Error("unknown transaction override "+n);return["data","from","to"].forEach((function(t){null!=r[t]&&a.throwError("cannot override "+t,C.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})})),a.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor"),r.data=B.hexlify(B.concat([this.bytecode,this.interface.encodeDeploy(t)])),r},t.prototype.deploy=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i(this,void 0,void 0,(function(){var e,r,n,i,s,u;return o(this,(function(o){switch(o.label){case 0:return e={},t.length===this.interface.deploy.inputs.length+1&&(e=t.pop()),a.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor"),[4,l(this.signer,t,this.interface.deploy.inputs)];case 1:return r=o.sent(),r.push(e),n=this.getDeployTransaction.apply(this,r),[4,this.signer.sendTransaction(n)];case 2:return i=o.sent(),s=U.getStatic(this.constructor,"getContractAddress")(i),u=U.getStatic(this.constructor,"getContract")(s,this.interface,this.signer),U.defineReadOnly(u,"deployTransaction",i),[2,u]}}))}))},t.prototype.attach=function(t){return this.constructor.getContract(t,this.interface,this.signer)},t.prototype.connect=function(t){return new this.constructor(this.interface,this.bytecode,t)},t.fromSolidity=function(t,e){null==t&&a.throwError("missing compiler output",C.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"===typeof t&&(t=JSON.parse(t));var r=t.abi,n=null;return t.bytecode?n=t.bytecode:t.evm&&t.evm.bytecode&&(n=t.evm.bytecode),new this(r,n,e)},t.getInterface=function(t){return _.getInterface(t)},t.getContractAddress=function(t){return W.getContractAddress(t)},t.getContract=function(t,e,r){return new _(t,e,r)},t}();e.ContractFactory=k}))),xt=(i(St),St.Contract,St.ContractFactory,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){U.defineReadOnly(this,"alphabet",t),U.defineReadOnly(this,"base",t.length),U.defineReadOnly(this,"_alphabetMap",{}),U.defineReadOnly(this,"_leader",t.charAt(0));for(var e=0;e<t.length;e++)this._alphabetMap[t.charAt(e)]=e}return t.prototype.encode=function(t){var e=B.arrayify(t);if(0===e.length)return"";for(var r=[0],n=0;n<e.length;++n){for(var i=e[n],o=0;o<r.length;++o)i+=r[o]<<8,r[o]=i%this.base,i=i/this.base|0;while(i>0)r.push(i%this.base),i=i/this.base|0}for(var s="",a=0;0===e[a]&&a<e.length-1;++a)s+=this._leader;for(var u=r.length-1;u>=0;--u)s+=this.alphabet[r[u]];return s},t.prototype.decode=function(t){if("string"!==typeof t)throw new TypeError("Expected String");var e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(var r=0;r<t.length;r++){var n=this._alphabetMap[t[r]];if(void 0===n)throw new Error("Non-base"+this.base+" character");for(var i=n,o=0;o<e.length;++o)i+=e[o]*this.base,e[o]=255&i,i>>=8;while(i>0)e.push(255&i),i>>=8}for(var s=0;t[s]===this._leader&&s<t.length-1;++s)e.push(0);return B.arrayify(new Uint8Array(e.reverse()))},t}();e.BaseX=r;var n=new r("abcdefghijklmnopqrstuvwxyz234567");e.Base32=n;var i=new r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");e.Base58=i}))),Et=(i(xt),xt.BaseX,xt.Base32,xt.Base58,At);function At(t,e){if(!t)throw new Error(e||"Assertion failed")}At.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var Ot=o((function(t){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}})),Tt=Ot;function Ct(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"===typeof t)if(e){if("hex"===e)for(t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t),n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}else for(n=0;n<t.length;n++)r[n]=0|t[n];return r}var Pt=Ct;function Bt(t){for(var e="",r=0;r<t.length;r++)e+=Ut(t[r].toString(16));return e}var It=Bt;function Rt(t){var e=t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24;return e>>>0}var Nt=Rt;function jt(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=Rt(i)),r+=Ft(i.toString(16))}return r}var Lt=jt;function Ut(t){return 1===t.length?"0"+t:t}var Dt=Ut;function Ft(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}var zt=Ft;function qt(t,e,r,n){var i=r-e;Et(i%4===0);for(var o=new Array(i/4),s=0,a=e;s<o.length;s++,a+=4){var u;u="big"===n?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],o[s]=u>>>0}return o}var Ht=qt;function $t(t,e){for(var r=new Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var o=t[n];"big"===e?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r}var Vt=$t;function Kt(t,e){return t>>>e|t<<32-e}var Wt=Kt;function Gt(t,e){return t<<e|t>>>32-e}var Zt=Gt;function Jt(t,e){return t+e>>>0}var Xt=Jt;function Yt(t,e,r){return t+e+r>>>0}var Qt=Yt;function te(t,e,r,n){return t+e+r+n>>>0}var ee=te;function re(t,e,r,n,i){return t+e+r+n+i>>>0}var ne=re;function ie(t,e,r,n){var i=t[e],o=t[e+1],s=n+o>>>0,a=(s<n?1:0)+r+i;t[e]=a>>>0,t[e+1]=s}var oe=ie;function se(t,e,r,n){var i=e+n>>>0,o=(i<e?1:0)+t+r;return o>>>0}var ae=se;function ue(t,e,r,n){var i=e+n;return i>>>0}var he=ue;function le(t,e,r,n,i,o,s,a){var u=0,h=e;h=h+n>>>0,u+=h<e?1:0,h=h+o>>>0,u+=h<o?1:0,h=h+a>>>0,u+=h<a?1:0;var l=t+r+i+s+u;return l>>>0}var ce=le;function fe(t,e,r,n,i,o,s,a){var u=e+n+o+a;return u>>>0}var de=fe;function pe(t,e,r,n,i,o,s,a,u,h){var l=0,c=e;c=c+n>>>0,l+=c<e?1:0,c=c+o>>>0,l+=c<o?1:0,c=c+a>>>0,l+=c<a?1:0,c=c+h>>>0,l+=c<h?1:0;var f=t+r+i+s+u+l;return f>>>0}var me=pe;function ve(t,e,r,n,i,o,s,a,u,h){var l=e+n+o+a+h;return l>>>0}var ge=ve;function ye(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}var be=ye;function we(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}var Me=we;function _e(t,e,r){return t>>>r}var ke=_e;function Se(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}var xe=Se,Ee={inherits:Tt,toArray:Pt,toHex:It,htonl:Nt,toHex32:Lt,zero2:Dt,zero8:zt,join32:Ht,split32:Vt,rotr32:Wt,rotl32:Zt,sum32:Xt,sum32_3:Qt,sum32_4:ee,sum32_5:ne,sum64:oe,sum64_hi:ae,sum64_lo:he,sum64_4_hi:ce,sum64_4_lo:de,sum64_5_hi:me,sum64_5_lo:ge,rotr64_hi:be,rotr64_lo:Me,shr64_hi:ke,shr64_lo:xe};function Ae(){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}var Oe=Ae;Ae.prototype.update=function(t,e){if(t=Ee.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var r=t.length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=Ee.join32(t,0,t.length-r,this.endian);for(var n=0;n<t.length;n+=this._delta32)this._update(t,n,n+this._delta32)}return this},Ae.prototype.digest=function(t){return this.update(this._pad()),Et(null===this.pending),this._digest(t)},Ae.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n};var Te={BlockHash:Oe},Ce={},Pe={},Be=Ee.rotr32;function Ie(t,e,r,n){return 0===t?Ne(e,r,n):1===t||3===t?De(e,r,n):2===t?Le(e,r,n):void 0}var Re=Ie;function Ne(t,e,r){return t&e^~t&r}var je=Ne;function Le(t,e,r){return t&e^t&r^e&r}var Ue=Le;function De(t,e,r){return t^e^r}var Fe=De;function ze(t){return Be(t,2)^Be(t,13)^Be(t,22)}var qe=ze;function He(t){return Be(t,6)^Be(t,11)^Be(t,25)}var $e=He;function Ve(t){return Be(t,7)^Be(t,18)^t>>>3}var Ke=Ve;function We(t){return Be(t,17)^Be(t,19)^t>>>10}var Ge=We,Ze={ft_1:Re,ch32:je,maj32:Ue,p32:Fe,s0_256:qe,s1_256:$e,g0_256:Ke,g1_256:Ge},Je=Ee.sum32,Xe=Ee.sum32_4,Ye=Ee.sum32_5,Qe=Ze.ch32,tr=Ze.maj32,er=Ze.s0_256,rr=Ze.s1_256,nr=Ze.g0_256,ir=Ze.g1_256,or=Te.BlockHash,sr=[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 ar(){if(!(this instanceof ar))return new ar;or.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=sr,this.W=new Array(64)}Ee.inherits(ar,or);var ur=ar;ar.blockSize=512,ar.outSize=256,ar.hmacStrength=192,ar.padLength=64,ar.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=Xe(ir(r[n-2]),r[n-7],nr(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],u=this.h[4],h=this.h[5],l=this.h[6],c=this.h[7];for(Et(this.k.length===r.length),n=0;n<r.length;n++){var f=Ye(c,rr(u),Qe(u,h,l),this.k[n],r[n]),d=Je(er(i),tr(i,o,s));c=l,l=h,h=u,u=Je(a,f),a=s,s=o,o=i,i=Je(f,d)}this.h[0]=Je(this.h[0],i),this.h[1]=Je(this.h[1],o),this.h[2]=Je(this.h[2],s),this.h[3]=Je(this.h[3],a),this.h[4]=Je(this.h[4],u),this.h[5]=Je(this.h[5],h),this.h[6]=Je(this.h[6],l),this.h[7]=Je(this.h[7],c)},ar.prototype._digest=function(t){return"hex"===t?Ee.toHex32(this.h,"big"):Ee.split32(this.h,"big")};var hr={},lr=Ee.rotr64_hi,cr=Ee.rotr64_lo,fr=Ee.shr64_hi,dr=Ee.shr64_lo,pr=Ee.sum64,mr=Ee.sum64_hi,vr=Ee.sum64_lo,gr=Ee.sum64_4_hi,yr=Ee.sum64_4_lo,br=Ee.sum64_5_hi,wr=Ee.sum64_5_lo,Mr=Te.BlockHash,_r=[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 kr(){if(!(this instanceof kr))return new kr;Mr.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=_r,this.W=new Array(160)}Ee.inherits(kr,Mr);var Sr=kr;function xr(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function Er(t,e,r,n,i,o){var s=e&n^~e&o;return s<0&&(s+=4294967296),s}function Ar(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function Or(t,e,r,n,i,o){var s=e&n^e&o^n&o;return s<0&&(s+=4294967296),s}function Tr(t,e){var r=lr(t,e,28),n=lr(e,t,2),i=lr(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function Cr(t,e){var r=cr(t,e,28),n=cr(e,t,2),i=cr(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function Pr(t,e){var r=lr(t,e,14),n=lr(t,e,18),i=lr(e,t,9),o=r^n^i;return o<0&&(o+=4294967296),o}function Br(t,e){var r=cr(t,e,14),n=cr(t,e,18),i=cr(e,t,9),o=r^n^i;return o<0&&(o+=4294967296),o}function Ir(t,e){var r=lr(t,e,1),n=lr(t,e,8),i=fr(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function Rr(t,e){var r=cr(t,e,1),n=cr(t,e,8),i=dr(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function Nr(t,e){var r=lr(t,e,19),n=lr(e,t,29),i=fr(t,e,6),o=r^n^i;return o<0&&(o+=4294967296),o}function jr(t,e){var r=cr(t,e,19),n=cr(e,t,29),i=dr(t,e,6),o=r^n^i;return o<0&&(o+=4294967296),o}kr.blockSize=1024,kr.outSize=512,kr.hmacStrength=192,kr.padLength=128,kr.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=Nr(r[n-4],r[n-3]),o=jr(r[n-4],r[n-3]),s=r[n-14],a=r[n-13],u=Ir(r[n-30],r[n-29]),h=Rr(r[n-30],r[n-29]),l=r[n-32],c=r[n-31];r[n]=gr(i,o,s,a,u,h,l,c),r[n+1]=yr(i,o,s,a,u,h,l,c)}},kr.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],a=this.h[4],u=this.h[5],h=this.h[6],l=this.h[7],c=this.h[8],f=this.h[9],d=this.h[10],p=this.h[11],m=this.h[12],v=this.h[13],g=this.h[14],y=this.h[15];Et(this.k.length===r.length);for(var b=0;b<r.length;b+=2){var w=g,M=y,_=Pr(c,f),k=Br(c,f),S=xr(c,f,d,p,m,v),x=Er(c,f,d,p,m,v),E=this.k[b],A=this.k[b+1],O=r[b],T=r[b+1],C=br(w,M,_,k,S,x,E,A,O,T),P=wr(w,M,_,k,S,x,E,A,O,T);w=Tr(n,i),M=Cr(n,i),_=Ar(n,i,o,s,a,u),k=Or(n,i,o,s,a,u);var B=mr(w,M,_,k),I=vr(w,M,_,k);g=m,y=v,m=d,v=p,d=c,p=f,c=mr(h,l,C,P),f=vr(l,l,C,P),h=a,l=u,a=o,u=s,o=n,s=i,n=mr(C,P,B,I),i=vr(C,P,B,I)}pr(this.h,0,n,i),pr(this.h,2,o,s),pr(this.h,4,a,u),pr(this.h,6,h,l),pr(this.h,8,c,f),pr(this.h,10,d,p),pr(this.h,12,m,v),pr(this.h,14,g,y)},kr.prototype._digest=function(t){return"hex"===t?Ee.toHex32(this.h,"big"):Ee.split32(this.h,"big")};var Lr=Ce,Ur=Pe,Dr=ur,Fr=hr,zr=Sr,qr={sha1:Lr,sha224:Ur,sha256:Dr,sha384:Fr,sha512:zr},Hr=Ee.rotl32,$r=Ee.sum32,Vr=Ee.sum32_3,Kr=Ee.sum32_4,Wr=Te.BlockHash;function Gr(){if(!(this instanceof Gr))return new Gr;Wr.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Ee.inherits(Gr,Wr);var Zr=Gr;function Jr(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function Xr(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function Yr(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}Gr.blockSize=512,Gr.outSize=160,Gr.hmacStrength=192,Gr.padLength=64,Gr.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],o=this.h[3],s=this.h[4],a=r,u=n,h=i,l=o,c=s,f=0;f<80;f++){var d=$r(Hr(Kr(r,Jr(f,n,i,o),t[Qr[f]+e],Xr(f)),en[f]),s);r=s,s=o,o=Hr(i,10),i=n,n=d,d=$r(Hr(Kr(a,Jr(79-f,u,h,l),t[tn[f]+e],Yr(f)),rn[f]),c),a=c,c=l,l=Hr(h,10),h=u,u=d}d=Vr(this.h[1],i,l),this.h[1]=Vr(this.h[2],o,c),this.h[2]=Vr(this.h[3],s,a),this.h[3]=Vr(this.h[4],r,u),this.h[4]=Vr(this.h[0],n,h),this.h[0]=d},Gr.prototype._digest=function(t){return"hex"===t?Ee.toHex32(this.h,"little"):Ee.split32(this.h,"little")};var Qr=[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],tn=[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],en=[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],rn=[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],nn={ripemd160:Zr};function on(t,e,r){if(!(this instanceof on))return new on(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(Ee.toArray(e,r))}var sn=on;on.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),Et(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},on.prototype.update=function(t,e){return this.inner.update(t,e),this},on.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};var an=o((function(t,e){var r=e;r.utils=Ee,r.common=Te,r.sha=qr,r.ripemd=nn,r.hmac=sn,r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160})),un=(an.hmac,an.ripemd160,an.sha256,an.sha512,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="sha2/5.0.4"}))),hn=(i(un),un.version,o((function(t,e){var r=n&&n.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i,o=r(an),s=new C.Logger(un.version);function a(t){return"0x"+o.ripemd160().update(B.arrayify(t)).digest("hex")}function u(t){return"0x"+o.sha256().update(B.arrayify(t)).digest("hex")}function h(t){return"0x"+o.sha512().update(B.arrayify(t)).digest("hex")}function l(t,e,r){return i[t]||s.throwError("unsupported algorithm "+t,C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:t}),"0x"+o.hmac(o[t],B.arrayify(e)).update(B.arrayify(r)).digest("hex")}(function(t){t["sha256"]="sha256",t["sha512"]="sha512"})(i=e.SupportedAlgorithm||(e.SupportedAlgorithm={})),e.ripemd160=a,e.sha256=u,e.sha512=h,e.computeHmac=l}))),ln=(i(hn),hn.SupportedAlgorithm,hn.ripemd160,hn.sha256,hn.sha512,hn.computeHmac,o((function(t,e){function r(t,e,r,n,i){var o;t=B.arrayify(t),e=B.arrayify(e);var s,a,u=1,h=new Uint8Array(n),l=new Uint8Array(e.length+4);l.set(e);for(var c=1;c<=u;c++){l[e.length]=c>>24&255,l[e.length+1]=c>>16&255,l[e.length+2]=c>>8&255,l[e.length+3]=255&c;var f=B.arrayify(hn.computeHmac(i,t,l));o||(o=f.length,a=new Uint8Array(o),u=Math.ceil(n/o),s=n-(u-1)*o),a.set(f);for(var d=1;d<r;d++){f=B.arrayify(hn.computeHmac(i,t,f));for(var p=0;p<o;p++)a[p]^=f[p]}var m=(c-1)*o,v=c===u?s:o;h.set(B.arrayify(a).slice(0,v),m)}return B.hexlify(h)}Object.defineProperty(e,"__esModule",{value:!0}),e.pbkdf2=r}))),cn=(i(ln),ln.pbkdf2,"6.5.3"),fn={version:cn},dn=Object.freeze({version:cn,default:fn}),pn=o((function(t,e){var r=e;function n(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!==typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t);for(n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}return r}function i(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",r=0;r<t.length;r++)e+=i(t[r].toString(16));return e}r.toArray=n,r.zero2=i,r.toHex=o,r.encode=function(t,e){return"hex"===e?o(t):t}})),mn=o((function(t,e){var r=e;function n(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,o=t.clone(),s=0;s<n.length;s++){var a,u=o.andln(i-1);o.isOdd()?(a=u>(i>>1)-1?(i>>1)-u:u,o.isubn(a)):a=0,n[s]=a,o.iushrn(1)}return n}function i(t,e){var r=[[],[]];t=t.clone(),e=e.clone();var n=0,i=0;while(t.cmpn(-n)>0||e.cmpn(-i)>0){var o,s,a=t.andln(3)+n&3,u=e.andln(3)+i&3;if(3===a&&(a=-1),3===u&&(u=-1),0===(1&a))o=0;else{var h=t.andln(7)+n&7;o=3!==h&&5!==h||2!==u?a:-a}if(r[0].push(o),0===(1&u))s=0;else{h=e.andln(7)+i&7;s=3!==h&&5!==h||2!==a?u:-u}r[1].push(s),2*n===o+1&&(n=1-n),2*i===s+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r}function o(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function s(t){return"string"===typeof t?r.toArray(t,"hex"):t}function a(t){return new O(t,"hex","le")}r.assert=Et,r.toArray=pn.toArray,r.zero2=pn.zero2,r.toHex=pn.toHex,r.encode=pn.encode,r.getNAF=n,r.getJSF=i,r.cachedProperty=o,r.parseBytes=s,r.intFromLE=a})),vn=function(t){var e=new Uint8Array(t);return(n.crypto||n.msCrypto).getRandomValues(e),e},gn=mn.getNAF,yn=mn.getJSF,bn=mn.assert;function wn(t,e){this.type=t,this.p=new O(e.p,16),this.red=e.prime?O.red(e.prime):O.mont(this.p),this.zero=new O(0).toRed(this.red),this.one=new O(1).toRed(this.red),this.two=new O(2).toRed(this.red),this.n=e.n&&new O(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Mn=wn;function _n(t,e){this.curve=t,this.type=e,this.precomputed=null}wn.prototype.point=function(){throw new Error("Not implemented")},wn.prototype.validate=function(){throw new Error("Not implemented")},wn.prototype._fixedNafMul=function(t,e){bn(t.precomputed);var r=t._getDoubles(),n=gn(e,1,this._bitLength),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;for(var o=[],s=0;s<n.length;s+=r.step){var a=0;for(e=s+r.step-1;e>=s;e--)a=(a<<1)+n[e];o.push(a)}for(var u=this.jpoint(null,null,null),h=this.jpoint(null,null,null),l=i;l>0;l--){for(s=0;s<o.length;s++){a=o[s];a===l?h=h.mixedAdd(r.points[s]):a===-l&&(h=h.mixedAdd(r.points[s].neg()))}u=u.add(h)}return u.toP()},wn.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=gn(e,r,this._bitLength),s=this.jpoint(null,null,null),a=o.length-1;a>=0;a--){for(e=0;a>=0&&0===o[a];a--)e++;if(a>=0&&e++,s=s.dblp(e),a<0)break;var u=o[a];bn(0!==u),s="affine"===t.type?u>0?s.mixedAdd(i[u-1>>1]):s.mixedAdd(i[-u-1>>1].neg()):u>0?s.add(i[u-1>>1]):s.add(i[-u-1>>1].neg())}return"affine"===t.type?s.toP():s},wn.prototype._wnafMulAdd=function(t,e,r,n,i){for(var o=this._wnafT1,s=this._wnafT2,a=this._wnafT3,u=0,h=0;h<n;h++){var l=e[h],c=l._getNAFPoints(t);o[h]=c.wnd,s[h]=c.points}for(h=n-1;h>=1;h-=2){var f=h-1,d=h;if(1===o[f]&&1===o[d]){var p=[e[f],null,null,e[d]];0===e[f].y.cmp(e[d].y)?(p[1]=e[f].add(e[d]),p[2]=e[f].toJ().mixedAdd(e[d].neg())):0===e[f].y.cmp(e[d].y.redNeg())?(p[1]=e[f].toJ().mixedAdd(e[d]),p[2]=e[f].add(e[d].neg())):(p[1]=e[f].toJ().mixedAdd(e[d]),p[2]=e[f].toJ().mixedAdd(e[d].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],v=yn(r[f],r[d]);u=Math.max(v[0].length,u),a[f]=new Array(u),a[d]=new Array(u);for(var g=0;g<u;g++){var y=0|v[0][g],b=0|v[1][g];a[f][g]=m[3*(y+1)+(b+1)],a[d][g]=0,s[f]=p}}else a[f]=gn(r[f],o[f],this._bitLength),a[d]=gn(r[d],o[d],this._bitLength),u=Math.max(a[f].length,u),u=Math.max(a[d].length,u)}var w=this.jpoint(null,null,null),M=this._wnafT4;for(h=u;h>=0;h--){var _=0;while(h>=0){var k=!0;for(g=0;g<n;g++)M[g]=0|a[g][h],0!==M[g]&&(k=!1);if(!k)break;_++,h--}if(h>=0&&_++,w=w.dblp(_),h<0)break;for(g=0;g<n;g++){var S=M[g];0!==S&&(S>0?l=s[g][S-1>>1]:S<0&&(l=s[g][-S-1>>1].neg()),w="affine"===l.type?w.mixedAdd(l):w.add(l))}}for(h=0;h<n;h++)s[h]=null;return i?w:w.toP()},wn.BasePoint=_n,_n.prototype.eq=function(){throw new Error("Not implemented")},_n.prototype.validate=function(){return this.curve.validate(this)},wn.prototype.decodePoint=function(t,e){t=mn.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1===2*r){6===t[0]?bn(t[t.length-1]%2===0):7===t[0]&&bn(t[t.length-1]%2===1);var n=this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));return n}if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},_n.prototype.encodeCompressed=function(t){return this.encode(t,!0)},_n.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},_n.prototype.encode=function(t,e){return mn.encode(this._encode(e),t)},_n.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},_n.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},_n.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},_n.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},_n.prototype._getBeta=function(){return null},_n.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var kn=mn.assert;function Sn(t){Mn.call(this,"short",t),this.a=new O(t.a,16).toRed(this.red),this.b=new O(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Ot(Sn,Mn);var xn=Sn;function En(t,e,r,n){Mn.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new O(e,16),this.y=new O(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function An(t,e,r,n){Mn.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new O(0)):(this.x=new O(e,16),this.y=new O(r,16),this.z=new O(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Sn.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r,n;if(t.beta)e=new O(t.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);e=i[0].cmp(i[1])<0?i[0]:i[1],e=e.toRed(this.red)}if(t.lambda)r=new O(t.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(e))?r=o[0]:(r=o[1],kn(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return n=t.basis?t.basis.map((function(t){return{a:new O(t.a,16),b:new O(t.b,16)}})):this._getEndoBasis(r),{beta:e,lambda:r,basis:n}}},Sn.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:O.mont(t),r=new O(2).toRed(e).redInvm(),n=r.redNeg(),i=new O(3).toRed(e).redNeg().redSqrt().redMul(r),o=n.redAdd(i).fromRed(),s=n.redSub(i).fromRed();return[o,s]},Sn.prototype._getEndoBasis=function(t){var e,r,n,i,o,s,a,u,h,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c=t,f=this.n.clone(),d=new O(1),p=new O(0),m=new O(0),v=new O(1),g=0;while(0!==c.cmpn(0)){var y=f.div(c);u=f.sub(y.mul(c)),h=m.sub(y.mul(d));var b=v.sub(y.mul(p));if(!n&&u.cmp(l)<0)e=a.neg(),r=d,n=u.neg(),i=h;else if(n&&2===++g)break;a=u,f=c,c=u,m=d,d=h,v=p,p=b}o=u.neg(),s=h;var w=n.sqr().add(i.sqr()),M=o.sqr().add(s.sqr());return M.cmp(w)>=0&&(o=e,s=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:i},{a:o,b:s}]},Sn.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),h=o.mul(n.b),l=t.sub(s).sub(a),c=u.add(h).neg();return{k1:l,k2:c}},Sn.prototype.pointFromX=function(t,e){t=new O(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},Sn.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},Sn.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var s=this._endoSplit(e[o]),a=t[o],u=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),u=u.neg(!0)),n[2*o]=a,n[2*o+1]=u,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var h=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return h},Ot(En,Mn.BasePoint),Sn.prototype.point=function(t,e,r){return new En(this,t,e,r)},Sn.prototype.pointFromJSON=function(t,e){return En.fromJSON(this,t,e)},En.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},En.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},En.fromJSON=function(t,e,r){"string"===typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},En.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},En.prototype.isInfinity=function(){return this.inf},En.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},En.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},En.prototype.getX=function(){return this.x.fromRed()},En.prototype.getY=function(){return this.y.fromRed()},En.prototype.mul=function(t){return t=new O(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},En.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},En.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},En.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},En.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},En.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t},Ot(An,Mn.BasePoint),Sn.prototype.jpoint=function(t,e,r){return new An(this,t,e,r)},An.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},An.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},An.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=a.redSqr(),l=h.redMul(a),c=n.redMul(h),f=u.redSqr().redIAdd(l).redISub(c).redISub(c),d=u.redMul(c.redISub(f)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(f,d,p)},An.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),h=u.redMul(s),l=r.redMul(u),c=a.redSqr().redIAdd(h).redISub(l).redISub(l),f=a.redMul(l.redISub(c)).redISub(i.redMul(h)),d=this.z.redMul(s);return this.curve.jpoint(c,f,d)},An.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}var n=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,u=a.redSqr().redSqr(),h=s.redAdd(s);for(r=0;r<t;r++){var l=o.redSqr(),c=h.redSqr(),f=c.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(c),m=d.redSqr().redISub(p.redAdd(p)),v=p.redISub(m),g=d.redMul(v);g=g.redIAdd(g).redISub(f);var y=h.redMul(a);r+1<t&&(u=u.redMul(f)),o=m,a=y,h=g}return this.curve.jpoint(o,h.redMul(i),a)},An.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},An.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),u=a.redSqr().redISub(s).redISub(s),h=o.redIAdd(o);h=h.redIAdd(h),h=h.redIAdd(h),t=u,e=a.redMul(s.redISub(u)).redISub(h),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),c=this.y.redSqr(),f=c.redSqr(),d=this.x.redAdd(c).redSqr().redISub(l).redISub(f);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),v=f.redIAdd(f);v=v.redIAdd(v),v=v.redIAdd(v),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(v),r=this.y.redMul(this.z),r=r.redIAdd(r)}return this.curve.jpoint(t,e,r)},An.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=a.redSqr().redISub(s).redISub(s);t=u;var h=o.redIAdd(o);h=h.redIAdd(h),h=h.redIAdd(h),e=a.redMul(s.redISub(u)).redISub(h),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),c=this.y.redSqr(),f=this.x.redMul(c),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=f.redIAdd(f);p=p.redIAdd(p);var m=p.redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(c).redISub(l);var v=c.redSqr();v=v.redIAdd(v),v=v.redIAdd(v),v=v.redIAdd(v),e=d.redMul(p.redISub(t)).redISub(v)}return this.curve.jpoint(t,e,r)},An.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e);u=u.redIAdd(u);var h=u.redMul(s),l=a.redSqr().redISub(h.redAdd(h)),c=h.redISub(l),f=s.redSqr();f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var d=a.redMul(c).redISub(f),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},An.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),s=this.x.redAdd(e).redSqr().redISub(t).redISub(n);s=s.redIAdd(s),s=s.redAdd(s).redIAdd(s),s=s.redISub(o);var a=s.redSqr(),u=n.redIAdd(n);u=u.redIAdd(u),u=u.redIAdd(u),u=u.redIAdd(u);var h=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(u),l=e.redMul(h);l=l.redIAdd(l),l=l.redIAdd(l);var c=this.x.redMul(a).redISub(l);c=c.redIAdd(c),c=c.redIAdd(c);var f=this.y.redMul(h.redMul(u.redISub(h)).redISub(s.redMul(a)));f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var d=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(c,f,d)},An.prototype.mul=function(t,e){return t=new O(t,e),this.curve._wnafMul(this,t)},An.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},An.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},An.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},An.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var On={},Tn={},Cn=o((function(t,e){var r=e;r.base=Mn,r.short=xn,r.mont=On,r.edwards=Tn})),Pn=void 0,Bn=o((function(t,e){var r,n=e,i=mn.assert;function o(t){"short"===t.type?this.curve=new Cn.short(t):"edwards"===t.type?this.curve=new Cn.edwards(t):this.curve=new Cn.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new o(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:an.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:an.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:an.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:an.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:an.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:an.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:an.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=Pn}catch(a){r=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:an.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function In(t){if(!(this instanceof In))return new In(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=pn.toArray(t.entropy,t.entropyEnc||"hex"),r=pn.toArray(t.nonce,t.nonceEnc||"hex"),n=pn.toArray(t.pers,t.persEnc||"hex");Et(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var Rn=In;In.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},In.prototype._hmac=function(){return new an.hmac(this.hash,this.K)},In.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},In.prototype.reseed=function(t,e,r,n){"string"!==typeof e&&(n=r,r=e,e=null),t=pn.toArray(t,e),r=pn.toArray(r,n),Et(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},In.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(n=r,r=e,e=null),r&&(r=pn.toArray(r,n||"hex"),this._update(r));var i=[];while(i.length<t)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,t);return this._update(r),this._reseed++,pn.encode(o,e)};var Nn=mn.assert;function jn(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var Ln=jn;jn.fromPublic=function(t,e,r){return e instanceof jn?e:new jn(t,{pub:e,pubEnc:r})},jn.fromPrivate=function(t,e,r){return e instanceof jn?e:new jn(t,{priv:e,privEnc:r})},jn.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},jn.prototype.getPublic=function(t,e){return"string"===typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},jn.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},jn.prototype._importPrivate=function(t,e){this.priv=new O(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},jn.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?Nn(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||Nn(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},jn.prototype.derive=function(t){return t.mul(this.priv).getX()},jn.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},jn.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},jn.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var Un=mn.assert;function Dn(t,e){if(t instanceof Dn)return t;this._importDER(t,e)||(Un(t.r&&t.s,"Signature without r or s"),this.r=new O(t.r,16),this.s=new O(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var Fn=Dn;function zn(){this.place=0}function qn(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,s=e.place;o<n;o++,s++)i<<=8,i|=t[s],i>>>=0;return!(i<=127)&&(e.place=s,i)}function Hn(t){var e=0,r=t.length-1;while(!t[e]&&!(128&t[e+1])&&e<r)e++;return 0===e?t:t.slice(e)}function $n(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);t.push(128|r);while(--r)t.push(e>>>(r<<3)&255);t.push(e)}}Dn.prototype._importDER=function(t,e){t=mn.toArray(t,e);var r=new zn;if(48!==t[r.place++])return!1;var n=qn(t,r);if(!1===n)return!1;if(n+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var i=qn(t,r);if(!1===i)return!1;var o=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var s=qn(t,r);if(!1===s)return!1;if(t.length!==s+r.place)return!1;var a=t.slice(r.place,s+r.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new O(o),this.s=new O(a),this.recoveryParam=null,!0},Dn.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=Hn(e),r=Hn(r);while(!r[0]&&!(128&r[1]))r=r.slice(1);var n=[2];$n(n,e.length),n=n.concat(e),n.push(2),$n(n,r.length);var i=n.concat(r),o=[48];return $n(o,i.length),o=o.concat(i),mn.encode(o,t)};var Vn=mn.assert;function Kn(t){if(!(this instanceof Kn))return new Kn(t);"string"===typeof t&&(Vn(Bn.hasOwnProperty(t),"Unknown curve "+t),t=Bn[t]),t instanceof Bn.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var Wn=Kn;Kn.prototype.keyPair=function(t){return new Ln(this,t)},Kn.prototype.keyFromPrivate=function(t,e){return Ln.fromPrivate(this,t,e)},Kn.prototype.keyFromPublic=function(t,e){return Ln.fromPublic(this,t,e)},Kn.prototype.genKeyPair=function(t){t||(t={});var e=new Rn({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||vn(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new O(2));do{var i=new O(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}while(1)},Kn.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},Kn.prototype.sign=function(t,e,r,n){"object"===typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new O(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),s=t.toArray("be",i),a=new Rn({hash:this.hash,entropy:o,nonce:s,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new O(1)),h=0;1;h++){var l=n.k?n.k(h):new O(a.generate(this.n.byteLength()));if(l=this._truncateToN(l,!0),!(l.cmpn(1)<=0||l.cmp(u)>=0)){var c=this.g.mul(l);if(!c.isInfinity()){var f=c.getX(),d=f.umod(this.n);if(0!==d.cmpn(0)){var p=l.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(p=p.umod(this.n),0!==p.cmpn(0)){var m=(c.getY().isOdd()?1:0)|(0!==f.cmp(d)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new Fn({r:d,s:p,recoveryParam:m})}}}}}},Kn.prototype.verify=function(t,e,r,n){t=this._truncateToN(new O(t,16)),r=this.keyFromPublic(r,n),e=new Fn(e,"hex");var i=e.r,o=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s=o.invm(this.n),a=s.mul(t).umod(this.n),u=s.mul(i).umod(this.n);if(!this.curve._maxwellTrick){var h=this.g.mulAdd(a,r.getPublic(),u);return!h.isInfinity()&&0===h.getX().umod(this.n).cmp(i)}h=this.g.jmulAdd(a,r.getPublic(),u);return!h.isInfinity()&&h.eqXToP(i)},Kn.prototype.recoverPubKey=function(t,e,r,n){Vn((3&r)===r,"The recovery param is more than two bits"),e=new Fn(e,n);var i=this.n,o=new O(t),s=e.r,a=e.s,u=1&r,h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var l=e.r.invm(i),c=i.sub(o).mul(l).umod(i),f=a.mul(l).umod(i);return this.g.mulAdd(c,s,f)},Kn.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new Fn(e,n),null!==e.recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};for(var Gn={},Zn=s(dn),Jn=o((function(t,e){var r=e;r.version=Zn.version,r.utils=mn,r.rand=vn,r.curve=Cn,r.curves=Bn,r.ec=Wn,r.eddsa=Gn})),Xn=(Jn.ec,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="signing-key/5.0.5"}))),Yn=(i(Xn),Xn.version,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger(Xn.version),n=null;function i(){return n||(n=new Jn.ec("secp256k1")),n}var o=function(){function t(t){U.defineReadOnly(this,"curve","secp256k1"),U.defineReadOnly(this,"privateKey",B.hexlify(t));var e=i().keyFromPrivate(B.arrayify(this.privateKey));U.defineReadOnly(this,"publicKey","0x"+e.getPublic(!1,"hex")),U.defineReadOnly(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),U.defineReadOnly(this,"_isSigningKey",!0)}return t.prototype._addPoint=function(t){var e=i().keyFromPublic(B.arrayify(this.publicKey)),r=i().keyFromPublic(B.arrayify(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")},t.prototype.signDigest=function(t){var e=i().keyFromPrivate(B.arrayify(this.privateKey)),r=e.sign(B.arrayify(t),{canonical:!0});return B.splitSignature({recoveryParam:r.recoveryParam,r:B.hexZeroPad("0x"+r.r.toString(16),32),s:B.hexZeroPad("0x"+r.s.toString(16),32)})},t.prototype.computeSharedSecret=function(t){var e=i().keyFromPrivate(B.arrayify(this.privateKey)),r=i().keyFromPublic(B.arrayify(a(t)));return B.hexZeroPad("0x"+e.derive(r.getPublic()).toString(16),32)},t.isSigningKey=function(t){return!(!t||!t._isSigningKey)},t}();function s(t,e){var r=B.splitSignature(e),n={r:B.arrayify(r.r),s:B.arrayify(r.s)};return"0x"+i().recoverPubKey(B.arrayify(t),n,r.recoveryParam).encode("hex",!1)}function a(t,e){var n=B.arrayify(t);if(32===n.length){var s=new o(n);return e?"0x"+i().keyFromPrivate(n).getPublic(!0,"hex"):s.publicKey}return 33===n.length?e?B.hexlify(n):"0x"+i().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?e?"0x"+i().keyFromPublic(n).getPublic(!0,"hex"):B.hexlify(n):r.throwArgumentError("invalid public or private key","key","[REDACTED]")}e.SigningKey=o,e.recoverPublicKey=s,e.computePublicKey=a}))),Qn=(i(Yn),Yn.SigningKey,Yn.recoverPublicKey,Yn.computePublicKey,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="transactions/5.0.6"}))),ti=(i(Qn),Qn.version,o((function(t,e){var r=n&&n.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=r(V),o=new C.Logger(Qn.version);function s(t){return"0x"===t?null:W.getAddress(t)}function a(t){return"0x"===t?et.Zero:j.BigNumber.from(t)}var u=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],h={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0};function l(t){var e=Yn.computePublicKey(t);return W.getAddress(B.hexDataSlice(H.keccak256(B.hexDataSlice(e,1)),12))}function c(t,e){return l(Yn.recoverPublicKey(B.arrayify(t),e))}function f(t,e){U.checkProperties(t,h);var r=[];u.forEach((function(e){var n=t[e.name]||[],i={};e.numeric&&(i.hexPad="left"),n=B.arrayify(B.hexlify(n,i)),e.length&&n.length!==e.length&&n.length>0&&o.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,n),e.maxLength&&(n=B.stripZeros(n),n.length>e.maxLength&&o.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,n)),r.push(B.hexlify(n))}));var n=0;if(null!=t.chainId?(n=t.chainId,"number"!==typeof n&&o.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!B.isBytesLike(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),0!==n&&(r.push(B.hexlify(n)),r.push("0x"),r.push("0x")),!e)return i.encode(r);var s=B.splitSignature(e),a=27+s.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),a+=2*n+8,s.v>28&&s.v!==a&&o.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):s.v!==a&&o.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(B.hexlify(a)),r.push(B.stripZeros(B.arrayify(s.r))),r.push(B.stripZeros(B.arrayify(s.s))),i.encode(r)}function d(t){var e=i.decode(t);9!==e.length&&6!==e.length&&o.throwArgumentError("invalid raw transaction","rawTransaction",t);var r={nonce:a(e[0]).toNumber(),gasPrice:a(e[1]),gasLimit:a(e[2]),to:s(e[3]),value:a(e[4]),data:e[5],chainId:0};if(6===e.length)return r;try{r.v=j.BigNumber.from(e[6]).toNumber()}catch(l){return console.log(l),r}if(r.r=B.hexZeroPad(e[7],32),r.s=B.hexZeroPad(e[8],32),j.BigNumber.from(r.r).isZero()&&j.BigNumber.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);var n=r.v-27,u=e.slice(0,6);0!==r.chainId&&(u.push(B.hexlify(r.chainId)),u.push("0x"),u.push("0x"),n-=2*r.chainId+8);var h=H.keccak256(i.encode(u));try{r.from=c(h,{r:B.hexlify(r.r),s:B.hexlify(r.s),recoveryParam:n})}catch(l){console.log(l)}r.hash=H.keccak256(t)}return r}e.computeAddress=l,e.recoverAddress=c,e.serialize=f,e.parse=d}))),ei=(i(ti),ti.computeAddress,ti.recoverAddress,ti.serialize,ti.parse,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="wordlists/5.0.5"}))),ri=(i(ei),ei.version,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=!1;e.logger=new C.Logger(ei.version);var n=function(){function t(r){var n=this.constructor;e.logger.checkAbstract(n,t),U.defineReadOnly(this,"locale",r)}return t.prototype.split=function(t){return t.toLowerCase().split(/ +/g)},t.prototype.join=function(t){return t.join(" ")},t.check=function(t){for(var e=[],r=0;r<2048;r++){var n=t.getWord(r);if(r!==t.getWordIndex(n))return"0x";e.push(n)}return vt.id(e.join("\n")+"\n")},t.register=function(t,e){if(e||(e=t.locale),r)try{var n=window;n._ethers&&n._ethers.wordlists&&(n._ethers.wordlists[e]||U.defineReadOnly(n._ethers.wordlists,e,t))}catch(i){}},t}();e.Wordlist=n}))),ni=(i(ri),ri.logger,ri.Wordlist,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",o=null;function s(t){if(null==o&&(o=i.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==ri.Wordlist.check(t)))throw o=null,new Error("BIP39 Wordlist for en (English) FAILED")}var a=function(t){function e(){return t.call(this,"en")||this}return r(e,t),e.prototype.getWord=function(t){return s(this),o[t]},e.prototype.getWordIndex=function(t){return s(this),o.indexOf(t)},e}(ri.Wordlist),u=new a;e.langEn=u,ri.Wordlist.register(u)}))),ii=(i(ni),ni.langEn,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wordlist=ri.Wordlist;var r={en:ni.langEn};e.wordlists=r}))),oi=(i(ii),ii.Wordlist,ii.wordlists,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="hdnode/5.0.5"}))),si=(i(oi),oi.version,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger(oi.version),n=j.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),i=at.toUtf8Bytes("Bitcoin seed"),o=2147483648;function s(t){return(1<<t)-1<<8-t}function a(t){return(1<<t)-1}function u(t){return B.hexZeroPad(B.hexlify(t),32)}function h(t){return xt.Base58.encode(B.concat([t,B.hexDataSlice(hn.sha256(hn.sha256(t)),0,4)]))}function l(t){if(null==t)return ii.wordlists["en"];if("string"===typeof t){var e=ii.wordlists[t];return null==e&&r.throwArgumentError("unknown locale","wordlist",t),e}return t}var c={};e.defaultPath="m/44'/60'/0'/0/0";var f=function(){function t(e,n,i,o,s,a,u,h){var l=this.constructor;if(r.checkNew(l,t),e!==c)throw new Error("HDNode constructor cannot be called directly");if(n){var f=new Yn.SigningKey(n);U.defineReadOnly(this,"privateKey",f.privateKey),U.defineReadOnly(this,"publicKey",f.compressedPublicKey)}else U.defineReadOnly(this,"privateKey",null),U.defineReadOnly(this,"publicKey",B.hexlify(i));U.defineReadOnly(this,"parentFingerprint",o),U.defineReadOnly(this,"fingerprint",B.hexDataSlice(hn.ripemd160(hn.sha256(this.publicKey)),0,4)),U.defineReadOnly(this,"address",ti.computeAddress(this.publicKey)),U.defineReadOnly(this,"chainCode",s),U.defineReadOnly(this,"index",a),U.defineReadOnly(this,"depth",u),null==h?(U.defineReadOnly(this,"mnemonic",null),U.defineReadOnly(this,"path",null)):"string"===typeof h?(U.defineReadOnly(this,"mnemonic",null),U.defineReadOnly(this,"path",h)):(U.defineReadOnly(this,"mnemonic",h),U.defineReadOnly(this,"path",h.path))}return Object.defineProperty(t.prototype,"extendedKey",{get:function(){if(this.depth>=256)throw new Error("Depth too large!");return h(B.concat([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",B.hexlify(this.depth),this.parentFingerprint,B.hexZeroPad(B.hexlify(this.index),4),this.chainCode,null!=this.privateKey?B.concat(["0x00",this.privateKey]):this.publicKey]))},enumerable:!0,configurable:!0}),t.prototype.neuter=function(){return new t(c,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)},t.prototype._derive=function(e){if(e>4294967295)throw new Error("invalid index - "+String(e));var r=this.path;r&&(r+="/"+(e&~o));var i=new Uint8Array(37);if(e&o){if(!this.privateKey)throw new Error("cannot derive child of neutered node");i.set(B.arrayify(this.privateKey),1),r&&(r+="'")}else i.set(B.arrayify(this.publicKey));for(var s=24;s>=0;s-=8)i[33+(s>>3)]=e>>24-s&255;var a=B.arrayify(hn.computeHmac(hn.SupportedAlgorithm.sha512,this.chainCode,i)),h=a.slice(0,32),l=a.slice(32),f=null,d=null;if(this.privateKey)f=u(j.BigNumber.from(h).add(this.privateKey).mod(n));else{var p=new Yn.SigningKey(B.hexlify(h));d=p._addPoint(this.publicKey)}var m=r,v=this.mnemonic;return v&&(m=Object.freeze({phrase:v.phrase,path:r,locale:v.locale||"en"})),new t(c,f,d,this.fingerprint,u(l),e,this.depth+1,m)},t.prototype.derivePath=function(t){var e=t.split("/");if(0===e.length||"m"===e[0]&&0!==this.depth)throw new Error("invalid path - "+t);"m"===e[0]&&e.shift();for(var r=this,n=0;n<e.length;n++){var i=e[n];if(i.match(/^[0-9]+'$/)){var s=parseInt(i.substring(0,i.length-1));if(s>=o)throw new Error("invalid path index - "+i);r=r._derive(o+s)}else{if(!i.match(/^[0-9]+$/))throw new Error("invalid path component - "+i);s=parseInt(i);if(s>=o)throw new Error("invalid path index - "+i);r=r._derive(s)}}return r},t._fromSeed=function(e,r){var n=B.arrayify(e);if(n.length<16||n.length>64)throw new Error("invalid seed");var o=B.arrayify(hn.computeHmac(hn.SupportedAlgorithm.sha512,i,n));return new t(c,u(o.slice(0,32)),null,"0x00000000",u(o.slice(32)),0,0,r)},t.fromMnemonic=function(e,r,n){return n=l(n),e=m(p(e,n),n),t._fromSeed(d(e,r),{phrase:e,path:"m",locale:n.locale})},t.fromSeed=function(e){return t._fromSeed(e,null)},t.fromExtendedKey=function(e){var n=xt.Base58.decode(e);82===n.length&&h(n.slice(0,78))===e||r.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var i=n[4],o=B.hexlify(n.slice(5,9)),s=parseInt(B.hexlify(n.slice(9,13)).substring(2),16),a=B.hexlify(n.slice(13,45)),u=n.slice(45,78);switch(B.hexlify(n.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new t(c,null,B.hexlify(u),o,a,s,i,null);case"0x0488ade4":case"0x04358394 ":if(0!==u[0])break;return new t(c,B.hexlify(u.slice(1)),null,o,a,s,i,null)}return r.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")},t}();function d(t,e){e||(e="");var r=at.toUtf8Bytes("mnemonic"+e,at.UnicodeNormalizationForm.NFKD);return ln.pbkdf2(at.toUtf8Bytes(t,at.UnicodeNormalizationForm.NFKD),r,2048,64,"sha512")}function p(t,e){e=l(e),r.checkNormalize();var n=e.split(t);if(n.length%3!==0)throw new Error("invalid mnemonic");for(var i=B.arrayify(new Uint8Array(Math.ceil(11*n.length/8))),o=0,a=0;a<n.length;a++){var u=e.getWordIndex(n[a].normalize("NFKD"));if(-1===u)throw new Error("invalid mnemonic");for(var h=0;h<11;h++)u&1<<10-h&&(i[o>>3]|=1<<7-o%8),o++}var c=32*n.length/3,f=n.length/3,d=s(f),p=B.arrayify(hn.sha256(i.slice(0,c/8)))[0]&d;if(p!==(i[i.length-1]&d))throw new Error("invalid checksum");return B.hexlify(i.slice(0,c/8))}function m(t,e){if(e=l(e),t=B.arrayify(t),t.length%4!==0||t.length<16||t.length>32)throw new Error("invalid entropy");for(var r=[0],n=11,i=0;i<t.length;i++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=t[i],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[i]>>8-n,r.push(t[i]&a(8-n)),n+=3);var o=t.length/4,u=B.arrayify(hn.sha256(t))[0]&s(o);return r[r.length-1]<<=o,r[r.length-1]|=u>>8-o,e.join(r.map((function(t){return e.getWord(t)})))}function v(t,e){try{return p(t,e),!0}catch(r){}return!1}e.HDNode=f,e.mnemonicToSeed=d,e.mnemonicToEntropy=p,e.entropyToMnemonic=m,e.isValidMnemonic=v}))),ai=(i(si),si.defaultPath,si.HDNode,si.mnemonicToSeed,si.mnemonicToEntropy,si.entropyToMnemonic,si.isValidMnemonic,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="random/5.0.4"}))),ui=(i(ai),ai.version,o((function(t,e){function r(t){t=t.slice();for(var e=t.length-1;e>0;e--){var r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}return t}Object.defineProperty(e,"__esModule",{value:!0}),e.shuffled=r}))),hi=(i(ui),ui.shuffled,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger(ai.version);e.shuffled=ui.shuffled;var i=null;try{if(i=window,null==i)throw new Error("try next")}catch(a){try{if(i=n,null==i)throw new Error("try next")}catch(a){i={}}}var o=i.crypto||i.msCrypto;function s(t){(t<=0||t>1024||t%1)&&r.throwArgumentError("invalid length","length",t);var e=new Uint8Array(t);return o.getRandomValues(e),B.arrayify(e)}o&&o.getRandomValues||(r.warn("WARNING: Missing strong random number source"),o={getRandomValues:function(t){return r.throwError("no secure random source avaialble",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}}),e.randomBytes=s}))),li=(i(hi),hi.shuffled,hi.randomBytes,o((function(t,e){(function(e){function r(t){return parseInt(t)===t}function n(t){if(!r(t.length))return!1;for(var e=0;e<t.length;e++)if(!r(t[e])||t[e]<0||t[e]>255)return!1;return!0}function i(t,e){if(t.buffer&&ArrayBuffer.isView(t)&&"Uint8Array"===t.name)return e&&(t=t.slice?t.slice():Array.prototype.slice.call(t)),t;if(Array.isArray(t)){if(!n(t))throw new Error("Array contains invalid value: "+t);return new Uint8Array(t)}if(r(t.length)&&n(t))return new Uint8Array(t);throw new Error("unsupported array-like object")}function o(t){return new Uint8Array(t)}function s(t,e,r,n,i){null==n&&null==i||(t=t.slice?t.slice(n,i):Array.prototype.slice.call(t,n,i)),e.set(t,r)}var a=function(){function t(t){var e=[],r=0;t=encodeURI(t);while(r<t.length){var n=t.charCodeAt(r++);37===n?(e.push(parseInt(t.substr(r,2),16)),r+=2):e.push(n)}return i(e)}function e(t){var e=[],r=0;while(r<t.length){var n=t[r];n<128?(e.push(String.fromCharCode(n)),r++):n>191&&n<224?(e.push(String.fromCharCode((31&n)<<6|63&t[r+1])),r+=2):(e.push(String.fromCharCode((15&n)<<12|(63&t[r+1])<<6|63&t[r+2])),r+=3)}return e.join("")}return{toBytes:t,fromBytes:e}}(),u=function(){function t(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e}var e="0123456789abcdef";function r(t){for(var r=[],n=0;n<t.length;n++){var i=t[n];r.push(e[(240&i)>>4]+e[15&i])}return r.join("")}return{toBytes:t,fromBytes:r}}(),h={16:10,24:12,32:14},l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],c=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],f=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],d=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],m=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],v=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],y=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],b=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],M=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],_=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],k=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],S=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function x(t){for(var e=[],r=0;r<t.length;r+=4)e.push(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]);return e}var E=function(t){if(!(this instanceof E))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:i(t,!0)}),this._prepare()};E.prototype._prepare=function(){var t=h[this.key.length];if(null==t)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var e=0;e<=t;e++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var r,n=4*(t+1),i=this.key.length/4,o=x(this.key);for(e=0;e<i;e++)r=e>>2,this._Ke[r][e%4]=o[e],this._Kd[t-r][e%4]=o[e];var s,a=0,u=i;while(u<n){if(s=o[i-1],o[0]^=c[s>>16&255]<<24^c[s>>8&255]<<16^c[255&s]<<8^c[s>>24&255]^l[a]<<24,a+=1,8!=i)for(e=1;e<i;e++)o[e]^=o[e-1];else{for(e=1;e<i/2;e++)o[e]^=o[e-1];s=o[i/2-1],o[i/2]^=c[255&s]^c[s>>8&255]<<8^c[s>>16&255]<<16^c[s>>24&255]<<24;for(e=i/2+1;e<i;e++)o[e]^=o[e-1]}e=0;while(e<i&&u<n)f=u>>2,d=u%4,this._Ke[f][d]=o[e],this._Kd[t-f][d]=o[e++],u++}for(var f=1;f<t;f++)for(var d=0;d<4;d++)s=this._Kd[f][d],this._Kd[f][d]=M[s>>24&255]^_[s>>16&255]^k[s>>8&255]^S[255&s]},E.prototype.encrypt=function(t){if(16!=t.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var e=this._Ke.length-1,r=[0,0,0,0],n=x(t),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var s=1;s<e;s++){for(i=0;i<4;i++)r[i]=d[n[i]>>24&255]^p[n[(i+1)%4]>>16&255]^m[n[(i+2)%4]>>8&255]^v[255&n[(i+3)%4]]^this._Ke[s][i];n=r.slice()}var a,u=o(16);for(i=0;i<4;i++)a=this._Ke[e][i],u[4*i]=255&(c[n[i]>>24&255]^a>>24),u[4*i+1]=255&(c[n[(i+1)%4]>>16&255]^a>>16),u[4*i+2]=255&(c[n[(i+2)%4]>>8&255]^a>>8),u[4*i+3]=255&(c[255&n[(i+3)%4]]^a);return u},E.prototype.decrypt=function(t){if(16!=t.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var e=this._Kd.length-1,r=[0,0,0,0],n=x(t),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var s=1;s<e;s++){for(i=0;i<4;i++)r[i]=g[n[i]>>24&255]^y[n[(i+3)%4]>>16&255]^b[n[(i+2)%4]>>8&255]^w[255&n[(i+1)%4]]^this._Kd[s][i];n=r.slice()}var a,u=o(16);for(i=0;i<4;i++)a=this._Kd[e][i],u[4*i]=255&(f[n[i]>>24&255]^a>>24),u[4*i+1]=255&(f[n[(i+3)%4]>>16&255]^a>>16),u[4*i+2]=255&(f[n[(i+2)%4]>>8&255]^a>>8),u[4*i+3]=255&(f[255&n[(i+1)%4]]^a);return u};var A=function(t){if(!(this instanceof A))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new E(t)};A.prototype.encrypt=function(t){if(t=i(t),t.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var e=o(t.length),r=o(16),n=0;n<t.length;n+=16)s(t,r,0,n,n+16),r=this._aes.encrypt(r),s(r,e,n);return e},A.prototype.decrypt=function(t){if(t=i(t),t.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var e=o(t.length),r=o(16),n=0;n<t.length;n+=16)s(t,r,0,n,n+16),r=this._aes.decrypt(r),s(r,e,n);return e};var O=function(t,e){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",e){if(16!=e.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else e=o(16);this._lastCipherblock=i(e,!0),this._aes=new E(t)};O.prototype.encrypt=function(t){if(t=i(t),t.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var e=o(t.length),r=o(16),n=0;n<t.length;n+=16){s(t,r,0,n,n+16);for(var a=0;a<16;a++)r[a]^=this._lastCipherblock[a];this._lastCipherblock=this._aes.encrypt(r),s(this._lastCipherblock,e,n)}return e},O.prototype.decrypt=function(t){if(t=i(t),t.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var e=o(t.length),r=o(16),n=0;n<t.length;n+=16){s(t,r,0,n,n+16),r=this._aes.decrypt(r);for(var a=0;a<16;a++)e[n+a]=r[a]^this._lastCipherblock[a];s(t,this._lastCipherblock,0,n,n+16)}return e};var T=function(t,e,r){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",e){if(16!=e.length)throw new Error("invalid initialation vector size (must be 16 size)")}else e=o(16);r||(r=1),this.segmentSize=r,this._shiftRegister=i(e,!0),this._aes=new E(t)};T.prototype.encrypt=function(t){if(t.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var e,r=i(t,!0),n=0;n<r.length;n+=this.segmentSize){e=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)r[n+o]^=e[o];s(this._shiftRegister,this._shiftRegister,0,this.segmentSize),s(r,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r},T.prototype.decrypt=function(t){if(t.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var e,r=i(t,!0),n=0;n<r.length;n+=this.segmentSize){e=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)r[n+o]^=e[o];s(this._shiftRegister,this._shiftRegister,0,this.segmentSize),s(t,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r};var C=function(t,e){if(!(this instanceof C))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",e){if(16!=e.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else e=o(16);this._lastPrecipher=i(e,!0),this._lastPrecipherIndex=16,this._aes=new E(t)};C.prototype.encrypt=function(t){for(var e=i(t,!0),r=0;r<e.length;r++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),e[r]^=this._lastPrecipher[this._lastPrecipherIndex++];return e},C.prototype.decrypt=C.prototype.encrypt;var P=function(t){if(!(this instanceof P))throw Error("Counter must be instanitated with `new`");0===t||t||(t=1),"number"===typeof t?(this._counter=o(16),this.setValue(t)):this.setBytes(t)};P.prototype.setValue=function(t){if("number"!==typeof t||parseInt(t)!=t)throw new Error("invalid counter value (must be an integer)");for(var e=15;e>=0;--e)this._counter[e]=t%256,t>>=8},P.prototype.setBytes=function(t){if(t=i(t,!0),16!=t.length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=t},P.prototype.increment=function(){for(var t=15;t>=0;t--){if(255!==this._counter[t]){this._counter[t]++;break}this._counter[t]=0}};var B=function(t,e){if(!(this instanceof B))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",e instanceof P||(e=new P(e)),this._counter=e,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new E(t)};function I(t){t=i(t,!0);var e=16-t.length%16,r=o(t.length+e);s(t,r);for(var n=t.length;n<r.length;n++)r[n]=e;return r}function R(t){if(t=i(t,!0),t.length<16)throw new Error("PKCS#7 invalid length");var e=t[t.length-1];if(e>16)throw new Error("PKCS#7 padding byte out of range");for(var r=t.length-e,n=0;n<e;n++)if(t[r+n]!==e)throw new Error("PKCS#7 invalid padding byte");var a=o(r);return s(t,a,0,0,r),a}B.prototype.encrypt=function(t){for(var e=i(t,!0),r=0;r<e.length;r++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),e[r]^=this._remainingCounter[this._remainingCounterIndex++];return e},B.prototype.decrypt=B.prototype.encrypt;var N={AES:E,Counter:P,ModeOfOperation:{ecb:A,cbc:O,cfb:T,ofb:C,ctr:B},utils:{hex:u,utf8:a},padding:{pkcs7:{pad:I,strip:R}},_arrayTest:{coerceArray:i,createArray:o,copyArray:s}};t.exports=N})()}))),ci=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="json-wallets/5.0.7"})),fi=(i(ci),ci.version,o((function(t,e){function r(t){return"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),B.arrayify(t)}function n(t,e){t=String(t);while(t.length<e)t="0"+t;return t}function i(t){return"string"===typeof t?at.toUtf8Bytes(t,at.UnicodeNormalizationForm.NFKC):B.arrayify(t)}function o(t,e){for(var r=t,n=e.toLowerCase().split("/"),i=0;i<n.length;i++){var o=null;for(var s in r)if(s.toLowerCase()===n[i]){o=r[s];break}if(null===o)return null;r=o}return r}function s(t){var e=B.arrayify(t);e[6]=15&e[6]|64,e[8]=63&e[8]|128;var r=B.hexlify(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}Object.defineProperty(e,"__esModule",{value:!0}),e.looseArrayify=r,e.zpad=n,e.getPassword=i,e.searchPath=o,e.uuidV4=s}))),di=(i(fi),fi.looseArrayify,fi.zpad,fi.getPassword,fi.searchPath,fi.uuidV4,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(li),s=new C.Logger(ci.version),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.isCrowdsaleAccount=function(t){return!(!t||!t._isCrowdsaleAccount)},e}(U.Description);function u(t,e){var r=JSON.parse(t);e=fi.getPassword(e);var n=W.getAddress(fi.searchPath(r,"ethaddr")),i=fi.looseArrayify(fi.searchPath(r,"encseed"));i&&i.length%16===0||s.throwArgumentError("invalid encseed","json",t);for(var u=B.arrayify(ln.pbkdf2(e,e,2e3,32,"sha256")).slice(0,16),h=i.slice(0,16),l=i.slice(16),c=new o.default.ModeOfOperation.cbc(u,h),f=o.default.padding.pkcs7.strip(B.arrayify(c.decrypt(l))),d="",p=0;p<f.length;p++)d+=String.fromCharCode(f[p]);var m=at.toUtf8Bytes(d),v=H.keccak256(m);return new a({_isCrowdsaleAccount:!0,address:n,privateKey:v})}e.CrowdsaleAccount=a,e.decrypt=u}))),pi=(i(di),di.CrowdsaleAccount,di.decrypt,o((function(t,e){function r(t){var e=null;try{e=JSON.parse(t)}catch(r){return!1}return e.encseed&&e.ethaddr}function n(t){var e=null;try{e=JSON.parse(t)}catch(r){return!1}return!(!e.version||parseInt(e.version)!==e.version||3!==parseInt(e.version))}function i(t){if(r(t))try{return W.getAddress(JSON.parse(t).ethaddr)}catch(e){return null}if(n(t))try{return W.getAddress(JSON.parse(t).address)}catch(e){return null}return null}Object.defineProperty(e,"__esModule",{value:!0}),e.isCrowdsaleWallet=r,e.isKeystoreWallet=n,e.getJsonWalletAddress=i}))),mi=(i(pi),pi.isCrowdsaleWallet,pi.isKeystoreWallet,pi.getJsonWalletAddress,o((function(t,e){(function(e){const r=2147483647;function n(t){const e=new Uint32Array([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]);let r=1779033703,n=3144134277,i=1013904242,o=2773480762,s=1359893119,a=2600822924,u=528734635,h=1541459225;const l=new Uint32Array(64);function c(t){let c=0,f=t.length;while(f>=64){let d,p,m,v,g,y=r,b=n,w=i,M=o,_=s,k=a,S=u,x=h;for(p=0;p<16;p++)m=c+4*p,l[p]=(255&t[m])<<24|(255&t[m+1])<<16|(255&t[m+2])<<8|255&t[m+3];for(p=16;p<64;p++)d=l[p-2],v=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,d=l[p-15],g=(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3,l[p]=(v+l[p-7]|0)+(g+l[p-16]|0)|0;for(p=0;p<64;p++)v=(((_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&k^~_&S)|0)+(x+(e[p]+l[p]|0)|0)|0,g=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&b^y&w^b&w)|0,x=S,S=k,k=_,_=M+v|0,M=w,w=b,b=y,y=v+g|0;r=r+y|0,n=n+b|0,i=i+w|0,o=o+M|0,s=s+_|0,a=a+k|0,u=u+S|0,h=h+x|0,c+=64,f-=64}}c(t);let f,d=t.length%64,p=t.length/536870912|0,m=t.length<<3,v=d<56?56:120,g=t.slice(t.length-d,t.length);for(g.push(128),f=d+1;f<v;f++)g.push(0);return g.push(p>>>24&255),g.push(p>>>16&255),g.push(p>>>8&255),g.push(p>>>0&255),g.push(m>>>24&255),g.push(m>>>16&255),g.push(m>>>8&255),g.push(m>>>0&255),c(g),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,h>>>24&255,h>>>16&255,h>>>8&255,h>>>0&255]}function i(t,e,r){t=t.length<=64?t:n(t);const i=64+e.length+4,o=new Array(i),s=new Array(64);let a,u=[];for(a=0;a<64;a++)o[a]=54;for(a=0;a<t.length;a++)o[a]^=t[a];for(a=0;a<e.length;a++)o[64+a]=e[a];for(a=i-4;a<i;a++)o[a]=0;for(a=0;a<64;a++)s[a]=92;for(a=0;a<t.length;a++)s[a]^=t[a];function h(){for(let t=i-1;t>=i-4;t--){if(o[t]++,o[t]<=255)return;o[t]=0}}while(r>=32)h(),u=u.concat(n(s.concat(n(o)))),r-=32;return r>0&&(h(),u=u.concat(n(s.concat(n(o))).slice(0,r))),u}function o(t,e,r,n,i){let o;for(h(t,16*(2*r-1),i,0,16),o=0;o<2*r;o++)u(t,16*o,i,16),a(i,n),h(i,0,t,e+16*o,16);for(o=0;o<r;o++)h(t,e+2*o*16,t,16*o,16);for(o=0;o<r;o++)h(t,e+16*(2*o+1),t,16*(o+r),16)}function s(t,e){return t<<e|t>>>32-e}function a(t,e){h(t,0,e,0,16);for(let r=8;r>0;r-=2)e[4]^=s(e[0]+e[12],7),e[8]^=s(e[4]+e[0],9),e[12]^=s(e[8]+e[4],13),e[0]^=s(e[12]+e[8],18),e[9]^=s(e[5]+e[1],7),e[13]^=s(e[9]+e[5],9),e[1]^=s(e[13]+e[9],13),e[5]^=s(e[1]+e[13],18),e[14]^=s(e[10]+e[6],7),e[2]^=s(e[14]+e[10],9),e[6]^=s(e[2]+e[14],13),e[10]^=s(e[6]+e[2],18),e[3]^=s(e[15]+e[11],7),e[7]^=s(e[3]+e[15],9),e[11]^=s(e[7]+e[3],13),e[15]^=s(e[11]+e[7],18),e[1]^=s(e[0]+e[3],7),e[2]^=s(e[1]+e[0],9),e[3]^=s(e[2]+e[1],13),e[0]^=s(e[3]+e[2],18),e[6]^=s(e[5]+e[4],7),e[7]^=s(e[6]+e[5],9),e[4]^=s(e[7]+e[6],13),e[5]^=s(e[4]+e[7],18),e[11]^=s(e[10]+e[9],7),e[8]^=s(e[11]+e[10],9),e[9]^=s(e[8]+e[11],13),e[10]^=s(e[9]+e[8],18),e[12]^=s(e[15]+e[14],7),e[13]^=s(e[12]+e[15],9),e[14]^=s(e[13]+e[12],13),e[15]^=s(e[14]+e[13],18);for(let r=0;r<16;++r)t[r]+=e[r]}function u(t,e,r,n){for(let i=0;i<n;i++)r[i]^=t[e+i]}function h(t,e,r,n,i){while(i--)r[n++]=t[e++]}function l(t){if(!t||"number"!==typeof t.length)return!1;for(let e=0;e<t.length;e++){const r=t[e];if("number"!==typeof r||r%1||r<0||r>=256)return!1}return!0}function c(t,e){if("number"!==typeof t||t%1)throw new Error("invalid "+e);return t}function f(t,e,n,s,a,f,d){if(n=c(n,"N"),s=c(s,"r"),a=c(a,"p"),f=c(f,"dkLen"),0===n||0!==(n&n-1))throw new Error("N must be power of 2");if(n>r/128/s)throw new Error("N too large");if(s>r/128/a)throw new Error("r too large");if(!l(t))throw new Error("password must be an array or buffer");if(t=Array.prototype.slice.call(t),!l(e))throw new Error("salt must be an array or buffer");e=Array.prototype.slice.call(e);let p=i(t,e,128*a*s);const m=new Uint32Array(32*a*s);for(let r=0;r<m.length;r++){const t=4*r;m[r]=(255&p[t+3])<<24|(255&p[t+2])<<16|(255&p[t+1])<<8|(255&p[t+0])<<0}const v=new Uint32Array(64*s),g=new Uint32Array(32*s*n),y=32*s,b=new Uint32Array(16),w=new Uint32Array(16),M=a*n*2;let _,k,S=0,x=null,E=!1,A=0,O=0;const T=d?parseInt(1e3/s):4294967295,C="undefined"!==typeof setImmediate?setImmediate:setTimeout,P=function(){if(E)return d(new Error("cancelled"),S/M);let e;switch(A){case 0:k=32*O*s,h(m,k,v,0,y),A=1,_=0;case 1:e=n-_,e>T&&(e=T);for(let t=0;t<e;t++)h(v,0,g,(_+t)*y,y),o(v,y,s,b,w);if(_+=e,S+=e,d){const t=parseInt(1e3*S/M);if(t!==x){if(E=d(null,S/M),E)break;x=t}}if(_<n)break;_=0,A=2;case 2:e=n-_,e>T&&(e=T);for(let t=0;t<e;t++){const t=16*(2*s-1),e=v[t]&n-1;u(g,e*y,v,y),o(v,y,s,b,w)}if(_+=e,S+=e,d){const t=parseInt(1e3*S/M);if(t!==x){if(E=d(null,S/M),E)break;x=t}}if(_<n)break;if(h(v,0,m,k,y),O++,O<a){A=0;break}p=[];for(let t=0;t<m.length;t++)p.push(m[t]>>0&255),p.push(m[t]>>8&255),p.push(m[t]>>16&255),p.push(m[t]>>24&255);const r=i(t,p,f);return d&&d(null,1,r),r}d&&C(P)};if(!d)while(1){const t=P();if(void 0!=t)return t}P()}const d={scrypt:function(t,e,r,n,i,o,s){return new Promise((function(a,u){let h=0;s&&s(0),f(t,e,r,n,i,o,(function(t,e,r){if(t)u(t);else if(r)s&&1!==h&&s(1),a(new Uint8Array(r));else if(s&&e!==h)return h=e,s(e)}))}))},syncScrypt:function(t,e,r,n,i,o){return new Uint8Array(f(t,e,r,n,i,o))}};t.exports=d})()}))),vi=(mi.scrypt,mi.syncScrypt,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},s=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},a=n&&n.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0});var u=s(li),h=a(mi),l=new C.Logger(ci.version);function c(t){return null!=t&&t.mnemonic&&t.mnemonic.phrase}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.isKeystoreAccount=function(t){return!(!t||!t._isKeystoreAccount)},e}(U.Description);function d(t,e,r){var n=fi.searchPath(t,"crypto/cipher");if("aes-128-ctr"===n){var i=fi.looseArrayify(fi.searchPath(t,"crypto/cipherparams/iv")),o=new u.default.Counter(i),s=new u.default.ModeOfOperation.ctr(e,o);return B.arrayify(s.decrypt(r))}return null}function p(t,e){var r=fi.looseArrayify(fi.searchPath(t,"crypto/ciphertext")),n=B.hexlify(H.keccak256(B.concat([e.slice(16,32),r]))).substring(2);if(n!==fi.searchPath(t,"crypto/mac").toLowerCase())throw new Error("invalid password");var i=d(t,e.slice(0,16),r);i||l.throwError("unsupported cipher",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});var o=e.slice(32,64),s=ti.computeAddress(i);if(t.address){var a=t.address.toLowerCase();if("0x"!==a.substring(0,2)&&(a="0x"+a),W.getAddress(a)!==s)throw new Error("address mismatch")}var h={_isKeystoreAccount:!0,address:s,privateKey:B.hexlify(i)};if("0.1"===fi.searchPath(t,"x-ethers/version")){var c=fi.looseArrayify(fi.searchPath(t,"x-ethers/mnemonicCiphertext")),p=fi.looseArrayify(fi.searchPath(t,"x-ethers/mnemonicCounter")),m=new u.default.Counter(p),v=new u.default.ModeOfOperation.ctr(o,m),g=fi.searchPath(t,"x-ethers/path")||si.defaultPath,y=fi.searchPath(t,"x-ethers/locale")||"en",b=B.arrayify(v.decrypt(c));try{var w=si.entropyToMnemonic(b,y),M=si.HDNode.fromMnemonic(w,null,y).derivePath(g);if(M.privateKey!=h.privateKey)throw new Error("mnemonic mismatch");h.mnemonic=M.mnemonic}catch(_){if(_.code!==C.Logger.errors.INVALID_ARGUMENT||"wordlist"!==_.argument)throw _}}return new f(h)}function m(t,e,r,n,i){return B.arrayify(ln.pbkdf2(t,e,r,n,i))}function v(t,e,r,n,i){return Promise.resolve(m(t,e,r,n,i))}function g(t,e,r,n,i){var o=fi.getPassword(e),s=fi.searchPath(t,"crypto/kdf");if(s&&"string"===typeof s){var a=function(t,e){return l.throwArgumentError("invalid key-derivation function parameters",t,e)};if("scrypt"===s.toLowerCase()){var u=fi.looseArrayify(fi.searchPath(t,"crypto/kdfparams/salt")),h=parseInt(fi.searchPath(t,"crypto/kdfparams/n")),c=parseInt(fi.searchPath(t,"crypto/kdfparams/r")),f=parseInt(fi.searchPath(t,"crypto/kdfparams/p"));h&&c&&f||a("kdf",s),0!==(h&h-1)&&a("N",h);var d=parseInt(fi.searchPath(t,"crypto/kdfparams/dklen"));return 32!==d&&a("dklen",d),n(o,u,h,c,f,64,i)}if("pbkdf2"===s.toLowerCase()){u=fi.looseArrayify(fi.searchPath(t,"crypto/kdfparams/salt"));var p=null,m=fi.searchPath(t,"crypto/kdfparams/prf");"hmac-sha256"===m?p="sha256":"hmac-sha512"===m?p="sha512":a("prf",m);var v=parseInt(fi.searchPath(t,"crypto/kdfparams/c"));d=parseInt(fi.searchPath(t,"crypto/kdfparams/dklen"));return 32!==d&&a("dklen",d),r(o,u,v,d,p)}}return l.throwArgumentError("unsupported key-derivation function","kdf",s)}function y(t,e){var r=JSON.parse(t),n=g(r,e,m,h.syncScrypt);return p(r,n)}function b(t,e,r){return i(this,void 0,void 0,(function(){var n,i;return o(this,(function(o){switch(o.label){case 0:return n=JSON.parse(t),[4,g(n,e,v,h.scrypt,r)];case 1:return i=o.sent(),[2,p(n,i)]}}))}))}function w(t,e,r,n){try{if(W.getAddress(t.address)!==ti.computeAddress(t.privateKey))throw new Error("address/privateKey mismatch");if(c(t)){var i=t.mnemonic,o=si.HDNode.fromMnemonic(i.phrase,null,i.locale).derivePath(i.path||si.defaultPath);if(o.privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch(_){return Promise.reject(_)}"function"!==typeof r||n||(n=r,r={}),r||(r={});var s=B.arrayify(t.privateKey),a=fi.getPassword(e),l=null,f=null,d=null;if(c(t)){var p=t.mnemonic;l=B.arrayify(si.mnemonicToEntropy(p.phrase,p.locale||"en")),f=p.path||si.defaultPath,d=p.locale||"en"}var m=r.client;m||(m="ethers.js");var v=null;v=r.salt?B.arrayify(r.salt):hi.randomBytes(32);var g=null;if(r.iv){if(g=B.arrayify(r.iv),16!==g.length)throw new Error("invalid iv")}else g=hi.randomBytes(16);var y=null;if(r.uuid){if(y=B.arrayify(r.uuid),16!==y.length)throw new Error("invalid uuid")}else y=hi.randomBytes(16);var b=1<<17,w=8,M=1;return r.scrypt&&(r.scrypt.N&&(b=r.scrypt.N),r.scrypt.r&&(w=r.scrypt.r),r.scrypt.p&&(M=r.scrypt.p)),h.scrypt(a,v,b,w,M,64,n).then((function(e){e=B.arrayify(e);var r=e.slice(0,16),n=e.slice(16,32),i=e.slice(32,64),o=new u.default.Counter(g),a=new u.default.ModeOfOperation.ctr(r,o),h=B.arrayify(a.encrypt(s)),c=H.keccak256(B.concat([n,h])),p={address:t.address.substring(2).toLowerCase(),id:fi.uuidV4(y),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:B.hexlify(g).substring(2)},ciphertext:B.hexlify(h).substring(2),kdf:"scrypt",kdfparams:{salt:B.hexlify(v).substring(2),n:b,dklen:32,p:M,r:w},mac:c.substring(2)}};if(l){var _=hi.randomBytes(16),k=new u.default.Counter(_),S=new u.default.ModeOfOperation.ctr(i,k),x=B.arrayify(S.encrypt(l)),E=new Date,A=E.getUTCFullYear()+"-"+fi.zpad(E.getUTCMonth()+1,2)+"-"+fi.zpad(E.getUTCDate(),2)+"T"+fi.zpad(E.getUTCHours(),2)+"-"+fi.zpad(E.getUTCMinutes(),2)+"-"+fi.zpad(E.getUTCSeconds(),2)+".0Z";p["x-ethers"]={client:m,gethFilename:"UTC--"+A+"--"+p.address,mnemonicCounter:B.hexlify(_).substring(2),mnemonicCiphertext:B.hexlify(x).substring(2),path:f,locale:d,version:"0.1"}}return JSON.stringify(p)}))}e.KeystoreAccount=f,e.decryptSync=y,e.decrypt=b,e.encrypt=w}))),gi=(i(vi),vi.KeystoreAccount,vi.decryptSync,vi.decrypt,vi.encrypt,o((function(t,e){function r(t,e,r){if(pi.isCrowdsaleWallet(t)){r&&r(0);var n=di.decrypt(t,e);return r&&r(1),Promise.resolve(n)}return pi.isKeystoreWallet(t)?vi.decrypt(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}function n(t,e){if(pi.isCrowdsaleWallet(t))return di.decrypt(t,e);if(pi.isKeystoreWallet(t))return vi.decryptSync(t,e);throw new Error("invalid JSON wallet")}Object.defineProperty(e,"__esModule",{value:!0}),e.decryptCrowdsale=di.decrypt,e.getJsonWalletAddress=pi.getJsonWalletAddress,e.isCrowdsaleWallet=pi.isCrowdsaleWallet,e.isKeystoreWallet=pi.isKeystoreWallet,e.decryptKeystore=vi.decrypt,e.decryptKeystoreSync=vi.decryptSync,e.encryptKeystore=vi.encrypt,e.decryptJsonWallet=r,e.decryptJsonWalletSync=n}))),yi=(i(gi),gi.decryptCrowdsale,gi.getJsonWalletAddress,gi.isCrowdsaleWallet,gi.isKeystoreWallet,gi.decryptKeystore,gi.decryptKeystoreSync,gi.encryptKeystore,gi.decryptJsonWallet,gi.decryptJsonWalletSync,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="wallet/5.0.7"}))),bi=(i(yi),yi.version,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var s=new C.Logger(yi.version);function a(t){return null!=t&&B.isHexString(t.privateKey,32)&&null!=t.address}function u(t){var e=t.mnemonic;return e&&e.phrase}var h=function(t){function e(r,n){var i=this.constructor,o=this;if(s.checkNew(i,e),o=t.call(this)||this,a(r)){var h=new Yn.SigningKey(r.privateKey);if(U.defineReadOnly(o,"_signingKey",(function(){return h})),U.defineReadOnly(o,"address",ti.computeAddress(o.publicKey)),o.address!==W.getAddress(r.address)&&s.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),u(r)){var l=r.mnemonic;U.defineReadOnly(o,"_mnemonic",(function(){return{phrase:l.phrase,path:l.path||si.defaultPath,locale:l.locale||"en"}}));var c=o.mnemonic,f=si.HDNode.fromMnemonic(c.phrase,null,c.locale).derivePath(c.path);ti.computeAddress(f.privateKey)!==o.address&&s.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else U.defineReadOnly(o,"_mnemonic",(function(){return null}))}else{if(Yn.SigningKey.isSigningKey(r))"secp256k1"!==r.curve&&s.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),U.defineReadOnly(o,"_signingKey",(function(){return r}));else{var d=new Yn.SigningKey(r);U.defineReadOnly(o,"_signingKey",(function(){return d}))}U.defineReadOnly(o,"_mnemonic",(function(){return null})),U.defineReadOnly(o,"address",ti.computeAddress(o.publicKey))}return n&&!wt.Provider.isProvider(n)&&s.throwArgumentError("invalid provider","provider",n),U.defineReadOnly(o,"provider",n||null),o}return r(e,t),Object.defineProperty(e.prototype,"mnemonic",{get:function(){return this._mnemonic()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"privateKey",{get:function(){return this._signingKey().privateKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"publicKey",{get:function(){return this._signingKey().publicKey},enumerable:!0,configurable:!0}),e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype.connect=function(t){return new e(this,t)},e.prototype.signTransaction=function(t){var e=this;return U.resolveProperties(t).then((function(r){null!=r.from&&(W.getAddress(r.from)!==e.address&&s.throwArgumentError("transaction from address mismatch","transaction.from",t.from),delete r.from);var n=e._signingKey().signDigest(H.keccak256(ti.serialize(r)));return ti.serialize(r,n)}))},e.prototype.signMessage=function(t){return i(this,void 0,void 0,(function(){return o(this,(function(e){return[2,B.joinSignature(this._signingKey().signDigest(vt.hashMessage(t)))]}))}))},e.prototype._signTypedData=function(t,e,r){return i(this,void 0,void 0,(function(){var n,i=this;return o(this,(function(o){switch(o.label){case 0:return[4,vt._TypedDataEncoder.resolveNames(t,e,r,(function(t){return null==i.provider&&s.throwError("cannot resolve ENS names without a provider",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"}),i.provider.resolveName(t)}))];case 1:return n=o.sent(),[2,B.joinSignature(this._signingKey().signDigest(vt._TypedDataEncoder.hash(n.domain,e,n.value)))]}}))}))},e.prototype.encrypt=function(t,e,r){if("function"!==typeof e||r||(r=e,e={}),r&&"function"!==typeof r)throw new Error("invalid callback");return e||(e={}),gi.encryptKeystore(this,t,e,r)},e.createRandom=function(t){var r=hi.randomBytes(16);t||(t={}),t.extraEntropy&&(r=B.arrayify(B.hexDataSlice(H.keccak256(B.concat([r,t.extraEntropy])),0,16)));var n=si.entropyToMnemonic(r,t.locale);return e.fromMnemonic(n,t.path,t.locale)},e.fromEncryptedJson=function(t,r,n){return gi.decryptJsonWallet(t,r,n).then((function(t){return new e(t)}))},e.fromEncryptedJsonSync=function(t,r){return new e(gi.decryptJsonWalletSync(t,r))},e.fromMnemonic=function(t,r,n){return r||(r=si.defaultPath),new e(si.HDNode.fromMnemonic(t,null,n).derivePath(r))},e}(_t.Signer);function l(t,e){return ti.recoverAddress(vt.hashMessage(t),e)}function c(t,e,r,n){return ti.recoverAddress(vt._TypedDataEncoder.hash(t,e,r),n)}e.Wallet=h,e.verifyMessage=l,e.verifyTypedData=c}))),wi=(i(bi),bi.Wallet,bi.verifyMessage,bi.verifyTypedData,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="networks/5.0.4"}))),Mi=(i(wi),wi.version,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger(wi.version);function n(t){return t&&"function"===typeof t.renetwork}function i(t){var e=function(e,r){null==r&&(r={});var n=[];if(e.InfuraProvider)try{n.push(new e.InfuraProvider(t,r.infura))}catch(o){}if(e.EtherscanProvider)try{n.push(new e.EtherscanProvider(t,r.etherscan))}catch(o){}if(e.AlchemyProvider)try{n.push(new e.AlchemyProvider(t,r.alchemy))}catch(o){}if(e.CloudflareProvider)try{n.push(new e.CloudflareProvider(t))}catch(o){}if(0===n.length)return null;if(e.FallbackProvider){var i=1;return null!=r.quorum?i=r.quorum:"homestead"===t&&(i=2),new e.FallbackProvider(n,i)}return n[0]};return e.renetwork=function(t){return i(t)},e}function o(t,e){var r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(t,e):null};return r.renetwork=function(e){return o(t,e)},r}var s={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:i("homestead")},a={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:i("ropsten")},u={chainId:63,name:"classicMordor",_defaultProvider:o("https://www.ethercluster.com/mordor","classicMordor")},h={unspecified:{chainId:0,name:"unspecified"},homestead:s,mainnet:s,morden:{chainId:2,name:"morden"},ropsten:a,testnet:a,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:i("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:i("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:i("goerli")},classic:{chainId:61,name:"classic",_defaultProvider:o("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:u,classicTestnet:u,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:o("https://www.ethercluster.com/kotti","classicKotti")}};function l(t){if(null==t)return null;if("number"===typeof t){for(var e in h){var i=h[e];if(i.chainId===t)return{name:i.name,chainId:i.chainId,ensAddress:i.ensAddress||null,_defaultProvider:i._defaultProvider||null}}return{chainId:t,name:"unknown"}}if("string"===typeof t){var o=h[t];return null==o?null:{name:o.name,chainId:o.chainId,ensAddress:o.ensAddress,_defaultProvider:o._defaultProvider||null}}var s=h[t.name];if(!s)return"number"!==typeof t.chainId&&r.throwArgumentError("invalid network chainId","network",t),t;0!==t.chainId&&t.chainId!==s.chainId&&r.throwArgumentError("network chainId mismatch","network",t);var a=t._defaultProvider||null;return null==a&&s._defaultProvider&&(a=n(s._defaultProvider)?s._defaultProvider.renetwork(t):s._defaultProvider),{name:t.name,chainId:s.chainId,ensAddress:t.ensAddress||s.ensAddress||null,_defaultProvider:a}}e.getNetwork=l}))),_i=(i(Mi),Mi.getNetwork,o((function(t,e){function r(t){t=atob(t);for(var e=[],r=0;r<t.length;r++)e.push(t.charCodeAt(r));return B.arrayify(e)}function n(t){t=B.arrayify(t);for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.decode=r,e.encode=n}))),ki=(i(_i),_i.decode,_i.encode,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="web/5.0.9"}))),Si=(i(ki),ki.version,o((function(t,e){var r=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},i=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};function o(t,e){return r(this,void 0,void 0,(function(){var r,n,o,s;return i(this,(function(i){switch(i.label){case 0:return null==e&&(e={}),r={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0,mode:"cors",cache:"no-cache",credentials:"same-origin",redirect:"follow",referrer:"client"},[4,fetch(t,r)];case 1:return n=i.sent(),[4,n.arrayBuffer()];case 2:return o=i.sent(),s={},n.headers.forEach?n.headers.forEach((function(t,e){s[e.toLowerCase()]=t})):n.headers.keys().forEach((function(t){s[t.toLowerCase()]=n.headers.get(t)})),[2,{headers:s,statusCode:n.status,statusMessage:n.statusText,body:B.arrayify(new Uint8Array(o))}]}}))}))}Object.defineProperty(e,"__esModule",{value:!0}),e.getUrl=o}))),xi=(i(Si),Si.getUrl,o((function(t,e){var r=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},i=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var o=new C.Logger(ki.version);function s(t){return new Promise((function(e){setTimeout(e,t)}))}function a(t,e){if(null==t)return null;if("string"===typeof t)return t;if(B.isBytesLike(t)){if(e&&("text"===e.split("/")[0]||"application/json"===e.split(";")[0].trim()))try{return at.toUtf8String(t)}catch(r){}return B.hexlify(t)}return t}function u(t,e,n){var u="object"===typeof t&&null!=t.throttleLimit?t.throttleLimit:12;o.assertArgument(u>0&&u%1===0,"invalid connection throttle limit","connection.throttleLimit",u);var h="object"===typeof t?t.throttleCallback:null,l="object"===typeof t&&"number"===typeof t.throttleSlotInterval?t.throttleSlotInterval:100;o.assertArgument(l>0&&l%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",l);var c={},f=null,d={method:"GET"},p=!1,m=12e4;if("string"===typeof t)f=t;else if("object"===typeof t){if(null!=t&&null!=t.url||o.throwArgumentError("missing URL","connection.url",t),f=t.url,"number"===typeof t.timeout&&t.timeout>0&&(m=t.timeout),t.headers)for(var v in t.headers)c[v.toLowerCase()]={key:v,value:String(t.headers[v])},["if-none-match","if-modified-since"].indexOf(v.toLowerCase())>=0&&(p=!0);if(d.allowGzip=!!t.allowGzip,null!=t.user&&null!=t.password){"https:"!==f.substring(0,6)&&!0!==t.allowInsecureAuthentication&&o.throwError("basic authentication requires a secure https url",C.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:f,user:t.user,password:"[REDACTED]"});var g=t.user+":"+t.password;c["authorization"]={key:"Authorization",value:"Basic "+_i.encode(at.toUtf8Bytes(g))}}}e&&(d.method="POST",d.body=e,null==c["content-type"]&&(c["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==c["content-length"]&&(c["content-length"]={key:"Content-Length",value:String(e.length)}));var y={};Object.keys(c).forEach((function(t){var e=c[t];y[e.key]=e.value})),d.headers=y;var b=function(){var t=null,e=new Promise((function(e,r){m&&(t=setTimeout((function(){null!=t&&(t=null,r(o.makeError("timeout",C.Logger.errors.TIMEOUT,{requestBody:a(d.body,y["content-type"]),requestMethod:d.method,timeout:m,url:f})))}),m))})),r=function(){null!=t&&(clearTimeout(t),t=null)};return{promise:e,cancel:r}}(),w=function(){return r(this,void 0,void 0,(function(){var t,e,r,c,m,v,g,w,M,_;return i(this,(function(i){switch(i.label){case 0:t=0,i.label=1;case 1:if(!(t<u))return[3,19];e=null,i.label=2;case 2:return i.trys.push([2,8,,9]),[4,Si.getUrl(f,d)];case 3:return e=i.sent(),429===e.statusCode&&t<u?(M=!0,h?[4,h(t,f)]:[3,5]):[3,7];case 4:M=i.sent(),i.label=5;case 5:return M?(r=0,c=e.headers["retry-after"],r="string"===typeof c&&c.match(/^[1-9][0-9]*$/)?1e3*parseInt(c):l*parseInt(String(Math.random()*Math.pow(2,t))),[4,s(r)]):[3,7];case 6:return i.sent(),[3,18];case 7:return[3,9];case 8:return m=i.sent(),e=m.response,null==e&&(b.cancel(),o.throwError("missing response",C.Logger.errors.SERVER_ERROR,{requestBody:a(d.body,y["content-type"]),requestMethod:d.method,serverError:m,url:f})),[3,9];case 9:if(v=e.body,p&&304===e.statusCode?v=null:(e.statusCode<200||e.statusCode>=300)&&(b.cancel(),o.throwError("bad response",C.Logger.errors.SERVER_ERROR,{status:e.statusCode,headers:e.headers,body:a(v,e.headers?e.headers["content-type"]:null),requestBody:a(d.body,y["content-type"]),requestMethod:d.method,url:f})),!n)return[3,17];i.label=10;case 10:return i.trys.push([10,12,,17]),[4,n(v,e)];case 11:return g=i.sent(),b.cancel(),[2,g];case 12:return w=i.sent(),w.throttleRetry&&t<u?(M=!0,h?[4,h(t,f)]:[3,14]):[3,16];case 13:M=i.sent(),i.label=14;case 14:return M?(_=l*parseInt(String(Math.random()*Math.pow(2,t))),[4,s(_)]):[3,16];case 15:return i.sent(),[3,18];case 16:return b.cancel(),o.throwError("processing response error",C.Logger.errors.SERVER_ERROR,{body:a(v,e.headers?e.headers["content-type"]:null),error:w,requestBody:a(d.body,y["content-type"]),requestMethod:d.method,url:f}),[3,17];case 17:return b.cancel(),[2,v];case 18:return t++,[3,1];case 19:return[2,o.throwError("failed response",C.Logger.errors.SERVER_ERROR,{requestBody:a(d.body,y["content-type"]),requestMethod:d.method,url:f})]}}))}))}();return Promise.race([b.promise,w])}function h(t,e,r){var n=function(t,e){var n=null;if(null!=t)try{n=JSON.parse(at.toUtf8String(t))}catch(i){o.throwError("invalid JSON",C.Logger.errors.SERVER_ERROR,{body:t,error:i})}return r&&(n=r(n,e)),n},i=null;if(null!=e){i=at.toUtf8Bytes(e);var s="string"===typeof t?{url:t}:U.shallowCopy(t);if(s.headers){var a=0!==Object.keys(s.headers).filter((function(t){return"content-type"===t.toLowerCase()})).length;a||(s.headers=U.shallowCopy(s.headers),s.headers["content-type"]="application/json")}else s.headers={"content-type":"application/json"};t=s}return u(t,i,n)}function l(t,e){return e||(e={}),e=U.shallowCopy(e),null==e.floor&&(e.floor=0),null==e.ceiling&&(e.ceiling=1e4),null==e.interval&&(e.interval=250),new Promise((function(r,n){var i=null,o=!1,s=function(){return!o&&(o=!0,i&&clearTimeout(i),!0)};e.timeout&&(i=setTimeout((function(){s()&&n(new Error("timeout"))}),e.timeout));var a=e.retryLimit,u=0;function h(){return t().then((function(t){if(void 0!==t)s()&&r(t);else if(e.oncePoll)e.oncePoll.once("poll",h);else if(e.onceBlock)e.onceBlock.once("block",h);else if(!o){if(u++,u>a)return void(s()&&n(new Error("retry limit reached")));var i=e.interval*parseInt(String(Math.random()*Math.pow(2,u)));i<e.floor&&(i=e.floor),i>e.ceiling&&(i=e.ceiling),setTimeout(h,i)}return null}),(function(t){s()&&n(t)}))}h()}))}e._fetchData=u,e.fetchJson=h,e.poll=l}))),Ei=(i(xi),xi._fetchData,xi.fetchJson,xi.poll,"qpzry9x8gf2tvdw0s3jn54khce6mua7l"),Ai={},Oi=0;Oi<Ei.length;Oi++){var Ti=Ei.charAt(Oi);if(void 0!==Ai[Ti])throw new TypeError(Ti+" is ambiguous");Ai[Ti]=Oi}function Ci(t){var e=t>>25;return(33554431&t)<<5^996825010&-(e>>0&1)^642813549&-(e>>1&1)^513874426&-(e>>2&1)^1027748829&-(e>>3&1)^705979059&-(e>>4&1)}function Pi(t){for(var e=1,r=0;r<t.length;++r){var n=t.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+t+")";e=Ci(e)^n>>5}for(e=Ci(e),r=0;r<t.length;++r){var i=t.charCodeAt(r);e=Ci(e)^31&i}return e}function Bi(t,e,r){if(r=r||90,t.length+7+e.length>r)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var n=Pi(t);if("string"===typeof n)throw new Error(n);for(var i=t+"1",o=0;o<e.length;++o){var s=e[o];if(s>>5!==0)throw new Error("Non 5-bit word");n=Ci(n)^s,i+=Ei.charAt(s)}for(o=0;o<6;++o)n=Ci(n);for(n^=1,o=0;o<6;++o){var a=n>>5*(5-o)&31;i+=Ei.charAt(a)}return i}function Ii(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var r=t.toLowerCase(),n=t.toUpperCase();if(t!==r&&t!==n)return"Mixed-case string "+t;t=r;var i=t.lastIndexOf("1");if(-1===i)return"No separator character for "+t;if(0===i)return"Missing prefix for "+t;var o=t.slice(0,i),s=t.slice(i+1);if(s.length<6)return"Data too short";var a=Pi(o);if("string"===typeof a)return a;for(var u=[],h=0;h<s.length;++h){var l=s.charAt(h),c=Ai[l];if(void 0===c)return"Unknown character "+l;a=Ci(a)^c,h+6>=s.length||u.push(c)}return 1!==a?"Invalid checksum for "+t:{prefix:o,words:u}}function Ri(){var t=Ii.apply(null,arguments);if("object"===typeof t)return t}function Ni(t){var e=Ii.apply(null,arguments);if("object"===typeof e)return e;throw new Error(e)}function ji(t,e,r,n){for(var i=0,o=0,s=(1<<r)-1,a=[],u=0;u<t.length;++u){i=i<<e|t[u],o+=e;while(o>=r)o-=r,a.push(i>>o&s)}if(n)o>0&&a.push(i<<r-o&s);else{if(o>=e)return"Excess padding";if(i<<r-o&s)return"Non-zero padding"}return a}function Li(t){var e=ji(t,8,5,!0);if(Array.isArray(e))return e}function Ui(t){var e=ji(t,8,5,!0);if(Array.isArray(e))return e;throw new Error(e)}function Di(t){var e=ji(t,5,8,!1);if(Array.isArray(e))return e}function Fi(t){var e=ji(t,5,8,!1);if(Array.isArray(e))return e;throw new Error(e)}var zi={decodeUnsafe:Ri,decode:Ni,encode:Bi,toWordsUnsafe:Li,toWords:Ui,fromWordsUnsafe:Di,fromWords:Fi},qi=(zi.decodeUnsafe,zi.decode,zi.encode,zi.toWordsUnsafe,zi.toWords,zi.fromWordsUnsafe,zi.fromWords,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="providers/5.0.14"}))),Hi=(i(qi),qi.version,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger(qi.version),n=function(){function t(){var e=this.constructor;r.checkNew(e,t),this.formats=this.getDefaultFormats()}return t.prototype.getDefaultFormats=function(){var e=this,r={},n=this.address.bind(this),i=this.bigNumber.bind(this),o=this.blockTag.bind(this),s=this.data.bind(this),a=this.hash.bind(this),u=this.hex.bind(this),h=this.number.bind(this),l=function(t){return e.data(t,!0)};return r.transaction={hash:a,blockHash:t.allowNull(a,null),blockNumber:t.allowNull(h,null),transactionIndex:t.allowNull(h,null),confirmations:t.allowNull(h,null),from:n,gasPrice:i,gasLimit:i,to:t.allowNull(n,null),value:i,nonce:h,data:s,r:t.allowNull(this.uint256),s:t.allowNull(this.uint256),v:t.allowNull(h),creates:t.allowNull(n,null),raw:t.allowNull(s)},r.transactionRequest={from:t.allowNull(n),nonce:t.allowNull(h),gasLimit:t.allowNull(i),gasPrice:t.allowNull(i),to:t.allowNull(n),value:t.allowNull(i),data:t.allowNull(l)},r.receiptLog={transactionIndex:h,blockNumber:h,transactionHash:a,address:n,topics:t.arrayOf(a),data:s,logIndex:h,blockHash:a},r.receipt={to:t.allowNull(this.address,null),from:t.allowNull(this.address,null),contractAddress:t.allowNull(n,null),transactionIndex:h,root:t.allowNull(a),gasUsed:i,logsBloom:t.allowNull(s),blockHash:a,transactionHash:a,logs:t.arrayOf(this.receiptLog.bind(this)),blockNumber:h,confirmations:t.allowNull(h,null),cumulativeGasUsed:i,status:t.allowNull(h)},r.block={hash:a,parentHash:a,number:h,timestamp:h,nonce:t.allowNull(u),difficulty:this.difficulty.bind(this),gasLimit:i,gasUsed:i,miner:n,extraData:s,transactions:t.allowNull(t.arrayOf(a))},r.blockWithTransactions=U.shallowCopy(r.block),r.blockWithTransactions.transactions=t.allowNull(t.arrayOf(this.transactionResponse.bind(this))),r.filter={fromBlock:t.allowNull(o,void 0),toBlock:t.allowNull(o,void 0),blockHash:t.allowNull(a,void 0),address:t.allowNull(n,void 0),topics:t.allowNull(this.topics.bind(this),void 0)},r.filterLog={blockNumber:t.allowNull(h),blockHash:t.allowNull(a),transactionIndex:h,removed:t.allowNull(this.boolean.bind(this)),address:n,data:t.allowFalsish(s,"0x"),topics:t.arrayOf(a),transactionHash:a,logIndex:h},r},t.prototype.number=function(t){return"0x"===t?0:j.BigNumber.from(t).toNumber()},t.prototype.bigNumber=function(t){return j.BigNumber.from(t)},t.prototype.boolean=function(t){if("boolean"===typeof t)return t;if("string"===typeof t){if(t=t.toLowerCase(),"true"===t)return!0;if("false"===t)return!1}throw new Error("invalid boolean - "+t)},t.prototype.hex=function(t,e){return"string"===typeof t&&(e||"0x"===t.substring(0,2)||(t="0x"+t),B.isHexString(t))?t.toLowerCase():r.throwArgumentError("invalid hash","value",t)},t.prototype.data=function(t,e){var r=this.hex(t,e);if(r.length%2!==0)throw new Error("invalid data; odd-length - "+t);return r},t.prototype.address=function(t){return W.getAddress(t)},t.prototype.callAddress=function(t){if(!B.isHexString(t,32))return null;var e=W.getAddress(B.hexDataSlice(t,12));return e===et.AddressZero?null:e},t.prototype.contractAddress=function(t){return W.getContractAddress(t)},t.prototype.blockTag=function(t){if(null==t)return"latest";if("earliest"===t)return"0x0";if("latest"===t||"pending"===t)return t;if("number"===typeof t||B.isHexString(t))return B.hexValue(t);throw new Error("invalid blockTag")},t.prototype.hash=function(t,e){var n=this.hex(t,e);return 32!==B.hexDataLength(n)?r.throwArgumentError("invalid hash","value",t):n},t.prototype.difficulty=function(t){if(null==t)return null;var e=j.BigNumber.from(t);try{return e.toNumber()}catch(r){}return null},t.prototype.uint256=function(t){if(!B.isHexString(t))throw new Error("invalid uint256");return B.hexZeroPad(t,32)},t.prototype._block=function(e,r){return null!=e.author&&null==e.miner&&(e.miner=e.author),t.check(r,e)},t.prototype.block=function(t){return this._block(t,this.formats.block)},t.prototype.blockWithTransactions=function(t){return this._block(t,this.formats.blockWithTransactions)},t.prototype.transactionRequest=function(e){return t.check(this.formats.transactionRequest,e)},t.prototype.transactionResponse=function(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&j.BigNumber.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e));var r=t.check(this.formats.transaction,e);if(null!=e.chainId){var n=e.chainId;B.isHexString(n)&&(n=j.BigNumber.from(n).toNumber()),r.chainId=n}else{n=e.networkId;null==n&&null==r.v&&(n=e.chainId),B.isHexString(n)&&(n=j.BigNumber.from(n).toNumber()),"number"!==typeof n&&null!=r.v&&(n=(r.v-35)/2,n<0&&(n=0),n=parseInt(n)),"number"!==typeof n&&(n=0),r.chainId=n}return r.blockHash&&"x"===r.blockHash.replace(/0/g,"")&&(r.blockHash=null),r},t.prototype.transaction=function(t){return ti.parse(t)},t.prototype.receiptLog=function(e){return t.check(this.formats.receiptLog,e)},t.prototype.receipt=function(e){var r=t.check(this.formats.receipt,e);return null!=e.status&&(r.byzantium=!0),r},t.prototype.topics=function(t){var e=this;return Array.isArray(t)?t.map((function(t){return e.topics(t)})):null!=t?this.hash(t,!0):null},t.prototype.filter=function(e){return t.check(this.formats.filter,e)},t.prototype.filterLog=function(e){return t.check(this.formats.filterLog,e)},t.check=function(t,e){var r={};for(var n in t)try{var i=t[n](e[n]);void 0!==i&&(r[n]=i)}catch(o){throw o.checkKey=n,o.checkValue=e[n],o}return r},t.allowNull=function(t,e){return function(r){return null==r?e:t(r)}},t.allowFalsish=function(t,e){return function(r){return r?t(r):e}},t.arrayOf=function(t){return function(e){if(!Array.isArray(e))throw new Error("not an array");var r=[];return e.forEach((function(e){r.push(t(e))})),r}},t}();function i(t){return t&&"function"===typeof t.isCommunityResource}function o(t){return i(t)&&t.isCommunityResource()}e.Formatter=n,e.isCommunityResourcable=i,e.isCommunityResource=o;var s=!1;function a(){s||(s=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}e.showThrottleMessage=a}))),$i=(i(Hi),Hi.Formatter,Hi.isCommunityResourcable,Hi.isCommunityResource,Hi.showThrottleMessage,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var s=new C.Logger(qi.version);function a(t){return null==t?"null":(32!==B.hexDataLength(t)&&s.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function u(t){t=t.slice();while(t.length>0&&null==t[t.length-1])t.pop();return t.map((function(t){if(Array.isArray(t)){var e={};t.forEach((function(t){e[a(t)]=!0}));var r=Object.keys(e);return r.sort(),r.join("|")}return a(t)})).join("&")}function h(t){return""===t?[]:t.split(/&/g).map((function(t){if(""===t)return[];var e=t.split("|").map((function(t){return"null"===t?null:t}));return 1===e.length?e[0]:e}))}function l(t){if("string"===typeof t){if(t=t.toLowerCase(),32===B.hexDataLength(t))return"tx:"+t;if(-1===t.indexOf(":"))return t}else{if(Array.isArray(t))return"filter:*:"+u(t);if(wt.ForkEvent.isForkEvent(t))throw s.warn("not implemented"),new Error("not implemented");if(t&&"object"===typeof t)return"filter:"+(t.address||"*")+":"+u(t.topics||[])}throw new Error("invalid event - "+t)}function c(){return(new Date).getTime()}function f(t){return new Promise((function(e){setTimeout(e,t)}))}var d=["block","network","pending","poll"],p=function(){function t(t,e,r){U.defineReadOnly(this,"tag",t),U.defineReadOnly(this,"listener",e),U.defineReadOnly(this,"once",r)}return Object.defineProperty(t.prototype,"event",{get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.tag.split(":")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){var t=this.tag.split(":");return"tx"!==t[0]?null:t[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filter",{get:function(){var t=this.tag.split(":");if("filter"!==t[0])return null;var e=t[1],r=h(t[2]),n={};return r.length>0&&(n.topics=r),e&&"*"!==e&&(n.address=e),n},enumerable:!0,configurable:!0}),t.prototype.pollable=function(){return this.tag.indexOf(":")>=0||d.indexOf(this.tag)>=0},t}();e.Event=p;var m={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function v(t){return B.hexZeroPad(j.BigNumber.from(t).toHexString(),32)}function g(t){return xt.Base58.encode(B.concat([t,B.hexDataSlice(hn.sha256(hn.sha256(t)),0,4)]))}var y=function(){function t(t,e,r){U.defineReadOnly(this,"provider",t),U.defineReadOnly(this,"name",r),U.defineReadOnly(this,"address",t.formatter.address(e))}return t.prototype._fetchBytes=function(t,e){return i(this,void 0,void 0,(function(){var r,n,i,s;return o(this,(function(o){switch(o.label){case 0:return r={to:this.address,data:B.hexConcat([t,vt.namehash(this.name),e||"0x"])},[4,this.provider.call(r)];case 1:return n=o.sent(),"0x"===n?[2,null]:(i=j.BigNumber.from(B.hexDataSlice(n,0,32)).toNumber(),s=j.BigNumber.from(B.hexDataSlice(n,i,i+32)).toNumber(),[2,B.hexDataSlice(n,i+32,i+32+s)])}}))}))},t.prototype._getAddress=function(t,e){var r=m[String(t)];if(null==r&&s.throwError("unsupported coin type: "+t,C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+t+")"}),"eth"===r.ilk)return this.provider.formatter.address(e);var n=B.arrayify(e);if(null!=r.p2pkh){var i=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(i){var o=parseInt(i[1],16);if(i[2].length===2*o&&o>=1&&o<=75)return g(B.concat([[r.p2pkh],"0x"+i[2]]))}}if(null!=r.p2sh){var a=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(a){var u=parseInt(a[1],16);if(a[2].length===2*u&&u>=1&&u<=75)return g(B.concat([[r.p2sh],"0x"+a[2]]))}}if(null!=r.prefix){var h=n[1],l=n[0];if(0===l?20!==h&&32!==h&&(l=-1):l=-1,l>=0&&n.length===2+h&&h>=1&&h<=75){var c=zi.toWords(n.slice(2));return c.unshift(l),zi.encode(r.prefix,c)}}return null},t.prototype.getAddress=function(t){return i(this,void 0,void 0,(function(){var e,r,n,i;return o(this,(function(o){switch(o.label){case 0:return null==t&&(t=60),60!==t?[3,2]:(e={to:this.address,data:"0x3b3b57de"+vt.namehash(this.name).substring(2)},[4,this.provider.call(e)]);case 1:return r=o.sent(),"0x"===r||r===et.HashZero?[2,null]:[2,this.provider.formatter.callAddress(r)];case 2:return[4,this._fetchBytes("0xf1cb7e06",v(t))];case 3:return n=o.sent(),null==n||"0x"===n?[2,null]:(i=this._getAddress(t,n),null==i&&s.throwError("invalid or unsupported coin data",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+t+")",coinType:t,data:n}),[2,i])}}))}))},t.prototype.getContentHash=function(){return i(this,void 0,void 0,(function(){var t,e,r,n;return o(this,(function(i){switch(i.label){case 0:return[4,this._fetchBytes("0xbc1c58d1")];case 1:return t=i.sent(),null==t||"0x"===t?[2,null]:(e=t.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/),e&&(r=parseInt(e[3],16),e[4].length===2*r)?[2,"ipfs://"+xt.Base58.encode("0x"+e[1])]:(n=t.match(/^0xe40101fa011b20([0-9a-f]*)$/),n&&64===n[1].length?[2,"bzz://"+n[1]]:[2,s.throwError("invalid or unsupported content hash data",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t})]))}}))}))},t.prototype.getText=function(t){return i(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){switch(n.label){case 0:return e=at.toUtf8Bytes(t),e=B.concat([v(64),v(e.length),e]),e.length%32!==0&&(e=B.concat([e,B.hexZeroPad("0x",32-t.length%32)])),[4,this._fetchBytes("0x59d1d43c",B.hexlify(e))];case 1:return r=n.sent(),null==r||"0x"===r?[2,null]:[2,at.toUtf8String(r)]}}))}))},t}();e.Resolver=y;var b=null,w=1,M=function(t){function e(e){var r=this.constructor,n=this;if(s.checkNew(r,wt.Provider),n=t.call(this)||this,n._events=[],n._emitted={block:-2},n.formatter=r.getFormatter(),U.defineReadOnly(n,"anyNetwork","any"===e),n.anyNetwork&&(e=n.detectNetwork()),e instanceof Promise)n._networkPromise=e,e.catch((function(t){})),n._ready().catch((function(t){}));else{var i=U.getStatic(r,"getNetwork")(e);i?(U.defineReadOnly(n,"_network",i),n.emit("network",i,null)):s.throwArgumentError("invalid network","network",e)}return n._maxInternalBlockNumber=-1024,n._lastBlockNumber=-2,n._pollingInterval=4e3,n._fastQueryDate=0,n}return r(e,t),e.prototype._ready=function(){return i(this,void 0,void 0,(function(){var t;return o(this,(function(e){switch(e.label){case 0:if(null!=this._network)return[3,7];if(t=null,!this._networkPromise)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this._networkPromise];case 2:return t=e.sent(),[3,4];case 3:return e.sent(),[3,4];case 4:return null!=t?[3,6]:[4,this.detectNetwork()];case 5:t=e.sent(),e.label=6;case 6:t||s.throwError("no network detected",C.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:U.defineReadOnly(this,"_network",t),this.emit("network",t,null)),e.label=7;case 7:return[2,this._network]}}))}))},Object.defineProperty(e.prototype,"ready",{get:function(){var t=this;return xi.poll((function(){return t._ready().then((function(t){return t}),(function(t){if(t.code!==C.Logger.errors.NETWORK_ERROR||"noNetwork"!==t.event)throw t}))}))},enumerable:!0,configurable:!0}),e.getFormatter=function(){return null==b&&(b=new Hi.Formatter),b},e.getNetwork=function(t){return Mi.getNetwork(null==t?"homestead":t)},e.prototype._getInternalBlockNumber=function(t){return i(this,void 0,void 0,(function(){var e,r,n,i,s=this;return o(this,(function(o){switch(o.label){case 0:return[4,this._ready()];case 1:return o.sent(),e=this._internalBlockNumber,t>0&&this._internalBlockNumber?[4,e]:[3,3];case 2:if(r=o.sent(),c()-r.respTime<=t)return[2,r.blockNumber];o.label=3;case 3:return n=c(),i=U.resolveProperties({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(t){return null}),(function(t){return t}))}).then((function(t){var e=t.blockNumber,r=t.networkError;if(r)throw s._internalBlockNumber===i&&(s._internalBlockNumber=null),r;var o=c();return e=j.BigNumber.from(e).toNumber(),e<s._maxInternalBlockNumber&&(e=s._maxInternalBlockNumber),s._maxInternalBlockNumber=e,s._setFastBlockNumber(e),{blockNumber:e,reqTime:n,respTime:o}})),this._internalBlockNumber=i,[4,i];case 4:return[2,o.sent().blockNumber]}}))}))},e.prototype.poll=function(){return i(this,void 0,void 0,(function(){var t,e,r,n,i=this;return o(this,(function(o){switch(o.label){case 0:return t=w++,e=[],[4,this._getInternalBlockNumber(100+this.pollingInterval/2)];case 1:if(r=o.sent(),this._setFastBlockNumber(r),this.emit("poll",t,r),r===this._lastBlockNumber)return this.emit("didPoll",t),[2];if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)s.warn("network block skew detected; skipping block events"),this.emit("error",s.makeError("network block skew detected",C.Logger.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(n=this._emitted.block+1;n<=r;n++)this.emit("block",n);return this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((function(t){if("block"!==t){var e=i._emitted[t];"pending"!==e&&r-e>12&&delete i._emitted[t]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((function(t){switch(t.type){case"tx":var n=t.hash,o=i.getTransactionReceipt(n).then((function(t){return t&&null!=t.blockNumber?(i._emitted["t:"+n]=t.blockNumber,i.emit(n,t),null):null})).catch((function(t){i.emit("error",t)}));e.push(o);break;case"filter":var s=t.filter;s.fromBlock=i._lastBlockNumber+1,s.toBlock=r;o=i.getLogs(s).then((function(t){0!==t.length&&t.forEach((function(t){i._emitted["b:"+t.blockHash]=t.blockNumber,i._emitted["t:"+t.transactionHash]=t.blockNumber,i.emit(s,t)}))})).catch((function(t){i.emit("error",t)}));e.push(o);break}})),this._lastBlockNumber=r,Promise.all(e).then((function(){i.emit("didPoll",t)})),[2,null]}}))}))},e.prototype.resetEventsBlock=function(t){this._lastBlockNumber=t-1,this.polling&&this.poll()},Object.defineProperty(e.prototype,"network",{get:function(){return this._network},enumerable:!0,configurable:!0}),e.prototype.detectNetwork=function(){return i(this,void 0,void 0,(function(){return o(this,(function(t){return[2,s.throwError("provider does not support network detection",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})]}))}))},e.prototype.getNetwork=function(){return i(this,void 0,void 0,(function(){var t,e,r;return o(this,(function(n){switch(n.label){case 0:return[4,this._ready()];case 1:return t=n.sent(),[4,this.detectNetwork()];case 2:return e=n.sent(),t.chainId===e.chainId?[3,5]:this.anyNetwork?(this._network=e,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",e,t),[4,f(0)]):[3,4];case 3:return n.sent(),[2,this._network];case 4:throw r=s.makeError("underlying network changed",C.Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e}),this.emit("error",r),r;case 5:return[2,t]}}))}))},Object.defineProperty(e.prototype,"blockNumber",{get:function(){var t=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(e){t._setFastBlockNumber(e)})),null!=this._fastBlockNumber?this._fastBlockNumber:-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"polling",{get:function(){return null!=this._poller},set:function(t){var e=this;t&&!this._poller?(this._poller=setInterval(this.poll.bind(this),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){e.poll(),e._bootstrapPoll=setTimeout((function(){e._poller||e.poll(),e._bootstrapPoll=null}),e.pollingInterval)}),0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pollingInterval",{get:function(){return this._pollingInterval},set:function(t){var e=this;if("number"!==typeof t||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){e.poll()}),this._pollingInterval))},enumerable:!0,configurable:!0}),e.prototype._getFastBlockNumber=function(){var t=this,e=c();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then((function(e){return(null==t._fastBlockNumber||e>t._fastBlockNumber)&&(t._fastBlockNumber=e),t._fastBlockNumber}))),this._fastBlockNumberPromise},e.prototype._setFastBlockNumber=function(t){null!=this._fastBlockNumber&&t<this._fastBlockNumber||(this._fastQueryDate=c(),(null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))},e.prototype.waitForTransaction=function(t,e,r){return i(this,void 0,void 0,(function(){var n,i=this;return o(this,(function(o){switch(o.label){case 0:return null==e&&(e=1),[4,this.getTransactionReceipt(t)];case 1:return n=o.sent(),(n?n.confirmations:0)>=e?[2,n]:[2,new Promise((function(n,o){var a=null,u=!1,h=function(r){r.confirmations<e||(a&&clearTimeout(a),u||(u=!0,i.removeListener(t,h),n(r)))};i.on(t,h),"number"===typeof r&&r>0&&(a=setTimeout((function(){u||(a=null,u=!0,i.removeListener(t,h),o(s.makeError("timeout exceeded",C.Logger.errors.TIMEOUT,{timeout:r})))}),r),a.unref&&a.unref())}))]}}))}))},e.prototype.getBlockNumber=function(){return i(this,void 0,void 0,(function(){return o(this,(function(t){return[2,this._getInternalBlockNumber(0)]}))}))},e.prototype.getGasPrice=function(){return i(this,void 0,void 0,(function(){var t,e;return o(this,(function(r){switch(r.label){case 0:return[4,this.getNetwork()];case 1:return r.sent(),e=(t=j.BigNumber).from,[4,this.perform("getGasPrice",{})];case 2:return[2,e.apply(t,[r.sent()])]}}))}))},e.prototype.getBalance=function(t,e){return i(this,void 0,void 0,(function(){var r,n,i;return o(this,(function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,U.resolveProperties({address:this._getAddress(t),blockTag:this._getBlockTag(e)})];case 2:return r=o.sent(),i=(n=j.BigNumber).from,[4,this.perform("getBalance",r)];case 3:return[2,i.apply(n,[o.sent()])]}}))}))},e.prototype.getTransactionCount=function(t,e){return i(this,void 0,void 0,(function(){var r,n,i;return o(this,(function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,U.resolveProperties({address:this._getAddress(t),blockTag:this._getBlockTag(e)})];case 2:return r=o.sent(),i=(n=j.BigNumber).from,[4,this.perform("getTransactionCount",r)];case 3:return[2,i.apply(n,[o.sent()]).toNumber()]}}))}))},e.prototype.getCode=function(t,e){return i(this,void 0,void 0,(function(){var r,n;return o(this,(function(i){switch(i.label){case 0:return[4,this.getNetwork()];case 1:return i.sent(),[4,U.resolveProperties({address:this._getAddress(t),blockTag:this._getBlockTag(e)})];case 2:return r=i.sent(),n=B.hexlify,[4,this.perform("getCode",r)];case 3:return[2,n.apply(void 0,[i.sent()])]}}))}))},e.prototype.getStorageAt=function(t,e,r){return i(this,void 0,void 0,(function(){var n,i;return o(this,(function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,U.resolveProperties({address:this._getAddress(t),blockTag:this._getBlockTag(r),position:Promise.resolve(e).then((function(t){return B.hexValue(t)}))})];case 2:return n=o.sent(),i=B.hexlify,[4,this.perform("getStorageAt",n)];case 3:return[2,i.apply(void 0,[o.sent()])]}}))}))},e.prototype._wrapTransaction=function(t,e){var r=this;if(null!=e&&32!==B.hexDataLength(e))throw new Error("invalid response - sendTransaction");var n=t;return null!=e&&t.hash!==e&&s.throwError("Transaction hash mismatch from Provider.sendTransaction.",C.Logger.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),n.wait=function(e){return i(r,void 0,void 0,(function(){var r;return o(this,(function(n){switch(n.label){case 0:return 0!==e&&(this._emitted["t:"+t.hash]="pending"),[4,this.waitForTransaction(t.hash,e)];case 1:return r=n.sent(),null==r&&0===e?[2,null]:(this._emitted["t:"+t.hash]=r.blockNumber,0===r.status&&s.throwError("transaction failed",C.Logger.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:r}),[2,r])}}))}))},n},e.prototype.sendTransaction=function(t){return i(this,void 0,void 0,(function(){var e,r,n,i;return o(this,(function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,Promise.resolve(t).then((function(t){return B.hexlify(t)}))];case 2:e=o.sent(),r=this.formatter.transaction(t),o.label=3;case 3:return o.trys.push([3,5,,6]),[4,this.perform("sendTransaction",{signedTransaction:e})];case 4:return n=o.sent(),[2,this._wrapTransaction(r,n)];case 5:throw i=o.sent(),i.transaction=r,i.transactionHash=r.hash,i;case 6:return[2]}}))}))},e.prototype._getTransactionRequest=function(t){return i(this,void 0,void 0,(function(){var e,r,n,i,s=this;return o(this,(function(o){switch(o.label){case 0:return[4,t];case 1:return e=o.sent(),r={},["from","to"].forEach((function(t){null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((function(t){return t?s._getAddress(t):null})))})),["gasLimit","gasPrice","value"].forEach((function(t){null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((function(t){return t?j.BigNumber.from(t):null})))})),["data"].forEach((function(t){null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((function(t){return t?B.hexlify(t):null})))})),i=(n=this.formatter).transactionRequest,[4,U.resolveProperties(r)];case 2:return[2,i.apply(n,[o.sent()])]}}))}))},e.prototype._getFilter=function(t){return i(this,void 0,void 0,(function(){var e,r,n,i=this;return o(this,(function(o){switch(o.label){case 0:return[4,t];case 1:return t=o.sent(),e={},null!=t.address&&(e.address=this._getAddress(t.address)),["blockHash","topics"].forEach((function(r){null!=t[r]&&(e[r]=t[r])})),["fromBlock","toBlock"].forEach((function(r){null!=t[r]&&(e[r]=i._getBlockTag(t[r]))})),n=(r=this.formatter).filter,[4,U.resolveProperties(e)];case 2:return[2,n.apply(r,[o.sent()])]}}))}))},e.prototype.call=function(t,e){return i(this,void 0,void 0,(function(){var r,n;return o(this,(function(i){switch(i.label){case 0:return[4,this.getNetwork()];case 1:return i.sent(),[4,U.resolveProperties({transaction:this._getTransactionRequest(t),blockTag:this._getBlockTag(e)})];case 2:return r=i.sent(),n=B.hexlify,[4,this.perform("call",r)];case 3:return[2,n.apply(void 0,[i.sent()])]}}))}))},e.prototype.estimateGas=function(t){return i(this,void 0,void 0,(function(){var e,r,n;return o(this,(function(i){switch(i.label){case 0:return[4,this.getNetwork()];case 1:return i.sent(),[4,U.resolveProperties({transaction:this._getTransactionRequest(t)})];case 2:return e=i.sent(),n=(r=j.BigNumber).from,[4,this.perform("estimateGas",e)];case 3:return[2,n.apply(r,[i.sent()])]}}))}))},e.prototype._getAddress=function(t){return i(this,void 0,void 0,(function(){var e;return o(this,(function(r){switch(r.label){case 0:return[4,this.resolveName(t)];case 1:return e=r.sent(),null==e&&s.throwError("ENS name not configured",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName("+JSON.stringify(t)+")"}),[2,e]}}))}))},e.prototype._getBlock=function(t,e){return i(this,void 0,void 0,(function(){var r,n,a,u,h,l=this;return o(this,(function(c){switch(c.label){case 0:return[4,this.getNetwork()];case 1:return c.sent(),[4,t];case 2:return t=c.sent(),r=-128,n={includeTransactions:!!e},B.isHexString(t,32)?(n.blockHash=t,[3,6]):[3,3];case 3:return c.trys.push([3,5,,6]),a=n,h=(u=this.formatter).blockTag,[4,this._getBlockTag(t)];case 4:return a.blockTag=h.apply(u,[c.sent()]),B.isHexString(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16)),[3,6];case 5:return c.sent(),s.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",t),[3,6];case 6:return[2,xi.poll((function(){return i(l,void 0,void 0,(function(){var t,i,s,a,u;return o(this,(function(o){switch(o.label){case 0:return[4,this.perform("getBlock",n)];case 1:if(t=o.sent(),null==t)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?[2,null]:[2,void 0];if(!e)return[3,8];i=null,s=0,o.label=2;case 2:return s<t.transactions.length?(a=t.transactions[s],null!=a.blockNumber?[3,3]:(a.confirmations=0,[3,6])):[3,7];case 3:return null!=a.confirmations?[3,6]:null!=i?[3,5]:[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 4:i=o.sent(),o.label=5;case 5:u=i-a.blockNumber+1,u<=0&&(u=1),a.confirmations=u,o.label=6;case 6:return s++,[3,2];case 7:return[2,this.formatter.blockWithTransactions(t)];case 8:return[2,this.formatter.block(t)]}}))}))}),{oncePoll:this})]}}))}))},e.prototype.getBlock=function(t){return this._getBlock(t,!1)},e.prototype.getBlockWithTransactions=function(t){return this._getBlock(t,!0)},e.prototype.getTransaction=function(t){return i(this,void 0,void 0,(function(){var e,r=this;return o(this,(function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,t];case 2:return t=n.sent(),e={transactionHash:this.formatter.hash(t,!0)},[2,xi.poll((function(){return i(r,void 0,void 0,(function(){var r,n,i,s;return o(this,(function(o){switch(o.label){case 0:return[4,this.perform("getTransaction",e)];case 1:return r=o.sent(),null==r?null==this._emitted["t:"+t]?[2,null]:[2,void 0]:(n=this.formatter.transactionResponse(r),null!=n.blockNumber?[3,2]:(n.confirmations=0,[3,4]));case 2:return null!=n.confirmations?[3,4]:[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:i=o.sent(),s=i-n.blockNumber+1,s<=0&&(s=1),n.confirmations=s,o.label=4;case 4:return[2,this._wrapTransaction(n)]}}))}))}),{oncePoll:this})]}}))}))},e.prototype.getTransactionReceipt=function(t){return i(this,void 0,void 0,(function(){var e,r=this;return o(this,(function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,t];case 2:return t=n.sent(),e={transactionHash:this.formatter.hash(t,!0)},[2,xi.poll((function(){return i(r,void 0,void 0,(function(){var r,n,i,s;return o(this,(function(o){switch(o.label){case 0:return[4,this.perform("getTransactionReceipt",e)];case 1:return r=o.sent(),null==r?null==this._emitted["t:"+t]?[2,null]:[2,void 0]:null==r.blockHash?[2,void 0]:(n=this.formatter.receipt(r),null!=n.blockNumber?[3,2]:(n.confirmations=0,[3,4]));case 2:return null!=n.confirmations?[3,4]:[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:i=o.sent(),s=i-n.blockNumber+1,s<=0&&(s=1),n.confirmations=s,o.label=4;case 4:return[2,n]}}))}))}),{oncePoll:this})]}}))}))},e.prototype.getLogs=function(t){return i(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,U.resolveProperties({filter:this._getFilter(t)})];case 2:return e=n.sent(),[4,this.perform("getLogs",e)];case 3:return r=n.sent(),r.forEach((function(t){null==t.removed&&(t.removed=!1)})),[2,Hi.Formatter.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)]}}))}))},e.prototype.getEtherPrice=function(){return i(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.getNetwork()];case 1:return t.sent(),[2,this.perform("getEtherPrice",{})]}}))}))},e.prototype._getBlockTag=function(t){return i(this,void 0,void 0,(function(){var e;return o(this,(function(r){switch(r.label){case 0:return[4,t];case 1:return t=r.sent(),"number"===typeof t&&t<0?(t%1&&s.throwArgumentError("invalid BlockTag","blockTag",t),[4,this._getInternalBlockNumber(100+2*this.pollingInterval)]):[3,3];case 2:return e=r.sent(),e+=t,e<0&&(e=0),[2,this.formatter.blockTag(e)];case 3:return[2,this.formatter.blockTag(t)]}}))}))},e.prototype.getResolver=function(t){return i(this,void 0,void 0,(function(){var e;return o(this,(function(r){switch(r.label){case 0:return[4,this._getResolver(t)];case 1:return e=r.sent(),null==e?[2,null]:[2,new y(this,e,t)]}}))}))},e.prototype._getResolver=function(t){return i(this,void 0,void 0,(function(){var e,r,n,i;return o(this,(function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return e=o.sent(),e.ensAddress||s.throwError("network does not support ENS",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"ENS",network:e.name}),r={to:e.ensAddress,data:"0x0178b8bf"+vt.namehash(t).substring(2)},i=(n=this.formatter).callAddress,[4,this.call(r)];case 2:return[2,i.apply(n,[o.sent()])]}}))}))},e.prototype.resolveName=function(t){return i(this,void 0,void 0,(function(){var e;return o(this,(function(r){switch(r.label){case 0:return[4,t];case 1:t=r.sent();try{return[2,Promise.resolve(this.formatter.address(t))]}catch(n){if(B.isHexString(t))throw n}return"string"!==typeof t&&s.throwArgumentError("invalid ENS name","name",t),[4,this.getResolver(t)];case 2:return e=r.sent(),e?[4,e.getAddress()]:[2,null];case 3:return[2,r.sent()]}}))}))},e.prototype.lookupAddress=function(t){return i(this,void 0,void 0,(function(){var e,r,n,i,s,a,u;return o(this,(function(o){switch(o.label){case 0:return[4,t];case 1:return t=o.sent(),t=this.formatter.address(t),e=t.substring(2).toLowerCase()+".addr.reverse",[4,this._getResolver(e)];case 2:return r=o.sent(),r?(i=B.arrayify,[4,this.call({to:r,data:"0x691f3431"+vt.namehash(e).substring(2)})]):[2,null];case 3:return n=i.apply(void 0,[o.sent()]),n.length<32||!j.BigNumber.from(n.slice(0,32)).eq(32)?[2,null]:(n=n.slice(32),n.length<32?[2,null]:(s=j.BigNumber.from(n.slice(0,32)).toNumber(),n=n.slice(32),s>n.length?[2,null]:(a=at.toUtf8String(n.slice(0,s)),[4,this.resolveName(a)])));case 4:return u=o.sent(),u!=t?[2,null]:[2,a]}}))}))},e.prototype.perform=function(t,e){return s.throwError(t+" not implemented",C.Logger.errors.NOT_IMPLEMENTED,{operation:t})},e.prototype._startEvent=function(t){this.polling=this._events.filter((function(t){return t.pollable()})).length>0},e.prototype._stopEvent=function(t){this.polling=this._events.filter((function(t){return t.pollable()})).length>0},e.prototype._addEventListener=function(t,e,r){var n=new p(l(t),e,r);return this._events.push(n),this._startEvent(n),this},e.prototype.on=function(t,e){return this._addEventListener(t,e,!1)},e.prototype.once=function(t,e){return this._addEventListener(t,e,!0)},e.prototype.emit=function(t){for(var e=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=!1,o=[],s=l(t);return this._events=this._events.filter((function(t){return t.tag!==s||(setTimeout((function(){t.listener.apply(e,r)}),0),i=!0,!t.once||(o.push(t),!1))})),o.forEach((function(t){e._stopEvent(t)})),i},e.prototype.listenerCount=function(t){if(!t)return this._events.length;var e=l(t);return this._events.filter((function(t){return t.tag===e})).length},e.prototype.listeners=function(t){if(null==t)return this._events.map((function(t){return t.listener}));var e=l(t);return this._events.filter((function(t){return t.tag===e})).map((function(t){return t.listener}))},e.prototype.off=function(t,e){var r=this;if(null==e)return this.removeAllListeners(t);var n=[],i=!1,o=l(t);return this._events=this._events.filter((function(t){return t.tag!==o||t.listener!=e||(!!i||(i=!0,n.push(t),!1))})),n.forEach((function(t){r._stopEvent(t)})),this},e.prototype.removeAllListeners=function(t){var e=this,r=[];if(null==t)r=this._events,this._events=[];else{var n=l(t);this._events=this._events.filter((function(t){return t.tag!==n||(r.push(t),!1)}))}return r.forEach((function(t){e._stopEvent(t)})),this},e}(wt.Provider);e.BaseProvider=M}))),Vi=(i($i),$i.Event,$i.Resolver,$i.BaseProvider,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=null;try{if(r=WebSocket,null==r)throw new Error("inject please")}catch(i){var n=new C.Logger(qi.version);r=function(){n.throwError("WebSockets not supported in this environment",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}t.exports=r}))),Ki=(i(Vi),o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var s=new C.Logger(qi.version),a=["call","estimateGas"];function u(t,e,r){var n=e.message;e.code===C.Logger.errors.SERVER_ERROR&&e.error&&"string"===typeof e.error.message?n=e.error.message:"string"===typeof e.body?n=e.body:"string"===typeof e.responseText&&(n=e.responseText),n=(n||"").toLowerCase();var i=r.transaction||r.signedTransaction;throw n.match(/insufficient funds/)&&s.throwError("insufficient funds for intrinsic transaction cost",C.Logger.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:i}),n.match(/nonce too low/)&&s.throwError("nonce has already been used",C.Logger.errors.NONCE_EXPIRED,{error:e,method:t,transaction:i}),n.match(/replacement transaction underpriced/)&&s.throwError("replacement fee too low",C.Logger.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:i}),a.indexOf(t)>=0&&n.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&s.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",C.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:i}),e}function h(t){return new Promise((function(e){setTimeout(e,t)}))}function l(t){if(t.error){var e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function c(t){return t?t.toLowerCase():t}var f={},d=function(t){function e(r,n,i){var o=this.constructor,a=this;if(s.checkNew(o,e),a=t.call(this)||this,r!==f)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return U.defineReadOnly(a,"provider",n),null==i&&(i=0),"string"===typeof i?(U.defineReadOnly(a,"_address",a.provider.formatter.address(i)),U.defineReadOnly(a,"_index",null)):"number"===typeof i?(U.defineReadOnly(a,"_index",i),U.defineReadOnly(a,"_address",null)):s.throwArgumentError("invalid address or index","addressOrIndex",i),a}return r(e,t),e.prototype.connect=function(t){return s.throwError("cannot alter JSON-RPC Signer connection",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})},e.prototype.connectUnchecked=function(){return new p(f,this.provider,this._address||this._index)},e.prototype.getAddress=function(){var t=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(e){return e.length<=t._index&&s.throwError("unknown account #"+t._index,C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),t.provider.formatter.address(e[t._index])}))},e.prototype.sendUncheckedTransaction=function(t){var e=this;t=U.shallowCopy(t);var r=this.getAddress().then((function(t){return t&&(t=t.toLowerCase()),t}));if(null==t.gasLimit){var n=U.shallowCopy(t);n.from=r,t.gasLimit=this.provider.estimateGas(n)}return U.resolveProperties({tx:U.resolveProperties(t),sender:r}).then((function(r){var n=r.tx,i=r.sender;null!=n.from?n.from.toLowerCase()!==i&&s.throwArgumentError("from address mismatch","transaction",t):n.from=i;var o=e.provider.constructor.hexlifyTransaction(n,{from:!0});return e.provider.send("eth_sendTransaction",[o]).then((function(t){return t}),(function(t){return u("sendTransaction",t,o)}))}))},e.prototype.signTransaction=function(t){return s.throwError("signing transactions is unsupported",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})},e.prototype.sendTransaction=function(t){var e=this;return this.sendUncheckedTransaction(t).then((function(t){return xi.poll((function(){return e.provider.getTransaction(t).then((function(r){if(null!==r)return e.provider._wrapTransaction(r,t)}))}),{onceBlock:e.provider}).catch((function(e){throw e.transactionHash=t,e}))}))},e.prototype.signMessage=function(t){return i(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){switch(n.label){case 0:return e="string"===typeof t?at.toUtf8Bytes(t):t,[4,this.getAddress()];case 1:return r=n.sent(),[4,this.provider.send("eth_sign",[r.toLowerCase(),B.hexlify(e)])];case 2:return[2,n.sent()]}}))}))},e.prototype._signTypedData=function(t,e,r){return i(this,void 0,void 0,(function(){var n,i,s=this;return o(this,(function(o){switch(o.label){case 0:return[4,vt._TypedDataEncoder.resolveNames(t,e,r,(function(t){return s.provider.resolveName(t)}))];case 1:return n=o.sent(),[4,this.getAddress()];case 2:return i=o.sent(),[4,this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(vt._TypedDataEncoder.getPayload(n.domain,e,n.value))])];case 3:return[2,o.sent()]}}))}))},e.prototype.unlock=function(t){return i(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){switch(n.label){case 0:return e=this.provider,[4,this.getAddress()];case 1:return r=n.sent(),[2,e.send("personal_unlockAccount",[r.toLowerCase(),t,null])]}}))}))},e}(_t.Signer);e.JsonRpcSigner=d;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sendTransaction=function(t){var e=this;return this.sendUncheckedTransaction(t).then((function(t){return{hash:t,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(r){return e.provider.waitForTransaction(t,r)}}}))},e}(d),m={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0},v=function(t){function e(r,n){var i=this.constructor,o=this;s.checkNew(i,e);var a=n;return null==a&&(a=new Promise((function(t,e){setTimeout((function(){o.detectNetwork().then((function(e){t(e)}),(function(t){e(t)}))}),0)}))),o=t.call(this,a)||this,r||(r=U.getStatic(o.constructor,"defaultUrl")()),"string"===typeof r?U.defineReadOnly(o,"connection",Object.freeze({url:r})):U.defineReadOnly(o,"connection",Object.freeze(U.shallowCopy(r))),o._nextId=42,o}return r(e,t),e.defaultUrl=function(){return"http://localhost:8545"},e.prototype.detectNetwork=function(){return i(this,void 0,void 0,(function(){var t,e;return o(this,(function(r){switch(r.label){case 0:return[4,h(0)];case 1:r.sent(),t=null,r.label=2;case 2:return r.trys.push([2,4,,9]),[4,this.send("eth_chainId",[])];case 3:return t=r.sent(),[3,9];case 4:r.sent(),r.label=5;case 5:return r.trys.push([5,7,,8]),[4,this.send("net_version",[])];case 6:return t=r.sent(),[3,8];case 7:return r.sent(),[3,8];case 8:return[3,9];case 9:if(null!=t){e=U.getStatic(this.constructor,"getNetwork");try{return[2,e(j.BigNumber.from(t).toNumber())]}catch(n){return[2,s.throwError("could not detect network",C.Logger.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:n})]}}return[2,s.throwError("could not detect network",C.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})]}}))}))},e.prototype.getSigner=function(t){return new d(f,this,t)},e.prototype.getUncheckedSigner=function(t){return this.getSigner(t).connectUnchecked()},e.prototype.listAccounts=function(){var t=this;return this.send("eth_accounts",[]).then((function(e){return e.map((function(e){return t.formatter.address(e)}))}))},e.prototype.send=function(t,e){var r=this,n={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};return this.emit("debug",{action:"request",request:U.deepCopy(n),provider:this}),xi.fetchJson(this.connection,JSON.stringify(n),l).then((function(t){return r.emit("debug",{action:"response",request:n,response:t,provider:r}),t}),(function(t){throw r.emit("debug",{action:"response",error:t,request:n,provider:r}),t}))},e.prototype.prepareRequest=function(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[c(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[c(e.address),e.blockTag]];case"getCode":return["eth_getCode",[c(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[c(e.address),e.position,e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":return e.blockTag?["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]]:e.blockHash?["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":var r=U.getStatic(this.constructor,"hexlifyTransaction");return["eth_call",[r(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":r=U.getStatic(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[r(e.transaction,{from:!0})]];case"getLogs":return e.filter&&null!=e.filter.address&&(e.filter.address=c(e.filter.address)),["eth_getLogs",[e.filter]];default:break}return null},e.prototype.perform=function(t,e){return i(this,void 0,void 0,(function(){var r,n;return o(this,(function(i){switch(i.label){case 0:r=this.prepareRequest(t,e),null==r&&s.throwError(t+" not implemented",C.Logger.errors.NOT_IMPLEMENTED,{operation:t}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.send(r[0],r[1])];case 2:return[2,i.sent()];case 3:return n=i.sent(),[2,u(t,n,e)];case 4:return[2]}}))}))},e.prototype._startEvent=function(e){"pending"===e.tag&&this._startPending(),t.prototype._startEvent.call(this,e)},e.prototype._startPending=function(){if(null==this._pendingFilter){var t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then((function(r){function n(){t.send("eth_getFilterChanges",[r]).then((function(r){if(t._pendingFilter!=e)return null;var n=Promise.resolve();return r.forEach((function(e){t._emitted["t:"+e.toLowerCase()]="pending",n=n.then((function(){return t.getTransaction(e).then((function(e){return t.emit("pending",e),null}))}))})),n.then((function(){return h(1e3)}))})).then((function(){if(t._pendingFilter==e)return setTimeout((function(){n()}),0),null;t.send("eth_uninstallFilter",[r])})).catch((function(t){}))}return n(),r})).catch((function(t){}))}},e.prototype._stopEvent=function(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),t.prototype._stopEvent.call(this,e)},e.hexlifyTransaction=function(t,e){var r=U.shallowCopy(m);if(e)for(var n in e)e[n]&&(r[n]=!0);U.checkProperties(t,r);var i={};return["gasLimit","gasPrice","nonce","value"].forEach((function(e){if(null!=t[e]){var r=B.hexValue(t[e]);"gasLimit"===e&&(e="gas"),i[e]=r}})),["from","to","data"].forEach((function(e){null!=t[e]&&(i[e]=B.hexlify(t[e]))})),i},e}($i.BaseProvider);e.JsonRpcProvider=v}))),Wi=(i(Ki),Ki.JsonRpcSigner,Ki.JsonRpcProvider,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},s=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=s(Vi),u=new C.Logger(qi.version),h=1,l=function(t){function e(e,r){var n=this;"any"===r&&u.throwError("WebSocketProvider does not support 'any' network yet",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),n=t.call(this,e,r)||this,n._pollingInterval=-1,n._wsReady=!1,U.defineReadOnly(n,"_websocket",new a.default(n.connection.url)),U.defineReadOnly(n,"_requests",{}),U.defineReadOnly(n,"_subs",{}),U.defineReadOnly(n,"_subIds",{}),U.defineReadOnly(n,"_detectNetwork",t.prototype.detectNetwork.call(n)),n._websocket.onopen=function(){n._wsReady=!0,Object.keys(n._requests).forEach((function(t){n._websocket.send(n._requests[t].payload)}))},n._websocket.onmessage=function(t){var e=t.data,r=JSON.parse(e);if(null!=r.id){var i=String(r.id),o=n._requests[i];if(delete n._requests[i],void 0!==r.result)o.callback(null,r.result),n.emit("debug",{action:"response",request:JSON.parse(o.payload),response:r.result,provider:n});else{var s=null;r.error?(s=new Error(r.error.message||"unknown error"),U.defineReadOnly(s,"code",r.error.code||null),U.defineReadOnly(s,"response",e)):s=new Error("unknown error"),o.callback(s,void 0),n.emit("debug",{action:"response",error:s,request:JSON.parse(o.payload),provider:n})}}else if("eth_subscription"===r.method){var a=n._subs[r.params.subscription];a&&a.processFunc(r.params.result)}else console.warn("this should not happen")};var i=setInterval((function(){n.emit("poll")}),1e3);return i.unref&&i.unref(),n}return r(e,t),e.prototype.detectNetwork=function(){return this._detectNetwork},Object.defineProperty(e.prototype,"pollingInterval",{get:function(){return 0},set:function(t){u.throwError("cannot set polling interval on WebSocketProvider",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})},enumerable:!0,configurable:!0}),e.prototype.resetEventsBlock=function(t){u.throwError("cannot reset events block on WebSocketProvider",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})},e.prototype.poll=function(){return i(this,void 0,void 0,(function(){return o(this,(function(t){return[2,null]}))}))},Object.defineProperty(e.prototype,"polling",{set:function(t){t&&u.throwError("cannot set polling on WebSocketProvider",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})},enumerable:!0,configurable:!0}),e.prototype.send=function(t,e){var r=this,n=h++;return new Promise((function(i,o){function s(t,e){return t?o(t):i(e)}var a=JSON.stringify({method:t,params:e,id:n,jsonrpc:"2.0"});r.emit("debug",{action:"request",request:JSON.parse(a),provider:r}),r._requests[String(n)]={callback:s,payload:a},r._wsReady&&r._websocket.send(a)}))},e.defaultUrl=function(){return"ws://localhost:8546"},e.prototype._subscribe=function(t,e,r){return i(this,void 0,void 0,(function(){var n,i,s=this;return o(this,(function(o){switch(o.label){case 0:return n=this._subIds[t],null==n&&(n=Promise.all(e).then((function(t){return s.send("eth_subscribe",t)})),this._subIds[t]=n),[4,n];case 1:return i=o.sent(),this._subs[i]={tag:t,processFunc:r},[2]}}))}))},e.prototype._startEvent=function(t){var e=this;switch(t.type){case"block":this._subscribe("block",["newHeads"],(function(t){var r=j.BigNumber.from(t.number).toNumber();e._emitted.block=r,e.emit("block",r)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(function(t){e.emit("pending",t)}));break;case"filter":this._subscribe(t.tag,["logs",this._getFilter(t.filter)],(function(r){null==r.removed&&(r.removed=!1),e.emit(t.filter,e.formatter.filterLog(r))}));break;case"tx":var r=function(t){var r=t.hash;e.getTransactionReceipt(r).then((function(t){t&&e.emit(r,t)}))};r(t),this._subscribe("tx",["newHeads"],(function(t){e._events.filter((function(t){return"tx"===t.type})).forEach(r)}));break;case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",t);break}},e.prototype._stopEvent=function(t){var e=this,r=t.tag;if("tx"===t.type){if(this._events.filter((function(t){return"tx"===t.type})).length)return;r="tx"}else if(this.listenerCount(t.event))return;var n=this._subIds[r];n&&(delete this._subIds[r],n.then((function(t){e._subs[t]&&(delete e._subs[t],e.send("eth_unsubscribe",[t]))})))},e.prototype.destroy=function(){return i(this,void 0,void 0,(function(){var t=this;return o(this,(function(e){switch(e.label){case 0:return this._websocket.readyState!==a.default.CONNECTING?[3,2]:[4,new Promise((function(e){t._websocket.onopen=function(){e(!0)},t._websocket.onerror=function(){e(!1)}}))];case 1:e.sent(),e.label=2;case 2:return this._websocket.close(1e3),[2]}}))}))},e}(Ki.JsonRpcProvider);e.WebSocketProvider=l}))),Gi=(i(Wi),Wi.WebSocketProvider,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var s=new C.Logger(qi.version),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.detectNetwork=function(){return i(this,void 0,void 0,(function(){var e;return o(this,(function(r){switch(r.label){case 0:return e=this.network,null!=e?[3,2]:[4,t.prototype.detectNetwork.call(this)];case 1:e=r.sent(),e||s.throwError("no network detected",C.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(U.defineReadOnly(this,"_network",e),this.emit("network",e,null)),r.label=2;case 2:return[2,e]}}))}))},e}(Ki.JsonRpcProvider);e.StaticJsonRpcProvider=a;var u=function(t){function e(r,n){var i=this.constructor,o=this;s.checkAbstract(i,e),r=U.getStatic(i,"getNetwork")(r),n=U.getStatic(i,"getApiKey")(n);var a=U.getStatic(i,"getUrl")(r,n);return o=t.call(this,a,r)||this,"string"===typeof n?U.defineReadOnly(o,"apiKey",n):null!=n&&Object.keys(n).forEach((function(t){U.defineReadOnly(o,t,n[t])})),o}return r(e,t),e.prototype._startPending=function(){s.warn("WARNING: API provider does not support pending filters")},e.prototype.isCommunityResource=function(){return!1},e.prototype.getSigner=function(t){return s.throwError("API provider does not support signing",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})},e.prototype.listAccounts=function(){return Promise.resolve([])},e.getApiKey=function(t){return t},e.getUrl=function(t,e){return s.throwError("not implemented; sub-classes must override getUrl",C.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})},e}(a);e.UrlJsonRpcProvider=u}))),Zi=(i(Gi),Gi.StaticJsonRpcProvider,Gi.UrlJsonRpcProvider,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=new C.Logger(qi.version),o="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",s=function(t){function e(e,r){var n=this,i=new a(e,r),o=i.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return n=t.call(this,o,i.network)||this,U.defineReadOnly(n,"apiKey",i.apiKey),n}return r(e,t),e.prototype.isCommunityResource=function(){return this.apiKey===o},e}(Wi.WebSocketProvider);e.AlchemyWebSocketProvider=s;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.getWebSocketProvider=function(t,e){return new s(t,e)},e.getApiKey=function(t){return null==t?o:(t&&"string"!==typeof t&&i.throwArgumentError("invalid apiKey","apiKey",t),t)},e.getUrl=function(t,e){var r=null;switch(t.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"ropsten":r="eth-ropsten.alchemyapi.io/v2/";break;case"rinkeby":r="eth-rinkeby.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.alchemyapi.io/v2/";break;case"kovan":r="eth-kovan.alchemyapi.io/v2/";break;default:i.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+e,throttleCallback:function(t,r){return e===o&&Hi.showThrottleMessage(),Promise.resolve(!0)}}},e.prototype.isCommunityResource=function(){return this.apiKey===o},e}(Gi.UrlJsonRpcProvider);e.AlchemyProvider=a}))),Ji=(i(Zi),Zi.AlchemyWebSocketProvider,Zi.AlchemyProvider,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var s=new C.Logger(qi.version),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.getApiKey=function(t){return null!=t&&s.throwArgumentError("apiKey not supported for cloudflare","apiKey",t),null},e.getUrl=function(t,e){var r=null;switch(t.name){case"homestead":r="https://cloudflare-eth.com/";break;default:s.throwArgumentError("unsupported network","network",arguments[0])}return r},e.prototype.perform=function(e,r){return i(this,void 0,void 0,(function(){var n;return o(this,(function(i){switch(i.label){case 0:return"getBlockNumber"!==e?[3,2]:[4,t.prototype.perform.call(this,"getBlock",{blockTag:"latest"})];case 1:return n=i.sent(),[2,n.number];case 2:return[2,t.prototype.perform.call(this,e,r)]}}))}))},e}(Gi.UrlJsonRpcProvider);e.CloudflareProvider=a}))),Xi=(i(Ji),Ji.CloudflareProvider,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var s=new C.Logger(qi.version);function a(t){var e={};for(var r in t)if(null!=t[r]){var n=B.hexlify(t[r]);({gasLimit:!0,gasPrice:!0,nonce:!0,value:!0})[r]&&(n=B.hexValue(n)),e[r]=n}return e}function u(t){if(0==t.status&&("No records found"===t.message||"No transactions found"===t.message))return t.result;if(1!=t.status||"OK"!=t.message){var e=new Error("invalid response");throw e.result=JSON.stringify(t),(t.result||"").toLowerCase().indexOf("rate limit")>=0&&(e.throttleRetry=!0),e}return t.result}function h(t){if(t&&0==t.status&&"NOTOK"==t.message&&(t.result||"").toLowerCase().indexOf("rate limit")>=0){var e=new Error("throttled response");throw e.result=JSON.stringify(t),e.throttleRetry=!0,e}if("2.0"!=t.jsonrpc){e=new Error("invalid response");throw e.result=JSON.stringify(t),e}if(t.error){e=new Error(t.error.message||"unknown error");throw t.error.code&&(e.code=t.error.code),t.error.data&&(e.data=t.error.data),e}return t.result}function l(t){if("pending"===t)throw new Error("pending not supported");return"latest"===t?t:parseInt(t.substring(2),16)}var c="9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB";function f(t,e,r){var n=e.message;throw e.code===C.Logger.errors.SERVER_ERROR&&(e.error&&"string"===typeof e.error.message?n=e.error.message:"string"===typeof e.body?n=e.body:"string"===typeof e.responseText&&(n=e.responseText)),n=(n||"").toLowerCase(),n.match(/insufficient funds/)&&s.throwError("insufficient funds for intrinsic transaction cost",C.Logger.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low/)&&s.throwError("nonce has already been used",C.Logger.errors.NONCE_EXPIRED,{error:e,method:t,transaction:r}),n.match(/another transaction with same nonce/)&&s.throwError("replacement fee too low",C.Logger.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:r}),n.match(/execution failed due to an exception/)&&s.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",C.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:r}),e}var d=function(t){function e(r,n){var i=this.constructor,o=this;s.checkNew(i,e),o=t.call(this,r)||this;var a="invalid";o.network&&(a=o.network.name);var u=null;switch(a){case"homestead":u="https://api.etherscan.io";break;case"ropsten":u="https://api-ropsten.etherscan.io";break;case"rinkeby":u="https://api-rinkeby.etherscan.io";break;case"kovan":u="https://api-kovan.etherscan.io";break;case"goerli":u="https://api-goerli.etherscan.io";break;default:throw new Error("unsupported network")}return U.defineReadOnly(o,"baseUrl",u),U.defineReadOnly(o,"apiKey",n||c),o}return r(e,t),e.prototype.detectNetwork=function(){return i(this,void 0,void 0,(function(){return o(this,(function(t){return[2,this.network]}))}))},e.prototype.perform=function(e,r){return i(this,void 0,void 0,(function(){var n,c,d,p,m,v,g,y,b,w,M,_,k,S,x=this;return o(this,(function(E){switch(E.label){case 0:switch(n=this.baseUrl+"/api",c="",this.apiKey&&(c+="&apikey="+this.apiKey),d=function(t,e,r){return i(x,void 0,void 0,(function(){var n,i,s,a=this;return o(this,(function(o){switch(o.label){case 0:return this.emit("debug",{action:"request",request:t,provider:this}),n={url:t,throttleSlotInterval:1e3,throttleCallback:function(t,e){return a.isCommunityResource()&&Hi.showThrottleMessage(),Promise.resolve(!0)}},i=null,e&&(n.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},i=Object.keys(e).map((function(t){return t+"="+e[t]})).join("&")),[4,xi.fetchJson(n,i,r||h)];case 1:return s=o.sent(),this.emit("debug",{action:"response",request:t,response:U.deepCopy(s),provider:this}),[2,s]}}))}))},p=e,p){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,4];case"getCode":return[3,5];case"getStorageAt":return[3,6];case"sendTransaction":return[3,7];case"getBlock":return[3,8];case"getTransaction":return[3,9];case"getTransactionReceipt":return[3,10];case"call":return[3,11];case"estimateGas":return[3,15];case"getLogs":return[3,19];case"getEtherPrice":return[3,26]}return[3,28];case 1:return n+="?module=proxy&action=eth_blockNumber"+c,[2,d(n,null)];case 2:return n+="?module=proxy&action=eth_gasPrice"+c,[2,d(n,null)];case 3:return n+="?module=account&action=balance&address="+r.address,n+="&tag="+r.blockTag+c,[2,d(n,null,u)];case 4:return n+="?module=proxy&action=eth_getTransactionCount&address="+r.address,n+="&tag="+r.blockTag+c,[2,d(n,null)];case 5:return n+="?module=proxy&action=eth_getCode&address="+r.address,n+="&tag="+r.blockTag+c,[2,d(n,null)];case 6:return n+="?module=proxy&action=eth_getStorageAt&address="+r.address,n+="&position="+r.position,n+="&tag="+r.blockTag+c,[2,d(n,null)];case 7:return[2,d(n,{module:"proxy",action:"eth_sendRawTransaction",hex:r.signedTransaction,apikey:this.apiKey}).catch((function(t){return f("sendTransaction",t,r.signedTransaction)}))];case 8:if(r.blockTag)return n+="?module=proxy&action=eth_getBlockByNumber&tag="+r.blockTag,r.includeTransactions?n+="&boolean=true":n+="&boolean=false",n+=c,[2,d(n,null)];throw new Error("getBlock by blockHash not implemented");case 9:return n+="?module=proxy&action=eth_getTransactionByHash&txhash="+r.transactionHash,n+=c,[2,d(n,null)];case 10:return n+="?module=proxy&action=eth_getTransactionReceipt&txhash="+r.transactionHash,n+=c,[2,d(n,null)];case 11:if("latest"!==r.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");v=a(r.transaction),v.module="proxy",v.action="eth_call",v.apikey=this.apiKey,E.label=12;case 12:return E.trys.push([12,14,,15]),[4,d(n,v)];case 13:return[2,E.sent()];case 14:return m=E.sent(),[2,f("call",m,r.transaction)];case 15:v=a(r.transaction),v.module="proxy",v.action="eth_estimateGas",v.apikey=this.apiKey,E.label=16;case 16:return E.trys.push([16,18,,19]),[4,d(n,v)];case 17:return[2,E.sent()];case 18:return g=E.sent(),[2,f("estimateGas",g,r.transaction)];case 19:return n+="?module=logs&action=getLogs",r.filter.fromBlock&&(n+="&fromBlock="+l(r.filter.fromBlock)),r.filter.toBlock&&(n+="&toBlock="+l(r.filter.toBlock)),r.filter.address&&(n+="&address="+r.filter.address),r.filter.topics&&r.filter.topics.length>0&&(r.filter.topics.length>1&&s.throwError("unsupported topic count",C.Logger.errors.UNSUPPORTED_OPERATION,{topics:r.filter.topics}),1===r.filter.topics.length&&(y=r.filter.topics[0],"string"===typeof y&&66===y.length||s.throwError("unsupported topic format",C.Logger.errors.UNSUPPORTED_OPERATION,{topic0:y}),n+="&topic0="+y)),n+=c,[4,d(n,null,u)];case 20:b=E.sent(),w={},M=0,E.label=21;case 21:return M<b.length?(_=b[M],null!=_.blockHash?[3,24]:null!=w[_.blockNumber]?[3,23]:[4,this.getBlock(_.blockNumber)]):[3,25];case 22:k=E.sent(),k&&(w[_.blockNumber]=k.hash),E.label=23;case 23:_.blockHash=w[_.blockNumber],E.label=24;case 24:return M++,[3,21];case 25:return[2,b];case 26:return"homestead"!==this.network.name?[2,0]:(n+="?module=stats&action=ethprice",n+=c,S=parseFloat,[4,d(n,null,u)]);case 27:return[2,S.apply(void 0,[E.sent().ethusd])];case 28:return[3,29];case 29:return[2,t.prototype.perform.call(this,e,r)]}}))}))},e.prototype.getHistory=function(t,e,r){var n=this,i=this.baseUrl,o="";return this.apiKey&&(o+="&apikey="+this.apiKey),null==e&&(e=0),null==r&&(r=99999999),this.resolveName(t).then((function(t){i+="/api?module=account&action=txlist&address="+t,i+="&startblock="+e,i+="&endblock="+r,i+="&sort=asc"+o,n.emit("debug",{action:"request",request:i,provider:n});var s={url:i,throttleSlotInterval:1e3,throttleCallback:function(t,e){return n.apiKey===c&&Hi.showThrottleMessage(),Promise.resolve(!0)}};return xi.fetchJson(s,null,u).then((function(t){n.emit("debug",{action:"response",request:i,response:U.deepCopy(t),provider:n});var e=[];return t.forEach((function(t){["contractAddress","to"].forEach((function(e){""==t[e]&&delete t[e]})),null==t.creates&&null!=t.contractAddress&&(t.creates=t.contractAddress);var r=n.formatter.transactionResponse(t);t.timeStamp&&(r.timestamp=parseInt(t.timeStamp)),e.push(r)})),e}))}))},e.prototype.isCommunityResource=function(){return this.apiKey===c},e}($i.BaseProvider);e.EtherscanProvider=d}))),Yi=(i(Xi),Xi.EtherscanProvider,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=n&&n.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=n&&n.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var s=new C.Logger(qi.version);function a(){return(new Date).getTime()}function u(t){for(var e=null,r=0;r<t.length;r++){var n=t[r];if(null==n)return null;e?e.name===n.name&&e.chainId===n.chainId&&(e.ensAddress===n.ensAddress||null==e.ensAddress&&null==n.ensAddress)||s.throwArgumentError("provider mismatch","networks",t):e=n}return e}function h(t,e){t=t.slice().sort();var r=Math.floor(t.length/2);if(t.length%2)return t[r];var n=t[r-1],i=t[r];return null!=e&&Math.abs(n-i)>e?null:(n+i)/2}function l(t){if(null===t)return"null";if("number"===typeof t||"boolean"===typeof t)return JSON.stringify(t);if("string"===typeof t)return t;if(j.BigNumber.isBigNumber(t))return t.toString();if(Array.isArray(t))return JSON.stringify(t.map((function(t){return l(t)})));if("object"===typeof t){var e=Object.keys(t);return e.sort(),"{"+e.map((function(e){var r=t[e];return r="function"===typeof r?"[function]":l(r),JSON.stringify(e)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof t)}var c=1;function f(t){var e=null,r=null,n=new Promise((function(n){e=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(e,t)})),i=function(t){return n=n.then(t),n};function o(){return n}return{cancel:e,getPromise:o,wait:i}}var d=[C.Logger.errors.CALL_EXCEPTION,C.Logger.errors.INSUFFICIENT_FUNDS,C.Logger.errors.NONCE_EXPIRED,C.Logger.errors.REPLACEMENT_UNDERPRICED,C.Logger.errors.UNPREDICTABLE_GAS_LIMIT],p=["address","args","errorArgs","errorSignature","method","transaction"];function m(t,e){var r={weight:t.weight};return Object.defineProperty(r,"provider",{get:function(){return t.provider}}),t.start&&(r.start=t.start),e&&(r.duration=e-t.start),t.done&&(t.error?r.error=t.error:r.result=t.result||null),r}function v(t,e){return function(r){var n={};r.forEach((function(e){var r=t(e.result);n[r]||(n[r]={count:0,result:e.result}),n[r].count++}));for(var i=Object.keys(n),o=0;o<i.length;o++){var s=n[i[o]];if(s.count>=e)return s.result}}}function g(t,e,r){var n=l;switch(e){case"getBlockNumber":return function(e){var r=e.map((function(t){return t.result})),n=h(e.map((function(t){return t.result})),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=t._highestBlockNumber&&(t._highestBlockNumber=n),t._highestBlockNumber};case"getGasPrice":return function(t){var e=t.map((function(t){return t.result}));return e.sort(),e[Math.floor(e.length/2)]};case"getEtherPrice":return function(t){return h(t.map((function(t){return t.result})))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(t){return null==t?null:(t=U.shallowCopy(t),t.confirmations=-1,l(t))};break;case"getBlock":n=r.includeTransactions?function(t){return null==t?null:(t=U.shallowCopy(t),t.transactions=t.transactions.map((function(t){return t=U.shallowCopy(t),t.confirmations=-1,t})),l(t))}:function(t){return null==t?null:l(t)};break;default:throw new Error("unknown method: "+e)}return v(n,t.quorum)}function y(t,e){return i(this,void 0,void 0,(function(){var r;return o(this,(function(n){return r=t.provider,null!=r.blockNumber&&r.blockNumber>=e||-1===e?[2,r]:[2,xi.poll((function(){return new Promise((function(n,i){setTimeout((function(){return r.blockNumber>=e?n(r):t.cancelled?n(null):n(void 0)}),0)}))}),{oncePoll:r})]}))}))}function b(t,e,r,n){return i(this,void 0,void 0,(function(){var i,a,u;return o(this,(function(o){switch(o.label){case 0:switch(i=t.provider,a=r,a){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,1];case"getEtherPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,3];case"getCode":return[3,3];case"getStorageAt":return[3,6];case"getBlock":return[3,9];case"call":return[3,12];case"estimateGas":return[3,12];case"getTransaction":return[3,15];case"getTransactionReceipt":return[3,15];case"getLogs":return[3,16]}return[3,19];case 1:return[2,i[r]()];case 2:return i.getEtherPrice?[2,i.getEtherPrice()]:[3,19];case 3:return n.blockTag&&B.isHexString(n.blockTag)?[4,y(t,e)]:[3,5];case 4:i=o.sent(),o.label=5;case 5:return[2,i[r](n.address,n.blockTag||"latest")];case 6:return n.blockTag&&B.isHexString(n.blockTag)?[4,y(t,e)]:[3,8];case 7:i=o.sent(),o.label=8;case 8:return[2,i.getStorageAt(n.address,n.position,n.blockTag||"latest")];case 9:return n.blockTag&&B.isHexString(n.blockTag)?[4,y(t,e)]:[3,11];case 10:i=o.sent(),o.label=11;case 11:return[2,i[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash)];case 12:return n.blockTag&&B.isHexString(n.blockTag)?[4,y(t,e)]:[3,14];case 13:i=o.sent(),o.label=14;case 14:return[2,i[r](n.transaction)];case 15:return[2,i[r](n.transactionHash)];case 16:return u=n.filter,u.fromBlock&&B.isHexString(u.fromBlock)||u.toBlock&&B.isHexString(u.toBlock)?[4,y(t,e)]:[3,18];case 17:i=o.sent(),o.label=18;case 18:return[2,i.getLogs(u)];case 19:return[2,s.throwError("unknown method error",C.Logger.errors.UNKNOWN_ERROR,{method:r,params:n})]}}))}))}var w=function(t){function e(r,n){var i=this.constructor,o=this;s.checkNew(i,e),0===r.length&&s.throwArgumentError("missing providers","providers",r);var a=r.map((function(t,e){if(wt.Provider.isProvider(t)){var r=Hi.isCommunityResource(t)?2e3:750,n=1;return Object.freeze({provider:t,weight:1,stallTimeout:r,priority:n})}var i=U.shallowCopy(t);null==i.priority&&(i.priority=1),null==i.stallTimeout&&(i.stallTimeout=Hi.isCommunityResource(t)?2e3:750),null==i.weight&&(i.weight=1);var o=i.weight;return(o%1||o>512||o<1)&&s.throwArgumentError("invalid weight; must be integer in [1, 512]","providers["+e+"].weight",o),Object.freeze(i)})),h=a.reduce((function(t,e){return t+e.weight}),0);null==n?n=h/2:n>h&&s.throwArgumentError("quorum will always fail; larger than total weight","quorum",n);var l=u(a.map((function(t){return t.provider.network})));return null==l&&(l=new Promise((function(t,e){setTimeout((function(){o.detectNetwork().then(t,e)}),0)}))),o=t.call(this,l)||this,U.defineReadOnly(o,"providerConfigs",Object.freeze(a)),U.defineReadOnly(o,"quorum",n),o._highestBlockNumber=-1,o}return r(e,t),e.prototype.detectNetwork=function(){return i(this,void 0,void 0,(function(){var t;return o(this,(function(e){switch(e.label){case 0:return[4,Promise.all(this.providerConfigs.map((function(t){return t.provider.getNetwork()})))];case 1:return t=e.sent(),[2,u(t)]}}))}))},e.prototype.perform=function(t,e){return i(this,void 0,void 0,(function(){var r,n,i,u,h,l,v,y,w,M,_,k=this;return o(this,(function(S){switch(S.label){case 0:return"sendTransaction"!==t?[3,2]:[4,Promise.all(this.providerConfigs.map((function(t){return t.provider.sendTransaction(e.signedTransaction).then((function(t){return t.hash}),(function(t){return t}))})))];case 1:for(r=S.sent(),n=0;n<r.length;n++)if(i=r[n],"string"===typeof i)return[2,i];throw r[0];case 2:return-1!==this._highestBlockNumber||"getBlockNumber"===t?[3,4]:[4,this.getBlockNumber()];case 3:S.sent(),S.label=4;case 4:u=g(this,t,e),h=hi.shuffled(this.providerConfigs.map(U.shallowCopy)),h.sort((function(t,e){return t.priority-e.priority})),l=this._highestBlockNumber,v=0,y=!0,w=function(){var r,n,i,g,w,_,S;return o(this,(function(o){switch(o.label){case 0:r=a(),n=h.filter((function(t){return t.runner&&r-t.start<t.stallTimeout})).reduce((function(t,e){return t+e.weight}),0),i=function(){var r=h[v++],i=c++;r.start=a(),r.staller=f(r.stallTimeout),r.staller.wait((function(){r.staller=null})),r.runner=b(r,l,t,e).then((function(n){r.done=!0,r.result=n,k.listenerCount("debug")&&k.emit("debug",{action:"request",rid:i,backend:m(r,a()),request:{method:t,params:U.deepCopy(e)},provider:k})}),(function(n){r.done=!0,r.error=n,k.listenerCount("debug")&&k.emit("debug",{action:"request",rid:i,backend:m(r,a()),request:{method:t,params:U.deepCopy(e)},provider:k})})),M.listenerCount("debug")&&M.emit("debug",{action:"request",rid:i,backend:m(r,null),request:{method:t,params:U.deepCopy(e)},provider:M}),n+=r.weight};while(n<M.quorum&&v<h.length)i();return g=[],h.forEach((function(t){!t.done&&t.runner&&(g.push(t.runner),t.staller&&g.push(t.staller.getPromise()))})),g.length?[4,Promise.race(g)]:[3,2];case 1:o.sent(),o.label=2;case 2:return w=h.filter((function(t){return t.done&&null==t.error})),w.length>=M.quorum?(_=u(w),void 0!==_?(h.forEach((function(t){t.staller&&t.staller.cancel(),t.cancelled=!0})),[2,{value:_}]):y?[3,4]:[4,f(100).getPromise()]):[3,5];case 3:o.sent(),o.label=4;case 4:y=!1,o.label=5;case 5:return S=h.reduce((function(t,e){if(!e.done||null==e.error)return t;var r=e.error.code;return d.indexOf(r)>=0&&(t[r]||(t[r]={error:e.error,weight:0}),t[r].weight+=e.weight),t}),{}),Object.keys(S).forEach((function(t){var e=S[t];if(!(e.weight<k.quorum)){h.forEach((function(t){t.staller&&t.staller.cancel(),t.cancelled=!0}));var r=e.error,n={};p.forEach((function(t){null!=r[t]&&(n[t]=r[t])})),s.throwError(r.reason||r.message,t,n)}})),0===h.filter((function(t){return!t.done})).length?[2,"break"]:[2]}}))},M=this,S.label=5;case 5:return[5,w()];case 6:return _=S.sent(),"object"===typeof _?[2,_.value]:"break"===_?[3,7]:[3,5];case 7:return h.forEach((function(t){t.staller&&t.staller.cancel(),t.cancelled=!0})),[2,s.throwError("failed to meet quorum",C.Logger.errors.SERVER_ERROR,{method:t,params:e,results:h.map((function(t){return m(t)})),provider:this})]}}))}))},e}($i.BaseProvider);e.FallbackProvider=w}))),Qi=(i(Yi),Yi.FallbackProvider,null),to={IpcProvider:Qi},eo=o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=new C.Logger(qi.version),o="84842078b09946638c03157f83405213",s=function(t){function e(e,r){var n=this,o=new a(e,r),s=o.connection;s.password&&i.throwError("INFURA WebSocket project secrets unsupported",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var u=s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return n=t.call(this,u,e)||this,U.defineReadOnly(n,"apiKey",o.projectId),U.defineReadOnly(n,"projectId",o.projectId),U.defineReadOnly(n,"projectSecret",o.projectSecret),n}return r(e,t),e.prototype.isCommunityResource=function(){return this.projectId===o},e}(Wi.WebSocketProvider);e.InfuraWebSocketProvider=s;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.getWebSocketProvider=function(t,e){return new s(t,e)},e.getApiKey=function(t){var e={apiKey:o,projectId:o,projectSecret:null};return null==t||("string"===typeof t?e.projectId=t:null!=t.projectSecret?(i.assertArgument("string"===typeof t.projectId,"projectSecret requires a projectId","projectId",t.projectId),i.assertArgument("string"===typeof t.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),e.projectId=t.projectId,e.projectSecret=t.projectSecret):t.projectId&&(e.projectId=t.projectId),e.apiKey=e.projectId),e},e.getUrl=function(t,e){var r=null;switch(t?t.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"ropsten":r="ropsten.infura.io";break;case"rinkeby":r="rinkeby.infura.io";break;case"kovan":r="kovan.infura.io";break;case"goerli":r="goerli.infura.io";break;default:i.throwError("unsupported network",C.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var n={allowGzip:!0,url:"https://"+r+"/v3/"+e.projectId,throttleCallback:function(t,r){return e.projectId===o&&Hi.showThrottleMessage(),Promise.resolve(!0)}};return null!=e.projectSecret&&(n.user="",n.password=e.projectSecret),n},e.prototype.isCommunityResource=function(){return this.projectId===o},e}(Gi.UrlJsonRpcProvider);e.InfuraProvider=a})),ro=(i(eo),eo.InfuraWebSocketProvider,eo.InfuraProvider,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=new C.Logger(qi.version),o="ETHERS_JS_SHARED",s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.getApiKey=function(t){return t&&"string"!==typeof t&&i.throwArgumentError("invalid apiKey","apiKey",t),t||o},e.getUrl=function(t,e){i.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var r=null;switch(t.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:i.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+e},e}(Gi.UrlJsonRpcProvider);e.NodesmithProvider=s}))),no=(i(ro),ro.NodesmithProvider,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=new C.Logger(qi.version),o="5f7f8547b90218002e9ce9dd",s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.getApiKey=function(t){var e={applicationId:o,applicationSecretKey:null};return null==t||("string"===typeof t?e.applicationId=t:null!=t.applicationSecretKey?(i.assertArgument("string"===typeof t.applicationId,"applicationSecretKey requires an applicationId","applicationId",t.applicationId),i.assertArgument("string"===typeof t.applicationSecretKey,"invalid applicationSecretKey","applicationSecretKey","[REDACTED]"),e.applicationId=t.applicationId,e.applicationSecretKey=t.applicationSecretKey):t.applicationId&&(e.applicationId=t.applicationId)),e},e.getUrl=function(t,e){var r=null;switch(t?t.name:"unknown"){case"homestead":r="eth-mainnet.gateway.pokt.network";break;default:i.throwError("unsupported network",C.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var n={url:"https://"+r+"/v1/"+e.applicationId,headers:{}};return null!=e.applicationSecretKey&&(n.user="",n.password=e.applicationSecretKey),n},e.prototype.isCommunityResource=function(){return this.applicationId===o},e}(Gi.UrlJsonRpcProvider);e.PocketProvider=s}))),io=(i(no),no.PocketProvider,o((function(t,e){var r=n&&n.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=new C.Logger(qi.version),o=1;function s(t,e){return function(r,n){"eth_sign"==r&&t.isMetaMask&&(r="personal_sign",n=[n[1],n[0]]);var i={method:r,params:n,id:o++,jsonrpc:"2.0"};return new Promise((function(t,r){e(i,(function(e,n){if(e)return r(e);if(n.error){var i=new Error(n.error.message);return i.code=n.error.code,i.data=n.error.data,r(i)}t(n.result)}))}))}}function a(t){return function(e,r){return null==r&&(r=[]),"eth_sign"==e&&t.isMetaMask&&(e="personal_sign",r=[r[1],r[0]]),t.request({method:e,params:r})}}var u=function(t){function e(r,n){var o=this.constructor,u=this;i.checkNew(o,e),null==r&&i.throwArgumentError("missing provider","provider",r);var h=null,l=null,c=null;return"function"===typeof r?(h="unknown:",l=r):(h=r.host||r.path||"",!h&&r.isMetaMask&&(h="metamask"),c=r,r.request?(""===h&&(h="eip-1193:"),l=a(r)):r.sendAsync?l=s(r,r.sendAsync.bind(r)):r.send?l=s(r,r.send.bind(r)):i.throwArgumentError("unsupported provider","provider",r),h||(h="unknown:")),u=t.call(this,h,n)||this,U.defineReadOnly(u,"jsonRpcFetchFunc",l),U.defineReadOnly(u,"provider",c),u}return r(e,t),e.prototype.send=function(t,e){return this.jsonRpcFetchFunc(t,e)},e}(Ki.JsonRpcProvider);e.Web3Provider=u}))),oo=(i(io),io.Web3Provider,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Provider=wt.Provider,e.getNetwork=Mi.getNetwork,e.BaseProvider=$i.BaseProvider,e.Resolver=$i.Resolver,e.AlchemyProvider=Zi.AlchemyProvider,e.AlchemyWebSocketProvider=Zi.AlchemyWebSocketProvider,e.CloudflareProvider=Ji.CloudflareProvider,e.EtherscanProvider=Xi.EtherscanProvider,e.FallbackProvider=Yi.FallbackProvider,e.IpcProvider=to.IpcProvider,e.InfuraProvider=eo.InfuraProvider,e.InfuraWebSocketProvider=eo.InfuraWebSocketProvider,e.JsonRpcProvider=Ki.JsonRpcProvider,e.JsonRpcSigner=Ki.JsonRpcSigner,e.NodesmithProvider=ro.NodesmithProvider,e.PocketProvider=no.PocketProvider,e.StaticJsonRpcProvider=Gi.StaticJsonRpcProvider,e.UrlJsonRpcProvider=Gi.UrlJsonRpcProvider,e.Web3Provider=io.Web3Provider,e.WebSocketProvider=Wi.WebSocketProvider,e.Formatter=Hi.Formatter,e.isCommunityResourcable=Hi.isCommunityResourcable,e.isCommunityResource=Hi.isCommunityResource,e.showThrottleMessage=Hi.showThrottleMessage;var r=new C.Logger(qi.version);function n(t,e){if(null==t&&(t="homestead"),"string"===typeof t){var n=t.match(/^(ws|http)s?:/i);if(n)switch(n[1]){case"http":return new Ki.JsonRpcProvider(t);case"ws":return new Wi.WebSocketProvider(t);default:r.throwArgumentError("unsupported URL scheme","network",t)}}var i=Mi.getNetwork(t);return i&&i._defaultProvider||r.throwError("unsupported getDefaultProvider network",C.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:t}),i._defaultProvider({FallbackProvider:Yi.FallbackProvider,AlchemyProvider:Zi.AlchemyProvider,CloudflareProvider:Ji.CloudflareProvider,EtherscanProvider:Xi.EtherscanProvider,InfuraProvider:eo.InfuraProvider,JsonRpcProvider:Ki.JsonRpcProvider,NodesmithProvider:ro.NodesmithProvider,PocketProvider:no.PocketProvider,Web3Provider:io.Web3Provider,IpcProvider:to.IpcProvider},e)}e.getDefaultProvider=n}))),so=(i(oo),oo.Provider,oo.getNetwork,oo.BaseProvider,oo.Resolver,oo.AlchemyProvider,oo.AlchemyWebSocketProvider,oo.CloudflareProvider,oo.EtherscanProvider,oo.FallbackProvider,oo.IpcProvider,oo.InfuraProvider,oo.InfuraWebSocketProvider,oo.JsonRpcProvider,oo.JsonRpcSigner,oo.NodesmithProvider,oo.PocketProvider,oo.StaticJsonRpcProvider,oo.UrlJsonRpcProvider,oo.Web3Provider,oo.WebSocketProvider,oo.Formatter,oo.isCommunityResourcable,oo.isCommunityResource,oo.showThrottleMessage,oo.getDefaultProvider,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new RegExp("^bytes([0-9]+)$"),n=new RegExp("^(u?int)([0-9]*)$"),i=new RegExp("^(.*)\\[([0-9]*)\\]$"),o="0000000000000000000000000000000000000000000000000000000000000000";function s(t,e,a){switch(t){case"address":return a?B.zeroPad(e,32):B.arrayify(e);case"string":return at.toUtf8Bytes(e);case"bytes":return B.arrayify(e);case"bool":return e=e?"0x01":"0x00",a?B.zeroPad(e,32):B.arrayify(e)}var u=t.match(n);if(u){var h=parseInt(u[2]||"256");if(u[2]&&String(h)!==u[2]||h%8!==0||0===h||h>256)throw new Error("invalid number type - "+t);return a&&(h=256),e=j.BigNumber.from(e).toTwos(h),B.zeroPad(e,h/8)}if(u=t.match(r),u){h=parseInt(u[1]);if(String(h)!==u[1]||0===h||h>32)throw new Error("invalid bytes type - "+t);if(B.arrayify(e).byteLength!==h)throw new Error("invalid value for "+t);return a?B.arrayify((e+o).substring(0,66)):e}if(u=t.match(i),u&&Array.isArray(e)){var l=u[1],c=parseInt(u[2]||String(e.length));if(c!=e.length)throw new Error("invalid value for "+t);var f=[];return e.forEach((function(t){f.push(s(l,t,!0))})),B.concat(f)}throw new Error("invalid type - "+t)}function a(t,e){if(t.length!=e.length)throw new Error("type/value count mismatch");var r=[];return t.forEach((function(t,n){r.push(s(t,e[n]))})),B.hexlify(B.concat(r))}function u(t,e){return H.keccak256(a(t,e))}function h(t,e){return hn.sha256(a(t,e))}e.pack=a,e.keccak256=u,e.sha256=h}))),ao=(i(so),so.pack,so.keccak256,so.sha256,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="units/5.0.6"}))),uo=(i(ao),ao.version,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new C.Logger(ao.version),n=["wei","kwei","mwei","gwei","szabo","finney","ether"];function i(t){var e=String(t).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||"."===t||"-."===t)&&r.throwArgumentError("invalid value","value",t);var n=e[0],i="";"-"===n.substring(0,1)&&(i="-",n=n.substring(1));while("0"===n.substring(0,1))n=n.substring(1);""===n&&(n="0");var o="";2===e.length&&(o="."+(e[1]||"0"));while(o.length>2&&"0"===o[o.length-1])o=o.substring(0,o.length-1);var s=[];while(n.length){if(n.length<=3){s.unshift(n);break}var a=n.length-3;s.unshift(n.substring(a)),n=n.substring(0,a)}return i+s.join(",")+o}function o(t,e){if("string"===typeof e){var r=n.indexOf(e);-1!==r&&(e=3*r)}return j.formatFixed(t,null!=e?e:18)}function s(t,e){if("string"!==typeof t&&r.throwArgumentError("value must be a string","value",t),"string"===typeof e){var i=n.indexOf(e);-1!==i&&(e=3*i)}return j.parseFixed(t,null!=e?e:18)}function a(t){return o(t,18)}function u(t){return s(t,18)}e.commify=i,e.formatUnits=o,e.parseUnits=s,e.formatEther=a,e.parseEther=u}))),ho=(i(uo),uo.commify,uo.formatUnits,uo.parseUnits,uo.formatEther,uo.parseEther,o((function(t,e){var r=n&&n.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0}),e.AbiCoder=yt.AbiCoder,e.checkResultErrors=yt.checkResultErrors,e.defaultAbiCoder=yt.defaultAbiCoder,e.EventFragment=yt.EventFragment,e.FormatTypes=yt.FormatTypes,e.Fragment=yt.Fragment,e.FunctionFragment=yt.FunctionFragment,e.Indexed=yt.Indexed,e.Interface=yt.Interface,e.LogDescription=yt.LogDescription,e.ParamType=yt.ParamType,e.TransactionDescription=yt.TransactionDescription,e.getAddress=W.getAddress,e.getCreate2Address=W.getCreate2Address,e.getContractAddress=W.getContractAddress,e.getIcapAddress=W.getIcapAddress,e.isAddress=W.isAddress;var i=r(_i);e.base64=i,e.base58=xt.Base58,e.arrayify=B.arrayify,e.concat=B.concat,e.hexConcat=B.hexConcat,e.hexDataSlice=B.hexDataSlice,e.hexDataLength=B.hexDataLength,e.hexlify=B.hexlify,e.hexStripZeros=B.hexStripZeros,e.hexValue=B.hexValue,e.hexZeroPad=B.hexZeroPad,e.isBytes=B.isBytes,e.isBytesLike=B.isBytesLike,e.isHexString=B.isHexString,e.joinSignature=B.joinSignature,e.zeroPad=B.zeroPad,e.splitSignature=B.splitSignature,e.stripZeros=B.stripZeros,e._TypedDataEncoder=vt._TypedDataEncoder,e.hashMessage=vt.hashMessage,e.id=vt.id,e.isValidName=vt.isValidName,e.namehash=vt.namehash,e.defaultPath=si.defaultPath,e.entropyToMnemonic=si.entropyToMnemonic,e.HDNode=si.HDNode,e.isValidMnemonic=si.isValidMnemonic,e.mnemonicToEntropy=si.mnemonicToEntropy,e.mnemonicToSeed=si.mnemonicToSeed,e.getJsonWalletAddress=gi.getJsonWalletAddress,e.keccak256=H.keccak256,e.Logger=C.Logger,e.computeHmac=hn.computeHmac,e.ripemd160=hn.ripemd160,e.sha256=hn.sha256,e.sha512=hn.sha512,e.solidityKeccak256=so.keccak256,e.solidityPack=so.pack,e.soliditySha256=so.sha256,e.randomBytes=hi.randomBytes,e.shuffled=hi.shuffled,e.checkProperties=U.checkProperties,e.deepCopy=U.deepCopy,e.defineReadOnly=U.defineReadOnly,e.getStatic=U.getStatic,e.resolveProperties=U.resolveProperties,e.shallowCopy=U.shallowCopy;var o=r(V);e.RLP=o,e.computePublicKey=Yn.computePublicKey,e.recoverPublicKey=Yn.recoverPublicKey,e.SigningKey=Yn.SigningKey,e.formatBytes32String=at.formatBytes32String,e.nameprep=at.nameprep,e.parseBytes32String=at.parseBytes32String,e._toEscapedUtf8String=at._toEscapedUtf8String,e.toUtf8Bytes=at.toUtf8Bytes,e.toUtf8CodePoints=at.toUtf8CodePoints,e.toUtf8String=at.toUtf8String,e.Utf8ErrorFuncs=at.Utf8ErrorFuncs,e.computeAddress=ti.computeAddress,e.parseTransaction=ti.parse,e.recoverAddress=ti.recoverAddress,e.serializeTransaction=ti.serialize,e.commify=uo.commify,e.formatEther=uo.formatEther,e.parseEther=uo.parseEther,e.formatUnits=uo.formatUnits,e.parseUnits=uo.parseUnits,e.verifyMessage=bi.verifyMessage,e.verifyTypedData=bi.verifyTypedData,e._fetchData=xi._fetchData,e.fetchJson=xi.fetchJson,e.poll=xi.poll;var s=hn;e.SupportedAlgorithm=s.SupportedAlgorithm;var a=at;e.UnicodeNormalizationForm=a.UnicodeNormalizationForm,e.Utf8ErrorReason=a.Utf8ErrorReason}))),lo=(i(ho),ho.AbiCoder,ho.checkResultErrors,ho.defaultAbiCoder,ho.EventFragment,ho.FormatTypes,ho.Fragment,ho.FunctionFragment,ho.Indexed,ho.Interface,ho.LogDescription,ho.ParamType,ho.TransactionDescription,ho.getAddress,ho.getCreate2Address,ho.getContractAddress,ho.getIcapAddress,ho.isAddress,ho.base64,ho.base58,ho.arrayify,ho.concat,ho.hexConcat,ho.hexDataSlice,ho.hexDataLength,ho.hexlify,ho.hexStripZeros,ho.hexValue,ho.hexZeroPad,ho.isBytes,ho.isBytesLike,ho.isHexString,ho.joinSignature,ho.zeroPad,ho.splitSignature,ho.stripZeros,ho._TypedDataEncoder,ho.hashMessage,ho.id,ho.isValidName,ho.namehash,ho.defaultPath,ho.entropyToMnemonic,ho.HDNode,ho.isValidMnemonic,ho.mnemonicToEntropy,ho.mnemonicToSeed,ho.getJsonWalletAddress,ho.keccak256,ho.Logger,ho.computeHmac,ho.ripemd160,ho.sha256,ho.sha512,ho.solidityKeccak256,ho.solidityPack,ho.soliditySha256,ho.randomBytes,ho.shuffled,ho.checkProperties,ho.deepCopy,ho.defineReadOnly,ho.getStatic,ho.resolveProperties,ho.shallowCopy,ho.RLP,ho.computePublicKey,ho.recoverPublicKey,ho.SigningKey,ho.formatBytes32String,ho.nameprep,ho.parseBytes32String,ho._toEscapedUtf8String,ho.toUtf8Bytes,ho.toUtf8CodePoints,ho.toUtf8String,ho.Utf8ErrorFuncs,ho.computeAddress,ho.parseTransaction,ho.recoverAddress,ho.serializeTransaction,ho.commify,ho.formatEther,ho.parseEther,ho.formatUnits,ho.parseUnits,ho.verifyMessage,ho.verifyTypedData,ho._fetchData,ho.fetchJson,ho.poll,ho.SupportedAlgorithm,ho.UnicodeNormalizationForm,ho.Utf8ErrorReason,o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.version="ethers/5.0.19"}))),co=(i(lo),lo.version,o((function(t,e){var r=n&&n.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=St.Contract,e.ContractFactory=St.ContractFactory,e.BigNumber=j.BigNumber,e.FixedNumber=j.FixedNumber,e.Signer=_t.Signer,e.VoidSigner=_t.VoidSigner,e.Wallet=bi.Wallet;var i=r(et);e.constants=i;var o=r(oo);e.providers=o;var s=oo;e.getDefaultProvider=s.getDefaultProvider,e.Wordlist=ii.Wordlist,e.wordlists=ii.wordlists;var a=r(ho);e.utils=a,e.errors=C.ErrorCode,e.version=lo.version;var u=new C.Logger(lo.version);e.logger=u}))),fo=(i(co),co.Contract,co.ContractFactory,co.BigNumber,co.FixedNumber,co.Signer,co.VoidSigner,co.Wallet,co.constants,co.providers,co.getDefaultProvider,co.Wordlist,co.wordlists,co.utils,co.errors,co.version,co.logger,o((function(t,e){var r=n&&n.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=r(co);e.ethers=i;try{var o=window;null==o._ethers&&(o._ethers=i)}catch(a){}var s=co;e.Signer=s.Signer,e.Wallet=s.Wallet,e.VoidSigner=s.VoidSigner,e.getDefaultProvider=s.getDefaultProvider,e.providers=s.providers,e.Contract=s.Contract,e.ContractFactory=s.ContractFactory,e.BigNumber=s.BigNumber,e.FixedNumber=s.FixedNumber,e.constants=s.constants,e.errors=s.errors,e.logger=s.logger,e.utils=s.utils,e.wordlists=s.wordlists,e.version=s.version,e.Wordlist=s.Wordlist}))),po=i(fo),mo=fo.ethers,vo=fo.Signer,go=fo.Wallet,yo=fo.VoidSigner,bo=fo.getDefaultProvider,wo=fo.providers,Mo=fo.Contract,_o=fo.ContractFactory,ko=fo.BigNumber,So=fo.FixedNumber,xo=fo.constants,Eo=fo.errors,Ao=fo.logger,Oo=fo.utils,To=fo.wordlists,Co=fo.version,Po=fo.Wordlist;e.BigNumber=ko,e.Contract=Mo,e.ContractFactory=_o,e.FixedNumber=So,e.Signer=vo,e.VoidSigner=yo,e.Wallet=go,e.Wordlist=Po,e.constants=xo,e.default=po,e.errors=Eo,e.ethers=mo,e.getDefaultProvider=bo,e.logger=Ao,e.providers=wo,e.utils=Oo,e.version=Co,e.wordlists=To,Object.defineProperty(e,"__esModule",{value:!0})}))}).call(this,r("c8ba"),r("f28c"))},b05c:function(t,e,r){r("ec30")("Int8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},b0c5:function(t,e,r){"use strict";var n=r("520a");r("5ca1")({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},b19a:function(t,e,r){"use strict";var n=r("966d"),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var o=Object.create(r("3a7c"));o.inherits=r("3fb5");var s=r("ad71"),a=r("dc14");o.inherits(c,s);for(var u=i(a.prototype),h=0;h<u.length;h++){var l=u[h];c.prototype[l]||(c.prototype[l]=a.prototype[l])}function c(t){if(!(this instanceof c))return new c(t);s.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),c.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},b258:function(t,e,r){"use strict";(function(t){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.hashPersonalMessage=e.isValidSignature=e.fromRpcSig=e.toCompactSig=e.toRpcSig=e.ecrecover=e.ecsign=void 0;var i=r("2213"),o=n(r("399f")),s=r("0c30"),a=r("8463"),u=r("29b1"),h=r("6a9d");function l(e,r,n){var o=i.ecdsaSign(e,r),s=o.signature,a=o.recid,u=t.from(s.slice(0,32)),l=t.from(s.slice(32,64));if(!n||"number"===typeof n){if(n&&!Number.isSafeInteger(n))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var c=n?a+(2*n+35):a+27;return{r:u,s:l,v:c}}var f=h.toType(n,h.TypeOutput.BN),d=f.muln(2).addn(35).addn(a).toArrayLike(t);return{r:u,s:l,v:d}}function c(t,e){var r=h.toType(t,h.TypeOutput.BN);if(!e)return r.subn(27);var n=h.toType(e,h.TypeOutput.BN);return r.sub(n.muln(2).addn(35))}function f(t){var e=new o.default(t);return e.eqn(0)||e.eqn(1)}e.ecsign=l,e.ecrecover=function(e,r,n,o,a){var u=t.concat([s.setLengthLeft(n,32),s.setLengthLeft(o,32)],64),h=c(r,a);if(!f(h))throw new Error("Invalid signature v value");var l=i.ecdsaRecover(u,h.toNumber(),e);return t.from(i.publicKeyConvert(l,!1).slice(1))},e.toRpcSig=function(e,r,n,i){var o=c(e,i);if(!f(o))throw new Error("Invalid signature v value");return s.bufferToHex(t.concat([s.setLengthLeft(r,32),s.setLengthLeft(n,32),s.toBuffer(e)]))},e.toCompactSig=function(e,r,n,i){var o=c(e,i);if(!f(o))throw new Error("Invalid signature v value");var a=h.toType(e,h.TypeOutput.Number),u=n;return(a>28&&a%2===1||1===a||28===a)&&(u=t.from(n),u[0]|=128),s.bufferToHex(t.concat([s.setLengthLeft(r,32),s.setLengthLeft(u,32)]))},e.fromRpcSig=function(t){var e,r,n,i=s.toBuffer(t);if(i.length>=65)e=i.slice(0,32),r=i.slice(32,64),n=s.bufferToInt(i.slice(64));else{if(64!==i.length)throw new Error("Invalid signature length");e=i.slice(0,32),r=i.slice(32,64),n=s.bufferToInt(i.slice(32,33))>>7,r[0]&=127}return n<27&&(n+=27),{v:n,r:e,s:r}},e.isValidSignature=function(t,e,r,n,i){void 0===n&&(n=!0);var s=new o.default("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),a=new o.default("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==e.length||32!==r.length)return!1;if(!f(c(t,i)))return!1;var u=new o.default(e),h=new o.default(r);return!(u.isZero()||u.gt(a)||h.isZero()||h.gt(a))&&(!n||1!==h.cmp(s))},e.hashPersonalMessage=function(e){u.assertIsBuffer(e);var r=t.from("Ethereum Signed Message:\n"+e.length.toString(),"utf-8");return a.keccak(t.concat([r,e]))}}).call(this,r("b639").Buffer)},b287:function(t,e,r){"use strict";var n=r("c044").errors,i=r("ba10"),o=r("c044").formatters;function s(t){return t}function a(t){i.call(this),this.id=null,this.callback=s,this.arguments=null,this.lastBlock=null,this.options={subscription:t.subscription,type:t.type,requestManager:t.requestManager}}a.prototype=Object.create(i.prototype),a.prototype.constructor=a,a.prototype._extractCallback=function(t){if("function"===typeof t[t.length-1])return t.pop()},a.prototype._validateArgs=function(t){var e=this.options.subscription;if(e||(e={}),e.params||(e.params=0),t.length!==e.params)throw n.InvalidNumberOfParams(t.length,e.params,e.subscriptionName)},a.prototype._formatInput=function(t){var e=this.options.subscription;if(!e)return t;if(!e.inputFormatter)return t;var r=e.inputFormatter.map((function(e,r){return e?e(t[r]):t[r]}));return r},a.prototype._formatOutput=function(t){var e=this.options.subscription;return e&&e.outputFormatter&&t?e.outputFormatter(t):t},a.prototype._toPayload=function(t){var e=[];if(this.callback=this._extractCallback(t)||s,this.subscriptionMethod||(this.subscriptionMethod=t.shift(),this.options.subscription.subscriptionName&&(this.subscriptionMethod=this.options.subscription.subscriptionName)),this.arguments||(this.arguments=this._formatInput(t),this._validateArgs(this.arguments),t=[]),e.push(this.subscriptionMethod),e=e.concat(this.arguments),t.length)throw new Error("Only a callback is allowed as parameter on an already instantiated subscription.");return{method:this.options.type+"_subscribe",params:e}},a.prototype.unsubscribe=function(t){this.options.requestManager.removeSubscription(this.id,t),this.id=null,this.lastBlock=null,this.removeAllListeners()},a.prototype.subscribe=function(){var t=this,e=Array.prototype.slice.call(arguments),r=this._toPayload(e);if(!r)return this;if(!this.options.requestManager.provider)return setTimeout((function(){var e=new Error("No provider set.");t.callback(e,null,t),t.emit("error",e)}),0),this;if(!this.options.requestManager.provider.on)return setTimeout((function(){var e=new Error("The current provider doesn't support subscriptions: "+t.options.requestManager.provider.constructor.name);t.callback(e,null,t),t.emit("error",e)}),0),this;if(this.lastBlock&&this.options.params&&"object"===typeof this.options.params&&(r.params[1]=this.options.params,r.params[1].fromBlock=o.inputBlockNumberFormatter(this.lastBlock+1)),this.id&&this.unsubscribe(),this.options.params=r.params[1],"logs"===r.params[0]&&r.params[1]&&"object"===typeof r.params[1]&&r.params[1].hasOwnProperty("fromBlock")&&isFinite(r.params[1].fromBlock)){var n=Object.assign({},r.params[1]);this.options.requestManager.send({method:"eth_getLogs",params:[n]},(function(e,r){e?setTimeout((function(){t.callback(e,null,t),t.emit("error",e)}),0):r.forEach((function(e){var r=t._formatOutput(e);t.callback(null,r,t),t.emit("data",r)}))}))}return"object"===typeof r.params[1]&&delete r.params[1].fromBlock,this.options.requestManager.send(r,(function(e,n){!e&&n?(t.id=n,t.method=r.params[0],t.emit("connected",n),t.options.requestManager.addSubscription(t,(function(e,r){e?(t.callback(e,!1,t),t.emit("error",e)):(Array.isArray(r)||(r=[r]),r.forEach((function(e){var r=t._formatOutput(e);if(t.lastBlock=r&&"object"===typeof r?r.blockNumber:null,"function"===typeof t.options.subscription.subscriptionHandler)return t.options.subscription.subscriptionHandler.call(t,r);t.emit("data",r),t.callback(null,r,t)})))}))):setTimeout((function(){t.callback(e,!1,t),t.emit("error",e)}),0)})),this},a.prototype.resubscribe=function(){this.options.requestManager.removeSubscription(this.id),this.id=null,this.subscribe(this.callback)},t.exports=a},b313:function(t,e,r){"use strict";var n=String.prototype.replace,i=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return n.call(t,i,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},b383:function(t,e,r){"use strict";e.decode=e.parse=r("91dd"),e.encode=e.stringify=r("e099")},b39a:function(t,e,r){var n=r("d3f4");t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},b3b2:function(t,e,r){const n=r("c449"),i=t=>{let e=new n(t);return 0===e.version&&(e=e.toV1()),e.toString("base32")};e.cidV0ToV1Base32=i},b4b7:function(t){t.exports=JSON.parse('{"name":"goerli","chainId":5,"networkId":5,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"clique","clique":{"period":15,"epoch":30000}},"comment":"Cross-client PoA test network","url":"https://github.com/goerli/testnet","genesis":{"hash":"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a","timestamp":"0x5c51a607","gasLimit":10485760,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x5d6cded585e73c4e322c30c2f782a336316f17dd85a4863b9d838d2d4b8b3008"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xa3f5ab08"},{"name":"homestead","block":0,"forkHash":"0xa3f5ab08"},{"name":"dao","block":null,"forkHash":"0xa3f5ab08"},{"name":"tangerineWhistle","block":0,"forkHash":"0xa3f5ab08"},{"name":"spuriousDragon","block":0,"forkHash":"0xa3f5ab08"},{"name":"byzantium","block":0,"forkHash":"0xa3f5ab08"},{"name":"constantinople","block":0,"forkHash":"0xa3f5ab08"},{"name":"petersburg","block":0,"forkHash":"0xa3f5ab08"},{"name":"istanbul","block":1561651,"forkHash":"0xc25efa5c"},{"name":"berlin","block":4460644,"forkHash":"0x757a1c47"},{"name":"london","block":5062605,"forkHash":"0xb8c6299d"}],"bootstrapNodes":[{"ip":"51.141.78.53","port":30303,"id":"011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a","location":"","comment":"Upstream bootnode 1"},{"ip":"13.93.54.137","port":30303,"id":"176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b","location":"","comment":"Upstream bootnode 2"},{"ip":"94.237.54.114","port":30313,"id":"46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291","location":"","comment":"Upstream bootnode 3"},{"ip":"18.218.250.66","port":30313,"id":"b5948a2d3e9d486c4d75bf32713221c2bd6cf86463302339299bd227dc2e276cd5a1c7ca4f43a0e9122fe9af884efed563bd2a1fd28661f3b5f5ad7bf1de5949","location":"","comment":"Upstream bootnode 4"},{"ip":"3.11.147.67","port":30303,"id":"a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91","location":"","comment":"Ethereum Foundation bootnode"},{"ip":"51.15.116.226","port":30303,"id":"a869b02cec167211fb4815a82941db2e7ed2936fd90e78619c53eb17753fcf0207463e3419c264e2a1dd8786de0df7e68cf99571ab8aeb7c4e51367ef186b1dd","location":"","comment":"Goerli Initiative bootnode"},{"ip":"51.15.119.157","port":30303,"id":"807b37ee4816ecf407e9112224494b74dd5933625f655962d892f2f0f02d7fbbb3e2a94cf87a96609526f30c998fd71e93e2f53015c558ffc8b03eceaf30ee33","location":"","comment":"Goerli Initiative bootnode"},{"ip":"51.15.119.157","port":40303,"id":"a59e33ccd2b3e52d578f1fbd70c6f9babda2650f0760d6ff3b37742fdcdfdb3defba5d56d315b40c46b70198c7621e63ffa3f987389c7118634b0fefbbdfa7fd","location":"","comment":"Goerli Initiative bootnode"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.goerli.ethdisco.net"]}')},b4d1:function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(5).Buffer}catch(A){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,l=r;l<a;l+=n)u=h(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var c=1;for(u=h(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],c=[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],f=[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 d(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?l[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],d=f[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:l[h-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function v(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function g(t,e,r){var n=new y;return n.mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?v(this,t,e):g(this,t,e),r},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},y.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=d(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function w(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 M(){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=o._prime(t);this.m=e.p,this.prime=e}else n(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)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(M,w),M.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,w),i(k,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new M;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 b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(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 r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},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)},i(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 r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._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,r("62e4")(t))},b4e8:function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},b50d:function(t,e,r){"use strict";var n=r("c532"),i=r("467f"),o=r("30b5"),s=r("83b9"),a=r("c345"),u=r("3934"),h=r("2d83");t.exports=function(t){return new Promise((function(e,l){var c=t.data,f=t.headers;n.isFormData(c)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",m=t.auth.password||"";f.Authorization="Basic "+btoa(p+":"+m)}var v=s(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),o(v,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?d.response:d.responseText,o={data:n,status:d.status,statusText:d.statusText,headers:r,config:t,request:d};i(e,l,o),d=null}},d.onabort=function(){d&&(l(h("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){l(h("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),l(h(e,t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var g=r("7aac"),y=(t.withCredentials||u(v))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(f[t.xsrfHeaderName]=y)}if("setRequestHeader"in d&&n.forEach(f,(function(t,e){"undefined"===typeof c&&"content-type"===e.toLowerCase()?delete f[e]:d.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(b){if("json"!==t.responseType)throw b}"function"===typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),l(t),d=null)})),void 0===c&&(c=null),d.send(c)}))}},b525:function(t,e,r){"use strict";var n=r("c3c0"),i=r("edc9"),o=r("da3e"),s=n.rotr64_hi,a=n.rotr64_lo,u=n.shr64_hi,h=n.shr64_lo,l=n.sum64,c=n.sum64_hi,f=n.sum64_lo,d=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,v=n.sum64_5_lo,g=i.BlockHash,y=[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 b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function w(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function M(t,e,r,n,i,o){var s=e&n^~e&o;return s<0&&(s+=4294967296),s}function _(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function k(t,e,r,n,i,o){var s=e&n^e&o^n&o;return s<0&&(s+=4294967296),s}function S(t,e){var r=s(t,e,28),n=s(e,t,2),i=s(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function x(t,e){var r=a(t,e,28),n=a(e,t,2),i=a(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function E(t,e){var r=s(t,e,14),n=s(t,e,18),i=s(e,t,9),o=r^n^i;return o<0&&(o+=4294967296),o}function A(t,e){var r=a(t,e,14),n=a(t,e,18),i=a(e,t,9),o=r^n^i;return o<0&&(o+=4294967296),o}function O(t,e){var r=s(t,e,1),n=s(t,e,8),i=u(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function T(t,e){var r=a(t,e,1),n=a(t,e,8),i=h(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function C(t,e){var r=s(t,e,19),n=s(e,t,29),i=u(t,e,6),o=r^n^i;return o<0&&(o+=4294967296),o}function P(t,e){var r=a(t,e,19),n=a(e,t,29),i=h(t,e,6),o=r^n^i;return o<0&&(o+=4294967296),o}n.inherits(b,g),t.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=C(r[n-4],r[n-3]),o=P(r[n-4],r[n-3]),s=r[n-14],a=r[n-13],u=O(r[n-30],r[n-29]),h=T(r[n-30],r[n-29]),l=r[n-32],c=r[n-31];r[n]=d(i,o,s,a,u,h,l,c),r[n+1]=p(i,o,s,a,u,h,l,c)}},b.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],i=this.h[1],s=this.h[2],a=this.h[3],u=this.h[4],h=this.h[5],d=this.h[6],p=this.h[7],g=this.h[8],y=this.h[9],b=this.h[10],O=this.h[11],T=this.h[12],C=this.h[13],P=this.h[14],B=this.h[15];o(this.k.length===r.length);for(var I=0;I<r.length;I+=2){var R=P,N=B,j=E(g,y),L=A(g,y),U=w(g,y,b,O,T,C),D=M(g,y,b,O,T,C),F=this.k[I],z=this.k[I+1],q=r[I],H=r[I+1],$=m(R,N,j,L,U,D,F,z,q,H),V=v(R,N,j,L,U,D,F,z,q,H);R=S(n,i),N=x(n,i),j=_(n,i,s,a,u,h),L=k(n,i,s,a,u,h);var K=c(R,N,j,L),W=f(R,N,j,L);P=T,B=C,T=b,C=O,b=g,O=y,g=c(d,p,$,V),y=f(p,p,$,V),d=u,p=h,u=s,h=a,s=n,a=i,n=c($,V,K,W),i=f($,V,K,W)}l(this.h,0,n,i),l(this.h,2,s,a),l(this.h,4,u,h),l(this.h,6,d,p),l(this.h,8,g,y),l(this.h,10,b,O),l(this.h,12,T,C),l(this.h,14,P,B)},b.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},b5ca:function(t,e,r){"use strict";var n=r("b639").Buffer,i=r("3fb5"),o=r("93e6"),s=new Array(16),a=[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],u=[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],h=[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],l=[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],c=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function d(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(t,e){return t<<e|t>>>32-e}function m(t,e,r,n,i,o,s,a){return p(t+(e^r^n)+o+s|0,a)+i|0}function v(t,e,r,n,i,o,s,a){return p(t+(e&r|~e&n)+o+s|0,a)+i|0}function g(t,e,r,n,i,o,s,a){return p(t+((e|~r)^n)+o+s|0,a)+i|0}function y(t,e,r,n,i,o,s,a){return p(t+(e&n|r&~n)+o+s|0,a)+i|0}function b(t,e,r,n,i,o,s,a){return p(t+(e^(r|~n))+o+s|0,a)+i|0}i(d,o),d.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,d=0|this._e,w=0|this._a,M=0|this._b,_=0|this._c,k=0|this._d,S=0|this._e,x=0;x<80;x+=1){var E,A;x<16?(E=m(r,n,i,o,d,t[a[x]],c[0],h[x]),A=b(w,M,_,k,S,t[u[x]],f[0],l[x])):x<32?(E=v(r,n,i,o,d,t[a[x]],c[1],h[x]),A=y(w,M,_,k,S,t[u[x]],f[1],l[x])):x<48?(E=g(r,n,i,o,d,t[a[x]],c[2],h[x]),A=g(w,M,_,k,S,t[u[x]],f[2],l[x])):x<64?(E=y(r,n,i,o,d,t[a[x]],c[3],h[x]),A=v(w,M,_,k,S,t[u[x]],f[3],l[x])):(E=b(r,n,i,o,d,t[a[x]],c[4],h[x]),A=m(w,M,_,k,S,t[u[x]],f[4],l[x])),r=d,d=o,o=p(i,10),i=n,n=E,w=S,S=k,k=p(_,10),_=M,M=A}var O=this._b+i+k|0;this._b=this._c+o+S|0,this._c=this._d+d+w|0,this._d=this._e+r+M|0,this._e=this._a+n+_|0,this._a=O},d.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=n.alloc?n.alloc(20):new n(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=d},b619:function(t,e,r){"use strict";function n(t){return null!==t&&"object"===typeof t&&"constructor"in t&&t.constructor===Object}function i(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach((function(r){"undefined"===typeof t[r]?t[r]=e[r]:n(e[r])&&n(t[r])&&Object.keys(e[r]).length>0&&i(t[r],e[r])}))}r.r(e);var o="undefined"!==typeof document?document:{},s={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};i(o,s);var a="undefined"!==typeof window?window:{},u={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}};i(a,u);class h{constructor(t){const e=this;for(let r=0;r<t.length;r+=1)e[r]=t[r];return e.length=t.length,this}}function l(t,e){const r=[];let n=0;if(t&&!e&&t instanceof h)return t;if(t)if("string"===typeof t){let i,s;const a=t.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){let t="div";for(0===a.indexOf("<li")&&(t="ul"),0===a.indexOf("<tr")&&(t="tbody"),0!==a.indexOf("<td")&&0!==a.indexOf("<th")||(t="tr"),0===a.indexOf("<tbody")&&(t="table"),0===a.indexOf("<option")&&(t="select"),s=o.createElement(t),s.innerHTML=a,n=0;n<s.childNodes.length;n+=1)r.push(s.childNodes[n])}else for(i=e||"#"!==t[0]||t.match(/[ .<>:~]/)?(e||o).querySelectorAll(t.trim()):[o.getElementById(t.trim().split("#")[1])],n=0;n<i.length;n+=1)i[n]&&r.push(i[n])}else if(t.nodeType||t===a||t===o)r.push(t);else if(t.length>0&&t[0].nodeType)for(n=0;n<t.length;n+=1)r.push(t[n]);return new h(r)}function c(t){const e=[];for(let r=0;r<t.length;r+=1)-1===e.indexOf(t[r])&&e.push(t[r]);return e}function f(t){if("undefined"===typeof t)return this;const e=t.split(" ");for(let r=0;r<e.length;r+=1)for(let t=0;t<this.length;t+=1)"undefined"!==typeof this[t]&&"undefined"!==typeof this[t].classList&&this[t].classList.add(e[r]);return this}function d(t){const e=t.split(" ");for(let r=0;r<e.length;r+=1)for(let t=0;t<this.length;t+=1)"undefined"!==typeof this[t]&&"undefined"!==typeof this[t].classList&&this[t].classList.remove(e[r]);return this}function p(t){return!!this[0]&&this[0].classList.contains(t)}function m(t){const e=t.split(" ");for(let r=0;r<e.length;r+=1)for(let t=0;t<this.length;t+=1)"undefined"!==typeof this[t]&&"undefined"!==typeof this[t].classList&&this[t].classList.toggle(e[r]);return this}function v(t,e){if(1===arguments.length&&"string"===typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let r=0;r<this.length;r+=1)if(2===arguments.length)this[r].setAttribute(t,e);else for(const e in t)this[r][e]=t[e],this[r].setAttribute(e,t[e]);return this}function g(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function y(t,e){let r;if("undefined"!==typeof e){for(let n=0;n<this.length;n+=1)r=this[n],r.dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[t]=e;return this}if(r=this[0],r){if(r.dom7ElementDataStorage&&t in r.dom7ElementDataStorage)return r.dom7ElementDataStorage[t];const e=r.getAttribute("data-"+t);return e||void 0}}function b(t){for(let e=0;e<this.length;e+=1){const r=this[e].style;r.webkitTransform=t,r.transform=t}return this}function w(t){"string"!==typeof t&&(t+="ms");for(let e=0;e<this.length;e+=1){const r=this[e].style;r.webkitTransitionDuration=t,r.transitionDuration=t}return this}function M(...t){let[e,r,n,i]=t;function o(t){const e=t.target;if(!e)return;const i=t.target.dom7EventData||[];if(i.indexOf(t)<0&&i.unshift(t),l(e).is(r))n.apply(e,i);else{const t=l(e).parents();for(let e=0;e<t.length;e+=1)l(t[e]).is(r)&&n.apply(t[e],i)}}function s(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),n.apply(this,e)}"function"===typeof t[1]&&([e,n,i]=t,r=void 0),i||(i=!1);const a=e.split(" ");let u;for(let h=0;h<this.length;h+=1){const t=this[h];if(r)for(u=0;u<a.length;u+=1){const e=a[u];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:n,proxyListener:o}),t.addEventListener(e,o,i)}else for(u=0;u<a.length;u+=1){const e=a[u];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:n,proxyListener:s}),t.addEventListener(e,s,i)}}return this}function _(...t){let[e,r,n,i]=t;"function"===typeof t[1]&&([e,n,i]=t,r=void 0),i||(i=!1);const o=e.split(" ");for(let s=0;s<o.length;s+=1){const t=o[s];for(let e=0;e<this.length;e+=1){const o=this[e];let s;if(!r&&o.dom7Listeners?s=o.dom7Listeners[t]:r&&o.dom7LiveListeners&&(s=o.dom7LiveListeners[t]),s&&s.length)for(let e=s.length-1;e>=0;e-=1){const r=s[e];n&&r.listener===n||n&&r.listener&&r.listener.dom7proxy&&r.listener.dom7proxy===n?(o.removeEventListener(t,r.proxyListener,i),s.splice(e,1)):n||(o.removeEventListener(t,r.proxyListener,i),s.splice(e,1))}}}return this}function k(...t){const e=t[0].split(" "),r=t[1];for(let i=0;i<e.length;i+=1){const s=e[i];for(let e=0;e<this.length;e+=1){const i=this[e];let u;try{u=new a.CustomEvent(s,{detail:r,bubbles:!0,cancelable:!0})}catch(n){u=o.createEvent("Event"),u.initEvent(s,!0,!0),u.detail=r}i.dom7EventData=t.filter((t,e)=>e>0),i.dispatchEvent(u),i.dom7EventData=[],delete i.dom7EventData}}return this}function S(t){const e=["webkitTransitionEnd","transitionend"],r=this;let n;function i(o){if(o.target===this)for(t.call(this,o),n=0;n<e.length;n+=1)r.off(e[n],i)}if(t)for(n=0;n<e.length;n+=1)r.on(e[n],i);return this}function x(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function E(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function A(){if(this.length>0){const t=this[0],e=t.getBoundingClientRect(),r=o.body,n=t.clientTop||r.clientTop||0,i=t.clientLeft||r.clientLeft||0,s=t===a?a.scrollY:t.scrollTop,u=t===a?a.scrollX:t.scrollLeft;return{top:e.top+s-n,left:e.left+u-i}}return null}function O(){return this[0]?a.getComputedStyle(this[0],null):{}}function T(t,e){let r;if(1===arguments.length){if("string"!==typeof t){for(r=0;r<this.length;r+=1)for(let e in t)this[r].style[e]=t[e];return this}if(this[0])return a.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"===typeof t){for(r=0;r<this.length;r+=1)this[r].style[t]=e;return this}return this}function C(t){if(!t)return this;for(let e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this}function P(t){const e=[],r=this;for(let n=0;n<r.length;n+=1)t.call(r[n],n,r[n])&&e.push(r[n]);return new h(e)}function B(t){if("undefined"===typeof t)return this[0]?this[0].innerHTML:void 0;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function I(t){if("undefined"===typeof t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this}function R(t){const e=this[0];let r,n;if(!e||"undefined"===typeof t)return!1;if("string"===typeof t){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(r=l(t),n=0;n<r.length;n+=1)if(r[n]===e)return!0;return!1}if(t===o)return e===o;if(t===a)return e===a;if(t.nodeType||t instanceof h){for(r=t.nodeType?[t]:t,n=0;n<r.length;n+=1)if(r[n]===e)return!0;return!1}return!1}function N(){let t,e=this[0];if(e){t=0;while(null!==(e=e.previousSibling))1===e.nodeType&&(t+=1);return t}}function j(t){if("undefined"===typeof t)return this;const e=this.length;let r;return t>e-1?new h([]):t<0?(r=e+t,new h(r<0?[]:[this[r]])):new h([this[t]])}function L(...t){let e;for(let r=0;r<t.length;r+=1){e=t[r];for(let t=0;t<this.length;t+=1)if("string"===typeof e){const r=o.createElement("div");r.innerHTML=e;while(r.firstChild)this[t].appendChild(r.firstChild)}else if(e instanceof h)for(let r=0;r<e.length;r+=1)this[t].appendChild(e[r]);else this[t].appendChild(e)}return this}function U(t){let e,r;for(e=0;e<this.length;e+=1)if("string"===typeof t){const n=o.createElement("div");for(n.innerHTML=t,r=n.childNodes.length-1;r>=0;r-=1)this[e].insertBefore(n.childNodes[r],this[e].childNodes[0])}else if(t instanceof h)for(r=0;r<t.length;r+=1)this[e].insertBefore(t[r],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function D(t){return this.length>0?t?this[0].nextElementSibling&&l(this[0].nextElementSibling).is(t)?new h([this[0].nextElementSibling]):new h([]):this[0].nextElementSibling?new h([this[0].nextElementSibling]):new h([]):new h([])}function F(t){const e=[];let r=this[0];if(!r)return new h([]);while(r.nextElementSibling){const n=r.nextElementSibling;t?l(n).is(t)&&e.push(n):e.push(n),r=n}return new h(e)}function z(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&l(e.previousElementSibling).is(t)?new h([e.previousElementSibling]):new h([]):e.previousElementSibling?new h([e.previousElementSibling]):new h([])}return new h([])}function q(t){const e=[];let r=this[0];if(!r)return new h([]);while(r.previousElementSibling){const n=r.previousElementSibling;t?l(n).is(t)&&e.push(n):e.push(n),r=n}return new h(e)}function H(t){const e=[];for(let r=0;r<this.length;r+=1)null!==this[r].parentNode&&(t?l(this[r].parentNode).is(t)&&e.push(this[r].parentNode):e.push(this[r].parentNode));return l(c(e))}function $(t){const e=[];for(let r=0;r<this.length;r+=1){let n=this[r].parentNode;while(n)t?l(n).is(t)&&e.push(n):e.push(n),n=n.parentNode}return l(c(e))}function V(t){let e=this;return"undefined"===typeof t?new h([]):(e.is(t)||(e=e.parents(t).eq(0)),e)}function K(t){const e=[];for(let r=0;r<this.length;r+=1){const n=this[r].querySelectorAll(t);for(let t=0;t<n.length;t+=1)e.push(n[t])}return new h(e)}function W(t){const e=[];for(let r=0;r<this.length;r+=1){const n=this[r].childNodes;for(let r=0;r<n.length;r+=1)t?1===n[r].nodeType&&l(n[r]).is(t)&&e.push(n[r]):1===n[r].nodeType&&e.push(n[r])}return new h(c(e))}function G(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function Z(...t){const e=this;let r,n;for(r=0;r<t.length;r+=1){const i=l(t[r]);for(n=0;n<i.length;n+=1)e[e.length]=i[n],e.length+=1}return e}l.fn=h.prototype,l.Class=h,l.Dom7=h;"resize scroll".split(" ");var J="undefined"===typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,X="undefined"===typeof window?{document:J,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window;const Y={addClass:f,removeClass:d,hasClass:p,toggleClass:m,attr:v,removeAttr:g,data:y,transform:b,transition:w,on:M,off:_,trigger:k,transitionEnd:S,outerWidth:x,outerHeight:E,offset:A,css:T,each:C,html:B,text:I,is:R,index:N,eq:j,append:L,prepend:U,next:D,nextAll:F,prev:z,prevAll:q,parent:H,parents:$,closest:V,find:K,children:W,filter:P,remove:G,add:Z,styles:O};Object.keys(Y).forEach(t=>{l.fn[t]=l.fn[t]||Y[t]});const Q={deleteProps(t){const e=t;Object.keys(e).forEach(t=>{try{e[t]=null}catch(r){}try{delete e[t]}catch(r){}})},nextTick(t,e=0){return setTimeout(t,e)},now(){return Date.now()},getTranslate(t,e="x"){let r,n,i;const o=X.getComputedStyle(t,null);return X.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(t=>t.replace(",",".")).join(", ")),i=new X.WebKitCSSMatrix("none"===n?"":n)):(i=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),"x"===e&&(n=X.WebKitCSSMatrix?i.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===e&&(n=X.WebKitCSSMatrix?i.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),n||0},parseUrlQuery(t){const e={};let r,n,i,o,s=t||X.location.href;if("string"===typeof s&&s.length)for(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"",n=s.split("&").filter(t=>""!==t),o=n.length,r=0;r<o;r+=1)i=n[r].replace(/#\S+/g,"").split("="),e[decodeURIComponent(i[0])]="undefined"===typeof i[1]?void 0:decodeURIComponent(i[1])||"";return e},isObject(t){return"object"===typeof t&&null!==t&&t.constructor&&t.constructor===Object},extend(...t){const e=Object(t[0]);for(let r=1;r<t.length;r+=1){const n=t[r];if(void 0!==n&&null!==n){const t=Object.keys(Object(n));for(let r=0,i=t.length;r<i;r+=1){const i=t[r],o=Object.getOwnPropertyDescriptor(n,i);void 0!==o&&o.enumerable&&(Q.isObject(e[i])&&Q.isObject(n[i])?Q.extend(e[i],n[i]):!Q.isObject(e[i])&&Q.isObject(n[i])?(e[i]={},Q.extend(e[i],n[i])):e[i]=n[i])}}}return e}},tt=function(){return{touch:X.Modernizr&&!0===X.Modernizr.touch||function(){return!!(X.navigator.maxTouchPoints>0||"ontouchstart"in X||X.DocumentTouch&&J instanceof X.DocumentTouch)}(),pointerEvents:!!X.PointerEvent&&"maxTouchPoints"in X.navigator&&X.navigator.maxTouchPoints>0,observer:function(){return"MutationObserver"in X||"WebkitMutationObserver"in X}(),passiveListener:function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get(){t=!0}});X.addEventListener("testPassiveListener",null,e)}catch(e){}return t}(),gestures:function(){return"ongesturestart"in X}()}}();class et{constructor(t={}){const e=this;e.params=t,e.eventsListeners={},e.params&&e.params.on&&Object.keys(e.params.on).forEach(t=>{e.on(t,e.params.on[t])})}on(t,e,r){const n=this;if("function"!==typeof e)return n;const i=r?"unshift":"push";return t.split(" ").forEach(t=>{n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][i](e)}),n}once(t,e,r){const n=this;if("function"!==typeof e)return n;function i(...r){n.off(t,i),i.f7proxy&&delete i.f7proxy,e.apply(n,r)}return i.f7proxy=e,n.on(t,i,r)}off(t,e){const r=this;return r.eventsListeners?(t.split(" ").forEach(t=>{"undefined"===typeof e?r.eventsListeners[t]=[]:r.eventsListeners[t]&&r.eventsListeners[t].length&&r.eventsListeners[t].forEach((n,i)=>{(n===e||n.f7proxy&&n.f7proxy===e)&&r.eventsListeners[t].splice(i,1)})}),r):r}emit(...t){const e=this;if(!e.eventsListeners)return e;let r,n,i;"string"===typeof t[0]||Array.isArray(t[0])?(r=t[0],n=t.slice(1,t.length),i=e):(r=t[0].events,n=t[0].data,i=t[0].context||e);const o=Array.isArray(r)?r:r.split(" ");return o.forEach(t=>{if(e.eventsListeners&&e.eventsListeners[t]){const r=[];e.eventsListeners[t].forEach(t=>{r.push(t)}),r.forEach(t=>{t.apply(i,n)})}}),e}useModulesParams(t){const e=this;e.modules&&Object.keys(e.modules).forEach(r=>{const n=e.modules[r];n.params&&Q.extend(t,n.params)})}useModules(t={}){const e=this;e.modules&&Object.keys(e.modules).forEach(r=>{const n=e.modules[r],i=t[r]||{};n.instance&&Object.keys(n.instance).forEach(t=>{const r=n.instance[t];e[t]="function"===typeof r?r.bind(e):r}),n.on&&e.on&&Object.keys(n.on).forEach(t=>{e.on(t,n.on[t])}),n.create&&n.create.bind(e)(i)})}static set components(t){const e=this;e.use&&e.use(t)}static installModule(t,...e){const r=this;r.prototype.modules||(r.prototype.modules={});const n=t.name||`${Object.keys(r.prototype.modules).length}_${Q.now()}`;return r.prototype.modules[n]=t,t.proto&&Object.keys(t.proto).forEach(e=>{r.prototype[e]=t.proto[e]}),t.static&&Object.keys(t.static).forEach(e=>{r[e]=t.static[e]}),t.install&&t.install.apply(r,e),r}static use(t,...e){const r=this;return Array.isArray(t)?(t.forEach(t=>r.installModule(t)),r):r.installModule(t,...e)}}function rt(){const t=this;let e,r;const n=t.$el;e="undefined"!==typeof t.params.width?t.params.width:n[0].clientWidth,r="undefined"!==typeof t.params.height?t.params.height:n[0].clientHeight,0===e&&t.isHorizontal()||0===r&&t.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),r=r-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),Q.extend(t,{width:e,height:r,size:t.isHorizontal()?e:r}))}function nt(){const t=this,e=t.params,{$wrapperEl:r,size:n,rtlTranslate:i,wrongRTL:o}=t,s=t.virtual&&e.virtual.enabled,a=s?t.virtual.slides.length:t.slides.length,u=r.children("."+t.params.slideClass),h=s?t.virtual.slides.length:u.length;let l=[];const c=[],f=[];function d(t){return!e.cssMode||t!==u.length-1}let p=e.slidesOffsetBefore;"function"===typeof p&&(p=e.slidesOffsetBefore.call(t));let m=e.slidesOffsetAfter;"function"===typeof m&&(m=e.slidesOffsetAfter.call(t));const v=t.snapGrid.length,g=t.snapGrid.length;let y,b,w=e.spaceBetween,M=-p,_=0,k=0;if("undefined"===typeof n)return;"string"===typeof w&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*n),t.virtualSize=-w,i?u.css({marginLeft:"",marginTop:""}):u.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(y=Math.floor(h/e.slidesPerColumn)===h/t.params.slidesPerColumn?h:Math.ceil(h/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(y=Math.max(y,e.slidesPerView*e.slidesPerColumn)));const S=e.slidesPerColumn,x=y/S,E=Math.floor(h/e.slidesPerColumn);for(let O=0;O<h;O+=1){b=0;const r=u.eq(O);if(e.slidesPerColumn>1){let n,i,o;if("row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){const t=Math.floor(O/(e.slidesPerGroup*e.slidesPerColumn)),s=O-e.slidesPerColumn*e.slidesPerGroup*t,a=0===t?e.slidesPerGroup:Math.min(Math.ceil((h-t*S*e.slidesPerGroup)/S),e.slidesPerGroup);o=Math.floor(s/a),i=s-o*a+t*e.slidesPerGroup,n=i+o*y/S,r.css({"-webkit-box-ordinal-group":n,"-moz-box-ordinal-group":n,"-ms-flex-order":n,"-webkit-order":n,order:n})}else"column"===e.slidesPerColumnFill?(i=Math.floor(O/S),o=O-i*S,(i>E||i===E&&o===S-1)&&(o+=1,o>=S&&(o=0,i+=1))):(o=Math.floor(O/x),i=O-o*x);r.css("margin-"+(t.isHorizontal()?"top":"left"),0!==o&&e.spaceBetween&&e.spaceBetween+"px")}if("none"!==r.css("display")){if("auto"===e.slidesPerView){const n=X.getComputedStyle(r[0],null),i=r[0].style.transform,o=r[0].style.webkitTransform;if(i&&(r[0].style.transform="none"),o&&(r[0].style.webkitTransform="none"),e.roundLengths)b=t.isHorizontal()?r.outerWidth(!0):r.outerHeight(!0);else if(t.isHorizontal()){const t=parseFloat(n.getPropertyValue("width")),e=parseFloat(n.getPropertyValue("padding-left")),r=parseFloat(n.getPropertyValue("padding-right")),i=parseFloat(n.getPropertyValue("margin-left")),o=parseFloat(n.getPropertyValue("margin-right")),s=n.getPropertyValue("box-sizing");b=s&&"border-box"===s?t+i+o:t+e+r+i+o}else{const t=parseFloat(n.getPropertyValue("height")),e=parseFloat(n.getPropertyValue("padding-top")),r=parseFloat(n.getPropertyValue("padding-bottom")),i=parseFloat(n.getPropertyValue("margin-top")),o=parseFloat(n.getPropertyValue("margin-bottom")),s=n.getPropertyValue("box-sizing");b=s&&"border-box"===s?t+i+o:t+e+r+i+o}i&&(r[0].style.transform=i),o&&(r[0].style.webkitTransform=o),e.roundLengths&&(b=Math.floor(b))}else b=(n-(e.slidesPerView-1)*w)/e.slidesPerView,e.roundLengths&&(b=Math.floor(b)),u[O]&&(t.isHorizontal()?u[O].style.width=b+"px":u[O].style.height=b+"px");u[O]&&(u[O].swiperSlideSize=b),f.push(b),e.centeredSlides?(M=M+b/2+_/2+w,0===_&&0!==O&&(M=M-n/2-w),0===O&&(M=M-n/2-w),Math.abs(M)<.001&&(M=0),e.roundLengths&&(M=Math.floor(M)),k%e.slidesPerGroup===0&&l.push(M),c.push(M)):(e.roundLengths&&(M=Math.floor(M)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup===0&&l.push(M),c.push(M),M=M+b+w),t.virtualSize+=b+w,_=b,k+=1}}let A;if(t.virtualSize=Math.max(t.virtualSize,n)+m,i&&o&&("slide"===e.effect||"coverflow"===e.effect)&&r.css({width:t.virtualSize+e.spaceBetween+"px"}),e.setWrapperSize&&(t.isHorizontal()?r.css({width:t.virtualSize+e.spaceBetween+"px"}):r.css({height:t.virtualSize+e.spaceBetween+"px"})),e.slidesPerColumn>1&&(t.virtualSize=(b+e.spaceBetween)*y,t.virtualSize=Math.ceil(t.virtualSize/e.slidesPerColumn)-e.spaceBetween,t.isHorizontal()?r.css({width:t.virtualSize+e.spaceBetween+"px"}):r.css({height:t.virtualSize+e.spaceBetween+"px"}),e.centeredSlides)){A=[];for(let r=0;r<l.length;r+=1){let n=l[r];e.roundLengths&&(n=Math.floor(n)),l[r]<t.virtualSize+l[0]&&A.push(n)}l=A}if(!e.centeredSlides){A=[];for(let r=0;r<l.length;r+=1){let i=l[r];e.roundLengths&&(i=Math.floor(i)),l[r]<=t.virtualSize-n&&A.push(i)}l=A,Math.floor(t.virtualSize-n)-Math.floor(l[l.length-1])>1&&l.push(t.virtualSize-n)}if(0===l.length&&(l=[0]),0!==e.spaceBetween&&(t.isHorizontal()?i?u.filter(d).css({marginLeft:w+"px"}):u.filter(d).css({marginRight:w+"px"}):u.filter(d).css({marginBottom:w+"px"})),e.centeredSlides&&e.centeredSlidesBounds){let t=0;f.forEach(r=>{t+=r+(e.spaceBetween?e.spaceBetween:0)}),t-=e.spaceBetween;const r=t-n;l=l.map(t=>t<0?-p:t>r?r+m:t)}if(e.centerInsufficientSlides){let t=0;if(f.forEach(r=>{t+=r+(e.spaceBetween?e.spaceBetween:0)}),t-=e.spaceBetween,t<n){const e=(n-t)/2;l.forEach((t,r)=>{l[r]=t-e}),c.forEach((t,r)=>{c[r]=t+e})}}Q.extend(t,{slides:u,snapGrid:l,slidesGrid:c,slidesSizesGrid:f}),h!==a&&t.emit("slidesLengthChange"),l.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),c.length!==g&&t.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&t.updateSlidesOffset()}function it(t){const e=this,r=[];let n,i=0;if("number"===typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed),"auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)e.visibleSlides.each((t,e)=>{r.push(e)});else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const t=e.activeIndex+n;if(t>e.slides.length)break;r.push(e.slides.eq(t)[0])}else r.push(e.slides.eq(e.activeIndex)[0]);for(n=0;n<r.length;n+=1)if("undefined"!==typeof r[n]){const t=r[n].offsetHeight;i=t>i?t:i}i&&e.$wrapperEl.css("height",i+"px")}function ot(){const t=this,e=t.slides;for(let r=0;r<e.length;r+=1)e[r].swiperSlideOffset=t.isHorizontal()?e[r].offsetLeft:e[r].offsetTop}function st(t=this&&this.translate||0){const e=this,r=e.params,{slides:n,rtlTranslate:i}=e;if(0===n.length)return;"undefined"===typeof n[0].swiperSlideOffset&&e.updateSlidesOffset();let o=-t;i&&(o=t),n.removeClass(r.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let s=0;s<n.length;s+=1){const t=n[s],a=(o+(r.centeredSlides?e.minTranslate():0)-t.swiperSlideOffset)/(t.swiperSlideSize+r.spaceBetween);if(r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight){const i=-(o-t.swiperSlideOffset),a=i+e.slidesSizesGrid[s],u=i>=0&&i<e.size-1||a>1&&a<=e.size||i<=0&&a>=e.size;u&&(e.visibleSlides.push(t),e.visibleSlidesIndexes.push(s),n.eq(s).addClass(r.slideVisibleClass))}t.progress=i?-a:a}e.visibleSlides=l(e.visibleSlides)}function at(t){const e=this;if("undefined"===typeof t){const r=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*r||0}const r=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:o,isEnd:s}=e;const a=o,u=s;0===n?(i=0,o=!0,s=!0):(i=(t-e.minTranslate())/n,o=i<=0,s=i>=1),Q.extend(e,{progress:i,isBeginning:o,isEnd:s}),(r.watchSlidesProgress||r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight)&&e.updateSlidesProgress(t),o&&!a&&e.emit("reachBeginning toEdge"),s&&!u&&e.emit("reachEnd toEdge"),(a&&!o||u&&!s)&&e.emit("fromEdge"),e.emit("progress",i)}function ut(){const t=this,{slides:e,params:r,$wrapperEl:n,activeIndex:i,realIndex:o}=t,s=t.virtual&&r.virtual.enabled;let a;e.removeClass(`${r.slideActiveClass} ${r.slideNextClass} ${r.slidePrevClass} ${r.slideDuplicateActiveClass} ${r.slideDuplicateNextClass} ${r.slideDuplicatePrevClass}`),a=s?t.$wrapperEl.find(`.${r.slideClass}[data-swiper-slide-index="${i}"]`):e.eq(i),a.addClass(r.slideActiveClass),r.loop&&(a.hasClass(r.slideDuplicateClass)?n.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(r.slideDuplicateActiveClass):n.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(r.slideDuplicateActiveClass));let u=a.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&0===u.length&&(u=e.eq(0),u.addClass(r.slideNextClass));let h=a.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);r.loop&&0===h.length&&(h=e.eq(-1),h.addClass(r.slidePrevClass)),r.loop&&(u.hasClass(r.slideDuplicateClass)?n.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicateNextClass):n.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicateNextClass),h.hasClass(r.slideDuplicateClass)?n.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicatePrevClass):n.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicatePrevClass))}function ht(t){const e=this,r=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:n,snapGrid:i,params:o,activeIndex:s,realIndex:a,snapIndex:u}=e;let h,l=t;if("undefined"===typeof l){for(let t=0;t<n.length;t+=1)"undefined"!==typeof n[t+1]?r>=n[t]&&r<n[t+1]-(n[t+1]-n[t])/2?l=t:r>=n[t]&&r<n[t+1]&&(l=t+1):r>=n[t]&&(l=t);o.normalizeSlideIndex&&(l<0||"undefined"===typeof l)&&(l=0)}if(i.indexOf(r)>=0)h=i.indexOf(r);else{const t=Math.min(o.slidesPerGroupSkip,l);h=t+Math.floor((l-t)/o.slidesPerGroup)}if(h>=i.length&&(h=i.length-1),l===s)return void(h!==u&&(e.snapIndex=h,e.emit("snapIndexChange")));const c=parseInt(e.slides.eq(l).attr("data-swiper-slide-index")||l,10);Q.extend(e,{snapIndex:h,realIndex:c,previousIndex:s,activeIndex:l}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),a!==c&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function lt(t){const e=this,r=e.params,n=l(t.target).closest("."+r.slideClass)[0];let i=!1;if(n)for(let o=0;o<e.slides.length;o+=1)e.slides[o]===n&&(i=!0);if(!n||!i)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=n,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(l(n).attr("data-swiper-slide-index"),10):e.clickedIndex=l(n).index(),r.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}var ct={updateSize:rt,updateSlides:nt,updateAutoHeight:it,updateSlidesOffset:ot,updateSlidesProgress:st,updateProgress:at,updateSlidesClasses:ut,updateActiveIndex:ht,updateClickedSlide:lt};function ft(t=(this.isHorizontal()?"x":"y")){const e=this,{params:r,rtlTranslate:n,translate:i,$wrapperEl:o}=e;if(r.virtualTranslate)return n?-i:i;if(r.cssMode)return i;let s=Q.getTranslate(o[0],t);return n&&(s=-s),s||0}function dt(t,e){const r=this,{rtlTranslate:n,params:i,$wrapperEl:o,wrapperEl:s,progress:a}=r;let u=0,h=0;const l=0;let c;r.isHorizontal()?u=n?-t:t:h=t,i.roundLengths&&(u=Math.floor(u),h=Math.floor(h)),i.cssMode?s[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-u:-h:i.virtualTranslate||o.transform(`translate3d(${u}px, ${h}px, ${l}px)`),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?u:h;const f=r.maxTranslate()-r.minTranslate();c=0===f?0:(t-r.minTranslate())/f,c!==a&&r.updateProgress(t),r.emit("setTranslate",r.translate,e)}function pt(){return-this.snapGrid[0]}function mt(){return-this.snapGrid[this.snapGrid.length-1]}function vt(t=0,e=this.params.speed,r=!0,n=!0,i){const o=this,{params:s,wrapperEl:a}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const u=o.minTranslate(),h=o.maxTranslate();let l;if(l=n&&t>u?u:n&&t<h?h:t,o.updateProgress(l),s.cssMode){const t=o.isHorizontal();return 0===e?a[t?"scrollLeft":"scrollTop"]=-l:a.scrollTo?a.scrollTo({[t?"left":"top"]:-l,behavior:"smooth"}):a[t?"scrollLeft":"scrollTop"]=-l,!0}return 0===e?(o.setTransition(0),o.setTranslate(l),r&&(o.emit("beforeTransitionStart",e,i),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(l),r&&(o.emit("beforeTransitionStart",e,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,r&&o.emit("transitionEnd"))}),o.$wrapperEl[0].addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd))),!0}var gt={getTranslate:ft,setTranslate:dt,minTranslate:pt,maxTranslate:mt,translateTo:vt};function yt(t,e){const r=this;r.params.cssMode||r.$wrapperEl.transition(t),r.emit("setTransition",t,e)}function bt(t=!0,e){const r=this,{activeIndex:n,params:i,previousIndex:o}=r;if(i.cssMode)return;i.autoHeight&&r.updateAutoHeight();let s=e;if(s||(s=n>o?"next":n<o?"prev":"reset"),r.emit("transitionStart"),t&&n!==o){if("reset"===s)return void r.emit("slideResetTransitionStart");r.emit("slideChangeTransitionStart"),"next"===s?r.emit("slideNextTransitionStart"):r.emit("slidePrevTransitionStart")}}function wt(t=!0,e){const r=this,{activeIndex:n,previousIndex:i,params:o}=r;if(r.animating=!1,o.cssMode)return;r.setTransition(0);let s=e;if(s||(s=n>i?"next":n<i?"prev":"reset"),r.emit("transitionEnd"),t&&n!==i){if("reset"===s)return void r.emit("slideResetTransitionEnd");r.emit("slideChangeTransitionEnd"),"next"===s?r.emit("slideNextTransitionEnd"):r.emit("slidePrevTransitionEnd")}}var Mt={setTransition:yt,transitionStart:bt,transitionEnd:wt};function _t(t=0,e=this.params.speed,r=!0,n){const i=this;let o=t;o<0&&(o=0);const{params:s,snapGrid:a,slidesGrid:u,previousIndex:h,activeIndex:l,rtlTranslate:c,wrapperEl:f}=i;if(i.animating&&s.preventInteractionOnTransition)return!1;const d=Math.min(i.params.slidesPerGroupSkip,o);let p=d+Math.floor((o-d)/i.params.slidesPerGroup);p>=a.length&&(p=a.length-1),(l||s.initialSlide||0)===(h||0)&&r&&i.emit("beforeSlideChangeStart");const m=-a[p];if(i.updateProgress(m),s.normalizeSlideIndex)for(let g=0;g<u.length;g+=1)-Math.floor(100*m)>=Math.floor(100*u[g])&&(o=g);if(i.initialized&&o!==l){if(!i.allowSlideNext&&m<i.translate&&m<i.minTranslate())return!1;if(!i.allowSlidePrev&&m>i.translate&&m>i.maxTranslate()&&(l||0)!==o)return!1}let v;if(v=o>l?"next":o<l?"prev":"reset",c&&-m===i.translate||!c&&m===i.translate)return i.updateActiveIndex(o),s.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==s.effect&&i.setTranslate(m),"reset"!==v&&(i.transitionStart(r,v),i.transitionEnd(r,v)),!1;if(s.cssMode){const t=i.isHorizontal();let r=-m;return c&&(r=f.scrollWidth-f.offsetWidth-r),0===e?f[t?"scrollLeft":"scrollTop"]=r:f.scrollTo?f.scrollTo({[t?"left":"top"]:r,behavior:"smooth"}):f[t?"scrollLeft":"scrollTop"]=r,!0}return 0===e?(i.setTransition(0),i.setTranslate(m),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,n),i.transitionStart(r,v),i.transitionEnd(r,v)):(i.setTransition(e),i.setTranslate(m),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,n),i.transitionStart(r,v),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(t){i&&!i.destroyed&&t.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(r,v))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))),!0}function kt(t=0,e=this.params.speed,r=!0,n){const i=this;let o=t;return i.params.loop&&(o+=i.loopedSlides),i.slideTo(o,e,r,n)}function St(t=this.params.speed,e=!0,r){const n=this,{params:i,animating:o}=n,s=n.activeIndex<i.slidesPerGroupSkip?1:i.slidesPerGroup;if(i.loop){if(o)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}return n.slideTo(n.activeIndex+s,t,e,r)}function xt(t=this.params.speed,e=!0,r){const n=this,{params:i,animating:o,snapGrid:s,slidesGrid:a,rtlTranslate:u}=n;if(i.loop){if(o)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}const h=u?n.translate:-n.translate;function l(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const c=l(h),f=s.map(t=>l(t));a.map(t=>l(t)),s[f.indexOf(c)];let d,p=s[f.indexOf(c)-1];return"undefined"===typeof p&&i.cssMode&&s.forEach(t=>{!p&&c>=t&&(p=t)}),"undefined"!==typeof p&&(d=a.indexOf(p),d<0&&(d=n.activeIndex-1)),n.slideTo(d,t,e,r)}function Et(t=this.params.speed,e=!0,r){const n=this;return n.slideTo(n.activeIndex,t,e,r)}function At(t=this.params.speed,e=!0,r,n=.5){const i=this;let o=i.activeIndex;const s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),u=i.rtlTranslate?i.translate:-i.translate;if(u>=i.snapGrid[a]){const t=i.snapGrid[a],e=i.snapGrid[a+1];u-t>(e-t)*n&&(o+=i.params.slidesPerGroup)}else{const t=i.snapGrid[a-1],e=i.snapGrid[a];u-t<=(e-t)*n&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,t,e,r)}function Ot(){const t=this,{params:e,$wrapperEl:r}=t,n="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let i,o=t.clickedIndex;if(e.loop){if(t.animating)return;i=parseInt(l(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?o<t.loopedSlides-n/2||o>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=r.children(`.${e.slideClass}[data-swiper-slide-index="${i}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Q.nextTick(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=r.children(`.${e.slideClass}[data-swiper-slide-index="${i}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Q.nextTick(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}var Tt={slideTo:_t,slideToLoop:kt,slideNext:St,slidePrev:xt,slideReset:Et,slideToClosest:At,slideToClickedSlide:Ot};function Ct(){const t=this,{params:e,$wrapperEl:r}=t;r.children(`.${e.slideClass}.${e.slideDuplicateClass}`).remove();let n=r.children("."+e.slideClass);if(e.loopFillGroupWithBlank){const t=e.slidesPerGroup-n.length%e.slidesPerGroup;if(t!==e.slidesPerGroup){for(let n=0;n<t;n+=1){const t=l(J.createElement("div")).addClass(`${e.slideClass} ${e.slideBlankClass}`);r.append(t)}n=r.children("."+e.slideClass)}}"auto"!==e.slidesPerView||e.loopedSlides||(e.loopedSlides=n.length),t.loopedSlides=Math.ceil(parseFloat(e.loopedSlides||e.slidesPerView,10)),t.loopedSlides+=e.loopAdditionalSlides,t.loopedSlides>n.length&&(t.loopedSlides=n.length);const i=[],o=[];n.each((e,r)=>{const s=l(r);e<t.loopedSlides&&o.push(r),e<n.length&&e>=n.length-t.loopedSlides&&i.push(r),s.attr("data-swiper-slide-index",e)});for(let s=0;s<o.length;s+=1)r.append(l(o[s].cloneNode(!0)).addClass(e.slideDuplicateClass));for(let s=i.length-1;s>=0;s-=1)r.prepend(l(i[s].cloneNode(!0)).addClass(e.slideDuplicateClass))}function Pt(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:r,loopedSlides:n,allowSlidePrev:i,allowSlideNext:o,snapGrid:s,rtlTranslate:a}=t;let u;t.allowSlidePrev=!0,t.allowSlideNext=!0;const h=-s[e],l=h-t.getTranslate();if(e<n){u=r.length-3*n+e,u+=n;const i=t.slideTo(u,0,!1,!0);i&&0!==l&&t.setTranslate((a?-t.translate:t.translate)-l)}else if(e>=r.length-n){u=-r.length+e+n,u+=n;const i=t.slideTo(u,0,!1,!0);i&&0!==l&&t.setTranslate((a?-t.translate:t.translate)-l)}t.allowSlidePrev=i,t.allowSlideNext=o,t.emit("loopFix")}function Bt(){const t=this,{$wrapperEl:e,params:r,slides:n}=t;e.children(`.${r.slideClass}.${r.slideDuplicateClass},.${r.slideClass}.${r.slideBlankClass}`).remove(),n.removeAttr("data-swiper-slide-index")}var It={loopCreate:Ct,loopFix:Pt,loopDestroy:Bt};function Rt(t){const e=this;if(tt.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const r=e.el;r.style.cursor="move",r.style.cursor=t?"-webkit-grabbing":"-webkit-grab",r.style.cursor=t?"-moz-grabbin":"-moz-grab",r.style.cursor=t?"grabbing":"grab"}function Nt(){const t=this;tt.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.el.style.cursor="")}var jt={setGrabCursor:Rt,unsetGrabCursor:Nt};function Lt(t){const e=this,{$wrapperEl:r,params:n}=e;if(n.loop&&e.loopDestroy(),"object"===typeof t&&"length"in t)for(let i=0;i<t.length;i+=1)t[i]&&r.append(t[i]);else r.append(t);n.loop&&e.loopCreate(),n.observer&&tt.observer||e.update()}function Ut(t){const e=this,{params:r,$wrapperEl:n,activeIndex:i}=e;r.loop&&e.loopDestroy();let o=i+1;if("object"===typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&n.prepend(t[e]);o=i+t.length}else n.prepend(t);r.loop&&e.loopCreate(),r.observer&&tt.observer||e.update(),e.slideTo(o,0,!1)}function Dt(t,e){const r=this,{$wrapperEl:n,params:i,activeIndex:o}=r;let s=o;i.loop&&(s-=r.loopedSlides,r.loopDestroy(),r.slides=n.children("."+i.slideClass));const a=r.slides.length;if(t<=0)return void r.prependSlide(e);if(t>=a)return void r.appendSlide(e);let u=s>t?s+1:s;const h=[];for(let l=a-1;l>=t;l-=1){const t=r.slides.eq(l);t.remove(),h.unshift(t)}if("object"===typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&n.append(e[t]);u=s>t?s+e.length:s}else n.append(e);for(let l=0;l<h.length;l+=1)n.append(h[l]);i.loop&&r.loopCreate(),i.observer&&tt.observer||r.update(),i.loop?r.slideTo(u+r.loopedSlides,0,!1):r.slideTo(u,0,!1)}function Ft(t){const e=this,{params:r,$wrapperEl:n,activeIndex:i}=e;let o=i;r.loop&&(o-=e.loopedSlides,e.loopDestroy(),e.slides=n.children("."+r.slideClass));let s,a=o;if("object"===typeof t&&"length"in t){for(let r=0;r<t.length;r+=1)s=t[r],e.slides[s]&&e.slides.eq(s).remove(),s<a&&(a-=1);a=Math.max(a,0)}else s=t,e.slides[s]&&e.slides.eq(s).remove(),s<a&&(a-=1),a=Math.max(a,0);r.loop&&e.loopCreate(),r.observer&&tt.observer||e.update(),r.loop?e.slideTo(a+e.loopedSlides,0,!1):e.slideTo(a,0,!1)}function zt(){const t=this,e=[];for(let r=0;r<t.slides.length;r+=1)e.push(r);t.removeSlide(e)}var qt={appendSlide:Lt,prependSlide:Ut,addSlide:Dt,removeSlide:Ft,removeAllSlides:zt};const Ht=function(){const t=X.navigator.platform,e=X.navigator.userAgent,r={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!X.cordova&&!X.phonegap),phonegap:!(!X.cordova&&!X.phonegap),electron:!1},n=X.screen.width,i=X.screen.height,o=e.match(/(Android);?[\s\/]+([\d.]+)?/);let s=e.match(/(iPad).*OS\s([\d_]+)/);const a=e.match(/(iPod)(.*OS\s([\d_]+))?/),u=!s&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0,l=e.indexOf("Edge/")>=0,c=e.indexOf("Gecko/")>=0&&e.indexOf("Firefox/")>=0,f="Win32"===t,d=e.toLowerCase().indexOf("electron")>=0;let p="MacIntel"===t;return!s&&p&&tt.touch&&(1024===n&&1366===i||834===n&&1194===i||834===n&&1112===i||768===n&&1024===i)&&(s=e.match(/(Version)\/([\d.]+)/),p=!1),r.ie=h,r.edge=l,r.firefox=c,o&&!f&&(r.os="android",r.osVersion=o[2],r.android=!0,r.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(s||u||a)&&(r.os="ios",r.ios=!0),u&&!a&&(r.osVersion=u[2].replace(/_/g,"."),r.iphone=!0),s&&(r.osVersion=s[2].replace(/_/g,"."),r.ipad=!0),a&&(r.osVersion=a[3]?a[3].replace(/_/g,"."):null,r.ipod=!0),r.ios&&r.osVersion&&e.indexOf("Version/")>=0&&"10"===r.osVersion.split(".")[0]&&(r.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),r.webView=!(!(u||s||a)||!e.match(/.*AppleWebKit(?!.*Safari)/i)&&!X.navigator.standalone)||X.matchMedia&&X.matchMedia("(display-mode: standalone)").matches,r.webview=r.webView,r.standalone=r.webView,r.desktop=!(r.ios||r.android)||d,r.desktop&&(r.electron=d,r.macos=p,r.windows=f,r.macos&&(r.os="macos"),r.windows&&(r.os="windows")),r.pixelRatio=X.devicePixelRatio||1,r}();function $t(t){const e=this,r=e.touchEventsData,{params:n,touches:i}=e;if(e.animating&&n.preventInteractionOnTransition)return;let o=t;o.originalEvent&&(o=o.originalEvent);const s=l(o.target);if("wrapper"===n.touchEventsTarget&&!s.closest(e.wrapperEl).length)return;if(r.isTouchEvent="touchstart"===o.type,!r.isTouchEvent&&"which"in o&&3===o.which)return;if(!r.isTouchEvent&&"button"in o&&o.button>0)return;if(r.isTouched&&r.isMoved)return;if(n.noSwiping&&s.closest(n.noSwipingSelector?n.noSwipingSelector:"."+n.noSwipingClass)[0])return void(e.allowClick=!0);if(n.swipeHandler&&!s.closest(n.swipeHandler)[0])return;i.currentX="touchstart"===o.type?o.targetTouches[0].pageX:o.pageX,i.currentY="touchstart"===o.type?o.targetTouches[0].pageY:o.pageY;const a=i.currentX,u=i.currentY,h=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,c=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(!h||!(a<=c||a>=X.screen.width-c)){if(Q.extend(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=a,i.startY=u,r.touchStartTime=Q.now(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==o.type){let t=!0;s.is(r.formElements)&&(t=!1),J.activeElement&&l(J.activeElement).is(r.formElements)&&J.activeElement!==s[0]&&J.activeElement.blur();const i=t&&e.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||i)&&o.preventDefault()}e.emit("touchStart",o)}}function Vt(t){const e=this,r=e.touchEventsData,{params:n,touches:i,rtlTranslate:o}=e;let s=t;if(s.originalEvent&&(s=s.originalEvent),!r.isTouched)return void(r.startMoving&&r.isScrolling&&e.emit("touchMoveOpposite",s));if(r.isTouchEvent&&"mousemove"===s.type)return;const a="touchmove"===s.type&&s.targetTouches&&(s.targetTouches[0]||s.changedTouches[0]),u="touchmove"===s.type?a.pageX:s.pageX,h="touchmove"===s.type?a.pageY:s.pageY;if(s.preventedByNestedSwiper)return i.startX=u,void(i.startY=h);if(!e.allowTouchMove)return e.allowClick=!1,void(r.isTouched&&(Q.extend(i,{startX:u,startY:h,currentX:u,currentY:h}),r.touchStartTime=Q.now()));if(r.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(e.isVertical()){if(h<i.startY&&e.translate<=e.maxTranslate()||h>i.startY&&e.translate>=e.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(u<i.startX&&e.translate<=e.maxTranslate()||u>i.startX&&e.translate>=e.minTranslate())return;if(r.isTouchEvent&&J.activeElement&&s.target===J.activeElement&&l(s.target).is(r.formElements))return r.isMoved=!0,void(e.allowClick=!1);if(r.allowTouchCallbacks&&e.emit("touchMove",s),s.targetTouches&&s.targetTouches.length>1)return;i.currentX=u,i.currentY=h;const c=i.currentX-i.startX,f=i.currentY-i.startY;if(e.params.threshold&&Math.sqrt(c**2+f**2)<e.params.threshold)return;if("undefined"===typeof r.isScrolling){let t;e.isHorizontal()&&i.currentY===i.startY||e.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:c*c+f*f>=25&&(t=180*Math.atan2(Math.abs(f),Math.abs(c))/Math.PI,r.isScrolling=e.isHorizontal()?t>n.touchAngle:90-t>n.touchAngle)}if(r.isScrolling&&e.emit("touchMoveOpposite",s),"undefined"===typeof r.startMoving&&(i.currentX===i.startX&&i.currentY===i.startY||(r.startMoving=!0)),r.isScrolling)return void(r.isTouched=!1);if(!r.startMoving)return;e.allowClick=!1,n.cssMode||s.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&s.stopPropagation(),r.isMoved||(n.loop&&e.loopFix(),r.startTranslate=e.getTranslate(),e.setTransition(0),e.animating&&e.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!n.grabCursor||!0!==e.allowSlideNext&&!0!==e.allowSlidePrev||e.setGrabCursor(!0),e.emit("sliderFirstMove",s)),e.emit("sliderMove",s),r.isMoved=!0;let d=e.isHorizontal()?c:f;i.diff=d,d*=n.touchRatio,o&&(d=-d),e.swipeDirection=d>0?"prev":"next",r.currentTranslate=d+r.startTranslate;let p=!0,m=n.resistanceRatio;if(n.touchReleaseOnEdges&&(m=0),d>0&&r.currentTranslate>e.minTranslate()?(p=!1,n.resistance&&(r.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+r.startTranslate+d)**m)):d<0&&r.currentTranslate<e.maxTranslate()&&(p=!1,n.resistance&&(r.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-r.startTranslate-d)**m)),p&&(s.preventedByNestedSwiper=!0),!e.allowSlideNext&&"next"===e.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!e.allowSlidePrev&&"prev"===e.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.threshold>0){if(!(Math.abs(d)>n.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,void(i.diff=e.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY)}n.followFinger&&!n.cssMode&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(e.updateActiveIndex(),e.updateSlidesClasses()),n.freeMode&&(0===r.velocities.length&&r.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:Q.now()})),e.updateProgress(r.currentTranslate),e.setTranslate(r.currentTranslate))}function Kt(t){const e=this,r=e.touchEventsData,{params:n,touches:i,rtlTranslate:o,$wrapperEl:s,slidesGrid:a,snapGrid:u}=e;let h=t;if(h.originalEvent&&(h=h.originalEvent),r.allowTouchCallbacks&&e.emit("touchEnd",h),r.allowTouchCallbacks=!1,!r.isTouched)return r.isMoved&&n.grabCursor&&e.setGrabCursor(!1),r.isMoved=!1,void(r.startMoving=!1);n.grabCursor&&r.isMoved&&r.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const l=Q.now(),c=l-r.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(h),e.emit("tap click",h),c<300&&l-r.lastClickTime<300&&e.emit("doubleTap doubleClick",h)),r.lastClickTime=Q.now(),Q.nextTick(()=>{e.destroyed||(e.allowClick=!0)}),!r.isTouched||!r.isMoved||!e.swipeDirection||0===i.diff||r.currentTranslate===r.startTranslate)return r.isTouched=!1,r.isMoved=!1,void(r.startMoving=!1);let f;if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,f=n.followFinger?o?e.translate:-e.translate:-r.currentTranslate,n.cssMode)return;if(n.freeMode){if(f<-e.minTranslate())return void e.slideTo(e.activeIndex);if(f>-e.maxTranslate())return void(e.slides.length<u.length?e.slideTo(u.length-1):e.slideTo(e.slides.length-1));if(n.freeModeMomentum){if(r.velocities.length>1){const t=r.velocities.pop(),i=r.velocities.pop(),o=t.position-i.position,s=t.time-i.time;e.velocity=o/s,e.velocity/=2,Math.abs(e.velocity)<n.freeModeMinimumVelocity&&(e.velocity=0),(s>150||Q.now()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=n.freeModeMomentumVelocityRatio,r.velocities.length=0;let t=1e3*n.freeModeMomentumRatio;const i=e.velocity*t;let a=e.translate+i;o&&(a=-a);let h,l=!1;const c=20*Math.abs(e.velocity)*n.freeModeMomentumBounceRatio;let f;if(a<e.maxTranslate())n.freeModeMomentumBounce?(a+e.maxTranslate()<-c&&(a=e.maxTranslate()-c),h=e.maxTranslate(),l=!0,r.allowMomentumBounce=!0):a=e.maxTranslate(),n.loop&&n.centeredSlides&&(f=!0);else if(a>e.minTranslate())n.freeModeMomentumBounce?(a-e.minTranslate()>c&&(a=e.minTranslate()+c),h=e.minTranslate(),l=!0,r.allowMomentumBounce=!0):a=e.minTranslate(),n.loop&&n.centeredSlides&&(f=!0);else if(n.freeModeSticky){let t;for(let e=0;e<u.length;e+=1)if(u[e]>-a){t=e;break}a=Math.abs(u[t]-a)<Math.abs(u[t-1]-a)||"next"===e.swipeDirection?u[t]:u[t-1],a=-a}if(f&&e.once("transitionEnd",()=>{e.loopFix()}),0!==e.velocity){if(t=o?Math.abs((-a-e.translate)/e.velocity):Math.abs((a-e.translate)/e.velocity),n.freeModeSticky){const r=Math.abs((o?-a:a)-e.translate),i=e.slidesSizesGrid[e.activeIndex];t=r<i?n.speed:r<2*i?1.5*n.speed:2.5*n.speed}}else if(n.freeModeSticky)return void e.slideToClosest();n.freeModeMomentumBounce&&l?(e.updateProgress(h),e.setTransition(t),e.setTranslate(a),e.transitionStart(!0,e.swipeDirection),e.animating=!0,s.transitionEnd(()=>{e&&!e.destroyed&&r.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(n.speed),e.setTranslate(h),s.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()}))})):e.velocity?(e.updateProgress(a),e.setTransition(t),e.setTranslate(a),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,s.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(a),e.updateActiveIndex(),e.updateSlidesClasses()}else if(n.freeModeSticky)return void e.slideToClosest();return void((!n.freeModeMomentum||c>=n.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses()))}let d=0,p=e.slidesSizesGrid[0];for(let g=0;g<a.length;g+=g<n.slidesPerGroupSkip?1:n.slidesPerGroup){const t=g<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;"undefined"!==typeof a[g+t]?f>=a[g]&&f<a[g+t]&&(d=g,p=a[g+t]-a[g]):f>=a[g]&&(d=g,p=a[a.length-1]-a[a.length-2])}const m=(f-a[d])/p,v=d<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(c>n.longSwipesMs){if(!n.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(m>=n.longSwipesRatio?e.slideTo(d+v):e.slideTo(d)),"prev"===e.swipeDirection&&(m>1-n.longSwipesRatio?e.slideTo(d+v):e.slideTo(d))}else{if(!n.shortSwipes)return void e.slideTo(e.activeIndex);const t=e.navigation&&(h.target===e.navigation.nextEl||h.target===e.navigation.prevEl);t?h.target===e.navigation.nextEl?e.slideTo(d+v):e.slideTo(d):("next"===e.swipeDirection&&e.slideTo(d+v),"prev"===e.swipeDirection&&e.slideTo(d))}}function Wt(){const t=this,{params:e,el:r}=t;if(r&&0===r.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:i,snapGrid:o}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=i,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function Gt(t){const e=this;e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function Zt(){const t=this,{wrapperEl:e,rtlTranslate:r}=t;let n;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=r?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:t.translate=-e.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const i=t.maxTranslate()-t.minTranslate();n=0===i?0:(t.translate-t.minTranslate())/i,n!==t.progress&&t.updateProgress(r?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let Jt=!1;function Xt(){}function Yt(){const t=this,{params:e,touchEvents:r,el:n,wrapperEl:i}=t;t.onTouchStart=$t.bind(t),t.onTouchMove=Vt.bind(t),t.onTouchEnd=Kt.bind(t),e.cssMode&&(t.onScroll=Zt.bind(t)),t.onClick=Gt.bind(t);const o=!!e.nested;if(!tt.touch&&tt.pointerEvents)n.addEventListener(r.start,t.onTouchStart,!1),J.addEventListener(r.move,t.onTouchMove,o),J.addEventListener(r.end,t.onTouchEnd,!1);else{if(tt.touch){const i=!("touchstart"!==r.start||!tt.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};n.addEventListener(r.start,t.onTouchStart,i),n.addEventListener(r.move,t.onTouchMove,tt.passiveListener?{passive:!1,capture:o}:o),n.addEventListener(r.end,t.onTouchEnd,i),r.cancel&&n.addEventListener(r.cancel,t.onTouchEnd,i),Jt||(J.addEventListener("touchstart",Xt),Jt=!0)}(e.simulateTouch&&!Ht.ios&&!Ht.android||e.simulateTouch&&!tt.touch&&Ht.ios)&&(n.addEventListener("mousedown",t.onTouchStart,!1),J.addEventListener("mousemove",t.onTouchMove,o),J.addEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&n.addEventListener("click",t.onClick,!0),e.cssMode&&i.addEventListener("scroll",t.onScroll),e.updateOnWindowResize?t.on(Ht.ios||Ht.android?"resize orientationchange observerUpdate":"resize observerUpdate",Wt,!0):t.on("observerUpdate",Wt,!0)}function Qt(){const t=this,{params:e,touchEvents:r,el:n,wrapperEl:i}=t,o=!!e.nested;if(!tt.touch&&tt.pointerEvents)n.removeEventListener(r.start,t.onTouchStart,!1),J.removeEventListener(r.move,t.onTouchMove,o),J.removeEventListener(r.end,t.onTouchEnd,!1);else{if(tt.touch){const i=!("onTouchStart"!==r.start||!tt.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};n.removeEventListener(r.start,t.onTouchStart,i),n.removeEventListener(r.move,t.onTouchMove,o),n.removeEventListener(r.end,t.onTouchEnd,i),r.cancel&&n.removeEventListener(r.cancel,t.onTouchEnd,i)}(e.simulateTouch&&!Ht.ios&&!Ht.android||e.simulateTouch&&!tt.touch&&Ht.ios)&&(n.removeEventListener("mousedown",t.onTouchStart,!1),J.removeEventListener("mousemove",t.onTouchMove,o),J.removeEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&n.removeEventListener("click",t.onClick,!0),e.cssMode&&i.removeEventListener("scroll",t.onScroll),t.off(Ht.ios||Ht.android?"resize orientationchange observerUpdate":"resize observerUpdate",Wt)}var te={attachEvents:Yt,detachEvents:Qt};function ee(){const t=this,{activeIndex:e,initialized:r,loopedSlides:n=0,params:i,$el:o}=t,s=i.breakpoints;if(!s||s&&0===Object.keys(s).length)return;const a=t.getBreakpoint(s);if(a&&t.currentBreakpoint!==a){const u=a in s?s[a]:void 0;u&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(t=>{const e=u[t];"undefined"!==typeof e&&(u[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")});const h=u||t.originalParams,l=i.slidesPerColumn>1,c=h.slidesPerColumn>1;l&&!c?o.removeClass(`${i.containerModifierClass}multirow ${i.containerModifierClass}multirow-column`):!l&&c&&(o.addClass(i.containerModifierClass+"multirow"),"column"===h.slidesPerColumnFill&&o.addClass(i.containerModifierClass+"multirow-column"));const f=h.direction&&h.direction!==i.direction,d=i.loop&&(h.slidesPerView!==i.slidesPerView||f);f&&r&&t.changeDirection(),Q.extend(t.params,h),Q.extend(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=a,d&&r&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-n+t.loopedSlides,0,!1)),t.emit("breakpoint",h)}}function re(t){if(!t)return;let e=!1;const r=Object.keys(t).map(t=>{if("string"===typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1)),r=X.innerHeight*e;return{value:r,point:t}}return{value:t,point:t}});r.sort((t,e)=>parseInt(t.value,10)-parseInt(e.value,10));for(let n=0;n<r.length;n+=1){const{point:t,value:i}=r[n];i<=X.innerWidth&&(e=t)}return e||"max"}var ne={setBreakpoint:ee,getBreakpoint:re};function ie(){const t=this,{classNames:e,params:r,rtl:n,$el:i}=t,o=[];o.push("initialized"),o.push(r.direction),r.freeMode&&o.push("free-mode"),r.autoHeight&&o.push("autoheight"),n&&o.push("rtl"),r.slidesPerColumn>1&&(o.push("multirow"),"column"===r.slidesPerColumnFill&&o.push("multirow-column")),Ht.android&&o.push("android"),Ht.ios&&o.push("ios"),r.cssMode&&o.push("css-mode"),o.forEach(t=>{e.push(r.containerModifierClass+t)}),i.addClass(e.join(" "))}function oe(){const t=this,{$el:e,classNames:r}=t;e.removeClass(r.join(" "))}var se={addClasses:ie,removeClasses:oe};function ae(t,e,r,n,i,o){let s;function a(){o&&o()}t.complete&&i?a():e?(s=new X.Image,s.onload=a,s.onerror=a,n&&(s.sizes=n),r&&(s.srcset=r),e&&(s.src=e)):a()}function ue(){const t=this;function e(){"undefined"!==typeof t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(let r=0;r<t.imagesToLoad.length;r+=1){const n=t.imagesToLoad[r];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}var he={loadImage:ae,preloadImages:ue};function le(){const t=this,e=t.params,r=t.isLocked,n=t.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(t.slides.length-1)+t.slides[0].offsetWidth*t.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&n?t.isLocked=n<=t.size:t.isLocked=1===t.snapGrid.length,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,r!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),r&&r!==t.isLocked&&(t.isEnd=!1,t.navigation.update())}var ce={checkOverflow:le},fe={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0};const de={update:ct,translate:gt,transition:Mt,slide:Tt,loop:It,grabCursor:jt,manipulation:qt,events:te,breakpoints:ne,checkOverflow:ce,classes:se,images:he},pe={};class me extends et{constructor(...t){let e,r;1===t.length&&t[0].constructor&&t[0].constructor===Object?r=t[0]:[e,r]=t,r||(r={}),r=Q.extend({},r),e&&!r.el&&(r.el=e),super(r),Object.keys(de).forEach(t=>{Object.keys(de[t]).forEach(e=>{me.prototype[e]||(me.prototype[e]=de[t][e])})});const n=this;"undefined"===typeof n.modules&&(n.modules={}),Object.keys(n.modules).forEach(t=>{const e=n.modules[t];if(e.params){const t=Object.keys(e.params)[0],n=e.params[t];if("object"!==typeof n||null===n)return;if(!(t in r)||!("enabled"in n))return;!0===r[t]&&(r[t]={enabled:!0}),"object"!==typeof r[t]||"enabled"in r[t]||(r[t].enabled=!0),r[t]||(r[t]={enabled:!1})}});const i=Q.extend({},fe);n.useModulesParams(i),n.params=Q.extend({},i,pe,r),n.originalParams=Q.extend({},n.params),n.passedParams=Q.extend({},r),n.$=l;const o=l(n.params.el);if(e=o[0],!e)return;if(o.length>1){const t=[];return o.each((e,n)=>{const i=Q.extend({},r,{el:n});t.push(new me(i))}),t}let s;return e.swiper=n,o.data("swiper",n),e&&e.shadowRoot&&e.shadowRoot.querySelector?(s=l(e.shadowRoot.querySelector("."+n.params.wrapperClass)),s.children=t=>o.children(t)):s=o.children("."+n.params.wrapperClass),Q.extend(n,{$el:o,el:e,$wrapperEl:s,wrapperEl:s[0],classNames:[],slides:l(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===n.params.direction},isVertical(){return"vertical"===n.params.direction},rtl:"rtl"===e.dir.toLowerCase()||"rtl"===o.css("direction"),rtlTranslate:"horizontal"===n.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===o.css("direction")),wrongRTL:"-webkit-box"===s.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEvents:function(){const t=["touchstart","touchmove","touchend","touchcancel"];let e=["mousedown","mousemove","mouseup"];return tt.pointerEvents&&(e=["pointerdown","pointermove","pointerup"]),n.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]},n.touchEventsDesktop={start:e[0],move:e[1],end:e[2]},tt.touch||!n.params.simulateTouch?n.touchEventsTouch:n.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:Q.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.useModules(),n.params.init&&n.init(),n}slidesPerViewDynamic(){const t=this,{params:e,slides:r,slidesGrid:n,size:i,activeIndex:o}=t;let s=1;if(e.centeredSlides){let t,e=r[o].swiperSlideSize;for(let n=o+1;n<r.length;n+=1)r[n]&&!t&&(e+=r[n].swiperSlideSize,s+=1,e>i&&(t=!0));for(let n=o-1;n>=0;n-=1)r[n]&&!t&&(e+=r[n].swiperSlideSize,s+=1,e>i&&(t=!0))}else for(let a=o+1;a<r.length;a+=1)n[a]-n[o]<i&&(s+=1);return s}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:r}=t;function n(){const e=t.rtlTranslate?-1*t.translate:t.translate,r=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(r),t.updateActiveIndex(),t.updateSlidesClasses()}let i;r.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(n(),t.params.autoHeight&&t.updateAutoHeight()):(i=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),i||n()),r.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e=!0){const r=this,n=r.params.direction;return t||(t="horizontal"===n?"vertical":"horizontal"),t===n||"horizontal"!==t&&"vertical"!==t||(r.$el.removeClass(`${r.params.containerModifierClass}${n}`).addClass(`${r.params.containerModifierClass}${t}`),r.params.direction=t,r.slides.each((e,r)=>{"vertical"===t?r.style.width="":r.style.height=""}),r.emit("changeDirection"),e&&r.update()),r}init(){const t=this;t.initialized||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit),t.attachEvents(),t.initialized=!0,t.emit("init"))}destroy(t=!0,e=!0){const r=this,{params:n,$el:i,$wrapperEl:o,slides:s}=r;return"undefined"===typeof r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),n.loop&&r.loopDestroy(),e&&(r.removeClasses(),i.removeAttr("style"),o.removeAttr("style"),s&&s.length&&s.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(t=>{r.off(t)}),!1!==t&&(r.$el[0].swiper=null,r.$el.data("swiper",null),Q.deleteProps(r)),r.destroyed=!0),null}static extendDefaults(t){Q.extend(pe,t)}static get extendedDefaults(){return pe}static get defaults(){return fe}static get Class(){return et}static get $(){return l}}var ve={name:"device",proto:{device:Ht},static:{device:Ht}},ge={name:"support",proto:{support:tt},static:{support:tt}};const ye=function(){function t(){const t=X.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}return{isEdge:!!X.navigator.userAgent.match(/Edge/g),isSafari:t(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(X.navigator.userAgent)}}();var be={name:"browser",proto:{browser:ye},static:{browser:ye}},we={name:"resize",create(){const t=this;Q.extend(t,{resize:{resizeHandler(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init(){const t=this;X.addEventListener("resize",t.resize.resizeHandler),X.addEventListener("orientationchange",t.resize.orientationChangeHandler)},destroy(){const t=this;X.removeEventListener("resize",t.resize.resizeHandler),X.removeEventListener("orientationchange",t.resize.orientationChangeHandler)}}};const Me={func:X.MutationObserver||X.WebkitMutationObserver,attach(t,e={}){const r=this,n=Me.func,i=new n(t=>{if(1===t.length)return void r.emit("observerUpdate",t[0]);const e=function(){r.emit("observerUpdate",t[0])};X.requestAnimationFrame?X.requestAnimationFrame(e):X.setTimeout(e,0)});i.observe(t,{attributes:"undefined"===typeof e.attributes||e.attributes,childList:"undefined"===typeof e.childList||e.childList,characterData:"undefined"===typeof e.characterData||e.characterData}),r.observer.observers.push(i)},init(){const t=this;if(tt.observer&&t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let r=0;r<e.length;r+=1)t.observer.attach(e[r])}t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})}},destroy(){const t=this;t.observer.observers.forEach(t=>{t.disconnect()}),t.observer.observers=[]}};var _e={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){const t=this;Q.extend(t,{observer:{init:Me.init.bind(t),attach:Me.attach.bind(t),destroy:Me.destroy.bind(t),observers:[]}})},on:{init(){const t=this;t.observer.init()},destroy(){const t=this;t.observer.destroy()}}};const ke={update(t){const e=this,{slidesPerView:r,slidesPerGroup:n,centeredSlides:i}=e.params,{addSlidesBefore:o,addSlidesAfter:s}=e.params.virtual,{from:a,to:u,slides:h,slidesGrid:l,renderSlide:c,offset:f}=e.virtual;e.updateActiveIndex();const d=e.activeIndex||0;let p,m,v;p=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",i?(m=Math.floor(r/2)+n+o,v=Math.floor(r/2)+n+s):(m=r+(n-1)+o,v=n+s);const g=Math.max((d||0)-v,0),y=Math.min((d||0)+m,h.length-1),b=(e.slidesGrid[g]||0)-(e.slidesGrid[0]||0);function w(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(Q.extend(e.virtual,{from:g,to:y,offset:b,slidesGrid:e.slidesGrid}),a===g&&u===y&&!t)return e.slidesGrid!==l&&b!==f&&e.slides.css(p,b+"px"),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:b,from:g,to:y,slides:function(){const t=[];for(let e=g;e<=y;e+=1)t.push(h[e]);return t}()}),void w();const M=[],_=[];if(t)e.$wrapperEl.find("."+e.params.slideClass).remove();else for(let k=a;k<=u;k+=1)(k<g||k>y)&&e.$wrapperEl.find(`.${e.params.slideClass}[data-swiper-slide-index="${k}"]`).remove();for(let k=0;k<h.length;k+=1)k>=g&&k<=y&&("undefined"===typeof u||t?_.push(k):(k>u&&_.push(k),k<a&&M.push(k)));_.forEach(t=>{e.$wrapperEl.append(c(h[t],t))}),M.sort((t,e)=>e-t).forEach(t=>{e.$wrapperEl.prepend(c(h[t],t))}),e.$wrapperEl.children(".swiper-slide").css(p,b+"px"),w()},renderSlide(t,e){const r=this,n=r.params.virtual;if(n.cache&&r.virtual.cache[e])return r.virtual.cache[e];const i=n.renderSlide?l(n.renderSlide.call(r,t,e)):l(`<div class="${r.params.slideClass}" data-swiper-slide-index="${e}">${t}</div>`);return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",e),n.cache&&(r.virtual.cache[e]=i),i},appendSlide(t){const e=this;if("object"===typeof t&&"length"in t)for(let r=0;r<t.length;r+=1)t[r]&&e.virtual.slides.push(t[r]);else e.virtual.slides.push(t);e.virtual.update(!0)},prependSlide(t){const e=this,r=e.activeIndex;let n=r+1,i=1;if(Array.isArray(t)){for(let r=0;r<t.length;r+=1)t[r]&&e.virtual.slides.unshift(t[r]);n=r+t.length,i=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){const t=e.virtual.cache,r={};Object.keys(t).forEach(e=>{const n=t[e],o=n.attr("data-swiper-slide-index");o&&n.attr("data-swiper-slide-index",parseInt(o,10)+1),r[parseInt(e,10)+i]=n}),e.virtual.cache=r}e.virtual.update(!0),e.slideTo(n,0)},removeSlide(t){const e=this;if("undefined"===typeof t||null===t)return;let r=e.activeIndex;if(Array.isArray(t))for(let n=t.length-1;n>=0;n-=1)e.virtual.slides.splice(t[n],1),e.params.virtual.cache&&delete e.virtual.cache[t[n]],t[n]<r&&(r-=1),r=Math.max(r,0);else e.virtual.slides.splice(t,1),e.params.virtual.cache&&delete e.virtual.cache[t],t<r&&(r-=1),r=Math.max(r,0);e.virtual.update(!0),e.slideTo(r,0)},removeAllSlides(){const t=this;t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),t.virtual.update(!0),t.slideTo(0,0)}};var Se={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){const t=this;Q.extend(t,{virtual:{update:ke.update.bind(t),appendSlide:ke.appendSlide.bind(t),prependSlide:ke.prependSlide.bind(t),removeSlide:ke.removeSlide.bind(t),removeAllSlides:ke.removeAllSlides.bind(t),renderSlide:ke.renderSlide.bind(t),slides:t.params.virtual.slides,cache:{}}})},on:{beforeInit(){const t=this;if(!t.params.virtual.enabled)return;t.classNames.push(t.params.containerModifierClass+"virtual");const e={watchSlidesProgress:!0};Q.extend(t.params,e),Q.extend(t.originalParams,e),t.params.initialSlide||t.virtual.update()},setTranslate(){const t=this;t.params.virtual.enabled&&t.virtual.update()}}};const xe={handle(t){const e=this,{rtlTranslate:r}=e;let n=t;n.originalEvent&&(n=n.originalEvent);const i=n.keyCode||n.charCode;if(!e.allowSlideNext&&(e.isHorizontal()&&39===i||e.isVertical()&&40===i||34===i))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&37===i||e.isVertical()&&38===i||33===i))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey)&&(!J.activeElement||!J.activeElement.nodeName||"input"!==J.activeElement.nodeName.toLowerCase()&&"textarea"!==J.activeElement.nodeName.toLowerCase())){if(e.params.keyboard.onlyInViewport&&(33===i||34===i||37===i||39===i||38===i||40===i)){let t=!1;if(e.$el.parents("."+e.params.slideClass).length>0&&0===e.$el.parents("."+e.params.slideActiveClass).length)return;const n=X.innerWidth,i=X.innerHeight,o=e.$el.offset();r&&(o.left-=e.$el[0].scrollLeft);const s=[[o.left,o.top],[o.left+e.width,o.top],[o.left,o.top+e.height],[o.left+e.width,o.top+e.height]];for(let e=0;e<s.length;e+=1){const r=s[e];r[0]>=0&&r[0]<=n&&r[1]>=0&&r[1]<=i&&(t=!0)}if(!t)return}e.isHorizontal()?(33!==i&&34!==i&&37!==i&&39!==i||(n.preventDefault?n.preventDefault():n.returnValue=!1),(34!==i&&39!==i||r)&&(33!==i&&37!==i||!r)||e.slideNext(),(33!==i&&37!==i||r)&&(34!==i&&39!==i||!r)||e.slidePrev()):(33!==i&&34!==i&&38!==i&&40!==i||(n.preventDefault?n.preventDefault():n.returnValue=!1),34!==i&&40!==i||e.slideNext(),33!==i&&38!==i||e.slidePrev()),e.emit("keyPress",i)}},enable(){const t=this;t.keyboard.enabled||(l(J).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable(){const t=this;t.keyboard.enabled&&(l(J).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}};var Ee={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create(){const t=this;Q.extend(t,{keyboard:{enabled:!1,enable:xe.enable.bind(t),disable:xe.disable.bind(t),handle:xe.handle.bind(t)}})},on:{init(){const t=this;t.params.keyboard.enabled&&t.keyboard.enable()},destroy(){const t=this;t.keyboard.enabled&&t.keyboard.disable()}}};function Ae(){const t="onwheel";let e=t in J;if(!e){const r=J.createElement("div");r.setAttribute(t,"return;"),e="function"===typeof r[t]}return!e&&J.implementation&&J.implementation.hasFeature&&!0!==J.implementation.hasFeature("","")&&(e=J.implementation.hasFeature("Events.wheel","3.0")),e}const Oe={lastScrollTime:Q.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event(){return X.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":Ae()?"wheel":"mousewheel"},normalize(t){const e=10,r=40,n=800;let i=0,o=0,s=0,a=0;return"detail"in t&&(o=t.detail),"wheelDelta"in t&&(o=-t.wheelDelta/120),"wheelDeltaY"in t&&(o=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(i=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(i=o,o=0),s=i*e,a=o*e,"deltaY"in t&&(a=t.deltaY),"deltaX"in t&&(s=t.deltaX),t.shiftKey&&!s&&(s=a,a=0),(s||a)&&t.deltaMode&&(1===t.deltaMode?(s*=r,a*=r):(s*=n,a*=n)),s&&!i&&(i=s<1?-1:1),a&&!o&&(o=a<1?-1:1),{spinX:i,spinY:o,pixelX:s,pixelY:a}},handleMouseEnter(){const t=this;t.mouseEntered=!0},handleMouseLeave(){const t=this;t.mouseEntered=!1},handle(t){let e=t;const r=this,n=r.params.mousewheel;r.params.cssMode&&e.preventDefault();let i=r.$el;if("container"!==r.params.mousewheel.eventsTarged&&(i=l(r.params.mousewheel.eventsTarged)),!r.mouseEntered&&!i[0].contains(e.target)&&!n.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);let o=0;const s=r.rtlTranslate?-1:1,a=Oe.normalize(e);if(n.forceToAxis)if(r.isHorizontal()){if(!(Math.abs(a.pixelX)>Math.abs(a.pixelY)))return!0;o=a.pixelX*s}else{if(!(Math.abs(a.pixelY)>Math.abs(a.pixelX)))return!0;o=a.pixelY}else o=Math.abs(a.pixelX)>Math.abs(a.pixelY)?-a.pixelX*s:-a.pixelY;if(0===o)return!0;if(n.invert&&(o=-o),r.params.freeMode){const t={time:Q.now(),delta:Math.abs(o),direction:Math.sign(o)},{lastEventBeforeSnap:i}=r.mousewheel,s=i&&t.time<i.time+500&&t.delta<=i.delta&&t.direction===i.direction;if(!s){r.mousewheel.lastEventBeforeSnap=void 0,r.params.loop&&r.loopFix();let i=r.getTranslate()+o*n.sensitivity;const a=r.isBeginning,u=r.isEnd;if(i>=r.minTranslate()&&(i=r.minTranslate()),i<=r.maxTranslate()&&(i=r.maxTranslate()),r.setTransition(0),r.setTranslate(i),r.updateProgress(),r.updateActiveIndex(),r.updateSlidesClasses(),(!a&&r.isBeginning||!u&&r.isEnd)&&r.updateSlidesClasses(),r.params.freeModeSticky){clearTimeout(r.mousewheel.timeout),r.mousewheel.timeout=void 0;const e=r.mousewheel.recentWheelEvents;e.length>=15&&e.shift();const n=e.length?e[e.length-1]:void 0,i=e[0];if(e.push(t),n&&(t.delta>n.delta||t.direction!==n.direction))e.splice(0);else if(e.length>=15&&t.time-i.time<500&&i.delta-t.delta>=1&&t.delta<=6){const n=o>0?.8:.2;r.mousewheel.lastEventBeforeSnap=t,e.splice(0),r.mousewheel.timeout=Q.nextTick(()=>{r.slideToClosest(r.params.speed,!0,void 0,n)},0)}r.mousewheel.timeout||(r.mousewheel.timeout=Q.nextTick(()=>{const n=.5;r.mousewheel.lastEventBeforeSnap=t,e.splice(0),r.slideToClosest(r.params.speed,!0,void 0,n)},500))}if(s||r.emit("scroll",e),r.params.autoplay&&r.params.autoplayDisableOnInteraction&&r.autoplay.stop(),i===r.minTranslate()||i===r.maxTranslate())return!0}}else{const e={time:Q.now(),delta:Math.abs(o),direction:Math.sign(o),raw:t},n=r.mousewheel.recentWheelEvents;n.length>=2&&n.shift();const i=n.length?n[n.length-1]:void 0;if(n.push(e),i?(e.direction!==i.direction||e.delta>i.delta)&&r.mousewheel.animateSlider(e):r.mousewheel.animateSlider(e),r.mousewheel.releaseScroll(e))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},animateSlider(t){const e=this;return t.delta>=6&&Q.now()-e.mousewheel.lastScrollTime<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),e.emit("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),e.emit("scroll",t.raw)),e.mousewheel.lastScrollTime=(new X.Date).getTime(),!1)},releaseScroll(t){const e=this,r=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&r.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&r.releaseOnEdges)return!0;return!1},enable(){const t=this,e=Oe.event();if(t.params.cssMode)return t.wrapperEl.removeEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(t.mousewheel.enabled)return!1;let r=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(r=l(t.params.mousewheel.eventsTarged)),r.on("mouseenter",t.mousewheel.handleMouseEnter),r.on("mouseleave",t.mousewheel.handleMouseLeave),r.on(e,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable(){const t=this,e=Oe.event();if(t.params.cssMode)return t.wrapperEl.addEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(!t.mousewheel.enabled)return!1;let r=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(r=l(t.params.mousewheel.eventsTarged)),r.off(e,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}};var Te={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){const t=this;Q.extend(t,{mousewheel:{enabled:!1,enable:Oe.enable.bind(t),disable:Oe.disable.bind(t),handle:Oe.handle.bind(t),handleMouseEnter:Oe.handleMouseEnter.bind(t),handleMouseLeave:Oe.handleMouseLeave.bind(t),animateSlider:Oe.animateSlider.bind(t),releaseScroll:Oe.releaseScroll.bind(t),lastScrollTime:Q.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init(){const t=this;!t.params.mousewheel.enabled&&t.params.cssMode&&t.mousewheel.disable(),t.params.mousewheel.enabled&&t.mousewheel.enable()},destroy(){const t=this;t.params.cssMode&&t.mousewheel.enable(),t.mousewheel.enabled&&t.mousewheel.disable()}}};const Ce={update(){const t=this,e=t.params.navigation;if(t.params.loop)return;const{$nextEl:r,$prevEl:n}=t.navigation;n&&n.length>0&&(t.isBeginning?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass)),r&&r.length>0&&(t.isEnd?r.addClass(e.disabledClass):r.removeClass(e.disabledClass),r[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass))},onPrevClick(t){const e=this;t.preventDefault(),e.isBeginning&&!e.params.loop||e.slidePrev()},onNextClick(t){const e=this;t.preventDefault(),e.isEnd&&!e.params.loop||e.slideNext()},init(){const t=this,e=t.params.navigation;if(!e.nextEl&&!e.prevEl)return;let r,n;e.nextEl&&(r=l(e.nextEl),t.params.uniqueNavElements&&"string"===typeof e.nextEl&&r.length>1&&1===t.$el.find(e.nextEl).length&&(r=t.$el.find(e.nextEl))),e.prevEl&&(n=l(e.prevEl),t.params.uniqueNavElements&&"string"===typeof e.prevEl&&n.length>1&&1===t.$el.find(e.prevEl).length&&(n=t.$el.find(e.prevEl))),r&&r.length>0&&r.on("click",t.navigation.onNextClick),n&&n.length>0&&n.on("click",t.navigation.onPrevClick),Q.extend(t.navigation,{$nextEl:r,nextEl:r&&r[0],$prevEl:n,prevEl:n&&n[0]})},destroy(){const t=this,{$nextEl:e,$prevEl:r}=t.navigation;e&&e.length&&(e.off("click",t.navigation.onNextClick),e.removeClass(t.params.navigation.disabledClass)),r&&r.length&&(r.off("click",t.navigation.onPrevClick),r.removeClass(t.params.navigation.disabledClass))}};var Pe={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){const t=this;Q.extend(t,{navigation:{init:Ce.init.bind(t),update:Ce.update.bind(t),destroy:Ce.destroy.bind(t),onNextClick:Ce.onNextClick.bind(t),onPrevClick:Ce.onPrevClick.bind(t)}})},on:{init(){const t=this;t.navigation.init(),t.navigation.update()},toEdge(){const t=this;t.navigation.update()},fromEdge(){const t=this;t.navigation.update()},destroy(){const t=this;t.navigation.destroy()},click(t){const e=this,{$nextEl:r,$prevEl:n}=e.navigation;if(e.params.navigation.hideOnClick&&!l(t.target).is(n)&&!l(t.target).is(r)){let t;r?t=r.hasClass(e.params.navigation.hiddenClass):n&&(t=n.hasClass(e.params.navigation.hiddenClass)),!0===t?e.emit("navigationShow",e):e.emit("navigationHide",e),r&&r.toggleClass(e.params.navigation.hiddenClass),n&&n.toggleClass(e.params.navigation.hiddenClass)}}}};const Be={update(){const t=this,e=t.rtl,r=t.params.pagination;if(!r.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length)return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,i=t.pagination.$el;let o;const s=t.params.loop?Math.ceil((n-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(o=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),o>n-1-2*t.loopedSlides&&(o-=n-2*t.loopedSlides),o>s-1&&(o-=s),o<0&&"bullets"!==t.params.paginationType&&(o=s+o)):o="undefined"!==typeof t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===r.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const n=t.pagination.bullets;let s,a,u;if(r.dynamicBullets&&(t.pagination.bulletSize=n.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),i.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(r.dynamicMainBullets+4)+"px"),r.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=o-t.previousIndex,t.pagination.dynamicBulletIndex>r.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=r.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),s=o-t.pagination.dynamicBulletIndex,a=s+(Math.min(n.length,r.dynamicMainBullets)-1),u=(a+s)/2),n.removeClass(`${r.bulletActiveClass} ${r.bulletActiveClass}-next ${r.bulletActiveClass}-next-next ${r.bulletActiveClass}-prev ${r.bulletActiveClass}-prev-prev ${r.bulletActiveClass}-main`),i.length>1)n.each((t,e)=>{const n=l(e),i=n.index();i===o&&n.addClass(r.bulletActiveClass),r.dynamicBullets&&(i>=s&&i<=a&&n.addClass(r.bulletActiveClass+"-main"),i===s&&n.prev().addClass(r.bulletActiveClass+"-prev").prev().addClass(r.bulletActiveClass+"-prev-prev"),i===a&&n.next().addClass(r.bulletActiveClass+"-next").next().addClass(r.bulletActiveClass+"-next-next"))});else{const e=n.eq(o),i=e.index();if(e.addClass(r.bulletActiveClass),r.dynamicBullets){const e=n.eq(s),o=n.eq(a);for(let t=s;t<=a;t+=1)n.eq(t).addClass(r.bulletActiveClass+"-main");if(t.params.loop)if(i>=n.length-r.dynamicMainBullets){for(let t=r.dynamicMainBullets;t>=0;t-=1)n.eq(n.length-t).addClass(r.bulletActiveClass+"-main");n.eq(n.length-r.dynamicMainBullets-1).addClass(r.bulletActiveClass+"-prev")}else e.prev().addClass(r.bulletActiveClass+"-prev").prev().addClass(r.bulletActiveClass+"-prev-prev"),o.next().addClass(r.bulletActiveClass+"-next").next().addClass(r.bulletActiveClass+"-next-next");else e.prev().addClass(r.bulletActiveClass+"-prev").prev().addClass(r.bulletActiveClass+"-prev-prev"),o.next().addClass(r.bulletActiveClass+"-next").next().addClass(r.bulletActiveClass+"-next-next")}}if(r.dynamicBullets){const i=Math.min(n.length,r.dynamicMainBullets+4),o=(t.pagination.bulletSize*i-t.pagination.bulletSize)/2-u*t.pagination.bulletSize,s=e?"right":"left";n.css(t.isHorizontal()?s:"top",o+"px")}}if("fraction"===r.type&&(i.find("."+r.currentClass).text(r.formatFractionCurrent(o+1)),i.find("."+r.totalClass).text(r.formatFractionTotal(s))),"progressbar"===r.type){let e;e=r.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const n=(o+1)/s;let a=1,u=1;"horizontal"===e?a=n:u=n,i.find("."+r.progressbarFillClass).transform(`translate3d(0,0,0) scaleX(${a}) scaleY(${u})`).transition(t.params.speed)}"custom"===r.type&&r.renderCustom?(i.html(r.renderCustom(t,o+1,s)),t.emit("paginationRender",t,i[0])):t.emit("paginationUpdate",t,i[0]),i[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](r.lockClass)},render(){const t=this,e=t.params.pagination;if(!e.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length)return;const r=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,n=t.pagination.$el;let i="";if("bullets"===e.type){const o=t.params.loop?Math.ceil((r-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;for(let r=0;r<o;r+=1)e.renderBullet?i+=e.renderBullet.call(t,r,e.bulletClass):i+=`<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`;n.html(i),t.pagination.bullets=n.find("."+e.bulletClass)}"fraction"===e.type&&(i=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`,n.html(i)),"progressbar"===e.type&&(i=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`,n.html(i)),"custom"!==e.type&&t.emit("paginationRender",t.pagination.$el[0])},init(){const t=this,e=t.params.pagination;if(!e.el)return;let r=l(e.el);0!==r.length&&(t.params.uniqueNavElements&&"string"===typeof e.el&&r.length>1&&1===t.$el.find(e.el).length&&(r=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&r.addClass(e.clickableClass),r.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(r.addClass(`${e.modifierClass}${e.type}-dynamic`),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&r.addClass(e.progressbarOppositeClass),e.clickable&&r.on("click","."+e.bulletClass,(function(e){e.preventDefault();let r=l(this).index()*t.params.slidesPerGroup;t.params.loop&&(r+=t.loopedSlides),t.slideTo(r)})),Q.extend(t.pagination,{$el:r,el:r[0]}))},destroy(){const t=this,e=t.params.pagination;if(!e.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length)return;const r=t.pagination.$el;r.removeClass(e.hiddenClass),r.removeClass(e.modifierClass+e.type),t.pagination.bullets&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&r.off("click","."+e.bulletClass)}};var Ie={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){const t=this;Q.extend(t,{pagination:{init:Be.init.bind(t),render:Be.render.bind(t),update:Be.update.bind(t),destroy:Be.destroy.bind(t),dynamicBulletIndex:0}})},on:{init(){const t=this;t.pagination.init(),t.pagination.render(),t.pagination.update()},activeIndexChange(){const t=this;(t.params.loop||"undefined"===typeof t.snapIndex)&&t.pagination.update()},snapIndexChange(){const t=this;t.params.loop||t.pagination.update()},slidesLengthChange(){const t=this;t.params.loop&&(t.pagination.render(),t.pagination.update())},snapGridLengthChange(){const t=this;t.params.loop||(t.pagination.render(),t.pagination.update())},destroy(){const t=this;t.pagination.destroy()},click(t){const e=this;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&e.pagination.$el.length>0&&!l(t.target).hasClass(e.params.pagination.bulletClass)){const t=e.pagination.$el.hasClass(e.params.pagination.hiddenClass);!0===t?e.emit("paginationShow",e):e.emit("paginationHide",e),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass)}}}};const Re={setTranslate(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:r,progress:n}=t,{dragSize:i,trackSize:o,$dragEl:s,$el:a}=e,u=t.params.scrollbar;let h=i,l=(o-i)*n;r?(l=-l,l>0?(h=i-l,l=0):-l+i>o&&(h=o+l)):l<0?(h=i+l,l=0):l+i>o&&(h=o-l),t.isHorizontal()?(s.transform(`translate3d(${l}px, 0, 0)`),s[0].style.width=h+"px"):(s.transform(`translate3d(0px, ${l}px, 0)`),s[0].style.height=h+"px"),u.hide&&(clearTimeout(t.scrollbar.timeout),a[0].style.opacity=1,t.scrollbar.timeout=setTimeout(()=>{a[0].style.opacity=0,a.transition(400)},1e3))},setTransition(t){const e=this;e.params.scrollbar.el&&e.scrollbar.el&&e.scrollbar.$dragEl.transition(t)},updateSize(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:r,$el:n}=e;r[0].style.width="",r[0].style.height="";const i=t.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,o=t.size/t.virtualSize,s=o*(i/t.size);let a;a="auto"===t.params.scrollbar.dragSize?i*o:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?r[0].style.width=a+"px":r[0].style.height=a+"px",n[0].style.display=o>=1?"none":"",t.params.scrollbar.hide&&(n[0].style.opacity=0),Q.extend(e,{trackSize:i,divider:o,moveDivider:s,dragSize:a}),e.$el[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)},getPointerPosition(t){const e=this;return e.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY},setDragPosition(t){const e=this,{scrollbar:r,rtlTranslate:n}=e,{$el:i,dragSize:o,trackSize:s,dragStartPos:a}=r;let u;u=(r.getPointerPosition(t)-i.offset()[e.isHorizontal()?"left":"top"]-(null!==a?a:o/2))/(s-o),u=Math.max(Math.min(u,1),0),n&&(u=1-u);const h=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*u;e.updateProgress(h),e.setTranslate(h),e.updateActiveIndex(),e.updateSlidesClasses()},onDragStart(t){const e=this,r=e.params.scrollbar,{scrollbar:n,$wrapperEl:i}=e,{$el:o,$dragEl:s}=n;e.scrollbar.isTouched=!0,e.scrollbar.dragStartPos=t.target===s[0]||t.target===s?n.getPointerPosition(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),i.transition(100),s.transition(100),n.setDragPosition(t),clearTimeout(e.scrollbar.dragTimeout),o.transition(0),r.hide&&o.css("opacity",1),e.params.cssMode&&e.$wrapperEl.css("scroll-snap-type","none"),e.emit("scrollbarDragStart",t)},onDragMove(t){const e=this,{scrollbar:r,$wrapperEl:n}=e,{$el:i,$dragEl:o}=r;e.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,r.setDragPosition(t),n.transition(0),i.transition(0),o.transition(0),e.emit("scrollbarDragMove",t))},onDragEnd(t){const e=this,r=e.params.scrollbar,{scrollbar:n,$wrapperEl:i}=e,{$el:o}=n;e.scrollbar.isTouched&&(e.scrollbar.isTouched=!1,e.params.cssMode&&(e.$wrapperEl.css("scroll-snap-type",""),i.transition("")),r.hide&&(clearTimeout(e.scrollbar.dragTimeout),e.scrollbar.dragTimeout=Q.nextTick(()=>{o.css("opacity",0),o.transition(400)},1e3)),e.emit("scrollbarDragEnd",t),r.snapOnRelease&&e.slideToClosest())},enableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:r,touchEventsDesktop:n,params:i}=t,o=e.$el,s=o[0],a=!(!tt.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},u=!(!tt.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};tt.touch?(s.addEventListener(r.start,t.scrollbar.onDragStart,a),s.addEventListener(r.move,t.scrollbar.onDragMove,a),s.addEventListener(r.end,t.scrollbar.onDragEnd,u)):(s.addEventListener(n.start,t.scrollbar.onDragStart,a),J.addEventListener(n.move,t.scrollbar.onDragMove,a),J.addEventListener(n.end,t.scrollbar.onDragEnd,u))},disableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:r,touchEventsDesktop:n,params:i}=t,o=e.$el,s=o[0],a=!(!tt.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},u=!(!tt.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};tt.touch?(s.removeEventListener(r.start,t.scrollbar.onDragStart,a),s.removeEventListener(r.move,t.scrollbar.onDragMove,a),s.removeEventListener(r.end,t.scrollbar.onDragEnd,u)):(s.removeEventListener(n.start,t.scrollbar.onDragStart,a),J.removeEventListener(n.move,t.scrollbar.onDragMove,a),J.removeEventListener(n.end,t.scrollbar.onDragEnd,u))},init(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,$el:r}=t,n=t.params.scrollbar;let i=l(n.el);t.params.uniqueNavElements&&"string"===typeof n.el&&i.length>1&&1===r.find(n.el).length&&(i=r.find(n.el));let o=i.find("."+t.params.scrollbar.dragClass);0===o.length&&(o=l(`<div class="${t.params.scrollbar.dragClass}"></div>`),i.append(o)),Q.extend(e,{$el:i,el:i[0],$dragEl:o,dragEl:o[0]}),n.draggable&&e.enableDraggable()},destroy(){const t=this;t.scrollbar.disableDraggable()}};var Ne={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){const t=this;Q.extend(t,{scrollbar:{init:Re.init.bind(t),destroy:Re.destroy.bind(t),updateSize:Re.updateSize.bind(t),setTranslate:Re.setTranslate.bind(t),setTransition:Re.setTransition.bind(t),enableDraggable:Re.enableDraggable.bind(t),disableDraggable:Re.disableDraggable.bind(t),setDragPosition:Re.setDragPosition.bind(t),getPointerPosition:Re.getPointerPosition.bind(t),onDragStart:Re.onDragStart.bind(t),onDragMove:Re.onDragMove.bind(t),onDragEnd:Re.onDragEnd.bind(t),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){const t=this;t.scrollbar.init(),t.scrollbar.updateSize(),t.scrollbar.setTranslate()},update(){const t=this;t.scrollbar.updateSize()},resize(){const t=this;t.scrollbar.updateSize()},observerUpdate(){const t=this;t.scrollbar.updateSize()},setTranslate(){const t=this;t.scrollbar.setTranslate()},setTransition(t){const e=this;e.scrollbar.setTransition(t)},destroy(){const t=this;t.scrollbar.destroy()}}};const je={setTransform(t,e){const r=this,{rtl:n}=r,i=l(t),o=n?-1:1,s=i.attr("data-swiper-parallax")||"0";let a=i.attr("data-swiper-parallax-x"),u=i.attr("data-swiper-parallax-y");const h=i.attr("data-swiper-parallax-scale"),c=i.attr("data-swiper-parallax-opacity");if(a||u?(a=a||"0",u=u||"0"):r.isHorizontal()?(a=s,u="0"):(u=s,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*e*o+"%":a*e*o+"px",u=u.indexOf("%")>=0?parseInt(u,10)*e+"%":u*e+"px","undefined"!==typeof c&&null!==c){const t=c-(c-1)*(1-Math.abs(e));i[0].style.opacity=t}if("undefined"===typeof h||null===h)i.transform(`translate3d(${a}, ${u}, 0px)`);else{const t=h-(h-1)*(1-Math.abs(e));i.transform(`translate3d(${a}, ${u}, 0px) scale(${t})`)}},setTranslate(){const t=this,{$el:e,slides:r,progress:n,snapGrid:i}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,r)=>{t.parallax.setTransform(r,n)}),r.each((e,r)=>{let o=r.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(o+=Math.ceil(e/2)-n*(i.length-1)),o=Math.min(Math.max(o,-1),1),l(r).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,r)=>{t.parallax.setTransform(r,o)})})},setTransition(t=this.params.speed){const e=this,{$el:r}=e;r.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,r)=>{const n=l(r);let i=parseInt(n.attr("data-swiper-parallax-duration"),10)||t;0===t&&(i=0),n.transition(i)})}};var Le={name:"parallax",params:{parallax:{enabled:!1}},create(){const t=this;Q.extend(t,{parallax:{setTransform:je.setTransform.bind(t),setTranslate:je.setTranslate.bind(t),setTransition:je.setTransition.bind(t)}})},on:{beforeInit(){const t=this;t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},init(){const t=this;t.params.parallax.enabled&&t.parallax.setTranslate()},setTranslate(){const t=this;t.params.parallax.enabled&&t.parallax.setTranslate()},setTransition(t){const e=this;e.params.parallax.enabled&&e.parallax.setTransition(t)}}};const Ue={getDistanceBetweenTouches(t){if(t.targetTouches.length<2)return 1;const e=t.targetTouches[0].pageX,r=t.targetTouches[0].pageY,n=t.targetTouches[1].pageX,i=t.targetTouches[1].pageY,o=Math.sqrt((n-e)**2+(i-r)**2);return o},onGestureStart(t){const e=this,r=e.params.zoom,n=e.zoom,{gesture:i}=n;if(n.fakeGestureTouched=!1,n.fakeGestureMoved=!1,!tt.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;n.fakeGestureTouched=!0,i.scaleStart=Ue.getDistanceBetweenTouches(t)}i.$slideEl&&i.$slideEl.length||(i.$slideEl=l(t.target).closest("."+e.params.slideClass),0===i.$slideEl.length&&(i.$slideEl=e.slides.eq(e.activeIndex)),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent("."+r.containerClass),i.maxRatio=i.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,0!==i.$imageWrapEl.length)?(i.$imageEl&&i.$imageEl.transition(0),e.zoom.isScaling=!0):i.$imageEl=void 0},onGestureChange(t){const e=this,r=e.params.zoom,n=e.zoom,{gesture:i}=n;if(!tt.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;n.fakeGestureMoved=!0,i.scaleMove=Ue.getDistanceBetweenTouches(t)}i.$imageEl&&0!==i.$imageEl.length&&(tt.gestures?n.scale=t.scale*n.currentScale:n.scale=i.scaleMove/i.scaleStart*n.currentScale,n.scale>i.maxRatio&&(n.scale=i.maxRatio-1+(n.scale-i.maxRatio+1)**.5),n.scale<r.minRatio&&(n.scale=r.minRatio+1-(r.minRatio-n.scale+1)**.5),i.$imageEl.transform(`translate3d(0,0,0) scale(${n.scale})`))},onGestureEnd(t){const e=this,r=e.params.zoom,n=e.zoom,{gesture:i}=n;if(!tt.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!Ht.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,i.maxRatio),r.minRatio),i.$imageEl.transition(e.params.speed).transform(`translate3d(0,0,0) scale(${n.scale})`),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(i.$slideEl=void 0))},onTouchStart(t){const e=this,r=e.zoom,{gesture:n,image:i}=r;n.$imageEl&&0!==n.$imageEl.length&&(i.isTouched||(Ht.android&&t.preventDefault(),i.isTouched=!0,i.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,i.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove(t){const e=this,r=e.zoom,{gesture:n,image:i,velocity:o}=r;if(!n.$imageEl||0===n.$imageEl.length)return;if(e.allowClick=!1,!i.isTouched||!n.$slideEl)return;i.isMoved||(i.width=n.$imageEl[0].offsetWidth,i.height=n.$imageEl[0].offsetHeight,i.startX=Q.getTranslate(n.$imageWrapEl[0],"x")||0,i.startY=Q.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),e.rtl&&(i.startX=-i.startX,i.startY=-i.startY));const s=i.width*r.scale,a=i.height*r.scale;if(!(s<n.slideWidth&&a<n.slideHeight)){if(i.minX=Math.min(n.slideWidth/2-s/2,0),i.maxX=-i.minX,i.minY=Math.min(n.slideHeight/2-a/2,0),i.maxY=-i.minY,i.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,i.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!i.isMoved&&!r.isScaling){if(e.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x))return void(i.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y))return void(i.isTouched=!1)}t.preventDefault(),t.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-(i.minX-i.currentX+1)**.8),i.currentX>i.maxX&&(i.currentX=i.maxX-1+(i.currentX-i.maxX+1)**.8),i.currentY<i.minY&&(i.currentY=i.minY+1-(i.minY-i.currentY+1)**.8),i.currentY>i.maxY&&(i.currentY=i.maxY-1+(i.currentY-i.maxY+1)**.8),o.prevPositionX||(o.prevPositionX=i.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=i.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(i.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(i.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(i.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(i.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=i.touchesCurrent.x,o.prevPositionY=i.touchesCurrent.y,o.prevTime=Date.now(),n.$imageWrapEl.transform(`translate3d(${i.currentX}px, ${i.currentY}px,0)`)}},onTouchEnd(){const t=this,e=t.zoom,{gesture:r,image:n,velocity:i}=e;if(!r.$imageEl||0===r.$imageEl.length)return;if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;let o=300,s=300;const a=i.x*o,u=n.currentX+a,h=i.y*s,l=n.currentY+h;0!==i.x&&(o=Math.abs((u-n.currentX)/i.x)),0!==i.y&&(s=Math.abs((l-n.currentY)/i.y));const c=Math.max(o,s);n.currentX=u,n.currentY=l;const f=n.width*e.scale,d=n.height*e.scale;n.minX=Math.min(r.slideWidth/2-f/2,0),n.maxX=-n.minX,n.minY=Math.min(r.slideHeight/2-d/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),r.$imageWrapEl.transition(c).transform(`translate3d(${n.currentX}px, ${n.currentY}px,0)`)},onTransitionEnd(){const t=this,e=t.zoom,{gesture:r}=e;r.$slideEl&&t.previousIndex!==t.activeIndex&&(r.$imageEl&&r.$imageEl.transform("translate3d(0,0,0) scale(1)"),r.$imageWrapEl&&r.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,r.$slideEl=void 0,r.$imageEl=void 0,r.$imageWrapEl=void 0)},toggle(t){const e=this,r=e.zoom;r.scale&&1!==r.scale?r.out():r.in(t)},in(t){const e=this,r=e.zoom,n=e.params.zoom,{gesture:i,image:o}=r;if(i.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?i.$slideEl=e.$wrapperEl.children("."+e.params.slideActiveClass):i.$slideEl=e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent("."+n.containerClass)),!i.$imageEl||0===i.$imageEl.length)return;let s,a,u,h,l,c,f,d,p,m,v,g,y,b,w,M,_,k;i.$slideEl.addClass(""+n.zoomedSlideClass),"undefined"===typeof o.touchesStart.x&&t?(s="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,a="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(s=o.touchesStart.x,a=o.touchesStart.y),r.scale=i.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,r.currentScale=i.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,t?(_=i.$slideEl[0].offsetWidth,k=i.$slideEl[0].offsetHeight,u=i.$slideEl.offset().left,h=i.$slideEl.offset().top,l=u+_/2-s,c=h+k/2-a,p=i.$imageEl[0].offsetWidth,m=i.$imageEl[0].offsetHeight,v=p*r.scale,g=m*r.scale,y=Math.min(_/2-v/2,0),b=Math.min(k/2-g/2,0),w=-y,M=-b,f=l*r.scale,d=c*r.scale,f<y&&(f=y),f>w&&(f=w),d<b&&(d=b),d>M&&(d=M)):(f=0,d=0),i.$imageWrapEl.transition(300).transform(`translate3d(${f}px, ${d}px,0)`),i.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${r.scale})`)},out(){const t=this,e=t.zoom,r=t.params.zoom,{gesture:n}=e;n.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?n.$slideEl=t.$wrapperEl.children("."+t.params.slideActiveClass):n.$slideEl=t.slides.eq(t.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),n.$imageWrapEl=n.$imageEl.parent("."+r.containerClass)),n.$imageEl&&0!==n.$imageEl.length&&(e.scale=1,e.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass(""+r.zoomedSlideClass),n.$slideEl=void 0)},enable(){const t=this,e=t.zoom;if(e.enabled)return;e.enabled=!0;const r=!("touchstart"!==t.touchEvents.start||!tt.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},n=!tt.passiveListener||{passive:!1,capture:!0},i="."+t.params.slideClass;tt.gestures?(t.$wrapperEl.on("gesturestart",i,e.onGestureStart,r),t.$wrapperEl.on("gesturechange",i,e.onGestureChange,r),t.$wrapperEl.on("gestureend",i,e.onGestureEnd,r)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,i,e.onGestureStart,r),t.$wrapperEl.on(t.touchEvents.move,i,e.onGestureChange,n),t.$wrapperEl.on(t.touchEvents.end,i,e.onGestureEnd,r),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,i,e.onGestureEnd,r)),t.$wrapperEl.on(t.touchEvents.move,"."+t.params.zoom.containerClass,e.onTouchMove,n)},disable(){const t=this,e=t.zoom;if(!e.enabled)return;t.zoom.enabled=!1;const r=!("touchstart"!==t.touchEvents.start||!tt.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},n=!tt.passiveListener||{passive:!1,capture:!0},i="."+t.params.slideClass;tt.gestures?(t.$wrapperEl.off("gesturestart",i,e.onGestureStart,r),t.$wrapperEl.off("gesturechange",i,e.onGestureChange,r),t.$wrapperEl.off("gestureend",i,e.onGestureEnd,r)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,i,e.onGestureStart,r),t.$wrapperEl.off(t.touchEvents.move,i,e.onGestureChange,n),t.$wrapperEl.off(t.touchEvents.end,i,e.onGestureEnd,r),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,i,e.onGestureEnd,r)),t.$wrapperEl.off(t.touchEvents.move,"."+t.params.zoom.containerClass,e.onTouchMove,n)}};var De={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){const t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(r=>{e[r]=Ue[r].bind(t)}),Q.extend(t,{zoom:e});let r=1;Object.defineProperty(t.zoom,"scale",{get(){return r},set(e){if(r!==e){const r=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,n=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,r,n)}r=e}})},on:{init(){const t=this;t.params.zoom.enabled&&t.zoom.enable()},destroy(){const t=this;t.zoom.disable()},touchStart(t){const e=this;e.zoom.enabled&&e.zoom.onTouchStart(t)},touchEnd(t){const e=this;e.zoom.enabled&&e.zoom.onTouchEnd(t)},doubleTap(t){const e=this;e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionEnd(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.zoom.onTransitionEnd()},slideChange(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&t.zoom.onTransitionEnd()}}};const Fe={loadInSlide(t,e=!0){const r=this,n=r.params.lazy;if("undefined"===typeof t)return;if(0===r.slides.length)return;const i=r.virtual&&r.params.virtual.enabled,o=i?r.$wrapperEl.children(`.${r.params.slideClass}[data-swiper-slide-index="${t}"]`):r.slides.eq(t);let s=o.find(`.${n.elementClass}:not(.${n.loadedClass}):not(.${n.loadingClass})`);!o.hasClass(n.elementClass)||o.hasClass(n.loadedClass)||o.hasClass(n.loadingClass)||(s=s.add(o[0])),0!==s.length&&s.each((t,i)=>{const s=l(i);s.addClass(n.loadingClass);const a=s.attr("data-background"),u=s.attr("data-src"),h=s.attr("data-srcset"),c=s.attr("data-sizes");r.loadImage(s[0],u||a,h,c,!1,()=>{if("undefined"!==typeof r&&null!==r&&r&&(!r||r.params)&&!r.destroyed){if(a?(s.css("background-image",`url("${a}")`),s.removeAttr("data-background")):(h&&(s.attr("srcset",h),s.removeAttr("data-srcset")),c&&(s.attr("sizes",c),s.removeAttr("data-sizes")),u&&(s.attr("src",u),s.removeAttr("data-src"))),s.addClass(n.loadedClass).removeClass(n.loadingClass),o.find("."+n.preloaderClass).remove(),r.params.loop&&e){const t=o.attr("data-swiper-slide-index");if(o.hasClass(r.params.slideDuplicateClass)){const e=r.$wrapperEl.children(`[data-swiper-slide-index="${t}"]:not(.${r.params.slideDuplicateClass})`);r.lazy.loadInSlide(e.index(),!1)}else{const e=r.$wrapperEl.children(`.${r.params.slideDuplicateClass}[data-swiper-slide-index="${t}"]`);r.lazy.loadInSlide(e.index(),!1)}}r.emit("lazyImageReady",o[0],s[0]),r.params.autoHeight&&r.updateAutoHeight()}}),r.emit("lazyImageLoad",o[0],s[0])})},load(){const t=this,{$wrapperEl:e,params:r,slides:n,activeIndex:i}=t,o=t.virtual&&r.virtual.enabled,s=r.lazy;let a=r.slidesPerView;function u(t){if(o){if(e.children(`.${r.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(n[t])return!0;return!1}function h(t){return o?l(t).attr("data-swiper-slide-index"):l(t).index()}if("auto"===a&&(a=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children("."+r.slideVisibleClass).each((e,r)=>{const n=o?l(r).attr("data-swiper-slide-index"):l(r).index();t.lazy.loadInSlide(n)});else if(a>1)for(let l=i;l<i+a;l+=1)u(l)&&t.lazy.loadInSlide(l);else t.lazy.loadInSlide(i);if(s.loadPrevNext)if(a>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){const e=s.loadPrevNextAmount,r=a,o=Math.min(i+r+Math.max(e,r),n.length),h=Math.max(i-Math.max(r,e),0);for(let n=i+a;n<o;n+=1)u(n)&&t.lazy.loadInSlide(n);for(let n=h;n<i;n+=1)u(n)&&t.lazy.loadInSlide(n)}else{const n=e.children("."+r.slideNextClass);n.length>0&&t.lazy.loadInSlide(h(n));const i=e.children("."+r.slidePrevClass);i.length>0&&t.lazy.loadInSlide(h(i))}}};var ze={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){const t=this;Q.extend(t,{lazy:{initialImageLoaded:!1,load:Fe.load.bind(t),loadInSlide:Fe.loadInSlide.bind(t)}})},on:{beforeInit(){const t=this;t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)},init(){const t=this;t.params.lazy.enabled&&!t.params.loop&&0===t.params.initialSlide&&t.lazy.load()},scroll(){const t=this;t.params.freeMode&&!t.params.freeModeSticky&&t.lazy.load()},resize(){const t=this;t.params.lazy.enabled&&t.lazy.load()},scrollbarDragMove(){const t=this;t.params.lazy.enabled&&t.lazy.load()},transitionStart(){const t=this;t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load()},transitionEnd(){const t=this;t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&t.lazy.load()},slideChange(){const t=this;t.params.lazy.enabled&&t.params.cssMode&&t.lazy.load()}}};const qe={LinearSpline:function(t,e){const r=function(){let t,e,r;return(n,i)=>{e=-1,t=n.length;while(t-e>1)r=t+e>>1,n[r]<=i?e=r:t=r;return t}}();let n,i;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(i=r(this.x,t),n=i-1,(t-this.x[n])*(this.y[i]-this.y[n])/(this.x[i]-this.x[n])+this.y[n]):0},this},getInterpolateFunction(t){const e=this;e.controller.spline||(e.controller.spline=e.params.loop?new qe.LinearSpline(e.slidesGrid,t.slidesGrid):new qe.LinearSpline(e.snapGrid,t.snapGrid))},setTranslate(t,e){const r=this,n=r.controller.control;let i,o;function s(t){const e=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(t),o=-r.controller.spline.interpolate(-e)),o&&"container"!==r.params.controller.by||(i=(t.maxTranslate()-t.minTranslate())/(r.maxTranslate()-r.minTranslate()),o=(e-r.minTranslate())*i+t.minTranslate()),r.params.controller.inverse&&(o=t.maxTranslate()-o),t.updateProgress(o),t.setTranslate(o,r),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(n))for(let a=0;a<n.length;a+=1)n[a]!==e&&n[a]instanceof me&&s(n[a]);else n instanceof me&&e!==n&&s(n)},setTransition(t,e){const r=this,n=r.controller.control;let i;function o(e){e.setTransition(t,r),0!==t&&(e.transitionStart(),e.params.autoHeight&&Q.nextTick(()=>{e.updateAutoHeight()}),e.$wrapperEl.transitionEnd(()=>{n&&(e.params.loop&&"slide"===r.params.controller.by&&e.loopFix(),e.transitionEnd())}))}if(Array.isArray(n))for(i=0;i<n.length;i+=1)n[i]!==e&&n[i]instanceof me&&o(n[i]);else n instanceof me&&e!==n&&o(n)}};var He={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){const t=this;Q.extend(t,{controller:{control:t.params.controller.control,getInterpolateFunction:qe.getInterpolateFunction.bind(t),setTranslate:qe.setTranslate.bind(t),setTransition:qe.setTransition.bind(t)}})},on:{update(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},resize(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},observerUpdate(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},setTranslate(t,e){const r=this;r.controller.control&&r.controller.setTranslate(t,e)},setTransition(t,e){const r=this;r.controller.control&&r.controller.setTransition(t,e)}}};const $e={makeElFocusable(t){return t.attr("tabIndex","0"),t},addElRole(t,e){return t.attr("role",e),t},addElLabel(t,e){return t.attr("aria-label",e),t},disableEl(t){return t.attr("aria-disabled",!0),t},enableEl(t){return t.attr("aria-disabled",!1),t},onEnterKey(t){const e=this,r=e.params.a11y;if(13!==t.keyCode)return;const n=l(t.target);e.navigation&&e.navigation.$nextEl&&n.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?e.a11y.notify(r.lastSlideMessage):e.a11y.notify(r.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&n.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?e.a11y.notify(r.firstSlideMessage):e.a11y.notify(r.prevSlideMessage)),e.pagination&&n.is("."+e.params.pagination.bulletClass)&&n[0].click()},notify(t){const e=this,r=e.a11y.liveRegion;0!==r.length&&(r.html(""),r.html(t))},updateNavigation(){const t=this;if(t.params.loop||!t.navigation)return;const{$nextEl:e,$prevEl:r}=t.navigation;r&&r.length>0&&(t.isBeginning?t.a11y.disableEl(r):t.a11y.enableEl(r)),e&&e.length>0&&(t.isEnd?t.a11y.disableEl(e):t.a11y.enableEl(e))},updatePagination(){const t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((r,n)=>{const i=l(n);t.a11y.makeElFocusable(i),t.a11y.addElRole(i,"button"),t.a11y.addElLabel(i,e.paginationBulletMessage.replace(/{{index}}/,i.index()+1))})},init(){const t=this;t.$el.append(t.a11y.liveRegion);const e=t.params.a11y;let r,n;t.navigation&&t.navigation.$nextEl&&(r=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(n=t.navigation.$prevEl),r&&(t.a11y.makeElFocusable(r),t.a11y.addElRole(r,"button"),t.a11y.addElLabel(r,e.nextSlideMessage),r.on("keydown",t.a11y.onEnterKey)),n&&(t.a11y.makeElFocusable(n),t.a11y.addElRole(n,"button"),t.a11y.addElLabel(n,e.prevSlideMessage),n.on("keydown",t.a11y.onEnterKey)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("keydown","."+t.params.pagination.bulletClass,t.a11y.onEnterKey)},destroy(){const t=this;let e,r;t.a11y.liveRegion&&t.a11y.liveRegion.length>0&&t.a11y.liveRegion.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(r=t.navigation.$prevEl),e&&e.off("keydown",t.a11y.onEnterKey),r&&r.off("keydown",t.a11y.onEnterKey),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.off("keydown","."+t.params.pagination.bulletClass,t.a11y.onEnterKey)}};var Ve={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create(){const t=this;Q.extend(t,{a11y:{liveRegion:l(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys($e).forEach(e=>{t.a11y[e]=$e[e].bind(t)})},on:{init(){const t=this;t.params.a11y.enabled&&(t.a11y.init(),t.a11y.updateNavigation())},toEdge(){const t=this;t.params.a11y.enabled&&t.a11y.updateNavigation()},fromEdge(){const t=this;t.params.a11y.enabled&&t.a11y.updateNavigation()},paginationUpdate(){const t=this;t.params.a11y.enabled&&t.a11y.updatePagination()},destroy(){const t=this;t.params.a11y.enabled&&t.a11y.destroy()}}};const Ke={init(){const t=this;if(!t.params.history)return;if(!X.history||!X.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);const e=t.history;e.initialized=!0,e.paths=Ke.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,t.params.runCallbacksOnInit),t.params.history.replaceState||X.addEventListener("popstate",t.history.setHistoryPopState))},destroy(){const t=this;t.params.history.replaceState||X.removeEventListener("popstate",t.history.setHistoryPopState)},setHistoryPopState(){const t=this;t.history.paths=Ke.getPathValues(),t.history.scrollToSlide(t.params.speed,t.history.paths.value,!1)},getPathValues(){const t=X.location.pathname.slice(1).split("/").filter(t=>""!==t),e=t.length,r=t[e-2],n=t[e-1];return{key:r,value:n}},setHistory(t,e){const r=this;if(!r.history.initialized||!r.params.history.enabled)return;const n=r.slides.eq(e);let i=Ke.slugify(n.attr("data-history"));X.location.pathname.includes(t)||(i=`${t}/${i}`);const o=X.history.state;o&&o.value===i||(r.params.history.replaceState?X.history.replaceState({value:i},null,i):X.history.pushState({value:i},null,i))},slugify(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide(t,e,r){const n=this;if(e)for(let i=0,o=n.slides.length;i<o;i+=1){const o=n.slides.eq(i),s=Ke.slugify(o.attr("data-history"));if(s===e&&!o.hasClass(n.params.slideDuplicateClass)){const e=o.index();n.slideTo(e,t,r)}}else n.slideTo(0,t,r)}};var We={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){const t=this;Q.extend(t,{history:{init:Ke.init.bind(t),setHistory:Ke.setHistory.bind(t),setHistoryPopState:Ke.setHistoryPopState.bind(t),scrollToSlide:Ke.scrollToSlide.bind(t),destroy:Ke.destroy.bind(t)}})},on:{init(){const t=this;t.params.history.enabled&&t.history.init()},destroy(){const t=this;t.params.history.enabled&&t.history.destroy()},transitionEnd(){const t=this;t.history.initialized&&t.history.setHistory(t.params.history.key,t.activeIndex)},slideChange(){const t=this;t.history.initialized&&t.params.cssMode&&t.history.setHistory(t.params.history.key,t.activeIndex)}}};const Ge={onHashCange(){const t=this,e=J.location.hash.replace("#",""),r=t.slides.eq(t.activeIndex).attr("data-hash");if(e!==r){const r=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if("undefined"===typeof r)return;t.slideTo(r)}},setHash(){const t=this;if(t.hashNavigation.initialized&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&X.history&&X.history.replaceState)X.history.replaceState(null,null,"#"+t.slides.eq(t.activeIndex).attr("data-hash")||"");else{const e=t.slides.eq(t.activeIndex),r=e.attr("data-hash")||e.attr("data-history");J.location.hash=r||""}},init(){const t=this;if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;t.hashNavigation.initialized=!0;const e=J.location.hash.replace("#","");if(e){const r=0;for(let n=0,i=t.slides.length;n<i;n+=1){const i=t.slides.eq(n),o=i.attr("data-hash")||i.attr("data-history");if(o===e&&!i.hasClass(t.params.slideDuplicateClass)){const e=i.index();t.slideTo(e,r,t.params.runCallbacksOnInit,!0)}}}t.params.hashNavigation.watchState&&l(X).on("hashchange",t.hashNavigation.onHashCange)},destroy(){const t=this;t.params.hashNavigation.watchState&&l(X).off("hashchange",t.hashNavigation.onHashCange)}};var Ze={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){const t=this;Q.extend(t,{hashNavigation:{initialized:!1,init:Ge.init.bind(t),destroy:Ge.destroy.bind(t),setHash:Ge.setHash.bind(t),onHashCange:Ge.onHashCange.bind(t)}})},on:{init(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.init()},destroy(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.destroy()},transitionEnd(){const t=this;t.hashNavigation.initialized&&t.hashNavigation.setHash()},slideChange(){const t=this;t.hashNavigation.initialized&&t.params.cssMode&&t.hashNavigation.setHash()}}};const Je={run(){const t=this,e=t.slides.eq(t.activeIndex);let r=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(r=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=Q.nextTick(()=>{t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")),t.params.cssMode&&t.autoplay.running&&t.autoplay.run()},r)},start(){const t=this;return"undefined"===typeof t.autoplay.timeout&&(!t.autoplay.running&&(t.autoplay.running=!0,t.emit("autoplayStart"),t.autoplay.run(),!0))},stop(){const t=this;return!!t.autoplay.running&&("undefined"!==typeof t.autoplay.timeout&&(t.autoplay.timeout&&(clearTimeout(t.autoplay.timeout),t.autoplay.timeout=void 0),t.autoplay.running=!1,t.emit("autoplayStop"),!0))},pause(t){const e=this;e.autoplay.running&&(e.autoplay.paused||(e.autoplay.timeout&&clearTimeout(e.autoplay.timeout),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?(e.$wrapperEl[0].addEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].addEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd)):(e.autoplay.paused=!1,e.autoplay.run())))}};var Xe={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const t=this;Q.extend(t,{autoplay:{running:!1,paused:!1,run:Je.run.bind(t),start:Je.start.bind(t),stop:Je.stop.bind(t),pause:Je.pause.bind(t),onVisibilityChange(){"hidden"===document.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===document.visibilityState&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init(){const t=this;t.params.autoplay.enabled&&(t.autoplay.start(),document.addEventListener("visibilitychange",t.autoplay.onVisibilityChange))},beforeTransitionStart(t,e){const r=this;r.autoplay.running&&(e||!r.params.autoplay.disableOnInteraction?r.autoplay.pause(t):r.autoplay.stop())},sliderFirstMove(){const t=this;t.autoplay.running&&(t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause())},touchEnd(){const t=this;t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&t.autoplay.run()},destroy(){const t=this;t.autoplay.running&&t.autoplay.stop(),document.removeEventListener("visibilitychange",t.autoplay.onVisibilityChange)}}};const Ye={setTranslate(){const t=this,{slides:e}=t;for(let r=0;r<e.length;r+=1){const e=t.slides.eq(r),n=e[0].swiperSlideOffset;let i=-n;t.params.virtualTranslate||(i-=t.translate);let o=0;t.isHorizontal()||(o=i,i=0);const s=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e[0].progress),0):1+Math.min(Math.max(e[0].progress,-1),0);e.css({opacity:s}).transform(`translate3d(${i}px, ${o}px, 0px)`)}},setTransition(t){const e=this,{slides:r,$wrapperEl:n}=e;if(r.transition(t),e.params.virtualTranslate&&0!==t){let t=!1;r.transitionEnd(()=>{if(t)return;if(!e||e.destroyed)return;t=!0,e.animating=!1;const r=["webkitTransitionEnd","transitionend"];for(let t=0;t<r.length;t+=1)n.trigger(r[t])})}}};var Qe={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){const t=this;Q.extend(t,{fadeEffect:{setTranslate:Ye.setTranslate.bind(t),setTransition:Ye.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if("fade"!==t.params.effect)return;t.classNames.push(t.params.containerModifierClass+"fade");const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};Q.extend(t.params,e),Q.extend(t.originalParams,e)},setTranslate(){const t=this;"fade"===t.params.effect&&t.fadeEffect.setTranslate()},setTransition(t){const e=this;"fade"===e.params.effect&&e.fadeEffect.setTransition(t)}}};const tr={setTranslate(){const t=this,{$el:e,$wrapperEl:r,slides:n,width:i,height:o,rtlTranslate:s,size:a}=t,u=t.params.cubeEffect,h=t.isHorizontal(),c=t.virtual&&t.params.virtual.enabled;let f,d=0;u.shadow&&(h?(f=r.find(".swiper-cube-shadow"),0===f.length&&(f=l('<div class="swiper-cube-shadow"></div>'),r.append(f)),f.css({height:i+"px"})):(f=e.find(".swiper-cube-shadow"),0===f.length&&(f=l('<div class="swiper-cube-shadow"></div>'),e.append(f))));for(let m=0;m<n.length;m+=1){const t=n.eq(m);let e=m;c&&(e=parseInt(t.attr("data-swiper-slide-index"),10));let r=90*e,i=Math.floor(r/360);s&&(r=-r,i=Math.floor(-r/360));const o=Math.max(Math.min(t[0].progress,1),-1);let f=0,p=0,v=0;e%4===0?(f=4*-i*a,v=0):(e-1)%4===0?(f=0,v=4*-i*a):(e-2)%4===0?(f=a+4*i*a,v=a):(e-3)%4===0&&(f=-a,v=3*a+4*a*i),s&&(f=-f),h||(p=f,f=0);const g=`rotateX(${h?0:-r}deg) rotateY(${h?r:0}deg) translate3d(${f}px, ${p}px, ${v}px)`;if(o<=1&&o>-1&&(d=90*e+90*o,s&&(d=90*-e-90*o)),t.transform(g),u.slideShadows){let e=h?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),r=h?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=l(`<div class="swiper-slide-shadow-${h?"left":"top"}"></div>`),t.append(e)),0===r.length&&(r=l(`<div class="swiper-slide-shadow-${h?"right":"bottom"}"></div>`),t.append(r)),e.length&&(e[0].style.opacity=Math.max(-o,0)),r.length&&(r[0].style.opacity=Math.max(o,0))}}if(r.css({"-webkit-transform-origin":`50% 50% -${a/2}px`,"-moz-transform-origin":`50% 50% -${a/2}px`,"-ms-transform-origin":`50% 50% -${a/2}px`,"transform-origin":`50% 50% -${a/2}px`}),u.shadow)if(h)f.transform(`translate3d(0px, ${i/2+u.shadowOffset}px, ${-i/2}px) rotateX(90deg) rotateZ(0deg) scale(${u.shadowScale})`);else{const t=Math.abs(d)-90*Math.floor(Math.abs(d)/90),e=1.5-(Math.sin(2*t*Math.PI/360)/2+Math.cos(2*t*Math.PI/360)/2),r=u.shadowScale,n=u.shadowScale/e,i=u.shadowOffset;f.transform(`scale3d(${r}, 1, ${n}) translate3d(0px, ${o/2+i}px, ${-o/2/n}px) rotateX(-90deg)`)}const p=ye.isSafari||ye.isUiWebView?-a/2:0;r.transform(`translate3d(0px,0,${p}px) rotateX(${t.isHorizontal()?0:d}deg) rotateY(${t.isHorizontal()?-d:0}deg)`)},setTransition(t){const e=this,{$el:r,slides:n}=e;n.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeEffect.shadow&&!e.isHorizontal()&&r.find(".swiper-cube-shadow").transition(t)}};var er={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){const t=this;Q.extend(t,{cubeEffect:{setTranslate:tr.setTranslate.bind(t),setTransition:tr.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if("cube"!==t.params.effect)return;t.classNames.push(t.params.containerModifierClass+"cube"),t.classNames.push(t.params.containerModifierClass+"3d");const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};Q.extend(t.params,e),Q.extend(t.originalParams,e)},setTranslate(){const t=this;"cube"===t.params.effect&&t.cubeEffect.setTranslate()},setTransition(t){const e=this;"cube"===e.params.effect&&e.cubeEffect.setTransition(t)}}};const rr={setTranslate(){const t=this,{slides:e,rtlTranslate:r}=t;for(let n=0;n<e.length;n+=1){const i=e.eq(n);let o=i[0].progress;t.params.flipEffect.limitRotation&&(o=Math.max(Math.min(i[0].progress,1),-1));const s=i[0].swiperSlideOffset,a=-180*o;let u=a,h=0,c=-s,f=0;if(t.isHorizontal()?r&&(u=-u):(f=c,c=0,h=-u,u=0),i[0].style.zIndex=-Math.abs(Math.round(o))+e.length,t.params.flipEffect.slideShadows){let e=t.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),r=t.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===e.length&&(e=l(`<div class="swiper-slide-shadow-${t.isHorizontal()?"left":"top"}"></div>`),i.append(e)),0===r.length&&(r=l(`<div class="swiper-slide-shadow-${t.isHorizontal()?"right":"bottom"}"></div>`),i.append(r)),e.length&&(e[0].style.opacity=Math.max(-o,0)),r.length&&(r[0].style.opacity=Math.max(o,0))}i.transform(`translate3d(${c}px, ${f}px, 0px) rotateX(${h}deg) rotateY(${u}deg)`)}},setTransition(t){const e=this,{slides:r,activeIndex:n,$wrapperEl:i}=e;if(r.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){let t=!1;r.eq(n).transitionEnd((function(){if(t)return;if(!e||e.destroyed)return;t=!0,e.animating=!1;const r=["webkitTransitionEnd","transitionend"];for(let t=0;t<r.length;t+=1)i.trigger(r[t])}))}}};var nr={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){const t=this;Q.extend(t,{flipEffect:{setTranslate:rr.setTranslate.bind(t),setTransition:rr.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if("flip"!==t.params.effect)return;t.classNames.push(t.params.containerModifierClass+"flip"),t.classNames.push(t.params.containerModifierClass+"3d");const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};Q.extend(t.params,e),Q.extend(t.originalParams,e)},setTranslate(){const t=this;"flip"===t.params.effect&&t.flipEffect.setTranslate()},setTransition(t){const e=this;"flip"===e.params.effect&&e.flipEffect.setTransition(t)}}};const ir={setTranslate(){const t=this,{width:e,height:r,slides:n,$wrapperEl:i,slidesSizesGrid:o}=t,s=t.params.coverflowEffect,a=t.isHorizontal(),u=t.translate,h=a?e/2-u:r/2-u,c=a?s.rotate:-s.rotate,f=s.depth;for(let d=0,p=n.length;d<p;d+=1){const t=n.eq(d),e=o[d],r=t[0].swiperSlideOffset,i=(h-r-e/2)/e*s.modifier;let u=a?c*i:0,p=a?0:c*i,m=-f*Math.abs(i),v=s.stretch;"string"===typeof v&&-1!==v.indexOf("%")&&(v=parseFloat(s.stretch)/100*e);let g=a?0:v*i,y=a?v*i:0;Math.abs(y)<.001&&(y=0),Math.abs(g)<.001&&(g=0),Math.abs(m)<.001&&(m=0),Math.abs(u)<.001&&(u=0),Math.abs(p)<.001&&(p=0);const b=`translate3d(${y}px,${g}px,${m}px) rotateX(${p}deg) rotateY(${u}deg)`;if(t.transform(b),t[0].style.zIndex=1-Math.abs(Math.round(i)),s.slideShadows){let e=a?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),r=a?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=l(`<div class="swiper-slide-shadow-${a?"left":"top"}"></div>`),t.append(e)),0===r.length&&(r=l(`<div class="swiper-slide-shadow-${a?"right":"bottom"}"></div>`),t.append(r)),e.length&&(e[0].style.opacity=i>0?i:0),r.length&&(r[0].style.opacity=-i>0?-i:0)}}if(tt.pointerEvents||tt.prefixedPointerEvents){const t=i[0].style;t.perspectiveOrigin=h+"px 50%"}},setTransition(t){const e=this;e.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}};var or={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create(){const t=this;Q.extend(t,{coverflowEffect:{setTranslate:ir.setTranslate.bind(t),setTransition:ir.setTransition.bind(t)}})},on:{beforeInit(){const t=this;"coverflow"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"coverflow"),t.classNames.push(t.params.containerModifierClass+"3d"),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},setTranslate(){const t=this;"coverflow"===t.params.effect&&t.coverflowEffect.setTranslate()},setTransition(t){const e=this;"coverflow"===e.params.effect&&e.coverflowEffect.setTransition(t)}}};const sr={init(){const t=this,{thumbs:e}=t.params,r=t.constructor;e.swiper instanceof r?(t.thumbs.swiper=e.swiper,Q.extend(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Q.extend(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):Q.isObject(e.swiper)&&(t.thumbs.swiper=new r(Q.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),t.thumbs.swiperCreated=!0),t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",t.thumbs.onThumbClick)},onThumbClick(){const t=this,e=t.thumbs.swiper;if(!e)return;const r=e.clickedIndex,n=e.clickedSlide;if(n&&l(n).hasClass(t.params.thumbs.slideThumbActiveClass))return;if("undefined"===typeof r||null===r)return;let i;if(i=e.params.loop?parseInt(l(e.clickedSlide).attr("data-swiper-slide-index"),10):r,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const r=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),n=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();i="undefined"===typeof r?n:"undefined"===typeof n?r:n-e<e-r?n:r}t.slideTo(i)},update(t){const e=this,r=e.thumbs.swiper;if(!r)return;const n="auto"===r.params.slidesPerView?r.slidesPerViewDynamic():r.params.slidesPerView;if(e.realIndex!==r.realIndex){let i,o=r.activeIndex;if(r.params.loop){r.slides.eq(o).hasClass(r.params.slideDuplicateClass)&&(r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft,o=r.activeIndex);const t=r.slides.eq(o).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(),n=r.slides.eq(o).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index();i="undefined"===typeof t?n:"undefined"===typeof n?t:n-o===o-t?o:n-o<o-t?n:t}else i=e.realIndex;r.visibleSlidesIndexes&&r.visibleSlidesIndexes.indexOf(i)<0&&(r.params.centeredSlides?i=i>o?i-Math.floor(n/2)+1:i+Math.floor(n/2)-1:i>o&&(i=i-n+1),r.slideTo(i,t?0:void 0))}let i=1;const o=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(i=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),r.slides.removeClass(o),r.params.loop||r.params.virtual&&r.params.virtual.enabled)for(let s=0;s<i;s+=1)r.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex+s}"]`).addClass(o);else for(let s=0;s<i;s+=1)r.slides.eq(e.realIndex+s).addClass(o)}};var ar={name:"thumbs",params:{thumbs:{multipleActiveThumbs:!0,swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){const t=this;Q.extend(t,{thumbs:{swiper:null,init:sr.init.bind(t),update:sr.update.bind(t),onThumbClick:sr.onThumbClick.bind(t)}})},on:{beforeInit(){const t=this,{thumbs:e}=t.params;e&&e.swiper&&(t.thumbs.init(),t.thumbs.update(!0))},slideChange(){const t=this;t.thumbs.swiper&&t.thumbs.update()},update(){const t=this;t.thumbs.swiper&&t.thumbs.update()},resize(){const t=this;t.thumbs.swiper&&t.thumbs.update()},observerUpdate(){const t=this;t.thumbs.swiper&&t.thumbs.update()},setTransition(t){const e=this,r=e.thumbs.swiper;r&&r.setTransition(t)},beforeDestroy(){const t=this,e=t.thumbs.swiper;e&&t.thumbs.swiperCreated&&e&&e.destroy()}}};const ur=[ve,ge,be,we,_e,Se,Ee,Te,Pe,Ie,Ne,Le,De,ze,He,Ve,We,Ze,Xe,Qe,er,nr,or,ar];"undefined"===typeof me.use&&(me.use=me.Class.use,me.installModule=me.Class.installModule),me.use(ur);e["default"]=me},b639:function(t,e,r){"use strict";(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var n=r("1fb5"),i=r("9152"),o=r("e3db");function s(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function a(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=h.prototype):(null===t&&(t=new h(e)),t.length=e),t}function h(t,e,r){if(!h.TYPED_ARRAY_SUPPORT&&!(this instanceof h))return new h(t,e,r);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return l(this,t,e,r)}function l(t,e,r,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?v(t,e,r,n):"string"===typeof e?p(t,e,r):g(t,e)}function c(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e,r,n){return c(e),e<=0?u(t,e):void 0!==r?"string"===typeof n?u(t,e).fill(r,n):u(t,e).fill(r):u(t,e)}function d(t,e){if(c(e),t=u(t,e<0?0:0|y(e)),!h.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function p(t,e,r){if("string"===typeof r&&""!==r||(r="utf8"),!h.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|w(e,r);t=u(t,n);var i=t.write(e,r);return i!==n&&(t=t.slice(0,i)),t}function m(t,e){var r=e.length<0?0:0|y(e.length);t=u(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function v(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),h.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=h.prototype):t=m(t,e),t}function g(t,e){if(h.isBuffer(e)){var r=0|y(e.length);return t=u(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?u(t,0):m(t,e);if("Buffer"===e.type&&o(e.data))return m(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),h.alloc(+t)}function w(t,e){if(h.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(t).length;default:if(n)return J(t).length;e=(""+e).toLowerCase(),n=!0}}function M(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return L(this,e,r);case"utf8":case"utf-8":return B(this,e,r);case"ascii":return N(this,e,r);case"latin1":case"binary":return j(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function _(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function k(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=h.from(e,n)),h.isBuffer(e))return 0===e.length?-1:S(t,e,r,n,i);if("number"===typeof e)return e&=255,h.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):S(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function S(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;o<a;o++)if(h(t,o)===h(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var c=!0,f=0;f<u;f++)if(h(t,o+f)!==h(e,f)){c=!1;break}if(c)return o}return-1}function x(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function E(t,e,r,n){return tt(J(e,t.length-r),t,r,n)}function A(t,e,r,n){return tt(X(e),t,r,n)}function O(t,e,r,n){return A(t,e,r,n)}function T(t,e,r,n){return tt(Q(e),t,r,n)}function C(t,e,r,n){return tt(Y(e,t.length-r),t,r,n)}function P(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function B(t,e,r){r=Math.min(t.length,r);var n=[],i=e;while(i<r){var o,s,a,u,h=t[i],l=null,c=h>239?4:h>223?3:h>191?2:1;if(i+c<=r)switch(c){case 1:h<128&&(l=h);break;case 2:o=t[i+1],128===(192&o)&&(u=(31&h)<<6|63&o,u>127&&(l=u));break;case 3:o=t[i+1],s=t[i+2],128===(192&o)&&128===(192&s)&&(u=(15&h)<<12|(63&o)<<6|63&s,u>2047&&(u<55296||u>57343)&&(l=u));break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(u=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a,u>65535&&u<1114112&&(l=u))}null===l?(l=65533,c=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=c}return R(n)}e.Buffer=h,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:s(),e.kMaxLength=a(),h.poolSize=8192,h._augment=function(t){return t.__proto__=h.prototype,t},h.from=function(t,e,r){return l(null,t,e,r)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0})),h.alloc=function(t,e,r){return f(null,t,e,r)},h.allocUnsafe=function(t){return d(null,t)},h.allocUnsafeSlow=function(t){return d(null,t)},h.isBuffer=function(t){return!(null==t||!t._isBuffer)},h.compare=function(t,e){if(!h.isBuffer(t)||!h.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},h.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=h.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var s=t[r];if(!h.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},h.byteLength=w,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)_(this,e,e+1);return this},h.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)_(this,e,e+3),_(this,e+1,e+2);return this},h.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)_(this,e,e+7),_(this,e+1,e+6),_(this,e+2,e+5),_(this,e+3,e+4);return this},h.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?B(this,0,t):M.apply(this,arguments)},h.prototype.equals=function(t){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===h.compare(this,t)},h.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},h.prototype.compare=function(t,e,r,n,i){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,s=r-e,a=Math.min(o,s),u=this.slice(n,i),l=t.slice(e,r),c=0;c<a;++c)if(u[c]!==l[c]){o=u[c],s=l[c];break}return o<s?-1:s<o?1:0},h.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},h.prototype.indexOf=function(t,e,r){return k(this,t,e,r,!0)},h.prototype.lastIndexOf=function(t,e,r){return k(this,t,e,r,!1)},h.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return x(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":return A(this,t,e,r);case"latin1":case"binary":return O(this,t,e,r);case"base64":return T(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function R(t){var e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);var r="",n=0;while(n<e)r+=String.fromCharCode.apply(String,t.slice(n,n+=I));return r}function N(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function j(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function L(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Z(t[o]);return i}function U(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function D(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,r,n,i,o){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function z(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function q(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function H(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $(t,e,r,n,o){return o||H(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function V(t,e,r,n,o){return o||H(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}h.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t),h.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=h.prototype;else{var i=e-t;r=new h(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},h.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||D(t,e,this.length);var n=this[t],i=1,o=0;while(++o<e&&(i*=256))n+=this[t+o]*i;return n},h.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||D(t,e,this.length);var n=this[t+--e],i=1;while(e>0&&(i*=256))n+=this[t+--e]*i;return n},h.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||D(t,e,this.length);var n=this[t],i=1,o=0;while(++o<e&&(i*=256))n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},h.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||D(t,e,this.length);var n=e,i=1,o=this[t+--n];while(n>0&&(i*=256))o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},h.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),i.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),i.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),i.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),i.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;F(this,t,e,r,i,0)}var o=1,s=0;this[e]=255&t;while(++s<r&&(o*=256))this[e+s]=t/o&255;return e+r},h.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;F(this,t,e,r,i,0)}var o=r-1,s=1;this[e+o]=255&t;while(--o>=0&&(s*=256))this[e+o]=t/s&255;return e+r},h.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,255,0),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},h.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},h.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):z(this,t,e,!1),e+2},h.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):q(this,t,e,!0),e+4},h.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},h.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;this[e]=255&t;while(++o<r&&(s*=256))t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},h.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;this[e+o]=255&t;while(--o>=0&&(s*=256))t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},h.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,127,-128),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},h.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):z(this,t,e,!1),e+2},h.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):q(this,t,e,!0),e+4},h.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},h.prototype.writeFloatLE=function(t,e,r){return $(this,t,e,!0,r)},h.prototype.writeFloatBE=function(t,e,r){return $(this,t,e,!1,r)},h.prototype.writeDoubleLE=function(t,e,r){return V(this,t,e,!0,r)},h.prototype.writeDoubleBE=function(t,e,r){return V(this,t,e,!1,r)},h.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!h.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},h.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=h.isBuffer(t)?t:J(new h(t,n).toString()),a=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function W(t){if(t=G(t).replace(K,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function G(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Z(t){return t<16?"0"+t.toString(16):t.toString(16)}function J(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function X(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function Y(t,e){for(var r,n,i,o=[],s=0;s<t.length;++s){if((e-=2)<0)break;r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n)}return o}function Q(t){return n.toByteArray(W(t))}function tt(t,e,r,n){for(var i=0;i<n;++i){if(i+r>=e.length||i>=t.length)break;e[i+r]=t[i]}return i}function et(t){return t!==t}}).call(this,r("c8ba"))},b642:function(t,e,r){"use strict";const n=r("0222"),i={};for(const[o,s]of Object.entries(n))i[o.toUpperCase().replace(/-/g,"_")]=s;t.exports=Object.freeze(i)},b672:function(t,e,r){var n=r("8707").Buffer;function i(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"===typeof t&&(e=e||"utf8",t=n.from(t,e));for(var r=this._block,i=this._blockSize,o=t.length,s=this._len,a=0;a<o;){for(var u=s%i,h=Math.min(o-a,i-u),l=0;l<h;l++)r[u+l]=t[a+l];s+=h,a+=h,s%i===0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},b692:function(t,e,r){var n=r("39a9").Buffer,i=r("98e6"),o=r("34d5"),s=r("3fb5"),a=r("6fe7"),u=r("980c"),h=r("b4e8");function l(t){o.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function c(t){o.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function f(t){return new l(t)}function d(t){return new c(t)}Object.keys(h).forEach((function(t){h[t].id=n.from(h[t].id,"hex"),h[t.toLowerCase()]=h[t]})),s(l,o.Writable),l.prototype._write=function(t,e,r){this._hash.update(t),r()},l.prototype.update=function(t,e){return"string"===typeof t&&(t=n.from(t,e)),this._hash.update(t),this},l.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=a(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},s(c,o.Writable),c.prototype._write=function(t,e,r){this._hash.update(t),r()},c.prototype.update=function(t,e){return"string"===typeof t&&(t=n.from(t,e)),this._hash.update(t),this},c.prototype.verify=function(t,e,r){"string"===typeof e&&(e=n.from(e,r)),this.end();var i=this._hash.digest();return u(e,i,t,this._signType,this._tag)},t.exports={Sign:f,Verify:d,createSign:f,createVerify:d}},b6e4:function(t,e,r){r("ec30")("Int32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},b73f:function(t,e,r){"use strict";var n=r("80af"),i=r("f3a3"),o=i.assert;function s(t,e){if(t instanceof s)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function a(){this.place=0}function u(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,s=e.place;o<n;o++,s++)i<<=8,i|=t[s],i>>>=0;return!(i<=127)&&(e.place=s,i)}function h(t){var e=0,r=t.length-1;while(!t[e]&&!(128&t[e+1])&&e<r)e++;return 0===e?t:t.slice(e)}function l(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);t.push(128|r);while(--r)t.push(e>>>(r<<3)&255);t.push(e)}}t.exports=s,s.prototype._importDER=function(t,e){t=i.toArray(t,e);var r=new a;if(48!==t[r.place++])return!1;var o=u(t,r);if(!1===o)return!1;if(o+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var s=u(t,r);if(!1===s)return!1;var h=t.slice(r.place,s+r.place);if(r.place+=s,2!==t[r.place++])return!1;var l=u(t,r);if(!1===l)return!1;if(t.length!==l+r.place)return!1;var c=t.slice(r.place,l+r.place);if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new n(h),this.s=new n(c),this.recoveryParam=null,!0},s.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=h(e),r=h(r);while(!r[0]&&!(128&r[1]))r=r.slice(1);var n=[2];l(n,e.length),n=n.concat(e),n.push(2),l(n,r.length);var o=n.concat(r),s=[48];return l(s,o.length),s=s.concat(o),i.encode(s,t)}},b7d1:function(t,e,r){(function(e){function r(t,e){if(n("noDeprecation"))return t;var r=!1;function i(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return i}function n(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=r}).call(this,r("c8ba"))},b837:function(t,e,r){var n=r("3fb5"),i=r("4fd1"),o=r("b672"),s=r("8707").Buffer,a=new Array(160);function u(){this.init(),this._w=a,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var t=s.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=u},b970:function(t,e,r){"use strict";var n=r("c31d"),i=r("2638"),o=r.n(i),s=r("8bbf"),a=r.n(s),u=r("d282"),h=r("ba31"),l=r("6605"),c=r("ad06"),f=r("e41f"),d=r("543e"),p=Object(u["a"])("action-sheet"),m=p[0],v=p[1];function g(t,e,r,n){var i=e.title,s=e.cancelText,u=e.closeable;function l(){Object(h["a"])(n,"input",!1),Object(h["a"])(n,"cancel")}function p(){if(i)return t("div",{class:v("header")},[i,u&&t(c["a"],{attrs:{name:e.closeIcon},class:v("close"),on:{click:l}})])}function m(r,i){var o=r.disabled,s=r.loading,u=r.callback;function l(t){t.stopPropagation(),o||s||(u&&u(r),e.closeOnClickAction&&Object(h["a"])(n,"input",!1),a.a.nextTick((function(){Object(h["a"])(n,"select",r,i)})))}function c(){return s?t(d["a"],{class:v("loading-icon")}):[t("span",{class:v("name")},[r.name]),r.subname&&t("div",{class:v("subname")},[r.subname])]}return t("button",{attrs:{type:"button"},class:[v("item",{disabled:o,loading:s}),r.className],style:{color:r.color},on:{click:l}},[c()])}function g(){if(s)return[t("div",{class:v("gap")}),t("button",{attrs:{type:"button"},class:v("cancel"),on:{click:l}},[s])]}function y(){var n=(null==r.description?void 0:r.description())||e.description;if(n)return t("div",{class:v("description")},[n])}return t(f["a"],o()([{class:v(),attrs:{position:"bottom",round:e.round,value:e.value,overlay:e.overlay,duration:e.duration,lazyRender:e.lazyRender,lockScroll:e.lockScroll,getContainer:e.getContainer,closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay,safeAreaInsetBottom:e.safeAreaInsetBottom}},Object(h["b"])(n,!0)]),[p(),y(),t("div",{class:v("content")},[e.actions&&e.actions.map(m),null==r.default?void 0:r.default()]),g()])}g.props=Object(n["a"])({},l["b"],{title:String,actions:Array,duration:[Number,String],cancelText:String,description:String,getContainer:[String,Function],closeOnPopstate:Boolean,closeOnClickAction:Boolean,round:{type:Boolean,default:!0},closeable:{type:Boolean,default:!0},closeIcon:{type:String,default:"cross"},safeAreaInsetBottom:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}});var y=m(g),b=r("a142");function w(t){return t=t.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(t)||/^0[0-9-]{10,13}$/.test(t)}var M=44,_={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}},k=r("1325"),S="#ee0a24",x="van-hairline",E=x+"--top",A=x+"--left",O=x+"--bottom",T=x+"--surround",C=x+"--top-bottom",P=x+"-unset--top-bottom",B=r("ea8e");function I(t){if(!Object(b["c"])(t))return t;if(Array.isArray(t))return t.map((function(t){return I(t)}));if("object"===typeof t){var e={};return Object.keys(t).forEach((function(r){e[r]=I(t[r])})),e}return t}function R(t,e,r){return Math.min(Math.max(t,e),r)}function N(t,e,r){var n=t.indexOf(e),i="";return-1===n?t:"-"===e&&0!==n?t.slice(0,n):("."===e&&t.match(/^(\.|-\.)/)&&(i=n?"-0":"0"),i+t.slice(0,n+1)+t.slice(n).replace(r,""))}function j(t,e,r){void 0===e&&(e=!0),void 0===r&&(r=!0),t=e?N(t,".",/\./g):t.split(".")[0],t=r?N(t,"-",/-/g):t.replace(/-/,"");var n=e?/[^-0-9.]/g:/[^-0-9]/g;return t.replace(n,"")}function L(t,e){var r=Math.pow(10,10);return Math.round((t+e)*r)/r}var U=r("3875"),D=200,F=300,z=15,q=Object(u["a"])("picker-column"),H=q[0],$=q[1];function V(t){var e=window.getComputedStyle(t),r=e.transform||e.webkitTransform,n=r.slice(7,r.length-1).split(", ")[5];return Number(n)}function K(t){return Object(b["f"])(t)&&t.disabled}var W=H({mixins:[U["a"]],props:{valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:I(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(t){this.setIndex(t)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(t){JSON.stringify(t)!==JSON.stringify(this.options)&&(this.options=I(t),this.setIndex(this.defaultIndex))},onTouchStart:function(t){if(!this.readonly){if(this.touchStart(t),this.moving){var e=V(this.$refs.wrapper);this.offset=Math.min(0,e-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset}},onTouchMove:function(t){if(!this.readonly){this.touchMove(t),"vertical"===this.direction&&(this.moving=!0,Object(k["c"])(t,!0)),this.offset=R(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var e=Date.now();e-this.touchStartTime>F&&(this.touchStartTime=e,this.momentumOffset=this.offset)}},onTouchEnd:function(){var t=this;if(!this.readonly){var e=this.offset-this.momentumOffset,r=Date.now()-this.touchStartTime,n=r<F&&Math.abs(e)>z;if(n)this.momentum(e,r);else{var i=this.getIndexByOffset(this.offset);this.duration=D,this.setIndex(i,!0),setTimeout((function(){t.moving=!1}),0)}}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(t){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=D,this.setIndex(t,!0))},adjustIndex:function(t){t=R(t,0,this.count);for(var e=t;e<this.count;e++)if(!K(this.options[e]))return e;for(var r=t-1;r>=0;r--)if(!K(this.options[r]))return r},getOptionText:function(t){return Object(b["f"])(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){var r=this;t=this.adjustIndex(t)||0;var n=-t*this.itemHeight,i=function(){t!==r.currentIndex&&(r.currentIndex=t,e&&r.$emit("change",t))};this.moving&&n!==this.offset?this.transitionEndTrigger=i:i(),this.offset=n},setValue:function(t){for(var e=this.options,r=0;r<e.length;r++)if(this.getOptionText(e[r])===t)return this.setIndex(r)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(t){return R(Math.round(-t/this.itemHeight),0,this.count-1)},momentum:function(t,e){var r=Math.abs(t/e);t=this.offset+r/.003*(t<0?-1:1);var n=this.getIndexByOffset(t);this.duration=+this.swipeDuration,this.setIndex(n,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var t=this,e=this.$createElement,r={height:this.itemHeight+"px"};return this.options.map((function(n,i){var s,a=t.getOptionText(n),u=K(n),h={style:r,attrs:{role:"button",tabindex:u?-1:0},class:[$("item",{disabled:u,selected:i===t.currentIndex})],on:{click:function(){t.onClickItem(i)}}},l={class:"van-ellipsis",domProps:(s={},s[t.allowHtml?"innerHTML":"textContent"]=a,s)};return e("li",o()([{},h]),[t.slots("option",n)||e("div",o()([{},l]))])}))}},render:function(){var t=arguments[0],e={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return t("div",{class:[$(),this.className]},[t("ul",{ref:"wrapper",style:e,class:$("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}}),G=Object(u["a"])("picker"),Z=G[0],J=G[1],X=G[2],Y=Z({props:Object(n["a"])({},_,{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?Object(B["b"])(this.itemHeight):M},dataType:function(){var t=this.columns,e=t[0]||{};return e.children?"cascade":e.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var t=this.columns,e=this.dataType;"text"===e?this.formattedColumns=[{values:t}]:"cascade"===e?this.formatCascade():this.formattedColumns=t},formatCascade:function(){var t=[],e={children:this.columns};while(e&&e.children){var r,n=e,i=n.children,o=null!=(r=e.defaultIndex)?r:+this.defaultIndex;while(i[o]&&i[o].disabled){if(!(o<i.length-1)){o=0;break}o++}t.push({values:e.children,className:e.className,defaultIndex:o}),e=i[o]}this.formattedColumns=t},emit:function(t){var e=this;if("text"===this.dataType)this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0));else{var r=this.getValues();"cascade"===this.dataType&&(r=r.map((function(t){return t[e.valueKey]}))),this.$emit(t,r,this.getIndexes())}},onCascadeChange:function(t){for(var e={children:this.columns},r=this.getIndexes(),n=0;n<=t;n++)e=e.children[r[n]];while(e&&e.children)t++,this.setColumnValues(t,e.children),e=e.children[e.defaultIndex||0]},onChange:function(t){var e=this;if("cascade"===this.dataType&&this.onCascadeChange(t),"text"===this.dataType)this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var r=this.getValues();"cascade"===this.dataType&&(r=r.map((function(t){return t[e.valueKey]}))),this.$emit("change",this,r,t)}},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var r=this.getColumn(t);r&&(r.setValue(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var r=this.getColumn(t);r&&(r.setIndex(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var r=this.children[t];r&&r.setOptions(e)},getValues:function(){return this.children.map((function(t){return t.getValue()}))},setValues:function(t){var e=this;t.forEach((function(t,r){e.setColumnValue(r,t)}))},getIndexes:function(){return this.children.map((function(t){return t.currentIndex}))},setIndexes:function(t){var e=this;t.forEach((function(t,r){e.setColumnIndex(r,t)}))},confirm:function(){this.children.forEach((function(t){return t.stopMomentum()})),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var t=this.$createElement,e=this.slots("title");return e||(this.title?t("div",{class:["van-ellipsis",J("title")]},[this.title]):void 0)},genCancel:function(){var t=this.$createElement;return t("button",{attrs:{type:"button"},class:J("cancel"),on:{click:this.cancel}},[this.slots("cancel")||this.cancelButtonText||X("cancel")])},genConfirm:function(){var t=this.$createElement;return t("button",{attrs:{type:"button"},class:J("confirm"),on:{click:this.confirm}},[this.slots("confirm")||this.confirmButtonText||X("confirm")])},genToolbar:function(){var t=this.$createElement;if(this.showToolbar)return t("div",{class:J("toolbar")},[this.slots()||[this.genCancel(),this.genTitle(),this.genConfirm()]])},genColumns:function(){var t=this.$createElement,e=this.itemPxHeight,r=e*this.visibleItemCount,n={height:e+"px"},i={height:r+"px"},o={backgroundSize:"100% "+(r-e)/2+"px"};return t("div",{class:J("columns"),style:i,on:{touchmove:k["c"]}},[this.genColumnItems(),t("div",{class:J("mask"),style:o}),t("div",{class:[P,J("frame")],style:n})])},genColumnItems:function(){var t=this,e=this.$createElement;return this.formattedColumns.map((function(r,n){var i;return e(W,{attrs:{readonly:t.readonly,valueKey:t.valueKey,allowHtml:t.allowHtml,className:r.className,itemHeight:t.itemPxHeight,defaultIndex:null!=(i=r.defaultIndex)?i:+t.defaultIndex,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,initialOptions:r.values},scopedSlots:{option:t.$scopedSlots.option},on:{change:function(){t.onChange(n)}}})}))}},render:function(t){return t("div",{class:J()},["top"===this.toolbarPosition?this.genToolbar():t(),this.loading?t(d["a"],{class:J("loading")}):t(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():t()])}}),Q=Object(u["a"])("area"),tt=Q[0],et=Q[1],rt="000000";function nt(t){return"9"===t[0]}function it(t,e){var r=t.$slots,n=t.$scopedSlots,i={};return e.forEach((function(t){n[t]?i[t]=n[t]:r[t]&&(i[t]=function(){return r[t]})})),i}var ot=tt({props:Object(n["a"])({},_,{value:String,areaList:{type:Object,default:function(){return{}}},columnsNum:{type:[Number,String],default:3},isOverseaCode:{type:Function,default:nt},columnsPlaceholder:{type:Array,default:function(){return[]}}}),data:function(){return{code:this.value,columns:[{values:[]},{values:[]},{values:[]}]}},computed:{province:function(){return this.areaList.province_list||{}},city:function(){return this.areaList.city_list||{}},county:function(){return this.areaList.county_list||{}},displayColumns:function(){return this.columns.slice(0,+this.columnsNum)},placeholderMap:function(){return{province:this.columnsPlaceholder[0]||"",city:this.columnsPlaceholder[1]||"",county:this.columnsPlaceholder[2]||""}}},watch:{value:function(t){this.code=t,this.setValues()},areaList:{deep:!0,handler:"setValues"},columnsNum:function(){var t=this;this.$nextTick((function(){t.setValues()}))}},mounted:function(){this.setValues()},methods:{getList:function(t,e){var r=[];if("province"!==t&&!e)return r;var n=this[t];if(r=Object.keys(n).map((function(t){return{code:t,name:n[t]}})),e&&(this.isOverseaCode(e)&&"city"===t&&(e="9"),r=r.filter((function(t){return 0===t.code.indexOf(e)}))),this.placeholderMap[t]&&r.length){var i="";"city"===t?i=rt.slice(2,4):"county"===t&&(i=rt.slice(4,6)),r.unshift({code:""+e+i,name:this.placeholderMap[t]})}return r},getIndex:function(t,e){var r="province"===t?2:"city"===t?4:6,n=this.getList(t,e.slice(0,r-2));this.isOverseaCode(e)&&"province"===t&&(r=1),e=e.slice(0,r);for(var i=0;i<n.length;i++)if(n[i].code.slice(0,r)===e)return i;return 0},parseOutputValues:function(t){var e=this;return t.map((function(t,r){return t?(t=JSON.parse(JSON.stringify(t)),t.code&&t.name!==e.columnsPlaceholder[r]||(t.code="",t.name=""),t):t}))},onChange:function(t,e,r){this.code=e[r].code,this.setValues();var n=this.parseOutputValues(t.getValues());this.$emit("change",t,n,r)},onConfirm:function(t,e){t=this.parseOutputValues(t),this.setValues(),this.$emit("confirm",t,e)},getDefaultCode:function(){if(this.columnsPlaceholder.length)return rt;var t=Object.keys(this.county);if(t[0])return t[0];var e=Object.keys(this.city);return e[0]?e[0]:""},setValues:function(){var t=this.code;t||(t=this.getDefaultCode());var e=this.$refs.picker,r=this.getList("province"),n=this.getList("city",t.slice(0,2));e&&(e.setColumnValues(0,r),e.setColumnValues(1,n),n.length&&"00"===t.slice(2,4)&&!this.isOverseaCode(t)&&(t=n[0].code),e.setColumnValues(2,this.getList("county",t.slice(0,4))),e.setIndexes([this.getIndex("province",t),this.getIndex("city",t),this.getIndex("county",t)]))},getValues:function(){var t=this.$refs.picker,e=t?t.getValues().filter((function(t){return!!t})):[];return e=this.parseOutputValues(e),e},getArea:function(){var t=this.getValues(),e={code:"",country:"",province:"",city:"",county:""};if(!t.length)return e;var r=t.map((function(t){return t.name})),n=t.filter((function(t){return!!t.code}));return e.code=n.length?n[n.length-1].code:"",this.isOverseaCode(e.code)?(e.country=r[1]||"",e.province=r[2]||""):(e.province=r[0]||"",e.city=r[1]||"",e.county=r[2]||""),e},reset:function(t){this.code=t||"",this.setValues()}},render:function(){var t=arguments[0],e=Object(n["a"])({},this.$listeners,{change:this.onChange,confirm:this.onConfirm});return t(Y,{ref:"picker",class:et(),attrs:{showToolbar:!0,valueKey:"name",title:this.title,columns:this.displayColumns,loading:this.loading,readonly:this.readonly,itemHeight:this.itemHeight,swipeDuration:this.swipeDuration,visibleItemCount:this.visibleItemCount,cancelButtonText:this.cancelButtonText,confirmButtonText:this.confirmButtonText},scopedSlots:it(this,["title","columns-top","columns-bottom"]),on:Object(n["a"])({},e)})}});function st(t){return"NavigationDuplicated"===t.name||t.message&&-1!==t.message.indexOf("redundant navigation")}function at(t,e){var r=e.to,n=e.url,i=e.replace;if(r&&t){var o=t[i?"replace":"push"](r);o&&o.catch&&o.catch((function(t){if(t&&!st(t))throw t}))}else n&&(i?location.replace(n):location.href=n)}function ut(t){at(t.parent&&t.parent.$router,t.props)}var ht={url:String,replace:Boolean,to:[String,Object]},lt={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}},ct=Object(u["a"])("cell"),ft=ct[0],dt=ct[1];function pt(t,e,r,n){var i,s=e.icon,a=e.size,u=e.title,l=e.label,f=e.value,d=e.isLink,p=r.title||Object(b["c"])(u);function m(){var n=r.label||Object(b["c"])(l);if(n)return t("div",{class:[dt("label"),e.labelClass]},[r.label?r.label():l])}function v(){if(p)return t("div",{class:[dt("title"),e.titleClass],style:e.titleStyle},[r.title?r.title():t("span",[u]),m()])}function g(){var n=r.default||Object(b["c"])(f);if(n)return t("div",{class:[dt("value",{alone:!p}),e.valueClass]},[r.default?r.default():t("span",[f])])}function y(){return r.icon?r.icon():s?t(c["a"],{class:dt("left-icon"),attrs:{name:s,classPrefix:e.iconPrefix}}):void 0}function w(){var n=r["right-icon"];if(n)return n();if(d){var i=e.arrowDirection;return t(c["a"],{class:dt("right-icon"),attrs:{name:i?"arrow-"+i:"arrow"}})}}function M(t){Object(h["a"])(n,"click",t),ut(n)}var _=null!=(i=e.clickable)?i:d,k={clickable:_,center:e.center,required:e.required,borderless:!e.border};return a&&(k[a]=a),t("div",o()([{class:dt(k),attrs:{role:_?"button":null,tabindex:_?0:null},on:{click:M}},Object(h["b"])(n)]),[y(),v(),g(),w(),null==r.extra?void 0:r.extra()])}pt.props=Object(n["a"])({},lt,ht);var mt=ft(pt);function vt(){return!b["h"]&&/android/.test(navigator.userAgent.toLowerCase())}function gt(){return!b["h"]&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())}var yt=r("a8c1"),bt=gt();function wt(){bt&&Object(yt["g"])(Object(yt["b"])())}var Mt=Object(u["a"])("field"),_t=Mt[0],kt=Mt[1],St=_t({inheritAttrs:!1,provide:function(){return{vanField:this}},inject:{vanForm:{default:null}},props:Object(n["a"])({},lt,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.vanForm&&this.vanForm.addField(this)},beforeDestroy:function(){this.vanForm&&this.vanForm.removeField(this)},computed:{showClear:function(){var t=this.getProp("readonly");if(this.clearable&&!t){var e=Object(b["c"])(this.value)&&""!==this.value,r="always"===this.clearTrigger||"focus"===this.clearTrigger&&this.focused;return e&&r}},showError:function(){return null!==this.error?this.error:!!(this.vanForm&&this.vanForm.showError&&this.validateFailed)||void 0},listeners:function(){return Object(n["a"])({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var t=this.getProp("labelWidth");if(t)return{width:Object(B["a"])(t)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(t,e){return new Promise((function(r){var n=e.validator(t,e);if(Object(b["g"])(n))return n.then(r);r(n)}))},isEmptyValue:function(t){return Array.isArray(t)?!t.length:0!==t&&!t},runSyncRule:function(t,e){return(!e.required||!this.isEmptyValue(t))&&!(e.pattern&&!e.pattern.test(t))},getRuleMessage:function(t,e){var r=e.message;return Object(b["e"])(r)?r(t,e):r},runRules:function(t){var e=this;return t.reduce((function(t,r){return t.then((function(){if(!e.validateFailed){var t=e.formValue;return r.formatter&&(t=r.formatter(t,r)),e.runSyncRule(t,r)?r.validator?e.runValidator(t,r).then((function(n){!1===n&&(e.validateFailed=!0,e.validateMessage=e.getRuleMessage(t,r))})):void 0:(e.validateFailed=!0,void(e.validateMessage=e.getRuleMessage(t,r)))}}))}),Promise.resolve())},validate:function(t){var e=this;return void 0===t&&(t=this.rules),new Promise((function(r){t||r(),e.resetValidation(),e.runRules(t).then((function(){e.validateFailed?r({name:e.name,message:e.validateMessage}):r()}))}))},validateWithTrigger:function(t){if(this.vanForm&&this.rules){var e=this.vanForm.validateTrigger===t,r=this.rules.filter((function(r){return r.trigger?r.trigger===t:e}));r.length&&this.validate(r)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(t,e){void 0===e&&(e="onChange"),t=Object(b["c"])(t)?String(t):"";var r=this.maxlength;if(Object(b["c"])(r)&&t.length>r&&(t=this.value&&this.value.length===+r?this.value:t.slice(0,r)),"number"===this.type||"digit"===this.type){var n="number"===this.type;t=j(t,n,n)}this.formatter&&e===this.formatTrigger&&(t=this.formatter(t));var i=this.$refs.input;i&&t!==i.value&&(i.value=t),t!==this.value&&this.$emit("input",t)},onInput:function(t){t.target.composing||this.updateValue(t.target.value)},onFocus:function(t){this.focused=!0,this.$emit("focus",t);var e=this.getProp("readonly");e&&this.blur()},onBlur:function(t){this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",t),this.validateWithTrigger("onBlur"),wt()},onClick:function(t){this.$emit("click",t)},onClickInput:function(t){this.$emit("click-input",t)},onClickLeftIcon:function(t){this.$emit("click-left-icon",t)},onClickRightIcon:function(t){this.$emit("click-right-icon",t)},onClear:function(t){Object(k["c"])(t),this.$emit("input",""),this.$emit("clear",t)},onKeypress:function(t){var e=13;if(t.keyCode===e){var r=this.getProp("submitOnEnter");r||"textarea"===this.type||Object(k["c"])(t),"search"===this.type&&this.blur()}this.$emit("keypress",t)},adjustSize:function(){var t=this.$refs.input;if("textarea"===this.type&&this.autosize&&t){t.style.height="auto";var e=t.scrollHeight;if(Object(b["f"])(this.autosize)){var r=this.autosize,n=r.maxHeight,i=r.minHeight;n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i))}e&&(t.style.height=e+"px")}},genInput:function(){var t=this.$createElement,e=this.type,r=this.getProp("disabled"),i=this.getProp("readonly"),s=this.slots("input"),a=this.getProp("inputAlign");if(s)return t("div",{class:kt("control",[a,"custom"]),on:{click:this.onClickInput}},[s]);var u={ref:"input",class:kt("control",a),domProps:{value:this.value},attrs:Object(n["a"])({},this.$attrs,{name:this.name,disabled:r,readonly:i,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if("textarea"===e)return t("textarea",o()([{},u]));var h,l=e;return"number"===e&&(l="text",h="decimal"),"digit"===e&&(l="tel",h="numeric"),t("input",o()([{attrs:{type:l,inputmode:h}},u]))},genLeftIcon:function(){var t=this.$createElement,e=this.slots("left-icon")||this.leftIcon;if(e)return t("div",{class:kt("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||t(c["a"],{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var t=this.$createElement,e=this.slots,r=e("right-icon")||this.rightIcon;if(r)return t("div",{class:kt("right-icon"),on:{click:this.onClickRightIcon}},[e("right-icon")||t(c["a"],{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var t=this.$createElement;if(this.showWordLimit&&this.maxlength){var e=(this.value||"").length;return t("div",{class:kt("word-limit")},[t("span",{class:kt("word-num")},[e]),"/",this.maxlength])}},genMessage:function(){var t=this.$createElement;if(!this.vanForm||!1!==this.vanForm.showErrorMessage){var e=this.errorMessage||this.validateMessage;if(e){var r=this.getProp("errorMessageAlign");return t("div",{class:kt("error-message",r)},[e])}}},getProp:function(t){return Object(b["c"])(this[t])?this[t]:this.vanForm&&Object(b["c"])(this.vanForm[t])?this.vanForm[t]:void 0},genLabel:function(){var t=this.$createElement,e=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),e]:this.label?t("span",[this.label+e]):void 0}},render:function(){var t,e=arguments[0],r=this.slots,n=this.getProp("disabled"),i=this.getProp("labelAlign"),o={icon:this.genLeftIcon},s=this.genLabel();s&&(o.title=function(){return s});var a=this.slots("extra");return a&&(o.extra=function(){return a}),e(mt,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:kt("value"),titleClass:[kt("label",i),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:o,class:kt((t={error:this.showError,disabled:n},t["label-"+i]=i,t["min-height"]="textarea"===this.type&&!this.autosize,t)),on:{click:this.onClick}},[e("div",{class:kt("body")},[this.genInput(),this.showClear&&e(c["a"],{attrs:{name:"clear"},class:kt("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),r("button")&&e("div",{class:kt("button")},[r("button")])]),this.genWordLimit(),this.genMessage()])}}),xt=r("d399"),Et=Object(u["a"])("button"),At=Et[0],Ot=Et[1];function Tt(t,e,r,n){var i,s=e.tag,a=e.icon,u=e.type,l=e.color,f=e.plain,p=e.disabled,m=e.loading,v=e.hairline,g=e.loadingText,y=e.iconPosition,b={};function w(t){e.loading&&t.preventDefault(),m||p||(Object(h["a"])(n,"click",t),ut(n))}function M(t){Object(h["a"])(n,"touchstart",t)}l&&(b.color=f?l:"white",f||(b.background=l),-1!==l.indexOf("gradient")?b.border=0:b.borderColor=l);var _=[Ot([u,e.size,{plain:f,loading:m,disabled:p,hairline:v,block:e.block,round:e.round,square:e.square}]),(i={},i[T]=v,i)];function k(){return m?r.loading?r.loading():t(d["a"],{class:Ot("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}}):r.icon?t("div",{class:Ot("icon")},[r.icon()]):a?t(c["a"],{attrs:{name:a,classPrefix:e.iconPrefix},class:Ot("icon")}):void 0}function S(){var n,i=[];return"left"===y&&i.push(k()),n=m?g:r.default?r.default():e.text,n&&i.push(t("span",{class:Ot("text")},[n])),"right"===y&&i.push(k()),i}return t(s,o()([{style:b,class:_,attrs:{type:e.nativeType,disabled:p},on:{click:w,touchstart:M}},Object(h["b"])(n)]),[t("div",{class:Ot("content")},[S()])])}Tt.props=Object(n["a"])({},ht,{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"},iconPosition:{type:String,default:"left"}});var Ct=At(Tt);function Pt(t){var e=[];function r(t){t.forEach((function(t){e.push(t),t.componentInstance&&r(t.componentInstance.$children.map((function(t){return t.$vnode}))),t.children&&r(t.children)}))}return r(t),e}function Bt(t,e){var r=e.$vnode.componentOptions;if(r&&r.children){var n=Pt(r.children);t.sort((function(t,e){return n.indexOf(t.$vnode)-n.indexOf(e.$vnode)}))}}function It(t,e){var r,n;void 0===e&&(e={});var i=e.indexKey||"index";return{inject:(r={},r[t]={default:null},r),computed:(n={parent:function(){return this.disableBindRelation?null:this[t]}},n[i]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},n),watch:{disableBindRelation:function(t){t||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);Bt(t,this.parent),this.parent.children=t}}}}}function Rt(t){return{provide:function(){var e;return e={},e[t]=this,e},data:function(){return{children:[]}}}}var Nt,jt=Object(u["a"])("goods-action"),Lt=jt[0],Ut=jt[1],Dt=Lt({mixins:[Rt("vanGoodsAction")],props:{safeAreaInsetBottom:{type:Boolean,default:!0}},render:function(){var t=arguments[0];return t("div",{class:Ut({unfit:!this.safeAreaInsetBottom})},[this.slots()])}}),Ft=Object(u["a"])("goods-action-button"),zt=Ft[0],qt=Ft[1],Ht=zt({mixins:[It("vanGoodsAction")],props:Object(n["a"])({},ht,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),computed:{isFirst:function(){var t=this.parent&&this.parent.children[this.index-1];return!t||t.$options.name!==this.$options.name},isLast:function(){var t=this.parent&&this.parent.children[this.index+1];return!t||t.$options.name!==this.$options.name}},methods:{onClick:function(t){this.$emit("click",t),at(this.$router,this)}},render:function(){var t=arguments[0];return t(Ct,{class:qt([{first:this.isFirst,last:this.isLast},this.type]),attrs:{size:"large",type:this.type,icon:this.icon,color:this.color,loading:this.loading,disabled:this.disabled},on:{click:this.onClick}},[this.slots()||this.text])}}),$t=Object(u["a"])("dialog"),Vt=$t[0],Kt=$t[1],Wt=$t[2],Gt=Vt({mixins:[Object(l["a"])()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(r){!1!==r&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genRoundButtons:function(){var t=this,e=this.$createElement;return e(Dt,{class:Kt("footer")},[this.showCancelButton&&e(Ht,{attrs:{size:"large",type:"warning",text:this.cancelButtonText||Wt("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:Kt("cancel"),on:{click:function(){t.handleAction("cancel")}}}),this.showConfirmButton&&e(Ht,{attrs:{size:"large",type:"danger",text:this.confirmButtonText||Wt("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:Kt("confirm"),on:{click:function(){t.handleAction("confirm")}}})])},genButtons:function(){var t,e=this,r=this.$createElement,n=this.showCancelButton&&this.showConfirmButton;return r("div",{class:[E,Kt("footer")]},[this.showCancelButton&&r(Ct,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||Wt("cancel")},class:Kt("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&r(Ct,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||Wt("confirm")},class:[Kt("confirm"),(t={},t[A]=n,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(t,e){var r=this.$createElement;if(e)return r("div",{class:Kt("content")},[e]);var n=this.message,i=this.messageAlign;if(n){var s,a,u={class:Kt("message",(s={"has-title":t},s[i]=i,s)),domProps:(a={},a[this.allowHtml?"innerHTML":"textContent"]=n,a)};return r("div",{class:Kt("content",{isolated:!t})},[r("div",o()([{},u]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var e=this.message,r=this.slots(),n=this.slots("title")||this.title,i=n&&t("div",{class:Kt("header",{isolated:!e&&!r})},[n]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e},class:[Kt([this.theme]),this.className],style:{width:Object(B["a"])(this.width)}},[i,this.genContent(n,r),"round-button"===this.theme?this.genRoundButtons():this.genButtons()])])}}});function Zt(t){return document.body.contains(t)}function Jt(){Nt&&Nt.$destroy(),Nt=new(a.a.extend(Gt))({el:document.createElement("div"),propsData:{lazyRender:!1}}),Nt.$on("input",(function(t){Nt.value=t}))}function Xt(t){return b["h"]?Promise.resolve():new Promise((function(e,r){Nt&&Zt(Nt.$el)||Jt(),Object(n["a"])(Nt,Xt.currentOptions,t,{resolve:e,reject:r})}))}Xt.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(t){Nt["confirm"===t?"resolve":"reject"](t)}},Xt.alert=Xt,Xt.confirm=function(t){return Xt(Object(n["a"])({showCancelButton:!0},t))},Xt.close=function(){Nt&&(Nt.value=!1)},Xt.setDefaultOptions=function(t){Object(n["a"])(Xt.currentOptions,t)},Xt.resetDefaultOptions=function(){Xt.currentOptions=Object(n["a"])({},Xt.defaultOptions)},Xt.resetDefaultOptions(),Xt.install=function(){a.a.use(Gt)},Xt.Component=Gt,a.a.prototype.$dialog=Xt;var Yt=Xt,Qt=Object(u["a"])("address-edit-detail"),te=Qt[0],ee=Qt[1],re=Qt[2],ne=vt(),ie=te({props:{value:String,errorMessage:String,focused:Boolean,detailRows:[Number,String],searchResult:Array,detailMaxlength:[Number,String],showSearchResult:Boolean},computed:{shouldShowSearchResult:function(){return this.focused&&this.searchResult&&this.showSearchResult}},methods:{onSelect:function(t){this.$emit("select-search",t),this.$emit("input",((t.address||"")+" "+(t.name||"")).trim())},onFinish:function(){this.$refs.field.blur()},genFinish:function(){var t=this.$createElement,e=this.value&&this.focused&&ne;if(e)return t("div",{class:ee("finish"),on:{click:this.onFinish}},[re("complete")])},genSearchResult:function(){var t=this,e=this.$createElement,r=this.value,n=this.shouldShowSearchResult,i=this.searchResult;if(n)return i.map((function(n){return e(mt,{key:n.name+n.address,attrs:{clickable:!0,border:!1,icon:"location-o",label:n.address},class:ee("search-item"),on:{click:function(){t.onSelect(n)}},scopedSlots:{title:function(){if(n.name){var t=n.name.replace(r,"<span class="+ee("keyword")+">"+r+"</span>");return e("div",{domProps:{innerHTML:t}})}}}})}))}},render:function(){var t=arguments[0];return t(mt,{class:ee()},[t(St,{attrs:{autosize:!0,rows:this.detailRows,clearable:!ne,type:"textarea",value:this.value,errorMessage:this.errorMessage,border:!this.shouldShowSearchResult,label:re("label"),maxlength:this.detailMaxlength,placeholder:re("placeholder")},ref:"field",scopedSlots:{icon:this.genFinish},on:Object(n["a"])({},this.$listeners)}),this.genSearchResult()])}}),oe={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},se={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}},ae=Object(u["a"])("switch"),ue=ae[0],he=ae[1],le=ue({mixins:[se],props:oe,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Object(B["a"])(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(t){if(this.$emit("click",t),!this.disabled&&!this.loading){var e=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",e),this.$emit("change",e)}},genLoading:function(){var t=this.$createElement;if(this.loading){var e=this.checked?this.activeColor:this.inactiveColor;return t(d["a"],{class:he("loading"),attrs:{color:e}})}}},render:function(){var t=arguments[0],e=this.checked,r=this.loading,n=this.disabled;return t("div",{class:he({on:e,loading:r,disabled:n}),attrs:{role:"switch","aria-checked":String(e)},style:this.style,on:{click:this.onClick}},[t("div",{class:he("node")},[this.genLoading()])])}}),ce=Object(u["a"])("address-edit"),fe=ce[0],de=ce[1],pe=ce[2],me={name:"",tel:"",country:"",province:"",city:"",county:"",areaCode:"",postalCode:"",addressDetail:"",isDefault:!1};function ve(t){return/^\d{6}$/.test(t)}var ge=fe({props:{areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showDelete:Boolean,showPostal:Boolean,searchResult:Array,telMaxlength:[Number,String],showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,showArea:{type:Boolean,default:!0},showDetail:{type:Boolean,default:!0},disableArea:Boolean,detailRows:{type:[Number,String],default:1},detailMaxlength:{type:[Number,String],default:200},addressInfo:{type:Object,default:function(){return Object(n["a"])({},me)}},telValidator:{type:Function,default:w},postalValidator:{type:Function,default:ve},areaColumnsPlaceholder:{type:Array,default:function(){return[]}}},data:function(){return{data:{},showAreaPopup:!1,detailFocused:!1,errorInfo:{tel:"",name:"",areaCode:"",postalCode:"",addressDetail:""}}},computed:{areaListLoaded:function(){return Object(b["f"])(this.areaList)&&Object.keys(this.areaList).length},areaText:function(){var t=this.data,e=t.country,r=t.province,n=t.city,i=t.county,o=t.areaCode;if(o){var s=[e,r,n,i];return r&&r===n&&s.splice(1,1),s.filter((function(t){return t})).join("/")}return""},hideBottomFields:function(){var t=this.searchResult;return t&&t.length&&this.detailFocused}},watch:{addressInfo:{handler:function(t){this.data=Object(n["a"])({},me,t),this.setAreaCode(t.areaCode)},deep:!0,immediate:!0},areaList:function(){this.setAreaCode(this.data.areaCode)}},methods:{onFocus:function(t){this.errorInfo[t]="",this.detailFocused="addressDetail"===t,this.$emit("focus",t)},onChangeDetail:function(t){this.data.addressDetail=t,this.$emit("change-detail",t)},onAreaConfirm:function(t){t=t.filter((function(t){return!!t})),t.some((function(t){return!t.code}))?Object(xt["a"])(pe("areaEmpty")):(this.showAreaPopup=!1,this.assignAreaValues(),this.$emit("change-area",t))},assignAreaValues:function(){var t=this.$refs.area;if(t){var e=t.getArea();e.areaCode=e.code,delete e.code,Object(n["a"])(this.data,e)}},onSave:function(){var t=this,e=["name","tel"];this.showArea&&e.push("areaCode"),this.showDetail&&e.push("addressDetail"),this.showPostal&&e.push("postalCode");var r=e.every((function(e){var r=t.getErrorMessage(e);return r&&(t.errorInfo[e]=r),!r}));r&&!this.isSaving&&this.$emit("save",this.data)},getErrorMessage:function(t){var e=String(this.data[t]||"").trim();if(this.validator){var r=this.validator(t,e);if(r)return r}switch(t){case"name":return e?"":pe("nameEmpty");case"tel":return this.telValidator(e)?"":pe("telInvalid");case"areaCode":return e?"":pe("areaEmpty");case"addressDetail":return e?"":pe("addressEmpty");case"postalCode":return e&&!this.postalValidator(e)?pe("postalEmpty"):""}},onDelete:function(){var t=this;Yt.confirm({title:pe("confirmDelete")}).then((function(){t.$emit("delete",t.data)})).catch((function(){t.$emit("cancel-delete",t.data)}))},getArea:function(){return this.$refs.area?this.$refs.area.getValues():[]},setAreaCode:function(t){this.data.areaCode=t||"",t&&this.$nextTick(this.assignAreaValues)},setAddressDetail:function(t){this.data.addressDetail=t},onDetailBlur:function(){var t=this;setTimeout((function(){t.detailFocused=!1}))},genSetDefaultCell:function(t){var e=this;if(this.showSetDefault){var r={"right-icon":function(){return t(le,{attrs:{size:"24"},on:{change:function(t){e.$emit("change-default",t)}},model:{value:e.data.isDefault,callback:function(t){e.$set(e.data,"isDefault",t)}}})}};return t(mt,{directives:[{name:"show",value:!this.hideBottomFields}],attrs:{center:!0,title:pe("defaultAddress")},class:de("default"),scopedSlots:r})}return t()}},render:function(t){var e=this,r=this.data,n=this.errorInfo,i=this.disableArea,o=this.hideBottomFields,s=function(t){return function(){return e.onFocus(t)}};return t("div",{class:de()},[t("div",{class:de("fields")},[t(St,{attrs:{clearable:!0,label:pe("name"),placeholder:pe("namePlaceholder"),errorMessage:n.name},on:{focus:s("name")},model:{value:r.name,callback:function(t){e.$set(r,"name",t)}}}),t(St,{attrs:{clearable:!0,type:"tel",label:pe("tel"),maxlength:this.telMaxlength,placeholder:pe("telPlaceholder"),errorMessage:n.tel},on:{focus:s("tel")},model:{value:r.tel,callback:function(t){e.$set(r,"tel",t)}}}),t(St,{directives:[{name:"show",value:this.showArea}],attrs:{readonly:!0,clickable:!i,label:pe("area"),placeholder:this.areaPlaceholder||pe("areaPlaceholder"),errorMessage:n.areaCode,rightIcon:i?null:"arrow",value:this.areaText},on:{focus:s("areaCode"),click:function(){e.$emit("click-area"),e.showAreaPopup=!i}}}),t(ie,{directives:[{name:"show",value:this.showDetail}],attrs:{focused:this.detailFocused,value:r.addressDetail,errorMessage:n.addressDetail,detailRows:this.detailRows,detailMaxlength:this.detailMaxlength,searchResult:this.searchResult,showSearchResult:this.showSearchResult},on:{focus:s("addressDetail"),blur:this.onDetailBlur,input:this.onChangeDetail,"select-search":function(t){e.$emit("select-search",t)}}}),this.showPostal&&t(St,{directives:[{name:"show",value:!o}],attrs:{type:"tel",maxlength:"6",label:pe("postal"),placeholder:pe("postal"),errorMessage:n.postalCode},on:{focus:s("postalCode")},model:{value:r.postalCode,callback:function(t){e.$set(r,"postalCode",t)}}}),this.slots()]),this.genSetDefaultCell(t),t("div",{directives:[{name:"show",value:!o}],class:de("buttons")},[t(Ct,{attrs:{block:!0,round:!0,loading:this.isSaving,type:"danger",text:this.saveButtonText||pe("save")},on:{click:this.onSave}}),this.showDelete&&t(Ct,{attrs:{block:!0,round:!0,loading:this.isDeleting,text:this.deleteButtonText||pe("delete")},on:{click:this.onDelete}})]),t(f["a"],{attrs:{round:!0,position:"bottom",lazyRender:!1,getContainer:"body"},model:{value:e.showAreaPopup,callback:function(t){e.showAreaPopup=t}}},[t(ot,{ref:"area",attrs:{value:r.areaCode,loading:!this.areaListLoaded,areaList:this.areaList,columnsPlaceholder:this.areaColumnsPlaceholder},on:{confirm:this.onAreaConfirm,cancel:function(){e.showAreaPopup=!1}}})])])}}),ye=Object(u["a"])("radio-group"),be=ye[0],we=ye[1],Me=be({mixins:[Rt("vanRadio"),se],props:{value:null,disabled:Boolean,direction:String,checkedColor:String,iconSize:[Number,String]},watch:{value:function(t){this.$emit("change",t)}},render:function(){var t=arguments[0];return t("div",{class:we([this.direction]),attrs:{role:"radiogroup"}},[this.slots()])}}),_e=Object(u["a"])("tag"),ke=_e[0],Se=_e[1];function xe(t,e,r,n){var i,s=e.type,a=e.mark,u=e.plain,l=e.color,f=e.round,d=e.size,p=e.textColor,m=u?"color":"backgroundColor",v=(i={},i[m]=l,i);u?(v.color=p||l,v.borderColor=l):(v.color=p,v.background=l);var g={mark:a,plain:u,round:f};d&&(g[d]=d);var y=e.closeable&&t(c["a"],{attrs:{name:"cross"},class:Se("close"),on:{click:function(t){t.stopPropagation(),Object(h["a"])(n,"close")}}});return t("transition",{attrs:{name:e.closeable?"van-fade":null}},[t("span",o()([{key:"content",style:v,class:Se([g,s])},Object(h["b"])(n,!0)]),[null==r.default?void 0:r.default(),y])])}xe.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}};var Ee=ke(xe),Ae=function(t){var e=t.parent,r=t.bem,n=t.role;return{mixins:[It(e),se],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===n&&!this.checked?-1:0}},methods:{onClick:function(t){var e=this,r=t.target,n=this.$refs.icon,i=n===r||n.contains(r);this.isDisabled||!i&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout((function(){e.$emit("click",t)})))},genIcon:function(){var t=this.$createElement,e=this.checked,n=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:r("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:Object(B["a"])(n)}},[this.slots("icon",{checked:e})||t(c["a"],{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:r("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:n,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:r([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[e])}}},Oe=Object(u["a"])("radio"),Te=Oe[0],Ce=Oe[1],Pe=Te({mixins:[Ae({bem:Ce,role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(t){(this.parent||this).$emit("input",t)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}}),Be=Object(u["a"])("address-item"),Ie=Be[0],Re=Be[1];function Ne(t,e,r,i){var s=e.disabled,a=e.switchable;function u(){a&&Object(h["a"])(i,"select"),Object(h["a"])(i,"click")}var l=function(){return t(c["a"],{attrs:{name:"edit"},class:Re("edit"),on:{click:function(t){t.stopPropagation(),Object(h["a"])(i,"edit"),Object(h["a"])(i,"click")}}})};function f(){return r.tag?r.tag(Object(n["a"])({},e.data)):e.data.isDefault&&e.defaultTagText?t(Ee,{attrs:{type:"danger",round:!0},class:Re("tag")},[e.defaultTagText]):void 0}function d(){var r=e.data,n=[t("div",{class:Re("name")},[r.name+" "+r.tel,f()]),t("div",{class:Re("address")},[r.address])];return a&&!s?t(Pe,{attrs:{name:r.id,iconSize:18}},[n]):n}return t("div",{class:Re({disabled:s}),on:{click:u}},[t(mt,o()([{attrs:{border:!1,valueClass:Re("value")},scopedSlots:{default:d,"right-icon":l}},Object(h["b"])(i)])),null==r.bottom?void 0:r.bottom(Object(n["a"])({},e.data,{disabled:s}))])}Ne.props={data:Object,disabled:Boolean,switchable:Boolean,defaultTagText:String};var je=Ie(Ne),Le=Object(u["a"])("address-list"),Ue=Le[0],De=Le[1],Fe=Le[2];function ze(t,e,r,n){function i(i,o){if(i)return i.map((function(i,s){return t(je,{attrs:{data:i,disabled:o,switchable:e.switchable,defaultTagText:e.defaultTagText},key:i.id,scopedSlots:{bottom:r["item-bottom"],tag:r.tag},on:{select:function(){Object(h["a"])(n,o?"select-disabled":"select",i,s),o||Object(h["a"])(n,"input",i.id)},edit:function(){Object(h["a"])(n,o?"edit-disabled":"edit",i,s)},click:function(){Object(h["a"])(n,"click-item",i,s)}}})}))}var s=i(e.list),a=i(e.disabledList,!0);return t("div",o()([{class:De()},Object(h["b"])(n)]),[null==r.top?void 0:r.top(),t(Me,{attrs:{value:e.value}},[s]),e.disabledText&&t("div",{class:De("disabled-text")},[e.disabledText]),a,null==r.default?void 0:r.default(),t("div",{class:De("bottom")},[t(Ct,{attrs:{round:!0,block:!0,type:"danger",text:e.addButtonText||Fe("add")},class:De("add"),on:{click:function(){Object(h["a"])(n,"add")}}})])])}ze.props={list:Array,value:[Number,String],disabledList:Array,disabledText:String,addButtonText:String,defaultTagText:String,switchable:{type:Boolean,default:!0}};var qe=Ue(ze),He=r("90c6"),$e=Object(u["a"])("badge"),Ve=$e[0],Ke=$e[1],We=Ve({props:{dot:Boolean,max:[Number,String],color:String,content:[Number,String],tag:{type:String,default:"div"}},methods:{hasContent:function(){return!!(this.$scopedSlots.content||Object(b["c"])(this.content)&&""!==this.content)},renderContent:function(){var t=this.dot,e=this.max,r=this.content;if(!t&&this.hasContent())return this.$scopedSlots.content?this.$scopedSlots.content():Object(b["c"])(e)&&Object(He["b"])(r)&&+r>e?e+"+":r},renderBadge:function(){var t=this.$createElement;if(this.hasContent()||this.dot)return t("div",{class:Ke({dot:this.dot,fixed:!!this.$scopedSlots.default}),style:{background:this.color}},[this.renderContent()])}},render:function(){var t=arguments[0];if(this.$scopedSlots.default){var e=this.tag;return t(e,{class:Ke("wrapper")},[this.$scopedSlots.default(),this.renderBadge()])}return this.renderBadge()}}),Ge=r("4598");function Ze(t){return"[object Date]"===Object.prototype.toString.call(t)&&!Object(He["a"])(t.getTime())}var Je=Object(u["a"])("calendar"),Xe=Je[0],Ye=Je[1],Qe=Je[2];function tr(t){return Qe("monthTitle",t.getFullYear(),t.getMonth()+1)}function er(t,e){var r=t.getFullYear(),n=e.getFullYear(),i=t.getMonth(),o=e.getMonth();return r===n?i===o?0:i>o?1:-1:r>n?1:-1}function rr(t,e){var r=er(t,e);if(0===r){var n=t.getDate(),i=e.getDate();return n===i?0:n>i?1:-1}return r}function nr(t,e){return t=new Date(t),t.setDate(t.getDate()+e),t}function ir(t){return nr(t,-1)}function or(t){return nr(t,1)}function sr(t){var e=t[0].getTime(),r=t[1].getTime();return(r-e)/864e5+1}function ar(t){return new Date(t)}function ur(t){return Array.isArray(t)?t.map((function(t){return null===t?t:ar(t)})):ar(t)}function hr(t,e){var r=-1,n=Array(t);while(++r<t)n[r]=e(r);return n}function lr(t){if(!t)return 0;while(Object(He["a"])(parseInt(t,10))){if(!(t.length>1))return 0;t=t.slice(1)}return parseInt(t,10)}function cr(t,e){return 32-new Date(t,e-1,32).getDate()}var fr=Object(u["a"])("calendar-month"),dr=fr[0],pr=dr({props:{date:Date,type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:[Number,String],formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number},data:function(){return{visible:!1}},computed:{title:function(){return tr(this.date)},rowHeightWithUnit:function(){return Object(B["a"])(this.rowHeight)},offset:function(){var t=this.firstDayOfWeek,e=this.date.getDay();return t?(e+7-this.firstDayOfWeek)%7:e},totalDay:function(){return cr(this.date.getFullYear(),this.date.getMonth()+1)},shouldRender:function(){return this.visible||!this.lazyRender},placeholders:function(){for(var t=[],e=Math.ceil((this.totalDay+this.offset)/7),r=1;r<=e;r++)t.push({type:"placeholder"});return t},days:function(){for(var t=[],e=this.date.getFullYear(),r=this.date.getMonth(),n=1;n<=this.totalDay;n++){var i=new Date(e,r,n),o=this.getDayType(i),s={date:i,type:o,text:n,bottomInfo:this.getBottomInfo(o)};this.formatter&&(s=this.formatter(s)),t.push(s)}return t}},methods:{getHeight:function(){return this.height||(this.height=this.$el.getBoundingClientRect().height),this.height},scrollIntoView:function(t){var e=this.$refs,r=e.days,n=e.month,i=this.showSubtitle?r:n,o=i.getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop;Object(yt["h"])(t,o)},getMultipleDayType:function(t){var e=this,r=function(t){return e.currentDate.some((function(e){return 0===rr(e,t)}))};if(r(t)){var n=ir(t),i=or(t),o=r(n),s=r(i);return o&&s?"multiple-middle":o?"end":s?"start":"multiple-selected"}return""},getRangeDayType:function(t){var e=this.currentDate,r=e[0],n=e[1];if(!r)return"";var i=rr(t,r);if(!n)return 0===i?"start":"";var o=rr(t,n);return 0===i&&0===o&&this.allowSameDay?"start-end":0===i?"start":0===o?"end":i>0&&o<0?"middle":void 0},getDayType:function(t){var e=this.type,r=this.minDate,n=this.maxDate,i=this.currentDate;return rr(t,r)<0||rr(t,n)>0?"disabled":null!==i?"single"===e?0===rr(t,i)?"selected":"":"multiple"===e?this.getMultipleDayType(t):"range"===e?this.getRangeDayType(t):void 0:void 0},getBottomInfo:function(t){if("range"===this.type){if("start"===t||"end"===t)return Qe(t);if("start-end"===t)return Qe("startEnd")}},getDayStyle:function(t,e){var r={height:this.rowHeightWithUnit};return"placeholder"===t?(r.width="100%",r):(0===e&&(r.marginLeft=100*this.offset/7+"%"),this.color&&("start"===t||"end"===t||"start-end"===t||"multiple-selected"===t||"multiple-middle"===t?r.background=this.color:"middle"===t&&(r.color=this.color)),r)},genTitle:function(){var t=this.$createElement;if(this.showMonthTitle)return t("div",{class:Ye("month-title")},[this.title])},genMark:function(){var t=this.$createElement;if(this.showMark&&this.shouldRender)return t("div",{class:Ye("month-mark")},[this.date.getMonth()+1])},genDays:function(){var t=this.$createElement,e=this.shouldRender?this.days:this.placeholders;return t("div",{ref:"days",attrs:{role:"grid"},class:Ye("days")},[this.genMark(),e.map(this.genDay)])},genTopInfo:function(t){var e=this.$createElement,r=this.$scopedSlots["top-info"];if(t.topInfo||r)return e("div",{class:Ye("top-info")},[r?r(t):t.topInfo])},genBottomInfo:function(t){var e=this.$createElement,r=this.$scopedSlots["bottom-info"];if(t.bottomInfo||r)return e("div",{class:Ye("bottom-info")},[r?r(t):t.bottomInfo])},genDay:function(t,e){var r=this,n=this.$createElement,i=t.type,o=this.getDayStyle(i,e),s="disabled"===i,a=function(){s||r.$emit("click",t)};return"selected"===i?n("div",{attrs:{role:"gridcell",tabindex:-1},style:o,class:[Ye("day"),t.className],on:{click:a}},[n("div",{class:Ye("selected-day"),style:{width:this.rowHeightWithUnit,height:this.rowHeightWithUnit,background:this.color}},[this.genTopInfo(t),t.text,this.genBottomInfo(t)])]):n("div",{attrs:{role:"gridcell",tabindex:s?null:-1},style:o,class:[Ye("day",i),t.className],on:{click:a}},[this.genTopInfo(t),t.text,this.genBottomInfo(t)])}},render:function(){var t=arguments[0];return t("div",{class:Ye("month"),ref:"month"},[this.genTitle(),this.genDays()])}}),mr=Object(u["a"])("calendar-header"),vr=mr[0],gr=vr({props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},methods:{genTitle:function(){var t=this.$createElement;if(this.showTitle){var e=this.slots("title")||this.title||Qe("title");return t("div",{class:Ye("header-title")},[e])}},genSubtitle:function(){var t=this.$createElement;if(this.showSubtitle)return t("div",{class:Ye("header-subtitle")},[this.subtitle])},genWeekDays:function(){var t=this.$createElement,e=Qe("weekdays"),r=this.firstDayOfWeek,n=[].concat(e.slice(r,7),e.slice(0,r));return t("div",{class:Ye("weekdays")},[n.map((function(e){return t("span",{class:Ye("weekday")},[e])}))])}},render:function(){var t=arguments[0];return t("div",{class:Ye("header")},[this.genTitle(),this.genSubtitle(),this.genWeekDays()])}}),yr=Xe({props:{title:String,color:String,value:Boolean,readonly:Boolean,formatter:Function,rowHeight:[Number,String],confirmText:String,rangePrompt:String,defaultDate:[Date,Array],getContainer:[String,Function],allowSameDay:Boolean,confirmDisabledText:String,type:{type:String,default:"single"},round:{type:Boolean,default:!0},position:{type:String,default:"bottom"},poppable:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:null},lazyRender:{type:Boolean,default:!0},showMark:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},minDate:{type:Date,validator:Ze,default:function(){return new Date}},maxDate:{type:Date,validator:Ze,default:function(){var t=new Date;return new Date(t.getFullYear(),t.getMonth()+6,t.getDate())}},firstDayOfWeek:{type:[Number,String],default:0,validator:function(t){return t>=0&&t<=6}}},data:function(){return{subtitle:"",currentDate:this.getInitialDate()}},computed:{months:function(){var t=[],e=new Date(this.minDate);e.setDate(1);do{t.push(new Date(e)),e.setMonth(e.getMonth()+1)}while(1!==er(e,this.maxDate));return t},buttonDisabled:function(){var t=this.type,e=this.currentDate;if(e){if("range"===t)return!e[0]||!e[1];if("multiple"===t)return!e.length}return!e},dayOffset:function(){return this.firstDayOfWeek?this.firstDayOfWeek%7:0}},watch:{value:"init",type:function(){this.reset()},defaultDate:function(t){this.currentDate=t,this.scrollIntoView()}},mounted:function(){this.init()},activated:function(){this.init()},methods:{reset:function(t){void 0===t&&(t=this.getInitialDate()),this.currentDate=t,this.scrollIntoView()},init:function(){var t=this;this.poppable&&!this.value||this.$nextTick((function(){t.bodyHeight=Math.floor(t.$refs.body.getBoundingClientRect().height),t.onScroll(),t.scrollIntoView()}))},scrollToDate:function(t){var e=this;Object(Ge["c"])((function(){var r=e.value||!e.poppable;t&&r&&(e.months.some((function(r,n){if(0===er(r,t)){var i=e.$refs,o=i.body,s=i.months;return s[n].scrollIntoView(o),!0}return!1})),e.onScroll())}))},scrollIntoView:function(){var t=this.currentDate;if(t){var e="single"===this.type?t:t[0];this.scrollToDate(e)}},getInitialDate:function(){var t=this.type,e=this.minDate,r=this.maxDate,n=this.defaultDate;if(null===n)return n;var i=new Date;if(-1===rr(i,e)?i=e:1===rr(i,r)&&(i=r),"range"===t){var o=n||[],s=o[0],a=o[1];return[s||i,a||or(i)]}return"multiple"===t?n||[i]:n||i},onScroll:function(){var t=this.$refs,e=t.body,r=t.months,n=Object(yt["c"])(e),i=n+this.bodyHeight,o=r.map((function(t){return t.getHeight()})),s=o.reduce((function(t,e){return t+e}),0);if(!(i>s&&n>0)){for(var a,u=0,h=[-1,-1],l=0;l<r.length;l++){var c=u<=i&&u+o[l]>=n;c&&(h[1]=l,a||(a=r[l],h[0]=l),r[l].showed||(r[l].showed=!0,this.$emit("month-show",{date:r[l].date,title:r[l].title}))),u+=o[l]}r.forEach((function(t,e){t.visible=e>=h[0]-1&&e<=h[1]+1})),a&&(this.subtitle=a.title)}},onClickDay:function(t){if(!this.readonly){var e=t.date,r=this.type,n=this.currentDate;if("range"===r){if(!n)return void this.select([e,null]);var i=n[0],o=n[1];if(i&&!o){var s=rr(e,i);1===s?this.select([i,e],!0):-1===s?this.select([e,null]):this.allowSameDay&&this.select([e,e],!0)}else this.select([e,null])}else if("multiple"===r){if(!n)return void this.select([e]);var a,u=this.currentDate.some((function(t,r){var n=0===rr(t,e);return n&&(a=r),n}));if(u){var h=n.splice(a,1),l=h[0];this.$emit("unselect",ar(l))}else this.maxRange&&n.length>=this.maxRange?Object(xt["a"])(this.rangePrompt||Qe("rangePrompt",this.maxRange)):this.select([].concat(n,[e]))}else this.select(e,!0)}},togglePopup:function(t){this.$emit("input",t)},select:function(t,e){var r=this,n=function(t){r.currentDate=t,r.$emit("select",ur(r.currentDate))};if(e&&"range"===this.type){var i=this.checkRange(t);if(!i)return void(this.showConfirm?n([t[0],nr(t[0],this.maxRange-1)]):n(t))}n(t),e&&!this.showConfirm&&this.onConfirm()},checkRange:function(t){var e=this.maxRange,r=this.rangePrompt;return!(e&&sr(t)>e)||(Object(xt["a"])(r||Qe("rangePrompt",e)),!1)},onConfirm:function(){this.$emit("confirm",ur(this.currentDate))},genMonth:function(t,e){var r=this.$createElement,n=0!==e||!this.showSubtitle;return r(pr,{ref:"months",refInFor:!0,attrs:{date:t,type:this.type,color:this.color,minDate:this.minDate,maxDate:this.maxDate,showMark:this.showMark,formatter:this.formatter,rowHeight:this.rowHeight,lazyRender:this.lazyRender,currentDate:this.currentDate,showSubtitle:this.showSubtitle,allowSameDay:this.allowSameDay,showMonthTitle:n,firstDayOfWeek:this.dayOffset},scopedSlots:{"top-info":this.$scopedSlots["top-info"],"bottom-info":this.$scopedSlots["bottom-info"]},on:{click:this.onClickDay}})},genFooterContent:function(){var t=this.$createElement,e=this.slots("footer");if(e)return e;if(this.showConfirm){var r=this.buttonDisabled?this.confirmDisabledText:this.confirmText;return t(Ct,{attrs:{round:!0,block:!0,type:"danger",color:this.color,disabled:this.buttonDisabled,nativeType:"button"},class:Ye("confirm"),on:{click:this.onConfirm}},[r||Qe("confirm")])}},genFooter:function(){var t=this.$createElement;return t("div",{class:Ye("footer",{unfit:!this.safeAreaInsetBottom})},[this.genFooterContent()])},genCalendar:function(){var t=this,e=this.$createElement;return e("div",{class:Ye()},[e(gr,{attrs:{title:this.title,showTitle:this.showTitle,subtitle:this.subtitle,showSubtitle:this.showSubtitle,firstDayOfWeek:this.dayOffset},scopedSlots:{title:function(){return t.slots("title")}}}),e("div",{ref:"body",class:Ye("body"),on:{scroll:this.onScroll}},[this.months.map(this.genMonth)]),this.genFooter()])}},render:function(){var t=this,e=arguments[0];if(this.poppable){var r,n=function(e){return function(){return t.$emit(e)}};return e(f["a"],{attrs:(r={round:!0,value:this.value},r["round"]=this.round,r["position"]=this.position,r["closeable"]=this.showTitle||this.showSubtitle,r["getContainer"]=this.getContainer,r["closeOnPopstate"]=this.closeOnPopstate,r["closeOnClickOverlay"]=this.closeOnClickOverlay,r),class:Ye("popup"),on:{input:this.togglePopup,open:n("open"),opened:n("opened"),close:n("close"),closed:n("closed")}},[this.genCalendar()])}return this.genCalendar()}}),br=Object(u["a"])("image"),wr=br[0],Mr=br[1],_r=wr({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(b["c"])(this.width)&&(t.width=Object(B["a"])(this.width)),Object(b["c"])(this.height)&&(t.height=Object(B["a"])(this.height)),Object(b["c"])(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(B["a"])(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&b["b"]&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){var e=t.el;e===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){var e=t.el;e!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:Mr("loading")},[this.slots("loading")||t(c["a"],{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:Mr("loading-icon")})]):this.error&&this.showError?t("div",{class:Mr("error")},[this.slots("error")||t(c["a"],{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:Mr("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:Mr("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",o()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",o()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){var t=arguments[0];return t("div",{class:Mr({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}}),kr=Object(u["a"])("card"),Sr=kr[0],xr=kr[1];function Er(t,e,r,n){var i,s=e.thumb,a=r.num||Object(b["c"])(e.num),u=r.price||Object(b["c"])(e.price),l=r["origin-price"]||Object(b["c"])(e.originPrice),c=a||u||l||r.bottom;function f(t){Object(h["a"])(n,"click-thumb",t)}function d(){if(r.tag||e.tag)return t("div",{class:xr("tag")},[r.tag?r.tag():t(Ee,{attrs:{mark:!0,type:"danger"}},[e.tag])])}function p(){if(r.thumb||s)return t("a",{attrs:{href:e.thumbLink},class:xr("thumb"),on:{click:f}},[r.thumb?r.thumb():t(_r,{attrs:{src:s,width:"100%",height:"100%",fit:"cover","lazy-load":e.lazyLoad}}),d()])}function m(){return r.title?r.title():e.title?t("div",{class:[xr("title"),"van-multi-ellipsis--l2"]},[e.title]):void 0}function v(){return r.desc?r.desc():e.desc?t("div",{class:[xr("desc"),"van-ellipsis"]},[e.desc]):void 0}function g(){var r=e.price.toString().split(".");return t("div",[t("span",{class:xr("price-currency")},[e.currency]),t("span",{class:xr("price-integer")},[r[0]]),".",t("span",{class:xr("price-decimal")},[r[1]])])}function y(){if(u)return t("div",{class:xr("price")},[r.price?r.price():g()])}function w(){if(l){var n=r["origin-price"];return t("div",{class:xr("origin-price")},[n?n():e.currency+" "+e.originPrice])}}function M(){if(a)return t("div",{class:xr("num")},[r.num?r.num():"x"+e.num])}function _(){if(r.footer)return t("div",{class:xr("footer")},[r.footer()])}return t("div",o()([{class:xr()},Object(h["b"])(n,!0)]),[t("div",{class:xr("header")},[p(),t("div",{class:xr("content",{centered:e.centered})},[t("div",[m(),v(),null==r.tags?void 0:r.tags()]),c&&t("div",{class:"van-card__bottom"},[null==(i=r["price-top"])?void 0:i.call(r),y(),w(),M(),null==r.bottom?void 0:r.bottom()])])]),_()])}Er.props={tag:String,desc:String,thumb:String,title:String,centered:Boolean,lazyLoad:Boolean,thumbLink:String,num:[Number,String],price:[Number,String],originPrice:[Number,String],currency:{type:String,default:"¥"}};var Ar,Or=Sr(Er),Tr=Object(u["a"])("tab"),Cr=Tr[0],Pr=Tr[1],Br=Cr({mixins:[It("vanTabs")],props:Object(n["a"])({},ht,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var t;return null!=(t=this.name)?t:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick((function(){e.parent.$emit("rendered",e.computedName,e.title)}))}},render:function(t){var e=this.slots,r=this.parent,n=this.isActive,i=e();if(i||r.animated){var o=r.scrollspy||n,s=this.inited||r.scrollspy||!r.lazyRender,a=s?i:t();return r.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!n},class:Pr("pane-wrapper",{inactive:!n})},[t("div",{class:Pr("pane")},[a])]):t("div",{directives:[{name:"show",value:o}],attrs:{role:"tabpanel"},class:Pr("pane")},[a])}}});function Ir(t,e,r){Object(Ge["a"])(Ar);var n=0,i=t.scrollLeft,o=0===r?1:Math.round(1e3*r/16);function s(){t.scrollLeft+=(e-i)/o,++n<o&&(Ar=Object(Ge["c"])(s))}s()}function Rr(t,e,r,n){var i=Object(yt["c"])(t),o=i<e,s=0===r?1:Math.round(1e3*r/16),a=(e-i)/s;function u(){i+=a,(o&&i>e||!o&&i<e)&&(i=e),Object(yt["h"])(t,i),o&&i<e||!o&&i>e?Object(Ge["c"])(u):n&&Object(Ge["c"])(n)}u()}function Nr(t){var e=window.getComputedStyle(t),r="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return r||n}function jr(t){var e=t.interceptor,r=t.args,n=t.done;if(e){var i=e.apply(void 0,r);Object(b["g"])(i)?i.then((function(t){t&&n()})).catch(b["i"]):i&&n()}else n()}var Lr=r("5fbe"),Ur=r("6f2f"),Dr=Object(u["a"])("tab"),Fr=Dr[0],zr=Dr[1],qr=Fr({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var t={},e=this.color,r=this.isActive,n="card"===this.type;e&&n&&(t.borderColor=e,this.disabled||(r?t.backgroundColor=e:t.color=e));var i=r?this.activeColor:this.inactiveColor;return i&&(t.color=i),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:zr("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Object(b["c"])(this.info)&&""!==this.info?t("span",{class:zr("text-wrapper")},[e,t(Ur["a"],{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[zr({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),Hr=Object(u["a"])("sticky"),$r=Hr[0],Vr=Hr[1],Kr=$r({mixins:[Object(Lr["a"])((function(t,e){if(this.scroller||(this.scroller=Object(yt["d"])(this.$el)),this.observer){var r=e?"observe":"unobserve";this.observer[r](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()}))],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return Object(B["b"])(this.offsetTop)},style:function(){if(this.fixed){var t={};return Object(b["c"])(this.zIndex)&&(t.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(t.top=this.offsetTopPx+"px"),this.transform&&(t.transform="translate3d(0, "+this.transform+"px, 0)"),t}}},watch:{fixed:function(t){this.$emit("change",t)}},created:function(){var t=this;!b["h"]&&window.IntersectionObserver&&(this.observer=new IntersectionObserver((function(e){e[0].intersectionRatio>0&&t.onScroll()}),{root:document.body}))},methods:{onScroll:function(){var t=this;if(!Nr(this.$el)){this.height=this.$el.offsetHeight;var e=this.container,r=this.offsetTopPx,n=Object(yt["c"])(window),i=Object(yt["a"])(this.$el),o=function(){t.$emit("scroll",{scrollTop:n,isFixed:t.fixed})};if(e){var s=i+e.offsetHeight;if(n+r+this.height>s){var a=this.height+n-s;return a<this.height?(this.fixed=!0,this.transform=-(a+r)):this.fixed=!1,void o()}}n+r>i?(this.fixed=!0,this.transform=0):this.fixed=!1,o()}}},render:function(){var t=arguments[0],e=this.fixed,r={height:e?this.height+"px":null};return t("div",{style:r},[t("div",{class:Vr({fixed:e}),style:this.style},[this.slots()])])}}),Wr=Object(u["a"])("tabs"),Gr=Wr[0],Zr=Wr[1],Jr=50,Xr=Gr({mixins:[U["a"]],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,r=this.currentIndex;"horizontal"===t&&this.offsetX>=Jr&&(e>0&&0!==r?this.$emit("change",r-1):e<0&&r!==this.count-1&&this.$emit("change",r+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:Zr("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var t=arguments[0];return t("div",{class:Zr("content",{animated:this.animated}),on:Object(n["a"])({},this.listeners)},[this.genChildren()])}}),Yr=Object(u["a"])("tabs"),Qr=Yr[0],tn=Yr[1],en=Qr({mixins:[Rt("vanTabs"),Object(Lr["a"])((function(t){this.scroller||(this.scroller=Object(yt["d"])(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)}))],inject:{vanPopup:{default:null}},model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},offsetTopPx:function(){return Object(B["b"])(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick((function(){t.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&Object(yt["g"])(Math.ceil(Object(yt["a"])(this.$el)-this.offsetTopPx))},scrollspy:function(t){t?Object(k["b"])(this.scroller,"scroll",this.onScroll,!0):Object(k["a"])(this.scroller,"scroll",this.onScroll)}},mounted:function(){var t=this;this.init(),this.vanPopup&&this.vanPopup.onReopen((function(){t.setLine()}))},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick((function(){t.inited=!0,t.tabHeight=Object(yt["e"])(t.$refs.wrap),t.scrollIntoView(!0)}))},setLine:function(){var t=this,e=this.inited;this.$nextTick((function(){var r=t.$refs.titles;if(r&&r[t.currentIndex]&&"line"===t.type&&!Nr(t.$el)){var n=r[t.currentIndex].$el,i=t.lineWidth,o=t.lineHeight,s=n.offsetLeft+n.offsetWidth/2,a={width:Object(B["a"])(i),backgroundColor:t.color,transform:"translateX("+s+"px) translateX(-50%)"};if(e&&(a.transitionDuration=t.duration+"s"),Object(b["c"])(o)){var u=Object(B["a"])(o);a.height=u,a.borderRadius=u}t.lineStyle=a}}))},setCurrentIndexByName:function(t){var e=this.children.filter((function(e){return e.computedName===t})),r=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:r)},setCurrentIndex:function(t){var e=this.findAvailableTab(t);if(Object(b["c"])(e)){var r=this.children[e],n=r.computedName,i=null!==this.currentIndex;this.currentIndex=e,n!==this.active&&(this.$emit("input",n),i&&this.$emit("change",n,r.title))}},findAvailableTab:function(t){var e=t<this.currentIndex?-1:1;while(t>=0&&t<this.children.length){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t,e){var r=this,n=this.children[e],i=n.title,o=n.disabled,s=n.computedName;o?this.$emit("disabled",s,i):(jr({interceptor:this.beforeChange,args:[s],done:function(){r.setCurrentIndex(e),r.scrollToCurrentContent()}}),this.$emit("click",s,i),at(t.$router,t))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var r=this.$refs.nav,n=e[this.currentIndex].$el,i=n.offsetLeft-(r.offsetWidth-n.offsetWidth)/2;Ir(r,i,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollTo:function(t){var e=this;this.$nextTick((function(){e.setCurrentIndexByName(t),e.scrollToCurrentContent(!0)}))},scrollToCurrentContent:function(t){var e=this;if(void 0===t&&(t=!1),this.scrollspy){var r=this.children[this.currentIndex],n=null==r?void 0:r.$el;if(n){var i=Object(yt["a"])(n,this.scroller)-this.scrollOffset;this.lockScroll=!0,Rr(this.scroller,i,t?0:+this.duration,(function(){e.lockScroll=!1}))}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t=this.children,e=0;e<t.length;e++){var r=Object(yt["f"])(t[e].$el);if(r>this.scrollOffset)return 0===e?0:e-1}return t.length-1}},render:function(){var t,e=this,r=arguments[0],n=this.type,i=this.animated,o=this.scrollable,s=this.children.map((function(t,i){var s;return r(qr,{ref:"titles",refInFor:!0,attrs:{type:n,dot:t.dot,info:null!=(s=t.badge)?s:t.info,title:t.title,color:e.color,isActive:i===e.currentIndex,disabled:t.disabled,scrollable:o,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:t.titleStyle,class:t.titleClass,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(t,i)}}})})),a=r("div",{ref:"wrap",class:[tn("wrap",{scrollable:o}),(t={},t[C]="line"===n&&this.border,t)]},[r("div",{ref:"nav",attrs:{role:"tablist"},class:tn("nav",[n,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),s,"line"===n&&r("div",{class:tn("line"),style:this.lineStyle}),this.slots("nav-right")])]);return r("div",{class:tn([n])},[this.sticky?r(Kr,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[a]):a,r(Xr,{attrs:{count:this.children.length,animated:i,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}}),rn=Object(u["a"])("cascader"),nn=rn[0],on=rn[1],sn=rn[2],an=nn({props:{title:String,value:[Number,String],fieldNames:Object,placeholder:String,activeColor:String,options:{type:Array,default:function(){return[]}},closeable:{type:Boolean,default:!0}},data:function(){return{tabs:[],activeTab:0}},computed:{textKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.text)||"text"},valueKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.value)||"value"},childrenKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.children)||"children"}},watch:{options:{deep:!0,handler:"updateTabs"},value:function(t){var e=this;if(t||0===t){var r=this.tabs.map((function(t){var r;return null==(r=t.selectedOption)?void 0:r[e.valueKey]}));if(-1!==r.indexOf(t))return}this.updateTabs()}},created:function(){this.updateTabs()},methods:{getSelectedOptionsByValue:function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n[this.valueKey]===e)return[n];if(n[this.childrenKey]){var i=this.getSelectedOptionsByValue(n[this.childrenKey],e);if(i)return[n].concat(i)}}},updateTabs:function(){var t=this;if(this.value||0===this.value){var e=this.getSelectedOptionsByValue(this.options,this.value);if(e){var r=this.options;return this.tabs=e.map((function(e){var n={options:r,selectedOption:e},i=r.filter((function(r){return r[t.valueKey]===e[t.valueKey]}));return i.length&&(r=i[0][t.childrenKey]),n})),r&&this.tabs.push({options:r,selectedOption:null}),void this.$nextTick((function(){t.activeTab=t.tabs.length-1}))}}this.tabs=[{options:this.options,selectedOption:null}]},onSelect:function(t,e){var r=this;if(this.tabs[e].selectedOption=t,this.tabs.length>e+1&&(this.tabs=this.tabs.slice(0,e+1)),t[this.childrenKey]){var n={options:t[this.childrenKey],selectedOption:null};this.tabs[e+1]?this.$set(this.tabs,e+1,n):this.tabs.push(n),this.$nextTick((function(){r.activeTab++}))}var i=this.tabs.map((function(t){return t.selectedOption})).filter((function(t){return!!t})),o={value:t[this.valueKey],tabIndex:e,selectedOptions:i};this.$emit("input",t[this.valueKey]),this.$emit("change",o),t[this.childrenKey]||this.$emit("finish",o)},onClose:function(){this.$emit("close")},renderHeader:function(){var t=this.$createElement;return t("div",{class:on("header")},[t("h2",{class:on("title")},[this.slots("title")||this.title]),this.closeable?t(c["a"],{attrs:{name:"cross"},class:on("close-icon"),on:{click:this.onClose}}):null])},renderOptions:function(t,e,r){var n=this,i=this.$createElement,o=function(t){var o=e&&t[n.valueKey]===e[n.valueKey];return i("li",{class:on("option",{selected:o}),style:{color:o?n.activeColor:null},on:{click:function(){n.onSelect(t,r)}}},[i("span",[t[n.textKey]]),o?i(c["a"],{attrs:{name:"success"},class:on("selected-icon")}):null])};return i("ul",{class:on("options")},[t.map(o)])},renderTab:function(t,e){var r=this.$createElement,n=t.options,i=t.selectedOption,o=i?i[this.textKey]:this.placeholder||sn("select");return r(Br,{attrs:{title:o,titleClass:on("tab",{unselected:!i})}},[this.renderOptions(n,i,e)])},renderTabs:function(){var t=this,e=this.$createElement;return e(en,{attrs:{animated:!0,swipeable:!0,swipeThreshold:0,color:this.activeColor},class:on("tabs"),model:{value:t.activeTab,callback:function(e){t.activeTab=e}}},[this.tabs.map(this.renderTab)])}},render:function(){var t=arguments[0];return t("div",{class:on()},[this.renderHeader(),this.renderTabs()])}}),un=Object(u["a"])("cell-group"),hn=un[0],ln=un[1];function cn(t,e,r,n){var i,s=t("div",o()([{class:[ln(),(i={},i[C]=e.border,i)]},Object(h["b"])(n,!0)]),[null==r.default?void 0:r.default()]);return e.title||r.title?t("div",{key:n.data.key},[t("div",{class:ln("title")},[r.title?r.title():e.title]),s]):s}cn.props={title:String,border:{type:Boolean,default:!0}};var fn=hn(cn),dn=Object(u["a"])("checkbox"),pn=dn[0],mn=dn[1],vn=pn({mixins:[Ae({bem:mn,role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var e=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout((function(){e.checked=t}))},setParentValue:function(t){var e=this.parent,r=e.value.slice();if(t){if(e.max&&r.length>=e.max)return;-1===r.indexOf(this.name)&&(r.push(this.name),e.$emit("input",r))}else{var n=r.indexOf(this.name);-1!==n&&(r.splice(n,1),e.$emit("input",r))}}}}),gn=Object(u["a"])("checkbox-group"),yn=gn[0],bn=gn[1],wn=yn({mixins:[Rt("vanCheckbox"),se],props:{max:[Number,String],disabled:Boolean,direction:String,iconSize:[Number,String],checkedColor:String,value:{type:Array,default:function(){return[]}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggleAll:function(t){void 0===t&&(t={}),"boolean"===typeof t&&(t={checked:t});var e=t,r=e.checked,n=e.skipDisabled,i=this.children.filter((function(t){return t.disabled&&n?t.checked:null!=r?r:!t.checked})),o=i.map((function(t){return t.name}));this.$emit("input",o)}},render:function(){var t=arguments[0];return t("div",{class:bn([this.direction])},[this.slots()])}}),Mn=Object(u["a"])("circle"),_n=Mn[0],kn=Mn[1],Sn=3140,xn=0;function En(t){return Math.min(Math.max(t,0),100)}function An(t,e){var r=t?1:0;return"M "+e/2+" "+e/2+" m 0, -500 a 500, 500 0 1, "+r+" 0, 1000 a 500, 500 0 1, "+r+" 0, -1000"}var On=_n({props:{text:String,size:[Number,String],color:[String,Object],layerColor:String,strokeLinecap:String,value:{type:Number,default:0},speed:{type:[Number,String],default:0},fill:{type:String,default:"none"},rate:{type:[Number,String],default:100},strokeWidth:{type:[Number,String],default:40},clockwise:{type:Boolean,default:!0}},beforeCreate:function(){this.uid="van-circle-gradient-"+xn++},computed:{style:function(){var t=Object(B["a"])(this.size);return{width:t,height:t}},path:function(){return An(this.clockwise,this.viewBoxSize)},viewBoxSize:function(){return+this.strokeWidth+1e3},layerStyle:function(){return{fill:""+this.fill,stroke:""+this.layerColor,strokeWidth:this.strokeWidth+"px"}},hoverStyle:function(){var t=Sn*this.value/100;return{stroke:""+(this.gradient?"url(#"+this.uid+")":this.color),strokeWidth:+this.strokeWidth+1+"px",strokeLinecap:this.strokeLinecap,strokeDasharray:t+"px "+Sn+"px"}},gradient:function(){return Object(b["f"])(this.color)},LinearGradient:function(){var t=this,e=this.$createElement;if(this.gradient){var r=Object.keys(this.color).sort((function(t,e){return parseFloat(t)-parseFloat(e)})).map((function(r,n){return e("stop",{key:n,attrs:{offset:r,"stop-color":t.color[r]}})}));return e("defs",[e("linearGradient",{attrs:{id:this.uid,x1:"100%",y1:"0%",x2:"0%",y2:"0%"}},[r])])}}},watch:{rate:{handler:function(t){this.startTime=Date.now(),this.startRate=this.value,this.endRate=En(t),this.increase=this.endRate>this.startRate,this.duration=Math.abs(1e3*(this.startRate-this.endRate)/this.speed),this.speed?(Object(Ge["a"])(this.rafId),this.rafId=Object(Ge["c"])(this.animate)):this.$emit("input",this.endRate)},immediate:!0}},methods:{animate:function(){var t=Date.now(),e=Math.min((t-this.startTime)/this.duration,1),r=e*(this.endRate-this.startRate)+this.startRate;this.$emit("input",En(parseFloat(r.toFixed(1)))),(this.increase?r<this.endRate:r>this.endRate)&&(this.rafId=Object(Ge["c"])(this.animate))}},render:function(){var t=arguments[0];return t("div",{class:kn(),style:this.style},[t("svg",{attrs:{viewBox:"0 0 "+this.viewBoxSize+" "+this.viewBoxSize}},[this.LinearGradient,t("path",{class:kn("layer"),style:this.layerStyle,attrs:{d:this.path}}),t("path",{attrs:{d:this.path},class:kn("hover"),style:this.hoverStyle})]),this.slots()||this.text&&t("div",{class:kn("text")},[this.text])])}}),Tn=Object(u["a"])("col"),Cn=Tn[0],Pn=Tn[1],Bn=Cn({mixins:[It("vanRow")],props:{span:[Number,String],offset:[Number,String],tag:{type:String,default:"div"}},computed:{style:function(){var t=this.index,e=this.parent||{},r=e.spaces;if(r&&r[t]){var n=r[t],i=n.left,o=n.right;return{paddingLeft:i?i+"px":null,paddingRight:o?o+"px":null}}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],r=this.span,n=this.offset;return e(this.tag,{style:this.style,class:Pn((t={},t[r]=r,t["offset-"+n]=n,t)),on:{click:this.onClick}},[this.slots()])}}),In=Object(u["a"])("collapse"),Rn=In[0],Nn=In[1],jn=Rn({mixins:[Rt("vanCollapse")],props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},methods:{switch:function(t,e){this.accordion||(t=e?this.value.concat(t):this.value.filter((function(e){return e!==t}))),this.$emit("change",t),this.$emit("input",t)}},render:function(){var t,e=arguments[0];return e("div",{class:[Nn(),(t={},t[C]=this.border,t)]},[this.slots()])}}),Ln=Object(u["a"])("collapse-item"),Un=Ln[0],Dn=Ln[1],Fn=["title","icon","right-icon"],zn=Un({mixins:[It("vanCollapse")],props:Object(n["a"])({},lt,{name:[Number,String],disabled:Boolean,isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{currentName:function(){var t;return null!=(t=this.name)?t:this.index},expanded:function(){var t=this;if(!this.parent)return null;var e=this.parent,r=e.value,n=e.accordion;return n?r===this.currentName:r.some((function(e){return e===t.currentName}))}},created:function(){this.show=this.expanded,this.inited=this.expanded},watch:{expanded:function(t,e){var r=this;if(null!==e){t&&(this.show=!0,this.inited=!0);var n=t?this.$nextTick:Ge["c"];n((function(){var e=r.$refs,n=e.content,i=e.wrapper;if(n&&i){var o=n.offsetHeight;if(o){var s=o+"px";i.style.height=t?0:s,Object(Ge["b"])((function(){i.style.height=t?s:0}))}else r.onTransitionEnd()}}))}}},methods:{onClick:function(){this.disabled||this.toggle()},toggle:function(t){void 0===t&&(t=!this.expanded);var e=this.parent,r=this.currentName,n=e.accordion&&r===e.value,i=n?"":r;this.parent.switch(i,t)},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height="":this.show=!1},genTitle:function(){var t=this,e=this.$createElement,r=this.border,i=this.disabled,o=this.expanded,s=Fn.reduce((function(e,r){return t.slots(r)&&(e[r]=function(){return t.slots(r)}),e}),{});return this.slots("value")&&(s.default=function(){return t.slots("value")}),e(mt,{attrs:{role:"button",tabindex:i?-1:0,"aria-expanded":String(o)},class:Dn("title",{disabled:i,expanded:o,borderless:!r}),on:{click:this.onClick},scopedSlots:s,props:Object(n["a"])({},this.$props)})},genContent:function(){var t=this.$createElement;if(this.inited)return t("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:Dn("wrapper"),on:{transitionend:this.onTransitionEnd}},[t("div",{ref:"content",class:Dn("content")},[this.slots()])])}},render:function(){var t=arguments[0];return t("div",{class:[Dn({border:this.index&&this.border})]},[this.genTitle(),this.genContent()])}}),qn=Object(u["a"])("contact-card"),Hn=qn[0],$n=qn[1],Vn=qn[2];function Kn(t,e,r,n){var i=e.type,s=e.editable;function a(t){s&&Object(h["a"])(n,"click",t)}function u(){return"add"===i?e.addText||Vn("addText"):[t("div",[Vn("name")+""+e.name]),t("div",[Vn("tel")+""+e.tel])]}return t(mt,o()([{attrs:{center:!0,border:!1,isLink:s,valueClass:$n("value"),icon:"edit"===i?"contact":"add-square"},class:$n([i]),on:{click:a}},Object(h["b"])(n)]),[u()])}Kn.props={tel:String,name:String,addText:String,editable:{type:Boolean,default:!0},type:{type:String,default:"add"}};var Wn=Hn(Kn),Gn=Object(u["a"])("contact-edit"),Zn=Gn[0],Jn=Gn[1],Xn=Gn[2],Yn={tel:"",name:""},Qn=Zn({props:{isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:function(){return Object(n["a"])({},Yn)}},telValidator:{type:Function,default:w}},data:function(){return{data:Object(n["a"])({},Yn,this.contactInfo),errorInfo:{name:"",tel:""}}},watch:{contactInfo:function(t){this.data=Object(n["a"])({},Yn,t)}},methods:{onFocus:function(t){this.errorInfo[t]=""},getErrorMessageByKey:function(t){var e=this.data[t].trim();switch(t){case"name":return e?"":Xn("nameInvalid");case"tel":return this.telValidator(e)?"":Xn("telInvalid")}},onSave:function(){var t=this,e=["name","tel"].every((function(e){var r=t.getErrorMessageByKey(e);return r&&(t.errorInfo[e]=r),!r}));e&&!this.isSaving&&this.$emit("save",this.data)},onDelete:function(){var t=this;Yt.confirm({title:Xn("confirmDelete")}).then((function(){t.$emit("delete",t.data)}))}},render:function(){var t=this,e=arguments[0],r=this.data,n=this.errorInfo,i=function(e){return function(){return t.onFocus(e)}};return e("div",{class:Jn()},[e("div",{class:Jn("fields")},[e(St,{attrs:{clearable:!0,maxlength:"30",label:Xn("name"),placeholder:Xn("nameEmpty"),errorMessage:n.name},on:{focus:i("name")},model:{value:r.name,callback:function(e){t.$set(r,"name",e)}}}),e(St,{attrs:{clearable:!0,type:"tel",label:Xn("tel"),placeholder:Xn("telEmpty"),errorMessage:n.tel},on:{focus:i("tel")},model:{value:r.tel,callback:function(e){t.$set(r,"tel",e)}}})]),this.showSetDefault&&e(mt,{attrs:{title:this.setDefaultLabel,border:!1},class:Jn("switch-cell")},[e(le,{attrs:{size:24},slot:"right-icon",on:{change:function(e){t.$emit("change-default",e)}},model:{value:r.isDefault,callback:function(e){t.$set(r,"isDefault",e)}}})]),e("div",{class:Jn("buttons")},[e(Ct,{attrs:{block:!0,round:!0,type:"danger",text:Xn("save"),loading:this.isSaving},on:{click:this.onSave}}),this.isEdit&&e(Ct,{attrs:{block:!0,round:!0,text:Xn("delete"),loading:this.isDeleting},on:{click:this.onDelete}})])])}}),ti=Object(u["a"])("contact-list"),ei=ti[0],ri=ti[1],ni=ti[2];function ii(t,e,r,n){var i=e.list&&e.list.map((function(r,i){function o(){Object(h["a"])(n,"input",r.id),Object(h["a"])(n,"select",r,i)}function s(){return t(Pe,{attrs:{name:r.id,iconSize:16,checkedColor:S},on:{click:o}})}function a(){return t(c["a"],{attrs:{name:"edit"},class:ri("edit"),on:{click:function(t){t.stopPropagation(),Object(h["a"])(n,"edit",r,i)}}})}function u(){var n=[r.name+""+r.tel];return r.isDefault&&e.defaultTagText&&n.push(t(Ee,{attrs:{type:"danger",round:!0},class:ri("item-tag")},[e.defaultTagText])),n}return t(mt,{key:r.id,attrs:{isLink:!0,center:!0,valueClass:ri("item-value")},class:ri("item"),scopedSlots:{icon:a,default:u,"right-icon":s},on:{click:o}})}));return t("div",o()([{class:ri()},Object(h["b"])(n)]),[t(Me,{attrs:{value:e.value},class:ri("group")},[i]),t("div",{class:ri("bottom")},[t(Ct,{attrs:{round:!0,block:!0,type:"danger",text:e.addText||ni("addText")},class:ri("add"),on:{click:function(){Object(h["a"])(n,"add")}}})])])}ii.props={value:null,list:Array,addText:String,defaultTagText:String};var oi=ei(ii),si=r("68ed"),ai=1e3,ui=60*ai,hi=60*ui,li=24*hi;function ci(t){var e=Math.floor(t/li),r=Math.floor(t%li/hi),n=Math.floor(t%hi/ui),i=Math.floor(t%ui/ai),o=Math.floor(t%ai);return{days:e,hours:r,minutes:n,seconds:i,milliseconds:o}}function fi(t,e){var r=e.days,n=e.hours,i=e.minutes,o=e.seconds,s=e.milliseconds;if(-1===t.indexOf("DD")?n+=24*r:t=t.replace("DD",Object(si["b"])(r)),-1===t.indexOf("HH")?i+=60*n:t=t.replace("HH",Object(si["b"])(n)),-1===t.indexOf("mm")?o+=60*i:t=t.replace("mm",Object(si["b"])(i)),-1===t.indexOf("ss")?s+=1e3*o:t=t.replace("ss",Object(si["b"])(o)),-1!==t.indexOf("S")){var a=Object(si["b"])(s,3);t=-1!==t.indexOf("SSS")?t.replace("SSS",a):-1!==t.indexOf("SS")?t.replace("SS",a.slice(0,2)):t.replace("S",a.charAt(0))}return t}function di(t,e){return Math.floor(t/1e3)===Math.floor(e/1e3)}var pi=Object(u["a"])("count-down"),mi=pi[0],vi=pi[1],gi=mi({props:{millisecond:Boolean,time:{type:[Number,String],default:0},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0}},data:function(){return{remain:0}},computed:{timeData:function(){return ci(this.remain)},formattedTime:function(){return fi(this.format,this.timeData)}},watch:{time:{immediate:!0,handler:"reset"}},activated:function(){this.keepAlivePaused&&(this.counting=!0,this.keepAlivePaused=!1,this.tick())},deactivated:function(){this.counting&&(this.pause(),this.keepAlivePaused=!0)},beforeDestroy:function(){this.pause()},methods:{start:function(){this.counting||(this.counting=!0,this.endTime=Date.now()+this.remain,this.tick())},pause:function(){this.counting=!1,Object(Ge["a"])(this.rafId)},reset:function(){this.pause(),this.remain=+this.time,this.autoStart&&this.start()},tick:function(){b["b"]&&(this.millisecond?this.microTick():this.macroTick())},microTick:function(){var t=this;this.rafId=Object(Ge["c"])((function(){t.counting&&(t.setRemain(t.getRemain()),t.remain>0&&t.microTick())}))},macroTick:function(){var t=this;this.rafId=Object(Ge["c"])((function(){if(t.counting){var e=t.getRemain();di(e,t.remain)&&0!==e||t.setRemain(e),t.remain>0&&t.macroTick()}}))},getRemain:function(){return Math.max(this.endTime-Date.now(),0)},setRemain:function(t){this.remain=t,this.$emit("change",this.timeData),0===t&&(this.pause(),this.$emit("finish"))}},render:function(){var t=arguments[0];return t("div",{class:vi()},[this.slots("default",this.timeData)||this.formattedTime])}}),yi=Object(u["a"])("coupon"),bi=yi[0],wi=yi[1],Mi=yi[2];function _i(t){return t<Math.pow(10,12)?1e3*t:+t}function ki(t){var e=new Date(_i(t));return e.getFullYear()+"."+Object(si["b"])(e.getMonth()+1)+"."+Object(si["b"])(e.getDate())}function Si(t){return(t/10).toFixed(t%10===0?0:1)}function xi(t){return(t/100).toFixed(t%100===0?0:t%10===0?1:2)}var Ei=bi({props:{coupon:Object,chosen:Boolean,disabled:Boolean,currency:{type:String,default:"¥"}},computed:{validPeriod:function(){var t=this.coupon,e=t.startAt,r=t.endAt,n=t.customValidPeriod;return n||ki(e)+" - "+ki(r)},faceAmount:function(){var t=this.coupon;if(t.valueDesc)return t.valueDesc+"<span>"+(t.unitDesc||"")+"</span>";if(t.denominations){var e=xi(t.denominations);return"<span>"+this.currency+"</span> "+e}return t.discount?Mi("discount",Si(t.discount)):""},conditionMessage:function(){var t=xi(this.coupon.originCondition);return"0"===t?Mi("unlimited"):Mi("condition",t)}},render:function(){var t=arguments[0],e=this.coupon,r=this.disabled,n=r&&e.reason||e.description;return t("div",{class:wi({disabled:r})},[t("div",{class:wi("content")},[t("div",{class:wi("head")},[t("h2",{class:wi("amount"),domProps:{innerHTML:this.faceAmount}}),t("p",{class:wi("condition")},[this.coupon.condition||this.conditionMessage])]),t("div",{class:wi("body")},[t("p",{class:wi("name")},[e.name]),t("p",{class:wi("valid")},[this.validPeriod]),!this.disabled&&t(vn,{attrs:{size:18,value:this.chosen,checkedColor:S},class:wi("corner")})])]),n&&t("p",{class:wi("description")},[n])])}}),Ai=Object(u["a"])("coupon-cell"),Oi=Ai[0],Ti=Ai[1],Ci=Ai[2];function Pi(t){var e=t.coupons,r=t.chosenCoupon,n=t.currency,i=e[+r];if(i){var o=0;return Object(b["c"])(i.value)?o=i.value:Object(b["c"])(i.denominations)&&(o=i.denominations),"-"+n+" "+(o/100).toFixed(2)}return 0===e.length?Ci("tips"):Ci("count",e.length)}function Bi(t,e,r,n){var i=e.coupons[+e.chosenCoupon],s=Pi(e);return t(mt,o()([{class:Ti(),attrs:{value:s,title:e.title||Ci("title"),border:e.border,isLink:e.editable,valueClass:Ti("value",{selected:i})}},Object(h["b"])(n,!0)]))}Bi.model={prop:"chosenCoupon"},Bi.props={title:String,coupons:{type:Array,default:function(){return[]}},currency:{type:String,default:"¥"},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},chosenCoupon:{type:[Number,String],default:-1}};var Ii=Oi(Bi),Ri=Object(u["a"])("coupon-list"),Ni=Ri[0],ji=Ri[1],Li=Ri[2],Ui="https://img01.yzcdn.cn/vant/coupon-empty.png",Di=Ni({model:{prop:"code"},props:{code:String,closeButtonText:String,inputPlaceholder:String,enabledTitle:String,disabledTitle:String,exchangeButtonText:String,exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,exchangeMinLength:{type:Number,default:1},chosenCoupon:{type:Number,default:-1},coupons:{type:Array,default:function(){return[]}},disabledCoupons:{type:Array,default:function(){return[]}},displayedCouponIndex:{type:Number,default:-1},showExchangeBar:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},showCount:{type:Boolean,default:!0},currency:{type:String,default:"¥"},emptyImage:{type:String,default:Ui}},data:function(){return{tab:0,winHeight:window.innerHeight,currentCode:this.code||""}},computed:{buttonDisabled:function(){return!this.exchangeButtonLoading&&(this.exchangeButtonDisabled||!this.currentCode||this.currentCode.length<this.exchangeMinLength)},listStyle:function(){return{height:this.winHeight-(this.showExchangeBar?140:94)+"px"}}},watch:{code:function(t){this.currentCode=t},currentCode:function(t){this.$emit("input",t)},displayedCouponIndex:"scrollToShowCoupon"},mounted:function(){this.scrollToShowCoupon(this.displayedCouponIndex)},methods:{onClickExchangeButton:function(){this.$emit("exchange",this.currentCode),this.code||(this.currentCode="")},scrollToShowCoupon:function(t){var e=this;-1!==t&&this.$nextTick((function(){var r=e.$refs,n=r.card,i=r.list;i&&n&&n[t]&&(i.scrollTop=n[t].$el.offsetTop-100)}))},genEmpty:function(){var t=this.$createElement;return t("div",{class:ji("empty")},[t("img",{attrs:{src:this.emptyImage}}),t("p",[Li("empty")])])},genExchangeButton:function(){var t=this.$createElement;return t(Ct,{attrs:{plain:!0,type:"danger",text:this.exchangeButtonText||Li("exchange"),loading:this.exchangeButtonLoading,disabled:this.buttonDisabled},class:ji("exchange"),on:{click:this.onClickExchangeButton}})}},render:function(){var t=this,e=arguments[0],r=this.coupons,n=this.disabledCoupons,i=this.showCount?" ("+r.length+")":"",o=(this.enabledTitle||Li("enable"))+i,s=this.showCount?" ("+n.length+")":"",a=(this.disabledTitle||Li("disabled"))+s,u=this.showExchangeBar&&e("div",{class:ji("exchange-bar")},[e(St,{attrs:{clearable:!0,border:!1,placeholder:this.inputPlaceholder||Li("placeholder"),maxlength:"20"},class:ji("field"),model:{value:t.currentCode,callback:function(e){t.currentCode=e}}}),this.genExchangeButton()]),h=function(e){return function(){return t.$emit("change",e)}},l=e(Br,{attrs:{title:o}},[e("div",{class:ji("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[r.map((function(r,n){return e(Ei,{ref:"card",key:r.id,attrs:{coupon:r,currency:t.currency,chosen:n===t.chosenCoupon},nativeOn:{click:h(n)}})})),!r.length&&this.genEmpty(),this.slots("list-footer")])]),c=e(Br,{attrs:{title:a}},[e("div",{class:ji("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[n.map((function(r){return e(Ei,{attrs:{disabled:!0,coupon:r,currency:t.currency},key:r.id})})),!n.length&&this.genEmpty(),this.slots("disabled-list-footer")])]);return e("div",{class:ji()},[u,e(en,{class:ji("tab"),attrs:{border:!1},model:{value:t.tab,callback:function(e){t.tab=e}}},[l,c]),e("div",{class:ji("bottom")},[e(Ct,{directives:[{name:"show",value:this.showCloseButton}],attrs:{round:!0,type:"danger",block:!0,text:this.closeButtonText||Li("close")},class:ji("close"),on:{click:h(-1)}})])])}}),Fi=Object(n["a"])({},_,{value:null,filter:Function,columnsOrder:Array,showToolbar:{type:Boolean,default:!0},formatter:{type:Function,default:function(t,e){return e}}}),zi={data:function(){return{innerValue:this.formatValue(this.value)}},computed:{originColumns:function(){var t=this;return this.ranges.map((function(e){var r=e.type,n=e.range,i=hr(n[1]-n[0]+1,(function(t){var e=Object(si["b"])(n[0]+t);return e}));return t.filter&&(i=t.filter(r,i)),{type:r,values:i}}))},columns:function(){var t=this;return this.originColumns.map((function(e){return{values:e.values.map((function(r){return t.formatter(e.type,r)}))}}))}},watch:{columns:"updateColumnValue",innerValue:function(t,e){e?this.$emit("input",t):this.$emit("input",null)}},mounted:function(){var t=this;this.updateColumnValue(),this.$nextTick((function(){t.updateInnerValue()}))},methods:{getPicker:function(){return this.$refs.picker},onConfirm:function(){this.$emit("input",this.innerValue),this.$emit("confirm",this.innerValue)},onCancel:function(){this.$emit("cancel")}},render:function(){var t=this,e=arguments[0],r={};return Object.keys(_).forEach((function(e){r[e]=t[e]})),e(Y,{ref:"picker",attrs:{columns:this.columns,readonly:this.readonly},scopedSlots:this.$scopedSlots,on:{change:this.onChange,confirm:this.onConfirm,cancel:this.onCancel},props:Object(n["a"])({},r)})}},qi=Object(u["a"])("time-picker"),Hi=qi[0],$i=Hi({mixins:[zi],props:Object(n["a"])({},Fi,{minHour:{type:[Number,String],default:0},maxHour:{type:[Number,String],default:23},minMinute:{type:[Number,String],default:0},maxMinute:{type:[Number,String],default:59}}),computed:{ranges:function(){return[{type:"hour",range:[+this.minHour,+this.maxHour]},{type:"minute",range:[+this.minMinute,+this.maxMinute]}]}},watch:{filter:"updateInnerValue",minHour:function(){var t=this;this.$nextTick((function(){t.updateInnerValue()}))},maxHour:function(t){var e=this.innerValue.split(":"),r=e[0],n=e[1];r>=t?(this.innerValue=this.formatValue(t+":"+n),this.updateColumnValue()):this.updateInnerValue()},minMinute:"updateInnerValue",maxMinute:function(t){var e=this.innerValue.split(":"),r=e[0],n=e[1];n>=t?(this.innerValue=this.formatValue(r+":"+t),this.updateColumnValue()):this.updateInnerValue()},value:function(t){t=this.formatValue(t),t!==this.innerValue&&(this.innerValue=t,this.updateColumnValue())}},methods:{formatValue:function(t){t||(t=Object(si["b"])(this.minHour)+":"+Object(si["b"])(this.minMinute));var e=t.split(":"),r=e[0],n=e[1];return r=Object(si["b"])(R(r,this.minHour,this.maxHour)),n=Object(si["b"])(R(n,this.minMinute,this.maxMinute)),r+":"+n},updateInnerValue:function(){var t=this.getPicker().getIndexes(),e=t[0],r=t[1],n=this.originColumns,i=n[0],o=n[1],s=i.values[e]||i.values[0],a=o.values[r]||o.values[0];this.innerValue=this.formatValue(s+":"+a),this.updateColumnValue()},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick((function(){e.$nextTick((function(){e.$emit("change",t)}))}))},updateColumnValue:function(){var t=this,e=this.formatter,r=this.innerValue.split(":"),n=[e("hour",r[0]),e("minute",r[1])];this.$nextTick((function(){t.getPicker().setValues(n)}))}}});function Vi(t,e){return Vi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Vi(t,e)}function Ki(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function Wi(t,e,r){return Wi=Ki()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=Function.bind.apply(t,n),o=new i;return r&&Vi(o,r.prototype),o},Wi.apply(null,arguments)}var Gi=(new Date).getFullYear(),Zi=Object(u["a"])("date-picker"),Ji=Zi[0],Xi=Ji({mixins:[zi],props:Object(n["a"])({},Fi,{type:{type:String,default:"datetime"},minDate:{type:Date,default:function(){return new Date(Gi-10,0,1)},validator:Ze},maxDate:{type:Date,default:function(){return new Date(Gi+10,11,31)},validator:Ze}}),watch:{filter:"updateInnerValue",minDate:function(){var t=this;this.$nextTick((function(){t.updateInnerValue()}))},maxDate:function(t){this.innerValue.valueOf()>=t.valueOf()?this.innerValue=t:this.updateInnerValue()},value:function(t){t=this.formatValue(t),t&&t.valueOf()!==this.innerValue.valueOf()&&(this.innerValue=t)}},computed:{ranges:function(){var t=this.getBoundary("max",this.innerValue?this.innerValue:this.minDate),e=t.maxYear,r=t.maxDate,n=t.maxMonth,i=t.maxHour,o=t.maxMinute,s=this.getBoundary("min",this.innerValue?this.innerValue:this.minDate),a=s.minYear,u=s.minDate,h=s.minMonth,l=s.minHour,c=s.minMinute,f=[{type:"year",range:[a,e]},{type:"month",range:[h,n]},{type:"day",range:[u,r]},{type:"hour",range:[l,i]},{type:"minute",range:[c,o]}];switch(this.type){case"date":f=f.slice(0,3);break;case"year-month":f=f.slice(0,2);break;case"month-day":f=f.slice(1,3);break;case"datehour":f=f.slice(0,4);break}if(this.columnsOrder){var d=this.columnsOrder.concat(f.map((function(t){return t.type})));f.sort((function(t,e){return d.indexOf(t.type)-d.indexOf(e.type)}))}return f}},methods:{formatValue:function(t){var e=this;if(!Ze(t))return null;var r=new Date(this.minDate),n=new Date(this.maxDate),i={year:"getFullYear",month:"getMonth",day:"getDate",hour:"getHours",minute:"getMinutes"};if(this.originColumns){var o=this.originColumns.map((function(t,o){var s=t.type,a=t.values,u=e.ranges[o].range,h=r[i[s]](),l=n[i[s]](),c="month"===s?+a[0]-1:+a[0],f="month"===s?+a[a.length-1]-1:+a[a.length-1];return{type:s,values:[h<u[0]?Math.max(h,c):c||h,l>u[1]?Math.min(l,f):f||l]}}));if("month-day"===this.type){var s=(this.innerValue||this.minDate).getFullYear();o.unshift({type:"year",values:[s,s]})}var a=Object.keys(i).map((function(t){var e;return null==(e=o.filter((function(e){return e.type===t}))[0])?void 0:e.values})).filter((function(t){return t}));r=Wi(Date,a.map((function(t){return lr(t[0])}))),n=Wi(Date,a.map((function(t){return lr(t[1])})))}return t=Math.max(t,r.getTime()),t=Math.min(t,n.getTime()),new Date(t)},getBoundary:function(t,e){var r,n=this[t+"Date"],i=n.getFullYear(),o=1,s=1,a=0,u=0;return"max"===t&&(o=12,s=cr(e.getFullYear(),e.getMonth()+1),a=23,u=59),e.getFullYear()===i&&(o=n.getMonth()+1,e.getMonth()+1===o&&(s=n.getDate(),e.getDate()===s&&(a=n.getHours(),e.getHours()===a&&(u=n.getMinutes())))),r={},r[t+"Year"]=i,r[t+"Month"]=o,r[t+"Date"]=s,r[t+"Hour"]=a,r[t+"Minute"]=u,r},updateInnerValue:function(){var t,e,r,n=this,i=this.type,o=this.getPicker().getIndexes(),s=function(t){var e=0;n.originColumns.forEach((function(r,n){t===r.type&&(e=n)}));var r=n.originColumns[e].values;return lr(r[o[e]])};"month-day"===i?(t=(this.innerValue||this.minDate).getFullYear(),e=s("month"),r=s("day")):(t=s("year"),e=s("month"),r="year-month"===i?1:s("day"));var a=cr(t,e);r=r>a?a:r;var u=0,h=0;"datehour"===i&&(u=s("hour")),"datetime"===i&&(u=s("hour"),h=s("minute"));var l=new Date(t,e-1,r,u,h);this.innerValue=this.formatValue(l)},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick((function(){e.$nextTick((function(){e.$emit("change",t)}))}))},updateColumnValue:function(){var t=this,e=this.innerValue?this.innerValue:this.minDate,r=this.formatter,n=this.originColumns.map((function(t){switch(t.type){case"year":return r("year",""+e.getFullYear());case"month":return r("month",Object(si["b"])(e.getMonth()+1));case"day":return r("day",Object(si["b"])(e.getDate()));case"hour":return r("hour",Object(si["b"])(e.getHours()));case"minute":return r("minute",Object(si["b"])(e.getMinutes()));default:return null}}));this.$nextTick((function(){t.getPicker().setValues(n)}))}}}),Yi=Object(u["a"])("datetime-picker"),Qi=Yi[0],to=Yi[1],eo=Qi({props:Object(n["a"])({},$i.props,Xi.props),methods:{getPicker:function(){return this.$refs.root.getPicker()}},render:function(){var t=arguments[0],e="time"===this.type?$i:Xi;return t(e,{ref:"root",class:to(),scopedSlots:this.$scopedSlots,props:Object(n["a"])({},this.$props),on:Object(n["a"])({},this.$listeners)})}}),ro=Object(u["a"])("divider"),no=ro[0],io=ro[1];function oo(t,e,r,n){var i;return t("div",o()([{attrs:{role:"separator"},style:{borderColor:e.borderColor},class:io((i={dashed:e.dashed,hairline:e.hairline},i["content-"+e.contentPosition]=r.default,i))},Object(h["b"])(n,!0)]),[r.default&&r.default()])}oo.props={dashed:Boolean,hairline:{type:Boolean,default:!0},contentPosition:{type:String,default:"center"}};var so=no(oo),ao=r("1421"),uo=Object(u["a"])("dropdown-item"),ho=uo[0],lo=uo[1],co=ho({mixins:[Object(ao["a"])({ref:"wrapper"}),It("vanDropdownMenu")],props:{value:null,title:String,disabled:Boolean,titleClass:String,options:{type:Array,default:function(){return[]}},lazyRender:{type:Boolean,default:!0}},data:function(){return{transition:!0,showPopup:!1,showWrapper:!1}},computed:{displayTitle:function(){var t=this;if(this.title)return this.title;var e=this.options.filter((function(e){return e.value===t.value}));return e.length?e[0].text:""}},watch:{showPopup:function(t){this.bindScroll(t)}},beforeCreate:function(){var t=this,e=function(e){return function(){return t.$emit(e)}};this.onOpen=e("open"),this.onClose=e("close"),this.onOpened=e("opened")},methods:{toggle:function(t,e){void 0===t&&(t=!this.showPopup),void 0===e&&(e={}),t!==this.showPopup&&(this.transition=!e.immediate,this.showPopup=t,t&&(this.parent.updateOffset(),this.showWrapper=!0))},bindScroll:function(t){var e=this.parent.scroller,r=t?k["b"]:k["a"];r(e,"scroll",this.onScroll,!0)},onScroll:function(){this.parent.updateOffset()},onClickWrapper:function(t){this.getContainer&&t.stopPropagation()}},render:function(){var t=this,e=arguments[0],r=this.parent,n=r.zIndex,i=r.offset,o=r.overlay,s=r.duration,a=r.direction,u=r.activeColor,h=r.closeOnClickOverlay,l=this.options.map((function(r){var n=r.value===t.value;return e(mt,{attrs:{clickable:!0,icon:r.icon,title:r.text},key:r.value,class:lo("option",{active:n}),style:{color:n?u:""},on:{click:function(){t.showPopup=!1,r.value!==t.value&&(t.$emit("input",r.value),t.$emit("change",r.value))}}},[n&&e(c["a"],{class:lo("icon"),attrs:{color:u,name:"success"}})])})),d={zIndex:n};return"down"===a?d.top=i+"px":d.bottom=i+"px",e("div",[e("div",{directives:[{name:"show",value:this.showWrapper}],ref:"wrapper",style:d,class:lo([a]),on:{click:this.onClickWrapper}},[e(f["a"],{attrs:{overlay:o,position:"down"===a?"top":"bottom",duration:this.transition?s:0,lazyRender:this.lazyRender,overlayStyle:{position:"absolute"},closeOnClickOverlay:h},class:lo("content"),on:{open:this.onOpen,close:this.onClose,opened:this.onOpened,closed:function(){t.showWrapper=!1,t.$emit("closed")}},model:{value:t.showPopup,callback:function(e){t.showPopup=e}}},[l,this.slots("default")])])])}}),fo=function(t){return{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var e=this,r=function(r){e.closeOnClickOutside&&!e.$el.contains(r.target)&&e[t.method]()};return{clickOutsideHandler:r}},mounted:function(){Object(k["b"])(document,t.event,this.clickOutsideHandler)},beforeDestroy:function(){Object(k["a"])(document,t.event,this.clickOutsideHandler)}}},po=Object(u["a"])("dropdown-menu"),mo=po[0],vo=po[1],go=mo({mixins:[Rt("vanDropdownMenu"),fo({event:"click",method:"onClickOutside"})],props:{zIndex:[Number,String],activeColor:String,overlay:{type:Boolean,default:!0},duration:{type:[Number,String],default:.2},direction:{type:String,default:"down"},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{offset:0}},computed:{scroller:function(){return Object(yt["d"])(this.$el)},opened:function(){return this.children.some((function(t){return t.showWrapper}))},barStyle:function(){if(this.opened&&Object(b["c"])(this.zIndex))return{zIndex:1+this.zIndex}}},methods:{updateOffset:function(){if(this.$refs.bar){var t=this.$refs.bar.getBoundingClientRect();"down"===this.direction?this.offset=t.bottom:this.offset=window.innerHeight-t.top}},toggleItem:function(t){this.children.forEach((function(e,r){r===t?e.toggle():e.showPopup&&e.toggle(!1,{immediate:!0})}))},onClickOutside:function(){this.children.forEach((function(t){t.toggle(!1)}))}},render:function(){var t=this,e=arguments[0],r=this.children.map((function(r,n){return e("div",{attrs:{role:"button",tabindex:r.disabled?-1:0},class:vo("item",{disabled:r.disabled}),on:{click:function(){r.disabled||t.toggleItem(n)}}},[e("span",{class:[vo("title",{active:r.showPopup,down:r.showPopup===("down"===t.direction)}),r.titleClass],style:{color:r.showPopup?t.activeColor:""}},[e("div",{class:"van-ellipsis"},[r.slots("title")||r.displayTitle])])])}));return e("div",{class:vo()},[e("div",{ref:"bar",style:this.barStyle,class:vo("bar",{opened:this.opened})},[r]),this.slots("default")])}}),yo="van-empty-network-",bo={render:function(){var t=arguments[0],e=function(e,r,n){return t("stop",{attrs:{"stop-color":e,offset:r+"%","stop-opacity":n}})};return t("svg",{attrs:{viewBox:"0 0 160 160",xmlns:"http://www.w3.org/2000/svg"}},[t("defs",[t("linearGradient",{attrs:{id:yo+"1",x1:"64.022%",y1:"100%",x2:"64.022%",y2:"0%"}},[e("#FFF",0,.5),e("#F2F3F5",100)]),t("linearGradient",{attrs:{id:yo+"2",x1:"50%",y1:"0%",x2:"50%",y2:"84.459%"}},[e("#EBEDF0",0),e("#DCDEE0",100,0)]),t("linearGradient",{attrs:{id:yo+"3",x1:"100%",y1:"0%",x2:"100%",y2:"100%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:yo+"4",x1:"100%",y1:"100%",x2:"100%",y2:"0%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:yo+"5",x1:"0%",y1:"43.982%",x2:"100%",y2:"54.703%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:yo+"6",x1:"94.535%",y1:"43.837%",x2:"5.465%",y2:"54.948%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("radialGradient",{attrs:{id:yo+"7",cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54835 0 .5 -.5)"}},[e("#EBEDF0",0),e("#FFF",100,0)])]),t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("g",{attrs:{opacity:".8"}},[t("path",{attrs:{d:"M0 124V46h20v20h14v58H0z",fill:"url(#"+yo+"1)",transform:"matrix(-1 0 0 1 36 7)"}}),t("path",{attrs:{d:"M121 8h22.231v14H152v77.37h-31V8z",fill:"url(#"+yo+"1)",transform:"translate(2 7)"}})]),t("path",{attrs:{fill:"url(#"+yo+"7)",d:"M0 139h160v21H0z"}}),t("path",{attrs:{d:"M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",fill:"url(#"+yo+"2)","fill-rule":"nonzero",transform:"translate(43 36)"}}),t("g",{attrs:{opacity:".6","stroke-linecap":"round","stroke-width":"7"}},[t("path",{attrs:{d:"M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+yo+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+yo+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+yo+"4)",transform:"rotate(-180 76.483 42.257)"}}),t("path",{attrs:{d:"M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+yo+"4)",transform:"rotate(-180 89.791 42.146)"}})]),t("g",{attrs:{transform:"translate(31 105)","fill-rule":"nonzero"}},[t("rect",{attrs:{fill:"url(#"+yo+"5)",width:"98",height:"34",rx:"2"}}),t("rect",{attrs:{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.114"}}),t("rect",{attrs:{fill:"url(#"+yo+"6)",x:"15",y:"12",width:"18",height:"6",rx:"1.114"}})])])])}},wo=Object(u["a"])("empty"),Mo=wo[0],_o=wo[1],ko=["error","search","default"],So=Mo({props:{imageSize:[Number,String],description:String,image:{type:String,default:"default"}},methods:{genImageContent:function(){var t=this.$createElement,e=this.slots("image");if(e)return e;if("network"===this.image)return t(bo);var r=this.image;return-1!==ko.indexOf(r)&&(r="https://img01.yzcdn.cn/vant/empty-image-"+r+".png"),t("img",{attrs:{src:r}})},genImage:function(){var t=this.$createElement,e={width:Object(B["a"])(this.imageSize),height:Object(B["a"])(this.imageSize)};return t("div",{class:_o("image"),style:e},[this.genImageContent()])},genDescription:function(){var t=this.$createElement,e=this.slots("description")||this.description;if(e)return t("p",{class:_o("description")},[e])},genBottom:function(){var t=this.$createElement,e=this.slots();if(e)return t("div",{class:_o("bottom")},[e])}},render:function(){var t=arguments[0];return t("div",{class:_o()},[this.genImage(),this.genDescription(),this.genBottom()])}}),xo=Object(u["a"])("form"),Eo=xo[0],Ao=xo[1],Oo=Eo({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{vanForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(t){return t?this.fields.filter((function(e){return-1!==t.indexOf(e.name)})):this.fields},validateSeq:function(t){var e=this;return new Promise((function(r,n){var i=[],o=e.getFieldsByNames(t);o.reduce((function(t,e){return t.then((function(){if(!i.length)return e.validate().then((function(t){t&&i.push(t)}))}))}),Promise.resolve()).then((function(){i.length?n(i):r()}))}))},validateFields:function(t){var e=this;return new Promise((function(r,n){var i=e.getFieldsByNames(t);Promise.all(i.map((function(t){return t.validate()}))).then((function(t){t=t.filter((function(t){return t})),t.length?n(t):r()}))}))},validate:function(t){return t&&!Array.isArray(t)?this.validateField(t):this.validateFirst?this.validateSeq(t):this.validateFields(t)},validateField:function(t){var e=this.fields.filter((function(e){return e.name===t}));return e.length?new Promise((function(t,r){e[0].validate().then((function(e){e?r(e):t()}))})):Promise.reject()},resetValidation:function(t){t&&!Array.isArray(t)&&(t=[t]);var e=this.getFieldsByNames(t);e.forEach((function(t){t.resetValidation()}))},scrollToField:function(t,e){this.fields.some((function(r){return r.name===t&&(r.$el.scrollIntoView(e),!0)}))},addField:function(t){this.fields.push(t),Bt(this.fields,this)},removeField:function(t){this.fields=this.fields.filter((function(e){return e!==t}))},getValues:function(){return this.fields.reduce((function(t,e){return t[e.name]=e.formValue,t}),{})},onSubmit:function(t){t.preventDefault(),this.submit()},submit:function(){var t=this,e=this.getValues();this.validate().then((function(){t.$emit("submit",e)})).catch((function(r){t.$emit("failed",{values:e,errors:r}),t.scrollToError&&t.scrollToField(r[0].name)}))}},render:function(){var t=arguments[0];return t("form",{class:Ao(),on:{submit:this.onSubmit}},[this.slots()])}}),To=Object(u["a"])("goods-action-icon"),Co=To[0],Po=To[1],Bo=Co({mixins:[It("vanGoodsAction")],props:Object(n["a"])({},ht,{dot:Boolean,text:String,icon:String,color:String,info:[Number,String],badge:[Number,String],iconClass:null}),methods:{onClick:function(t){this.$emit("click",t),at(this.$router,this)},genIcon:function(){var t,e=this.$createElement,r=this.slots("icon"),n=null!=(t=this.badge)?t:this.info;return r?e("div",{class:Po("icon")},[r,e(Ur["a"],{attrs:{dot:this.dot,info:n}})]):e(c["a"],{class:[Po("icon"),this.iconClass],attrs:{tag:"div",dot:this.dot,name:this.icon,badge:n,color:this.color}})}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"button",tabindex:"0"},class:Po(),on:{click:this.onClick}},[this.genIcon(),this.slots()||this.text])}}),Io=Object(u["a"])("grid"),Ro=Io[0],No=Io[1],jo=Ro({mixins:[Rt("vanGrid")],props:{square:Boolean,gutter:[Number,String],iconSize:[Number,String],direction:String,clickable:Boolean,columnNum:{type:[Number,String],default:4},center:{type:Boolean,default:!0},border:{type:Boolean,default:!0}},computed:{style:function(){var t=this.gutter;if(t)return{paddingLeft:Object(B["a"])(t)}}},render:function(){var t,e=arguments[0];return e("div",{style:this.style,class:[No(),(t={},t[E]=this.border&&!this.gutter,t)]},[this.slots()])}}),Lo=Object(u["a"])("grid-item"),Uo=Lo[0],Do=Lo[1],Fo=Uo({mixins:[It("vanGrid")],props:Object(n["a"])({},ht,{dot:Boolean,text:String,icon:String,iconPrefix:String,info:[Number,String],badge:[Number,String]}),computed:{style:function(){var t=this.parent,e=t.square,r=t.gutter,n=t.columnNum,i=100/n+"%",o={flexBasis:i};if(e)o.paddingTop=i;else if(r){var s=Object(B["a"])(r);o.paddingRight=s,this.index>=n&&(o.marginTop=s)}return o},contentStyle:function(){var t=this.parent,e=t.square,r=t.gutter;if(e&&r){var n=Object(B["a"])(r);return{right:n,bottom:n,height:"auto"}}}},methods:{onClick:function(t){this.$emit("click",t),at(this.$router,this)},genIcon:function(){var t,e=this.$createElement,r=this.slots("icon"),n=null!=(t=this.badge)?t:this.info;return r?e("div",{class:Do("icon-wrapper")},[r,e(Ur["a"],{attrs:{dot:this.dot,info:n}})]):this.icon?e(c["a"],{attrs:{name:this.icon,dot:this.dot,badge:n,size:this.parent.iconSize,classPrefix:this.iconPrefix},class:Do("icon")}):void 0},getText:function(){var t=this.$createElement,e=this.slots("text");return e||(this.text?t("span",{class:Do("text")},[this.text]):void 0)},genContent:function(){var t=this.slots();return t||[this.genIcon(),this.getText()]}},render:function(){var t,e=arguments[0],r=this.parent,n=r.center,i=r.border,o=r.square,s=r.gutter,a=r.direction,u=r.clickable;return e("div",{class:[Do({square:o})],style:this.style},[e("div",{style:this.contentStyle,attrs:{role:u?"button":null,tabindex:u?0:null},class:[Do("content",[a,{center:n,square:o,clickable:u,surround:i&&s}]),(t={},t[x]=i,t)],on:{click:this.onClick}},[this.genContent()])])}}),zo=Object(u["a"])("image-preview"),qo=zo[0],Ho=zo[1],$o=Object(u["a"])("swipe"),Vo=$o[0],Ko=$o[1],Wo=Vo({mixins:[U["a"],Rt("vanSwipe"),Object(Lr["a"])((function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var e=this.vertical?"height":"width",r=this.vertical?"width":"height";t[e]=this.trackSize+"px",t[r]=this[r]?this[r]+"px":""}return t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!Nr(this.$el)){clearTimeout(this.timer);var e={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height,this.offset=this.getTargetOffset(t),this.children.forEach((function(t){t.offset=0})),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(Object(k["c"])(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,r=Date.now()-this.touchStartTime,n=e/r,i=Math.abs(n)>.25||Math.abs(e)>t/2;if(i&&this.isCorrectDirection){var o=this.vertical?this.offsetY:this.offsetX,s=0;s=this.loop?o>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:s,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,r=this.count,n=this.maxCount;return t?this.loop?R(e+t,-1,r):R(e+t,0,n):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var r=t*this.size;this.loop||(r=Math.min(r,-this.minOffset));var n=e-r;return this.loop||(n=R(n,this.minOffset,0)),n},move:function(t){var e=t.pace,r=void 0===e?0:e,n=t.offset,i=void 0===n?0:n,o=t.emitChange,s=this.loop,a=this.count,u=this.active,h=this.children,l=this.trackSize,c=this.minOffset;if(!(a<=1)){var f=this.getTargetActive(r),d=this.getTargetOffset(f,i);if(s){if(h[0]&&d!==c){var p=d<c;h[0].offset=p?l:0}if(h[a-1]&&0!==d){var m=d>0;h[a-1].offset=m?-l:0}}this.active=f,this.offset=d,o&&f!==u&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(Ge["b"])((function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})}))},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(Ge["b"])((function(){t.swiping=!1,t.move({pace:1,emitChange:!0})}))},swipeTo:function(t,e){var r=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(Ge["b"])((function(){var n;n=r.loop&&t===r.count?0===r.active?0:t:t%r.count,e.immediate?Object(Ge["b"])((function(){r.swiping=!1})):r.swiping=!1,r.move({pace:n-r.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.next(),t.autoPlay()}),e))},genIndicator:function(){var t=this,e=this.$createElement,r=this.count,n=this.activeIndicator,i=this.slots("indicator");return i||(this.showIndicators&&r>1?e("div",{class:Ko("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(r)).map((function(r,i){return e("i",{class:Ko("indicator",{active:i===n}),style:i===n?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:Ko()},[t("div",{ref:"track",style:this.trackStyle,class:Ko("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}}),Go=Object(u["a"])("swipe-item"),Zo=Go[0],Jo=Go[1],Xo=Zo({mixins:[It("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var t=this;this.$nextTick((function(){t.mounted=!0}))},computed:{style:function(){var t={},e=this.parent,r=e.size,n=e.vertical;return r&&(t[n?"height":"width"]=r+"px"),this.offset&&(t.transform="translate"+(n?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.inited,r=this.parent,n=this.mounted;if(!r.lazyRender||e)return!0;if(!n)return!1;var i=r.activeIndicator,o=r.count-1,s=0===i&&r.loop?o:i-1,a=i===o&&r.loop?0:i+1,u=t===i||t===s||t===a;return u&&(this.inited=!0),u}},render:function(){var t=arguments[0];return t("div",{class:Jo(),style:this.style,on:Object(n["a"])({},this.$listeners)},[this.shouldRender&&this.slots()])}});function Yo(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}var Qo,ts={mixins:[U["a"]],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var t=this.rootWidth,e=this.rootHeight,r=e/t;return this.imageRatio>r},imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==t){var r=this.moveX/t,n=this.moveY/t;e.transform="scale("+t+", "+t+") translate("+r+"px, "+n+"px)"}return e},maxMoveX:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*t-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*t-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(t){t||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(t){t=R(t,+this.minZoom,+this.maxZoom),t!==this.scale&&(this.scale=t,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},onTouchStart:function(t){var e=t.touches,r=this.offsetX,n=void 0===r?0:r;this.touchStart(t),this.touchStartTime=new Date,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===e.length&&1!==this.scale,this.zooming=2===e.length&&!n,this.zooming&&(this.startScale=this.scale,this.startDistance=Yo(t.touches))},onTouchMove:function(t){var e=t.touches;if(this.touchMove(t),(this.moving||this.zooming)&&Object(k["c"])(t,!0),this.moving){var r=this.deltaX+this.startMoveX,n=this.deltaY+this.startMoveY;this.moveX=R(r,-this.maxMoveX,this.maxMoveX),this.moveY=R(n,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var i=Yo(e),o=this.startScale*i/this.startDistance;this.setScale(o)}},onTouchEnd:function(t){var e=!1;(this.moving||this.zooming)&&(e=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.zooming&&(this.moveX=R(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=R(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),Object(k["c"])(t,e),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var t=this,e=this.offsetX,r=void 0===e?0:e,n=this.offsetY,i=void 0===n?0:n,o=new Date-this.touchStartTime,s=250,a=10;r<a&&i<a&&o<s&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout((function(){t.$emit("close"),t.doubleTapTimer=null}),s))},onLoad:function(t){var e=t.target,r=e.naturalWidth,n=e.naturalHeight;this.imageRatio=n/r}},render:function(){var t=arguments[0],e={loading:function(){return t(d["a"],{attrs:{type:"spinner"}})}};return t(Xo,{class:Ho("swipe-item")},[t(_r,{attrs:{src:this.src,fit:"contain"},class:Ho("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:e,on:{load:this.onLoad}})])}},es=qo({mixins:[U["a"],Object(l["a"])({skipToggleEvent:!0}),Object(Lr["a"])((function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)}))],props:{className:null,closeable:Boolean,asyncClose:Boolean,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},transition:{type:String,default:"van-fade"},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:Ho("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(t){var e=this;t?(this.setActive(+this.startPosition),this.$nextTick((function(){e.resize(),e.$refs.swipe.swipeTo(+e.startPosition,{immediate:!0})}))):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var t=this.$el.getBoundingClientRect();this.rootWidth=t.width,this.rootHeight=t.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(t){this.$emit("scale",t)},setActive:function(t){t!==this.active&&(this.active=t,this.$emit("change",t))},genIndex:function(){var t=this.$createElement;if(this.showIndex)return t("div",{class:Ho("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var t=this.$createElement,e=this.slots("cover");if(e)return t("div",{class:Ho("cover")},[e])},genImages:function(){var t=this,e=this.$createElement;return e(Wo,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:Ho("swipe"),on:{change:this.setActive}},[this.images.map((function(r){return e(ts,{attrs:{src:r,show:t.value,active:t.active,maxZoom:t.maxZoom,minZoom:t.minZoom,rootWidth:t.rootWidth,rootHeight:t.rootHeight},on:{scale:t.emitScale,close:t.emitClose}})}))])},genClose:function(){var t=this.$createElement;if(this.closeable)return t(c["a"],{attrs:{role:"button",name:this.closeIcon},class:Ho("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(t,e){this.$refs.swipe&&this.$refs.swipe.swipeTo(t,e)}},render:function(){var t=arguments[0];return t("transition",{attrs:{name:this.transition},on:{afterLeave:this.onClosed}},[this.shouldRender?t("div",{directives:[{name:"show",value:this.value}],class:[Ho(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()]):null])}}),rs={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,transition:"van-fade",getContainer:"body",startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},ns=function(){Qo=new(a.a.extend(es))({el:document.createElement("div")}),document.body.appendChild(Qo.$el),Qo.$on("change",(function(t){Qo.onChange&&Qo.onChange(t)})),Qo.$on("scale",(function(t){Qo.onScale&&Qo.onScale(t)}))},is=function(t,e){if(void 0===e&&(e=0),!b["h"]){Qo||ns();var r=Array.isArray(t)?{images:t,startPosition:e}:t;return Object(n["a"])(Qo,rs,r),Qo.$once("input",(function(t){Qo.value=t})),Qo.$once("closed",(function(){Qo.images=[]})),r.onClose&&(Qo.$off("close"),Qo.$once("close",r.onClose)),Qo}};is.Component=es,is.install=function(){a.a.use(es)};var os=is,ss=Object(u["a"])("index-anchor"),as=ss[0],us=ss[1],hs=as({mixins:[It("vanIndexBar",{indexKey:"childrenIndex"})],props:{index:[Number,String]},data:function(){return{top:0,left:null,rect:{top:0,height:0},width:null,active:!1}},computed:{sticky:function(){return this.active&&this.parent.sticky},anchorStyle:function(){if(this.sticky)return{zIndex:""+this.parent.zIndex,left:this.left?this.left+"px":null,width:this.width?this.width+"px":null,transform:"translate3d(0, "+this.top+"px, 0)",color:this.parent.highlightColor}}},mounted:function(){var t=this.$el.getBoundingClientRect();this.rect.height=t.height},methods:{scrollIntoView:function(){this.$el.scrollIntoView()},getRect:function(t,e){var r=this.$el,n=r.getBoundingClientRect();return this.rect.height=n.height,t===window||t===document.body?this.rect.top=n.top+Object(yt["b"])():this.rect.top=n.top+Object(yt["c"])(t)-e.top,this.rect}},render:function(){var t,e=arguments[0],r=this.sticky;return e("div",{style:{height:r?this.rect.height+"px":null}},[e("div",{style:this.anchorStyle,class:[us({sticky:r}),(t={},t[O]=r,t)]},[this.slots("default")||this.index])])}});function ls(){for(var t=[],e="A".charCodeAt(0),r=0;r<26;r++)t.push(String.fromCharCode(e+r));return t}var cs=Object(u["a"])("index-bar"),fs=cs[0],ds=cs[1],ps=fs({mixins:[U["a"],Rt("vanIndexBar"),Object(Lr["a"])((function(t){this.scroller||(this.scroller=Object(yt["d"])(this.$el)),t(this.scroller,"scroll",this.onScroll)}))],props:{zIndex:[Number,String],highlightColor:String,sticky:{type:Boolean,default:!0},stickyOffsetTop:{type:Number,default:0},indexList:{type:Array,default:ls}},data:function(){return{activeAnchorIndex:null}},computed:{sidebarStyle:function(){if(Object(b["c"])(this.zIndex))return{zIndex:this.zIndex+1}},highlightStyle:function(){var t=this.highlightColor;if(t)return{color:t}}},watch:{indexList:function(){this.$nextTick(this.onScroll)},activeAnchorIndex:function(t){t&&this.$emit("change",t)}},methods:{onScroll:function(){var t=this;if(!Nr(this.$el)){var e=Object(yt["c"])(this.scroller),r=this.getScrollerRect(),n=this.children.map((function(e){return e.getRect(t.scroller,r)})),i=this.getActiveAnchorIndex(e,n);this.activeAnchorIndex=this.indexList[i],this.sticky&&this.children.forEach((function(o,s){if(s===i||s===i-1){var a=o.$el.getBoundingClientRect();o.left=a.left,o.width=a.width}else o.left=null,o.width=null;if(s===i)o.active=!0,o.top=Math.max(t.stickyOffsetTop,n[s].top-e)+r.top;else if(s===i-1){var u=n[i].top-e;o.active=u>0,o.top=u+r.top-n[s].height}else o.active=!1}))}},getScrollerRect:function(){return this.scroller.getBoundingClientRect?this.scroller.getBoundingClientRect():{top:0,left:0}},getActiveAnchorIndex:function(t,e){for(var r=this.children.length-1;r>=0;r--){var n=r>0?e[r-1].height:0,i=this.sticky?n+this.stickyOffsetTop:0;if(t+i>=e[r].top)return r}return-1},onClick:function(t){this.scrollToElement(t.target)},onTouchMove:function(t){if(this.touchMove(t),"vertical"===this.direction){Object(k["c"])(t);var e=t.touches[0],r=e.clientX,n=e.clientY,i=document.elementFromPoint(r,n);if(i){var o=i.dataset.index;this.touchActiveIndex!==o&&(this.touchActiveIndex=o,this.scrollToElement(i))}}},scrollTo:function(t){var e=this.children.filter((function(e){return String(e.index)===t}));e[0]&&(e[0].scrollIntoView(),this.sticky&&this.stickyOffsetTop&&Object(yt["g"])(Object(yt["b"])()-this.stickyOffsetTop),this.$emit("select",e[0].index))},scrollToElement:function(t){var e=t.dataset.index;this.scrollTo(e)},onTouchEnd:function(){this.active=null}},render:function(){var t=this,e=arguments[0],r=this.indexList.map((function(r){var n=r===t.activeAnchorIndex;return e("span",{class:ds("index",{active:n}),style:n?t.highlightStyle:null,attrs:{"data-index":r}},[r])}));return e("div",{class:ds()},[e("div",{class:ds("sidebar"),style:this.sidebarStyle,on:{click:this.onClick,touchstart:this.touchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[r]),this.slots("default")])}}),ms=Object(u["a"])("list"),vs=ms[0],gs=ms[1],ys=ms[2],bs=vs({mixins:[Object(Lr["a"])((function(t){this.scroller||(this.scroller=Object(yt["d"])(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var e,r=t.$el,n=t.scroller,i=t.offset,o=t.direction;e=n.getBoundingClientRect?n.getBoundingClientRect():{top:0,bottom:n.innerHeight};var s=e.bottom-e.top;if(!s||Nr(r))return!1;var a=!1,u=t.$refs.placeholder.getBoundingClientRect();a="up"===o?e.top-u.top<=i:u.bottom-e.bottom<=i,a&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{key:"loading",class:gs("loading")},[this.slots("loading")||t(d["a"],{attrs:{size:"16"}},[this.loadingText||ys("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var e=this.slots("finished")||this.finishedText;if(e)return t("div",{class:gs("finished-text")},[e])}},genErrorText:function(){var t=this.$createElement;if(this.error){var e=this.slots("error")||this.errorText;if(e)return t("div",{on:{click:this.clickErrorText},class:gs("error-text")},[e])}}},render:function(){var t=arguments[0],e=t("div",{ref:"placeholder",key:"placeholder",class:gs("placeholder")});return t("div",{class:gs(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():e,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():e])}}),ws=r("3c69"),Ms=Object(u["a"])("nav-bar"),_s=Ms[0],ks=Ms[1],Ss=_s({props:{title:String,fixed:Boolean,zIndex:[Number,String],leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,border:{type:Boolean,default:!0}},data:function(){return{height:null}},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.navBar.getBoundingClientRect().height)},methods:{genLeft:function(){var t=this.$createElement,e=this.slots("left");return e||[this.leftArrow&&t(c["a"],{class:ks("arrow"),attrs:{name:"arrow-left"}}),this.leftText&&t("span",{class:ks("text")},[this.leftText])]},genRight:function(){var t=this.$createElement,e=this.slots("right");return e||(this.rightText?t("span",{class:ks("text")},[this.rightText]):void 0)},genNavBar:function(){var t,e=this.$createElement;return e("div",{ref:"navBar",style:{zIndex:this.zIndex},class:[ks({fixed:this.fixed,"safe-area-inset-top":this.safeAreaInsetTop}),(t={},t[O]=this.border,t)]},[e("div",{class:ks("content")},[this.hasLeft()&&e("div",{class:ks("left"),on:{click:this.onClickLeft}},[this.genLeft()]),e("div",{class:[ks("title"),"van-ellipsis"]},[this.slots("title")||this.title]),this.hasRight()&&e("div",{class:ks("right"),on:{click:this.onClickRight}},[this.genRight()])])])},hasLeft:function(){return this.leftArrow||this.leftText||this.slots("left")},hasRight:function(){return this.rightText||this.slots("right")},onClickLeft:function(t){this.$emit("click-left",t)},onClickRight:function(t){this.$emit("click-right",t)}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:ks("placeholder"),style:{height:this.height+"px"}},[this.genNavBar()]):this.genNavBar()}}),xs=Object(u["a"])("notice-bar"),Es=xs[0],As=xs[1],Os=Es({mixins:[Object(Lr["a"])((function(t){t(window,"pageshow",this.start)}))],inject:{vanPopup:{default:null}},props:{text:String,mode:String,color:String,leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null},delay:{type:[Number,String],default:1},speed:{type:[Number,String],default:60}},data:function(){return{show:!0,offset:0,duration:0,wrapWidth:0,contentWidth:0}},watch:{scrollable:"start",text:{handler:"start",immediate:!0}},created:function(){var t=this;this.vanPopup&&this.vanPopup.onReopen((function(){t.start()}))},activated:function(){this.start()},methods:{onClickIcon:function(t){"closeable"===this.mode&&(this.show=!1,this.$emit("close",t))},onTransitionEnd:function(){var t=this;this.offset=this.wrapWidth,this.duration=0,Object(Ge["c"])((function(){Object(Ge["b"])((function(){t.offset=-t.contentWidth,t.duration=(t.contentWidth+t.wrapWidth)/t.speed,t.$emit("replay")}))}))},reset:function(){this.offset=0,this.duration=0,this.wrapWidth=0,this.contentWidth=0},start:function(){var t=this,e=Object(b["c"])(this.delay)?1e3*this.delay:0;this.reset(),clearTimeout(this.startTimer),this.startTimer=setTimeout((function(){var e=t.$refs,r=e.wrap,n=e.content;if(r&&n&&!1!==t.scrollable){var i=r.getBoundingClientRect().width,o=n.getBoundingClientRect().width;(t.scrollable||o>i)&&Object(Ge["b"])((function(){t.offset=-o,t.duration=o/t.speed,t.wrapWidth=i,t.contentWidth=o}))}}),e)}},render:function(){var t=this,e=arguments[0],r=this.slots,n=this.mode,i=this.leftIcon,o=this.onClickIcon,s={color:this.color,background:this.background},a={transform:this.offset?"translateX("+this.offset+"px)":"",transitionDuration:this.duration+"s"};function u(){var t=r("left-icon");return t||(i?e(c["a"],{class:As("left-icon"),attrs:{name:i}}):void 0)}function h(){var t,i=r("right-icon");return i||("closeable"===n?t="cross":"link"===n&&(t="arrow"),t?e(c["a"],{class:As("right-icon"),attrs:{name:t},on:{click:o}}):void 0)}return e("div",{attrs:{role:"alert"},directives:[{name:"show",value:this.show}],class:As({wrapable:this.wrapable}),style:s,on:{click:function(e){t.$emit("click",e)}}},[u(),e("div",{ref:"wrap",class:As("wrap"),attrs:{role:"marquee"}},[e("div",{ref:"content",class:[As("content"),{"van-ellipsis":!1===this.scrollable&&!this.wrapable}],style:a,on:{transitionend:this.onTransitionEnd}},[this.slots()||this.text])]),h()])}}),Ts=r("f564"),Cs={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 32 22",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",fill:"currentColor"}})])}},Ps={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 30 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",fill:"currentColor"}})])}},Bs=Object(u["a"])("key"),Is=Bs[0],Rs=Bs[1],Ns=Is({mixins:[U["a"]],props:{type:String,text:[Number,String],color:String,wider:Boolean,large:Boolean,loading:Boolean},data:function(){return{active:!1}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{onTouchStart:function(t){t.stopPropagation(),this.touchStart(t),this.active=!0},onTouchMove:function(t){this.touchMove(t),this.direction&&(this.active=!1)},onTouchEnd:function(t){this.active&&(this.slots("default")||t.preventDefault(),this.active=!1,this.$emit("press",this.text,this.type))},genContent:function(){var t=this.$createElement,e="extra"===this.type,r="delete"===this.type,n=this.slots("default")||this.text;return this.loading?t(d["a"],{class:Rs("loading-icon")}):r?n||t(Cs,{class:Rs("delete-icon")}):e?n||t(Ps,{class:Rs("collapse-icon")}):n}},render:function(){var t=arguments[0];return t("div",{class:Rs("wrapper",{wider:this.wider})},[t("div",{attrs:{role:"button",tabindex:"0"},class:Rs([this.color,{large:this.large,active:this.active,delete:"delete"===this.type}])},[this.genContent()])])}}),js=Object(u["a"])("number-keyboard"),Ls=js[0],Us=js[1],Ds=Ls({mixins:[Object(ao["a"])(),Object(Lr["a"])((function(t){this.hideOnClickOutside&&t(document.body,"touchstart",this.onBlur)}))],model:{event:"update:value"},props:{show:Boolean,title:String,zIndex:[Number,String],randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,theme:{type:String,default:"default"},value:{type:String,default:""},extraKey:{type:[String,Array],default:""},maxlength:{type:[Number,String],default:Number.MAX_VALUE},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0}},watch:{show:function(t){this.transition||this.$emit(t?"show":"hide")}},computed:{keys:function(){return"custom"===this.theme?this.genCustomKeys():this.genDefaultKeys()}},methods:{genBasicKeys:function(){for(var t=[],e=1;e<=9;e++)t.push({text:e});return this.randomKeyOrder&&t.sort((function(){return Math.random()>.5?1:-1})),t},genDefaultKeys:function(){return[].concat(this.genBasicKeys(),[{text:this.extraKey,type:"extra"},{text:0},{text:this.showDeleteKey?this.deleteButtonText:"",type:this.showDeleteKey?"delete":""}])},genCustomKeys:function(){var t=this.genBasicKeys(),e=this.extraKey,r=Array.isArray(e)?e:[e];return 1===r.length?t.push({text:0,wider:!0},{text:r[0],type:"extra"}):2===r.length&&t.push({text:r[0],type:"extra"},{text:0},{text:r[1],type:"extra"}),t},onBlur:function(){this.show&&this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(t,e){if(""!==t){var r=this.value;"delete"===e?(this.$emit("delete"),this.$emit("update:value",r.slice(0,r.length-1))):"close"===e?this.onClose():r.length<this.maxlength&&(this.$emit("input",t),this.$emit("update:value",r+t))}else"extra"===e&&this.onBlur()},genTitle:function(){var t=this.$createElement,e=this.title,r=this.theme,n=this.closeButtonText,i=this.slots("title-left"),o=n&&"default"===r,s=e||o||i;if(s)return t("div",{class:Us("header")},[i&&t("span",{class:Us("title-left")},[i]),e&&t("h2",{class:Us("title")},[e]),o&&t("button",{attrs:{type:"button"},class:Us("close"),on:{click:this.onClose}},[n])])},genKeys:function(){var t=this,e=this.$createElement;return this.keys.map((function(r){return e(Ns,{key:r.text,attrs:{text:r.text,type:r.type,wider:r.wider,color:r.color},on:{press:t.onPress}},["delete"===r.type&&t.slots("delete"),"extra"===r.type&&t.slots("extra-key")])}))},genSidebar:function(){var t=this.$createElement;if("custom"===this.theme)return t("div",{class:Us("sidebar")},[this.showDeleteKey&&t(Ns,{attrs:{large:!0,text:this.deleteButtonText,type:"delete"},on:{press:this.onPress}},[this.slots("delete")]),t(Ns,{attrs:{large:!0,text:this.closeButtonText,type:"close",color:"blue",loading:this.closeButtonLoading},on:{press:this.onPress}})])}},render:function(){var t=arguments[0],e=this.genTitle();return t("transition",{attrs:{name:this.transition?"van-slide-up":""}},[t("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:Us({unfit:!this.safeAreaInsetBottom,"with-title":e}),on:{touchstart:k["d"],animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[e,t("div",{class:Us("body")},[t("div",{class:Us("keys")},[this.genKeys()]),this.genSidebar()])])])}}),Fs=r("6e47"),zs=Object(u["a"])("pagination"),qs=zs[0],Hs=zs[1],$s=zs[2];function Vs(t,e,r){return{number:t,text:e,active:r}}var Ks=qs({props:{prevText:String,nextText:String,forceEllipses:Boolean,mode:{type:String,default:"multi"},value:{type:Number,default:0},pageCount:{type:[Number,String],default:0},totalItems:{type:[Number,String],default:0},itemsPerPage:{type:[Number,String],default:10},showPageSize:{type:[Number,String],default:5}},computed:{count:function(){var t=this.pageCount||Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(1,t)},pages:function(){var t=[],e=this.count,r=+this.showPageSize;if("multi"!==this.mode)return t;var n=1,i=e,o=r<e;o&&(n=Math.max(this.value-Math.floor(r/2),1),i=n+r-1,i>e&&(i=e,n=i-r+1));for(var s=n;s<=i;s++){var a=Vs(s,s,s===this.value);t.push(a)}if(o&&r>0&&this.forceEllipses){if(n>1){var u=Vs(n-1,"...",!1);t.unshift(u)}if(i<e){var h=Vs(i+1,"...",!1);t.push(h)}}return t}},watch:{value:{handler:function(t){this.select(t||this.value)},immediate:!0}},methods:{select:function(t,e){t=Math.min(this.count,Math.max(1,t)),this.value!==t&&(this.$emit("input",t),e&&this.$emit("change",t))}},render:function(){var t,e,r=this,n=arguments[0],i=this.value,o="multi"!==this.mode,s=function(t){return function(){r.select(t,!0)}};return n("ul",{class:Hs({simple:o})},[n("li",{class:[Hs("item",{disabled:1===i}),Hs("prev"),x],on:{click:s(i-1)}},[(null!=(t=this.slots("prev-text"))?t:this.prevText)||$s("prev")]),this.pages.map((function(t){var e;return n("li",{class:[Hs("item",{active:t.active}),Hs("page"),x],on:{click:s(t.number)}},[null!=(e=r.slots("page",t))?e:t.text])})),o&&n("li",{class:Hs("page-desc")},[this.slots("pageDesc")||i+"/"+this.count]),n("li",{class:[Hs("item",{disabled:i===this.count}),Hs("next"),x],on:{click:s(i+1)}},[(null!=(e=this.slots("next-text"))?e:this.nextText)||$s("next")])])}}),Ws=Object(u["a"])("panel"),Gs=Ws[0],Zs=Ws[1];function Js(t,e,r,n){var i=function(){return[r.header?r.header():t(mt,{attrs:{icon:e.icon,label:e.desc,title:e.title,value:e.status,valueClass:Zs("header-value")},class:Zs("header")}),t("div",{class:Zs("content")},[r.default&&r.default()]),r.footer&&t("div",{class:[Zs("footer"),E]},[r.footer()])]};return t(fn,o()([{class:Zs(),scopedSlots:{default:i}},Object(h["b"])(n,!0)]))}Js.props={icon:String,desc:String,title:String,status:String};var Xs=Gs(Js),Ys=Object(u["a"])("password-input"),Qs=Ys[0],ta=Ys[1];function ea(t,e,r,n){for(var i,s=e.mask,a=e.value,u=e.length,l=e.gutter,c=e.focused,f=e.errorInfo,d=f||e.info,p=[],m=0;m<u;m++){var v,g=a[m],y=0!==m&&!l,b=c&&m===a.length,w=void 0;0!==m&&l&&(w={marginLeft:Object(B["a"])(l)}),p.push(t("li",{class:[(v={},v[A]=y,v),ta("item",{focus:b})],style:w},[s?t("i",{style:{visibility:g?"visible":"hidden"}}):g,b&&t("div",{class:ta("cursor")})]))}return t("div",{class:ta()},[t("ul",o()([{class:[ta("security"),(i={},i[T]=!l,i)],on:{touchstart:function(t){t.stopPropagation(),Object(h["a"])(n,"focus",t)}}},Object(h["b"])(n,!0)]),[p]),d&&t("div",{class:ta(f?"error-info":"info")},[d])])}ea.props={info:String,gutter:[Number,String],focused:Boolean,errorInfo:String,mask:{type:Boolean,default:!0},value:{type:String,default:""},length:{type:[Number,String],default:6}};var ra=Qs(ea);function na(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function ia(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function oa(t){var e=ia(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function sa(t){var e=ia(t).Element;return t instanceof e||t instanceof Element}function aa(t){var e=ia(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ua(t){if("undefined"===typeof ShadowRoot)return!1;var e=ia(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ha(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function la(t){return t!==ia(t)&&aa(t)?ha(t):oa(t)}function ca(t){return t?(t.nodeName||"").toLowerCase():null}function fa(t){return((sa(t)?t.ownerDocument:t.document)||window.document).documentElement}function da(t){return na(fa(t)).left+oa(t).scrollLeft}function pa(t){return ia(t).getComputedStyle(t)}function ma(t){var e=pa(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function va(t,e,r){void 0===r&&(r=!1);var n=fa(e),i=na(t),o=aa(e),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!r)&&(("body"!==ca(e)||ma(n))&&(s=la(e)),aa(e)?(a=na(e),a.x+=e.clientLeft,a.y+=e.clientTop):n&&(a.x=da(n))),{x:i.left+s.scrollLeft-a.x,y:i.top+s.scrollTop-a.y,width:i.width,height:i.height}}function ga(t){var e=na(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function ya(t){return"html"===ca(t)?t:t.assignedSlot||t.parentNode||(ua(t)?t.host:null)||fa(t)}function ba(t){return["html","body","#document"].indexOf(ca(t))>=0?t.ownerDocument.body:aa(t)&&ma(t)?t:ba(ya(t))}function wa(t,e){var r;void 0===e&&(e=[]);var n=ba(t),i=n===(null==(r=t.ownerDocument)?void 0:r.body),o=ia(n),s=i?[o].concat(o.visualViewport||[],ma(n)?n:[]):n,a=e.concat(s);return i?a:a.concat(wa(ya(s)))}function Ma(t){return["table","td","th"].indexOf(ca(t))>=0}function _a(t){return aa(t)&&"fixed"!==pa(t).position?t.offsetParent:null}function ka(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),r=-1!==navigator.userAgent.indexOf("Trident");if(r&&aa(t)){var n=pa(t);if("fixed"===n.position)return null}var i=ya(t);while(aa(i)&&["html","body"].indexOf(ca(i))<0){var o=pa(i);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return i;i=i.parentNode}return null}function Sa(t){var e=ia(t),r=_a(t);while(r&&Ma(r)&&"static"===pa(r).position)r=_a(r);return r&&("html"===ca(r)||"body"===ca(r)&&"static"===pa(r).position)?e:r||ka(t)||e}var xa="top",Ea="bottom",Aa="right",Oa="left",Ta="auto",Ca=[xa,Ea,Aa,Oa],Pa="start",Ba="end",Ia=[].concat(Ca,[Ta]).reduce((function(t,e){return t.concat([e,e+"-"+Pa,e+"-"+Ba])}),[]),Ra="beforeRead",Na="read",ja="afterRead",La="beforeMain",Ua="main",Da="afterMain",Fa="beforeWrite",za="write",qa="afterWrite",Ha=[Ra,Na,ja,La,Ua,Da,Fa,za,qa];function $a(t){var e=new Map,r=new Set,n=[];function i(t){r.add(t.name);var o=[].concat(t.requires||[],t.requiresIfExists||[]);o.forEach((function(t){if(!r.has(t)){var n=e.get(t);n&&i(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){r.has(t.name)||i(t)})),n}function Va(t){var e=$a(t);return Ha.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}function Ka(t){var e;return function(){return e||(e=new Promise((function(r){Promise.resolve().then((function(){e=void 0,r(t())}))}))),e}}function Wa(t){return t.split("-")[0]}function Ga(t){var e=t.reduce((function(t,e){var r=t[e.name];return t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}var Za=Math.round;function Ja(t){return t.split("-")[1]}function Xa(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ya(t){var e,r=t.reference,n=t.element,i=t.placement,o=i?Wa(i):null,s=i?Ja(i):null,a=r.x+r.width/2-n.width/2,u=r.y+r.height/2-n.height/2;switch(o){case xa:e={x:a,y:r.y-n.height};break;case Ea:e={x:a,y:r.y+r.height};break;case Aa:e={x:r.x+r.width,y:u};break;case Oa:e={x:r.x-n.width,y:u};break;default:e={x:r.x,y:r.y}}var h=o?Xa(o):null;if(null!=h){var l="y"===h?"height":"width";switch(s){case Pa:e[h]=e[h]-(r[l]/2-n[l]/2);break;case Ba:e[h]=e[h]+(r[l]/2-n[l]/2);break}}return e}var Qa={placement:"bottom",modifiers:[],strategy:"absolute"};function tu(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some((function(t){return!(t&&"function"===typeof t.getBoundingClientRect)}))}function eu(t){void 0===t&&(t={});var e=t,r=e.defaultModifiers,n=void 0===r?[]:r,i=e.defaultOptions,o=void 0===i?Qa:i;return function(t,e,r){void 0===r&&(r=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qa,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},s=[],a=!1,u={state:i,setOptions:function(r){l(),i.options=Object.assign({},o,i.options,r),i.scrollParents={reference:sa(t)?wa(t):t.contextElement?wa(t.contextElement):[],popper:wa(e)};var s=Va(Ga([].concat(n,i.options.modifiers)));return i.orderedModifiers=s.filter((function(t){return t.enabled})),h(),u.update()},forceUpdate:function(){if(!a){var t=i.elements,e=t.reference,r=t.popper;if(tu(e,r)){i.rects={reference:va(e,Sa(r),"fixed"===i.options.strategy),popper:ga(r)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(t){return i.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<i.orderedModifiers.length;n++)if(!0!==i.reset){var o=i.orderedModifiers[n],s=o.fn,h=o.options,l=void 0===h?{}:h,c=o.name;"function"===typeof s&&(i=s({state:i,options:l,name:c,instance:u})||i)}else i.reset=!1,n=-1}}},update:Ka((function(){return new Promise((function(t){u.forceUpdate(),t(i)}))})),destroy:function(){l(),a=!0}};if(!tu(t,e))return u;function h(){i.orderedModifiers.forEach((function(t){var e=t.name,r=t.options,n=void 0===r?{}:r,o=t.effect;if("function"===typeof o){var a=o({state:i,name:e,instance:u,options:n}),h=function(){};s.push(a||h)}}))}function l(){s.forEach((function(t){return t()})),s=[]}return u.setOptions(r).then((function(t){!a&&r.onFirstUpdate&&r.onFirstUpdate(t)})),u}}var ru={passive:!0};function nu(t){var e=t.state,r=t.instance,n=t.options,i=n.scroll,o=void 0===i||i,s=n.resize,a=void 0===s||s,u=ia(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&h.forEach((function(t){t.addEventListener("scroll",r.update,ru)})),a&&u.addEventListener("resize",r.update,ru),function(){o&&h.forEach((function(t){t.removeEventListener("scroll",r.update,ru)})),a&&u.removeEventListener("resize",r.update,ru)}}var iu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:nu,data:{}};function ou(t){var e=t.state,r=t.name;e.modifiersData[r]=Ya({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var su={name:"popperOffsets",enabled:!0,phase:"read",fn:ou,data:{}},au={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uu(t){var e=t.x,r=t.y,n=window,i=n.devicePixelRatio||1;return{x:Za(Za(e*i)/i)||0,y:Za(Za(r*i)/i)||0}}function hu(t){var e,r=t.popper,n=t.popperRect,i=t.placement,o=t.offsets,s=t.position,a=t.gpuAcceleration,u=t.adaptive,h=t.roundOffsets,l=!0===h?uu(o):"function"===typeof h?h(o):o,c=l.x,f=void 0===c?0:c,d=l.y,p=void 0===d?0:d,m=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),g=Oa,y=xa,b=window;if(u){var w=Sa(r),M="clientHeight",_="clientWidth";w===ia(r)&&(w=fa(r),"static"!==pa(w).position&&(M="scrollHeight",_="scrollWidth")),w=w,i===xa&&(y=Ea,p-=w[M]-n.height,p*=a?1:-1),i===Oa&&(g=Aa,f-=w[_]-n.width,f*=a?1:-1)}var k,S=Object.assign({position:s},u&&au);return a?Object.assign({},S,(k={},k[y]=v?"0":"",k[g]=m?"0":"",k.transform=(b.devicePixelRatio||1)<2?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",k)):Object.assign({},S,(e={},e[y]=v?p+"px":"",e[g]=m?f+"px":"",e.transform="",e))}function lu(t){var e=t.state,r=t.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,s=void 0===o||o,a=r.roundOffsets,u=void 0===a||a,h={placement:Wa(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,hu(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,hu(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var cu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lu,data:{}};function fu(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{},n=e.attributes[t]||{},i=e.elements[t];aa(i)&&ca(i)&&(Object.assign(i.style,r),Object.keys(n).forEach((function(t){var e=n[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))}function du(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]),s=o.reduce((function(t,e){return t[e]="",t}),{});aa(n)&&ca(n)&&(Object.assign(n.style,s),Object.keys(i).forEach((function(t){n.removeAttribute(t)})))}))}}var pu={name:"applyStyles",enabled:!0,phase:"write",fn:fu,effect:du,requires:["computeStyles"]},mu=[iu,su,cu,pu],vu=eu({defaultModifiers:mu});function gu(t,e,r){var n=Wa(t),i=[Oa,xa].indexOf(n)>=0?-1:1,o="function"===typeof r?r(Object.assign({},e,{placement:t})):r,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Oa,Aa].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function yu(t){var e=t.state,r=t.options,n=t.name,i=r.offset,o=void 0===i?[0,0]:i,s=Ia.reduce((function(t,r){return t[r]=gu(r,e.rects,o),t}),{}),a=s[e.placement],u=a.x,h=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=h),e.modifiersData[n]=s}var bu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yu},wu=Object(u["a"])("popover"),Mu=wu[0],_u=wu[1],ku=Mu({mixins:[fo({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&(this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){return vu(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Object(n["a"])({},bu,{options:{offset:this.offset}})]})},updateLocation:function(){var t=this;this.$nextTick((function(){t.value&&(t.popper?t.popper.setOptions({placement:t.placement}):t.popper=t.createPopper())}))},renderAction:function(t,e){var r=this,n=this.$createElement,i=t.icon,o=t.text,s=t.disabled,a=t.className;return n("div",{attrs:{role:"menuitem"},class:[_u("action",{disabled:s,"with-icon":i}),a],on:{click:function(){return r.onClickAction(t,e)}}},[i&&n(c["a"],{attrs:{name:i},class:_u("action-icon")}),n("div",{class:[_u("action-text"),O]},[o])])},onToggle:function(t){this.$emit("input",t)},onClickWrapper:function(){"click"===this.trigger&&this.onToggle(!this.value)},onTouchstart:function(t){t.stopPropagation(),this.$emit("touchstart",t)},onClickAction:function(t,e){t.disabled||(this.$emit("select",t,e),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var t=arguments[0];return t("span",{ref:"wrapper",class:_u("wrapper"),on:{click:this.onClickWrapper}},[t(f["a"],{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:_u([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[t("div",{class:_u("arrow")}),t("div",{class:_u("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}}),Su=Object(u["a"])("progress"),xu=Su[0],Eu=Su[1],Au=xu({props:{color:String,inactive:Boolean,pivotText:String,textColor:String,pivotColor:String,trackColor:String,strokeWidth:[Number,String],percentage:{type:[Number,String],required:!0,validator:function(t){return t>=0&&t<=100}},showPivot:{type:Boolean,default:!0}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.resize()},watch:{showPivot:"resize",pivotText:"resize"},methods:{resize:function(){var t=this;this.$nextTick((function(){t.progressWidth=t.$el.offsetWidth,t.pivotWidth=t.$refs.pivot?t.$refs.pivot.offsetWidth:0}))}},render:function(){var t=arguments[0],e=this.pivotText,r=this.percentage,n=null!=e?e:r+"%",i=this.showPivot&&n,o=this.inactive?"#cacaca":this.color,s={color:this.textColor,left:(this.progressWidth-this.pivotWidth)*r/100+"px",background:this.pivotColor||o},a={background:o,width:this.progressWidth*r/100+"px"},u={background:this.trackColor,height:Object(B["a"])(this.strokeWidth)};return t("div",{class:Eu(),style:u},[t("span",{class:Eu("portion"),style:a},[i&&t("span",{ref:"pivot",style:s,class:Eu("pivot")},[n])])])}}),Ou=Object(u["a"])("pull-refresh"),Tu=Ou[0],Cu=Ou[1],Pu=Ou[2],Bu=50,Iu=["pulling","loosing","success"],Ru=Tu({mixins:[U["a"]],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:Bu}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return"loading"!==this.status&&"success"!==this.status&&!this.disabled},headStyle:function(){if(this.headHeight!==Bu)return{height:this.headHeight+"px"}}},watch:{value:function(t){this.duration=this.animationDuration,t?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=Object(yt["d"])(this.$el)},methods:{checkPullStart:function(t){this.ceiling=0===Object(yt["c"])(this.scrollEl),this.ceiling&&(this.duration=0,this.touchStart(t))},onTouchStart:function(t){this.touchable&&this.checkPullStart(t)},onTouchMove:function(t){this.touchable&&(this.ceiling||this.checkPullStart(t),this.touchMove(t),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&(Object(k["c"])(t),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var t=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick((function(){t.$emit("refresh")}))):this.setStatus(0))},ease:function(t){var e=+(this.pullDistance||this.headHeight);return t>e&&(t=t<2*e?e+(t-e)/2:1.5*e+(t-2*e)/4),Math.round(t)},setStatus:function(t,e){var r;r=e?"loading":0===t?"normal":t<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=t,r!==this.status&&(this.status=r)},genStatus:function(){var t=this.$createElement,e=this.status,r=this.distance,n=this.slots(e,{distance:r});if(n)return n;var i=[],o=this[e+"Text"]||Pu(e);return-1!==Iu.indexOf(e)&&i.push(t("div",{class:Cu("text")},[o])),"loading"===e&&i.push(t(d["a"],{attrs:{size:"16"}},[o])),i},showSuccessTip:function(){var t=this;this.status="success",setTimeout((function(){t.setStatus(0)}),this.successDuration)}},render:function(){var t=arguments[0],e={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return t("div",{class:Cu()},[t("div",{ref:"track",class:Cu("track"),style:e},[t("div",{class:Cu("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}}),Nu=Object(u["a"])("rate"),ju=Nu[0],Lu=Nu[1];function Uu(t,e,r){return t>=e?"full":t+.5>=e&&r?"half":"void"}var Du=ju({mixins:[U["a"],se],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var t=[],e=1;e<=this.count;e++)t.push(Uu(this.value,e,this.allowHalf));return t},sizeWithUnit:function(){return Object(B["a"])(this.size)},gutterWithUnit:function(){return Object(B["a"])(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(t){this.disabled||this.readonly||t===this.value||(this.$emit("input",t),this.$emit("change",t))},onTouchStart:function(t){var e=this;if(!this.readonly&&!this.disabled&&this.touchable){this.touchStart(t);var r=this.$refs.items.map((function(t){return t.getBoundingClientRect()})),n=[];r.forEach((function(t,r){e.allowHalf?n.push({score:r+.5,left:t.left},{score:r+1,left:t.left+t.width/2}):n.push({score:r+1,left:t.left})})),this.ranges=n}},onTouchMove:function(t){if(!this.readonly&&!this.disabled&&this.touchable&&(this.touchMove(t),"horizontal"===this.direction)){Object(k["c"])(t);var e=t.touches[0].clientX;this.select(this.getScoreByPosition(e))}},getScoreByPosition:function(t){for(var e=this.ranges.length-1;e>0;e--)if(t>this.ranges[e].left)return this.ranges[e].score;return this.allowHalf?.5:1},genStar:function(t,e){var r,n=this,i=this.$createElement,o=this.icon,s=this.color,a=this.count,u=this.voidIcon,h=this.disabled,l=this.voidColor,f=this.disabledColor,d=e+1,p="full"===t,m="void"===t;return this.gutterWithUnit&&d!==+a&&(r={paddingRight:this.gutterWithUnit}),i("div",{ref:"items",refInFor:!0,key:e,attrs:{role:"radio",tabindex:"0","aria-setsize":a,"aria-posinset":d,"aria-checked":String(!m)},style:r,class:Lu("item")},[i(c["a"],{attrs:{size:this.sizeWithUnit,name:p?o:u,color:h?f:p?s:l,classPrefix:this.iconPrefix,"data-score":d},class:Lu("icon",{disabled:h,full:p}),on:{click:function(){n.select(d)}}}),this.allowHalf&&i(c["a"],{attrs:{size:this.sizeWithUnit,name:m?u:o,color:h?f:m?l:s,classPrefix:this.iconPrefix,"data-score":d-.5},class:Lu("icon",["half",{disabled:h,full:!m}]),on:{click:function(){n.select(d-.5)}}})])}},render:function(){var t=this,e=arguments[0];return e("div",{class:Lu({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map((function(e,r){return t.genStar(e,r)}))])}}),Fu=Object(u["a"])("row"),zu=Fu[0],qu=Fu[1],Hu=zu({mixins:[Rt("vanRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var t=Number(this.gutter);if(t){var e=[],r=[[]],n=0;return this.children.forEach((function(t,e){n+=Number(t.span),n>24?(r.push([e]),n-=24):r[r.length-1].push(e)})),r.forEach((function(r){var n=t*(r.length-1)/r.length;r.forEach((function(r,i){if(0===i)e.push({right:n});else{var o=t-e[r-1].right,s=n-o;e.push({left:o,right:s})}}))})),e}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],r=this.align,n=this.justify,i="flex"===this.type;return e(this.tag,{class:qu((t={flex:i},t["align-"+r]=i&&r,t["justify-"+n]=i&&n,t)),on:{click:this.onClick}},[this.slots()])}}),$u=Object(u["a"])("search"),Vu=$u[0],Ku=$u[1],Wu=$u[2];function Gu(t,e,r,i){function s(){if(r.label||e.label)return t("div",{class:Ku("label")},[r.label?r.label():e.label])}function a(){if(e.showAction)return t("div",{class:Ku("action"),attrs:{role:"button",tabindex:"0"},on:{click:n}},[r.action?r.action():e.actionText||Wu("cancel")]);function n(){r.action||(Object(h["a"])(i,"input",""),Object(h["a"])(i,"cancel"))}}var u={attrs:i.data.attrs,on:Object(n["a"])({},i.listeners,{keypress:function(t){13===t.keyCode&&(Object(k["c"])(t),Object(h["a"])(i,"search",e.value)),Object(h["a"])(i,"keypress",t)}})},l=Object(h["b"])(i);return l.attrs=void 0,t("div",o()([{class:Ku({"show-action":e.showAction}),style:{background:e.background}},l]),[null==r.left?void 0:r.left(),t("div",{class:Ku("content",e.shape)},[s(),t(St,o()([{attrs:{type:"search",border:!1,value:e.value,leftIcon:e.leftIcon,rightIcon:e.rightIcon,clearable:e.clearable,clearTrigger:e.clearTrigger},scopedSlots:{"left-icon":r["left-icon"],"right-icon":r["right-icon"]}},u]))]),a()])}Gu.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}};var Zu=Vu(Gu),Ju=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],Xu=Object(u["a"])("share-sheet"),Yu=Xu[0],Qu=Xu[1],th=Xu[2],eh=Yu({props:Object(n["a"])({},l["b"],{title:String,duration:String,cancelText:String,description:String,getContainer:[String,Function],options:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),methods:{onCancel:function(){this.toggle(!1),this.$emit("cancel")},onSelect:function(t,e){this.$emit("select",t,e)},toggle:function(t){this.$emit("input",t)},getIconURL:function(t){return-1!==Ju.indexOf(t)?"https://img01.yzcdn.cn/vant/share-sheet-"+t+".png":t},genHeader:function(){var t=this.$createElement,e=this.slots("title")||this.title,r=this.slots("description")||this.description;if(e||r)return t("div",{class:Qu("header")},[e&&t("h2",{class:Qu("title")},[e]),r&&t("span",{class:Qu("description")},[r])])},genOptions:function(t,e){var r=this,n=this.$createElement;return n("div",{class:Qu("options",{border:e})},[t.map((function(t,e){return n("div",{attrs:{role:"button",tabindex:"0"},class:[Qu("option"),t.className],on:{click:function(){r.onSelect(t,e)}}},[n("img",{attrs:{src:r.getIconURL(t.icon)},class:Qu("icon")}),t.name&&n("span",{class:Qu("name")},[t.name]),t.description&&n("span",{class:Qu("option-description")},[t.description])])}))])},genRows:function(){var t=this,e=this.options;return Array.isArray(e[0])?e.map((function(e,r){return t.genOptions(e,0!==r)})):this.genOptions(e)},genCancelText:function(){var t,e=this.$createElement,r=null!=(t=this.cancelText)?t:th("cancel");if(r)return e("button",{attrs:{type:"button"},class:Qu("cancel"),on:{click:this.onCancel}},[r])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){var t=arguments[0];return t(f["a"],{attrs:{round:!0,value:this.value,position:"bottom",overlay:this.overlay,duration:this.duration,lazyRender:this.lazyRender,lockScroll:this.lockScroll,getContainer:this.getContainer,closeOnPopstate:this.closeOnPopstate,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:Qu(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}}),rh=Object(u["a"])("sidebar"),nh=rh[0],ih=rh[1],oh=nh({mixins:[Rt("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(t){t!==this.index&&(this.index=t,this.$emit("change",t))}},render:function(){var t=arguments[0];return t("div",{class:ih()},[this.slots()])}}),sh=Object(u["a"])("sidebar-item"),ah=sh[0],uh=sh[1],hh=ah({mixins:[It("vanSidebar")],props:Object(n["a"])({},ht,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),at(this.$router,this))}},render:function(){var t,e,r=arguments[0];return r("a",{class:uh({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[r("div",{class:uh("text")},[null!=(t=this.slots("title"))?t:this.title,r(Ur["a"],{attrs:{dot:this.dot,info:null!=(e=this.badge)?e:this.info},class:uh("info")})])])}}),lh=Object(u["a"])("skeleton"),ch=lh[0],fh=lh[1],dh="100%",ph="60%";function mh(t,e,r,n){if(!e.loading)return r.default&&r.default();function i(){if(e.title)return t("h3",{class:fh("title"),style:{width:Object(B["a"])(e.titleWidth)}})}function s(){var r=[],n=e.rowWidth;function i(t){return n===dh&&t===+e.row-1?ph:Array.isArray(n)?n[t]:n}for(var o=0;o<e.row;o++)r.push(t("div",{class:fh("row"),style:{width:Object(B["a"])(i(o))}}));return r}function a(){if(e.avatar){var r=Object(B["a"])(e.avatarSize);return t("div",{class:fh("avatar",e.avatarShape),style:{width:r,height:r}})}}return t("div",o()([{class:fh({animate:e.animate,round:e.round})},Object(h["b"])(n)]),[a(),t("div",{class:fh("content")},[i(),s()])])}mh.props={title:Boolean,round:Boolean,avatar:Boolean,titleWidth:[Number,String],avatarSize:[Number,String],row:{type:[Number,String],default:0},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},avatarShape:{type:String,default:"round"},rowWidth:{type:[Number,String,Array],default:dh}};var vh=ch(mh),gh={"zh-CN":{vanSku:{select:"请选择",selected:"已选",selectSku:"请先选择商品规格",soldout:"库存不足",originPrice:"原价",minusTip:"至少选择一件",minusStartTip:function(t){return t+"件起售"},unavailable:"商品已经无法购买啦",stock:"剩余",stockUnit:"件",quotaTip:function(t){return"每人限购"+t+"件"},quotaUsedTip:function(t,e){return"每人限购"+t+"件,你已购买"+e+"件"}},vanSkuActions:{buy:"立即购买",addCart:"加入购物车"},vanSkuImgUploader:{oversize:function(t){return"最大可上传图片为"+t+"MB请尝试压缩图片尺寸"},fail:"上传失败",uploading:"上传中..."},vanSkuStepper:{quotaLimit:function(t){return"限购"+t+"件"},quotaStart:function(t){return t+"件起售"},comma:"",num:"购买数量"},vanSkuMessages:{fill:"请填写",upload:"请上传",imageLabel:"仅限一张",invalid:{tel:"请填写正确的数字格式留言",mobile:"手机号长度为6-20位数字",email:"请填写正确的邮箱",id_no:"请填写正确的身份证号码"},placeholder:{id_no:"请填写身份证号",text:"请填写留言",tel:"请填写数字",email:"请填写邮箱",date:"请选择日期",time:"请选择时间",textarea:"请填写留言",mobile:"请填写手机号"}},vanSkuRow:{multiple:"可多选"},vanSkuDatetimeField:{title:{date:"选择年月日",time:"选择时间",datetime:"选择日期时间"},format:{year:"年",month:"月",day:"日",hour:"时",minute:"分"}}}},yh={QUOTA_LIMIT:0,STOCK_LIMIT:1},bh="",wh={LIMIT_TYPE:yh,UNSELECTED_SKU_VALUE_ID:bh},Mh=function(t){var e={};return t.forEach((function(t){e[t.k_s]=t.v})),e},_h=function(t){var e={};return t.forEach((function(t){var r={};t.v.forEach((function(t){r[t.id]=t})),e[t.k_id]=r})),e},kh=function(t,e){var r=Object.keys(e).filter((function(t){return e[t]!==bh}));return t.length===r.length},Sh=function(t,e){var r=t.filter((function(t){return Object.keys(e).every((function(r){return String(t[r])===String(e[r])}))}));return r[0]},xh=function(t,e){var r=Mh(t);return Object.keys(e).reduce((function(t,n){var i=r[n],o=e[n];if(o!==bh){var s=i.filter((function(t){return t.id===o}))[0];s&&t.push(s)}return t}),[])},Eh=function(t,e,r){var i,o=r.key,s=r.valueId,a=Object(n["a"])({},e,(i={},i[o]=s,i)),u=Object.keys(a).filter((function(t){return a[t]!==bh})),h=t.filter((function(t){return u.every((function(e){return String(a[e])===String(t[e])}))})),l=h.reduce((function(t,e){return t+=e.stock_num,t}),0);return l>0},Ah=function(t,e){var r=_h(t);return Object.keys(e).reduce((function(t,i){return e[i].forEach((function(e){t.push(Object(n["a"])({},r[i][e]))})),t}),[])},Oh=function(t,e){var r=[];return(t||[]).forEach((function(t){if(e[t.k_id]&&e[t.k_id].length>0){var i=[];t.v.forEach((function(r){e[t.k_id].indexOf(r.id)>-1&&i.push(Object(n["a"])({},r))})),r.push(Object(n["a"])({},t,{v:i}))}})),r},Th={normalizeSkuTree:Mh,getSkuComb:Sh,getSelectedSkuValues:xh,isAllSelected:kh,isSkuChoosable:Eh,getSelectedPropValues:Ah,getSelectedProperties:Oh},Ch=Object(u["a"])("sku-header"),Ph=Ch[0],Bh=Ch[1];function Ih(t,e){var r;return t.tree.some((function(t){var i=e[t.k_s];if(i&&t.v){var o=t.v.filter((function(t){return t.id===i}))[0]||{},s=o.previewImgUrl||o.imgUrl||o.img_url;if(s)return r=Object(n["a"])({},o,{ks:t.k_s,imgUrl:s}),!0}return!1})),r}function Rh(t,e,r,n){var i,s=e.sku,a=e.goods,u=e.skuEventBus,l=e.selectedSku,c=e.showHeaderImage,f=void 0===c||c,d=Ih(s,l),p=d?d.imgUrl:a.picture,m=function(){u.$emit("sku:previewImage",d)};return t("div",o()([{class:[Bh(),O]},Object(h["b"])(n)]),[f&&t(_r,{attrs:{fit:"cover",src:p},class:Bh("img-wrap"),on:{click:m}},[null==(i=r["sku-header-image-extra"])?void 0:i.call(r)]),t("div",{class:Bh("goods-info")},[null==r.default?void 0:r.default()])])}Rh.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};var Nh=Ph(Rh),jh=Object(u["a"])("sku-header-item"),Lh=jh[0],Uh=jh[1];function Dh(t,e,r,n){return t("div",o()([{class:Uh()},Object(h["b"])(n)]),[r.default&&r.default()])}var Fh=Lh(Dh),zh=Object(u["a"])("sku-row"),qh=zh[0],Hh=zh[1],$h=zh[2],Vh=qh({mixins:[Rt("vanSkuRows"),Object(Lr["a"])((function(t){this.scrollable&&this.$refs.scroller&&t(this.$refs.scroller,"scroll",this.onScroll)}))],props:{skuRow:Object},data:function(){return{progress:0}},computed:{scrollable:function(){return this.skuRow.largeImageMode&&this.skuRow.v.length>6}},methods:{onScroll:function(){var t=this.$refs,e=t.scroller,r=t.row,n=r.offsetWidth-e.offsetWidth;this.progress=e.scrollLeft/n},genTitle:function(){var t=this.$createElement;return t("div",{class:Hh("title")},[this.skuRow.k,this.skuRow.is_multiple&&t("span",{class:Hh("title-multiple")},["",$h("multiple"),""])])},genIndicator:function(){var t=this.$createElement;if(this.scrollable){var e={transform:"translate3d("+20*this.progress+"px, 0, 0)"};return t("div",{class:Hh("indicator-wrapper")},[t("div",{class:Hh("indicator")},[t("div",{class:Hh("indicator-slider"),style:e})])])}},genContent:function(){var t=this.$createElement,e=this.slots();if(this.skuRow.largeImageMode){var r=[],n=[];return e.forEach((function(t,e){var i=Math.floor(e/3)%2===0?r:n;i.push(t)})),t("div",{class:Hh("scroller"),ref:"scroller"},[t("div",{class:Hh("row"),ref:"row"},[r]),n.length?t("div",{class:Hh("row")},[n]):null])}return e},centerItem:function(t){if(this.skuRow.largeImageMode&&t){var e=this.children,r=void 0===e?[]:e,n=this.$refs,i=n.scroller,o=n.row,s=r.find((function(e){return+e.skuValue.id===+t}));if(i&&o&&s&&s.$el){var a=s.$el,u=a.offsetLeft-(i.offsetWidth-a.offsetWidth)/2;i.scrollLeft=u}}}},render:function(){var t=arguments[0];return t("div",{class:[Hh(),O]},[this.genTitle(),this.genContent(),this.genIndicator()])}}),Kh=Object(u["a"])("sku-row-item"),Wh=Kh[0],Gh=Wh({mixins:[It("vanSkuRows")],props:{lazyLoad:Boolean,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object,largeImageMode:Boolean,disableSoldoutSku:Boolean,skuList:{type:Array,default:function(){return[]}}},computed:{imgUrl:function(){var t=this.skuValue.imgUrl||this.skuValue.img_url;return this.largeImageMode?t||"https://img01.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png":t},choosable:function(){return!this.disableSoldoutSku||Eh(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id})}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",Object(n["a"])({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(t){t.stopPropagation();var e=this.skuValue,r=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",Object(n["a"])({},e,{ks:r,imgUrl:e.imgUrl||e.img_url}))},genImage:function(t){var e=this.$createElement;if(this.imgUrl)return e(_r,{attrs:{fit:"cover",src:this.imgUrl,lazyLoad:this.lazyLoad},class:t+"-img"})}},render:function(){var t=arguments[0],e=this.skuValue.id===this.selectedSku[this.skuKeyStr],r=this.largeImageMode?Hh("image-item"):Hh("item");return t("span",{class:[r,e?r+"--active":"",this.choosable?"":r+"--disabled"],on:{click:this.onSelect}},[this.genImage(r),t("div",{class:r+"-name"},[this.largeImageMode?t("span",{class:{"van-multi-ellipsis--l2":this.largeImageMode}},[this.skuValue.name]):this.skuValue.name]),this.largeImageMode&&t(c["a"],{attrs:{name:"enlarge"},class:r+"-img-icon",on:{click:this.onPreviewImg}})])}}),Zh=Object(u["a"])("sku-row-prop-item"),Jh=Zh[0],Xh=Jh({props:{skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedProp:Object,multiple:Boolean},computed:{choosed:function(){var t=this.selectedProp,e=this.skuKeyStr,r=this.skuValue;return!(!t||!t[e])&&t[e].indexOf(r.id)>-1}},methods:{onSelect:function(){this.skuEventBus.$emit("sku:propSelect",Object(n["a"])({},this.skuValue,{skuKeyStr:this.skuKeyStr,multiple:this.multiple}))}},render:function(){var t=arguments[0];return t("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.choosed}],on:{click:this.onSelect}},[t("span",{class:"van-sku-row__item-name"},[this.skuValue.name])])}}),Yh=Object(u["a"])("stepper"),Qh=Yh[0],tl=Yh[1],el=600,rl=200;function nl(t,e){return String(t)===String(e)}var il=Qh({mixins:[se],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var t,e=null!=(t=this.value)?t:this.defaultValue,r=this.format(e);return nl(r,this.value)||this.$emit("input",r),{currentValue:r}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var t={};return this.inputWidth&&(t.width=Object(B["a"])(this.inputWidth)),this.buttonSize&&(t.height=Object(B["a"])(this.buttonSize)),t},buttonStyle:function(){if(this.buttonSize){var t=Object(B["a"])(this.buttonSize);return{width:t,height:t}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(t){nl(t,this.currentValue)||(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t,{name:this.name})}},methods:{check:function(){var t=this.format(this.currentValue);nl(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return j(String(t),!this.integer)},format:function(t){return this.allowEmpty&&""===t||(t=this.formatNumber(t),t=""===t?0:+t,t=Object(He["a"])(t)?this.min:t,t=Math.max(Math.min(this.max,t),this.min),Object(b["c"])(this.decimalLength)&&(t=t.toFixed(this.decimalLength))),t},onInput:function(t){var e=t.target.value,r=this.formatNumber(e);if(Object(b["c"])(this.decimalLength)&&-1!==r.indexOf(".")){var n=r.split(".");r=n[0]+"."+n[1].slice(0,this.decimalLength)}nl(e,r)||(t.target.value=r),r===String(+r)&&(r=+r),this.emitChange(r)},emitChange:function(t){this.asyncChange?(this.$emit("input",t),this.$emit("change",t,{name:this.name})):this.currentValue=t},onChange:function(){var t=this.type;if(this[t+"Disabled"])this.$emit("overlimit",t);else{var e="minus"===t?-this.step:+this.step,r=this.format(L(+this.currentValue,e));this.emitChange(r),this.$emit(t)}},onFocus:function(t){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",t)},onBlur:function(t){var e=this.format(t.target.value);t.target.value=e,this.emitChange(e),this.$emit("blur",t),wt()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout((function(){t.onChange(),t.longPressStep(t.type)}),rl)},onTouchStart:function(){var t=this;this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout((function(){t.isLongPress=!0,t.onChange(),t.longPressStep()}),el))},onTouchEnd:function(t){this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress&&Object(k["c"])(t))},onMousedown:function(t){this.disableInput&&t.preventDefault()}},render:function(){var t=this,e=arguments[0],r=function(e){return{on:{click:function(r){r.preventDefault(),t.type=e,t.onChange()},touchstart:function(){t.type=e,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}};return e("div",{class:tl([this.theme])},[e("button",o()([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:tl("minus",{disabled:this.minusDisabled})},r("minus")])),e("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:tl("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),e("button",o()([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:tl("plus",{disabled:this.plusDisabled})},r("plus")]))])}}),ol=Object(u["a"])("sku-stepper"),sl=ol[0],al=ol[2],ul=yh.QUOTA_LIMIT,hl=yh.STOCK_LIMIT,ll=sl({props:{stock:Number,skuEventBus:Object,skuStockNum:Number,selectedNum:Number,stepperTitle:String,disableStepperInput:Boolean,customStepperConfig:Object,hideQuotaText:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1}},data:function(){return{currentNum:this.selectedNum,limitType:hl}},watch:{currentNum:function(t){var e=parseInt(t,10);e>=this.stepperMinLimit&&e<=this.stepperLimit&&this.skuEventBus.$emit("sku:numChange",e)},stepperLimit:function(t){t<this.currentNum&&this.stepperMinLimit<=t&&(this.currentNum=t),this.checkState(this.stepperMinLimit,t)},stepperMinLimit:function(t){(t>this.currentNum||t>this.stepperLimit)&&(this.currentNum=t),this.checkState(t,this.stepperLimit)}},computed:{stepperLimit:function(){var t,e=this.quota-this.quotaUsed;return this.quota>0&&e<=this.stock?(t=e<0?0:e,this.limitType=ul):(t=this.stock,this.limitType=hl),t},stepperMinLimit:function(){return this.startSaleNum<1?1:this.startSaleNum},quotaText:function(){var t=this.customStepperConfig,e=t.quotaText,r=t.hideQuotaText;if(r)return"";var n="";if(e)n=e;else{var i=[];this.startSaleNum>1&&i.push(al("quotaStart",this.startSaleNum)),this.quota>0&&i.push(al("quotaLimit",this.quota)),n=i.join(al("comma"))}return n}},created:function(){this.checkState(this.stepperMinLimit,this.stepperLimit)},methods:{setCurrentNum:function(t){this.currentNum=t,this.checkState(this.stepperMinLimit,this.stepperLimit)},onOverLimit:function(t){this.skuEventBus.$emit("sku:overLimit",{action:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})},onChange:function(t){var e=parseInt(t,10),r=this.customStepperConfig.handleStepperChange;r&&r(e),this.$emit("change",e)},checkState:function(t,e){this.currentNum<t||t>e?this.currentNum=t:this.currentNum>e&&(this.currentNum=e),this.skuEventBus.$emit("sku:stepperState",{valid:t<=e,min:t,max:e,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})}},render:function(){var t=this,e=arguments[0];return e("div",{class:"van-sku-stepper-stock"},[e("div",{class:"van-sku__stepper-title"},[this.stepperTitle||al("num")]),e(il,{attrs:{integer:!0,min:this.stepperMinLimit,max:this.stepperLimit,disableInput:this.disableStepperInput},class:"van-sku__stepper",on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:t.currentNum,callback:function(e){t.currentNum=e}}}),!this.hideQuotaText&&this.quotaText&&e("span",{class:"van-sku__stepper-quota"},["(",this.quotaText,")"])])}});function cl(t){var e=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;return e.test(t)}function fl(t){return Array.isArray(t)?t:[t]}function dl(t,e){return new Promise((function(r){if("file"!==e){var n=new FileReader;n.onload=function(t){r(t.target.result)},"dataUrl"===e?n.readAsDataURL(t):"text"===e&&n.readAsText(t)}else r(null)}))}function pl(t,e){return fl(t).some((function(t){return!!t&&(Object(b["e"])(e)?e(t):t.size>e)}))}var ml=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function vl(t){return ml.test(t)}function gl(t){return!!t.isImage||(t.file&&t.file.type?0===t.file.type.indexOf("image"):t.url?vl(t.url):!!t.content&&0===t.content.indexOf("data:image"))}var yl=Object(u["a"])("uploader"),bl=yl[0],wl=yl[1],Ml=bl({inheritAttrs:!1,mixins:[se],model:{prop:"fileList"},props:{disabled:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Object(B["a"])(this.previewSize)},value:function(){return this.fileList}},methods:{getDetail:function(t){return void 0===t&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var e=this,r=t.target.files;if(!this.disabled&&r.length){if(r=1===r.length?r[0]:[].slice.call(r),this.beforeRead){var n=this.beforeRead(r,this.getDetail());if(!n)return void this.resetInput();if(Object(b["g"])(n))return void n.then((function(t){t?e.readFile(t):e.readFile(r)})).catch(this.resetInput)}this.readFile(r)}},readFile:function(t){var e=this,r=pl(t,this.maxSize);if(Array.isArray(t)){var n=this.maxCount-this.fileList.length;t.length>n&&(t=t.slice(0,n)),Promise.all(t.map((function(t){return dl(t,e.resultType)}))).then((function(n){var i=t.map((function(t,e){var r={file:t,status:"",message:""};return n[e]&&(r.content=n[e]),r}));e.onAfterRead(i,r)}))}else dl(t,this.resultType).then((function(n){var i={file:t,status:"",message:""};n&&(i.content=n),e.onAfterRead(i,r)}))},onAfterRead:function(t,e){var r=this;this.resetInput();var n=t;if(e){var i=t;Array.isArray(t)?(i=[],n=[],t.forEach((function(t){t.file&&(pl(t.file,r.maxSize)?i.push(t):n.push(t))}))):n=null,this.$emit("oversize",i,this.getDetail())}var o=Array.isArray(n)?Boolean(n.length):Boolean(n);o&&(this.$emit("input",[].concat(this.fileList,fl(n))),this.afterRead&&this.afterRead(n,this.getDetail()))},onDelete:function(t,e){var r,n=this,i=null!=(r=t.beforeDelete)?r:this.beforeDelete;if(i){var o=i(t,this.getDetail(e));if(!o)return;if(Object(b["g"])(o))return void o.then((function(){n.deleteFile(t,e)})).catch(b["i"])}this.deleteFile(t,e)},deleteFile:function(t,e){var r=this.fileList.slice(0);r.splice(e,1),this.$emit("input",r),this.$emit("delete",t,this.getDetail(e))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onPreviewImage:function(t){var e=this;if(this.previewFullImage){var r=this.fileList.filter((function(t){return gl(t)})),i=r.map((function(t){return t.content||t.url}));this.imagePreview=os(Object(n["a"])({images:i,startPosition:r.indexOf(t),onClose:function(){e.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var e=this.$createElement,r=t.status,n=t.message;if("uploading"===r||"failed"===r){var i="failed"===r?e(c["a"],{attrs:{name:"close"},class:wl("mask-icon")}):e(d["a"],{class:wl("loading")}),o=Object(b["c"])(n)&&""!==n;return e("div",{class:wl("mask")},[i,o&&e("div",{class:wl("mask-message")},[n])])}},genPreviewItem:function(t,e){var r,i,o,s=this,a=this.$createElement,u=null!=(r=t.deletable)?r:this.deletable,h="uploading"!==t.status&&u,l=h&&a("div",{class:wl("preview-delete"),on:{click:function(r){r.stopPropagation(),s.onDelete(t,e)}}},[a(c["a"],{attrs:{name:"cross"},class:wl("preview-delete-icon")})]),f=this.slots("preview-cover",Object(n["a"])({index:e},t)),d=f&&a("div",{class:wl("preview-cover")},[f]),p=null!=(i=t.previewSize)?i:this.previewSize,m=null!=(o=t.imageFit)?o:this.imageFit,v=gl(t)?a(_r,{attrs:{fit:m,src:t.content||t.url,width:p,height:p,lazyLoad:this.lazyLoad},class:wl("preview-image"),on:{click:function(){s.onPreviewImage(t)}}},[d]):a("div",{class:wl("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[a(c["a"],{class:wl("file-icon"),attrs:{name:"description"}}),a("div",{class:[wl("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),d]);return a("div",{class:wl("preview"),on:{click:function(){s.$emit("click-preview",t,s.getDetail(e))}}},[v,this.genPreviewMask(t),l])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)&&this.showUpload){var e,r=this.slots(),i=t("input",{attrs:Object(n["a"])({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:wl("input"),on:{change:this.onChange}});if(r)return t("div",{class:wl("input-wrapper"),key:"input-wrapper"},[r,i]);if(this.previewSize){var o=this.previewSizeWithUnit;e={width:o,height:o}}return t("div",{class:wl("upload"),style:e},[t(c["a"],{attrs:{name:this.uploadIcon},class:wl("upload-icon")}),this.uploadText&&t("span",{class:wl("upload-text")},[this.uploadText]),i])}}},render:function(){var t=arguments[0];return t("div",{class:wl()},[t("div",{class:wl("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),_l=Object(u["a"])("sku-img-uploader"),kl=_l[0],Sl=_l[2],xl=kl({props:{value:String,uploadImg:Function,maxSize:{type:Number,default:6}},data:function(){return{fileList:[]}},watch:{value:function(t){this.fileList=t?[{url:t,isImage:!0}]:[]}},methods:{afterReadFile:function(t){var e=this;t.status="uploading",t.message=Sl("uploading"),this.uploadImg(t.file,t.content).then((function(r){t.status="done",e.$emit("input",r)})).catch((function(){t.status="failed",t.message=Sl("fail")}))},onOversize:function(){this.$toast(Sl("oversize",this.maxSize))},onDelete:function(){this.$emit("input","")}},render:function(){var t=this,e=arguments[0];return e(Ml,{attrs:{maxCount:1,afterRead:this.afterReadFile,maxSize:1024*this.maxSize*1024},on:{oversize:this.onOversize,delete:this.onDelete},model:{value:t.fileList,callback:function(e){t.fileList=e}}})}});function El(t){return t?new Date(t.replace(/-/g,"/")):null}function Al(t,e){if(void 0===e&&(e="date"),!t)return"";var r=t.getFullYear(),n=t.getMonth()+1,i=t.getDate(),o=r+"-"+Object(si["b"])(n)+"-"+Object(si["b"])(i);if("datetime"===e){var s=t.getHours(),a=t.getMinutes();o+=" "+Object(si["b"])(s)+":"+Object(si["b"])(a)}return o}var Ol=Object(u["a"])("sku-datetime-field"),Tl=Ol[0],Cl=Ol[2],Pl=Tl({props:{value:String,label:String,required:Boolean,placeholder:String,type:{type:String,default:"date"}},data:function(){return{showDatePicker:!1,currentDate:"time"===this.type?"":new Date,minDate:new Date((new Date).getFullYear()-60,0,1)}},watch:{value:function(t){switch(this.type){case"time":this.currentDate=t;break;case"date":case"datetime":this.currentDate=El(t)||new Date;break}}},computed:{title:function(){return Cl("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(t){var e=t;"time"!==this.type&&(e=Al(t,this.type)),this.$emit("input",e),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(t,e){var r=Cl("format."+t);return""+e+r}},render:function(){var t=this,e=arguments[0];return e(St,{attrs:{readonly:!0,"is-link":!0,center:!0,value:this.value,label:this.label,required:this.required,placeholder:this.placeholder},on:{click:this.onClick}},[e(f["a"],{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:t.showDatePicker,callback:function(e){t.showDatePicker=e}}},[e(eo,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}}),Bl=Object(u["a"])("sku-messages"),Il=Bl[0],Rl=Bl[1],Nl=Bl[2],jl=Il({props:{messageConfig:Object,goodsId:[Number,String],messages:{type:Array,default:function(){return[]}}},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(t){this.messageValues=this.resetMessageValues(t)}},methods:{resetMessageValues:function(t){var e=this.messageConfig,r=e.initialMessages,n=void 0===r?{}:r;return(t||[]).map((function(t){return{value:n[t.name]||""}}))},getType:function(t){return 1===+t.multiple?"textarea":"id_no"===t.type?"text":t.datetime>0?"datetime":t.type},getMessages:function(){var t={};return this.messageValues.forEach((function(e,r){t["message_"+r]=e.value})),t},getCartMessages:function(){var t=this,e={};return this.messageValues.forEach((function(r,n){var i=t.messages[n];e[i.name]=r.value})),e},getPlaceholder:function(t){var e=1===+t.multiple?"textarea":t.type,r=this.messageConfig.placeholderMap||{};return t.placeholder||r[e]||Nl("placeholder."+e)},validateMessages:function(){for(var t=this.messageValues,e=0;e<t.length;e++){var r=t[e].value,n=this.messages[e];if(""===r){if("1"===String(n.required)){var i=Nl("image"===n.type?"upload":"fill");return i+n.name}}else{if("tel"===n.type&&!Object(He["b"])(r))return Nl("invalid.tel");if("mobile"===n.type&&!/^\d{6,20}$/.test(r))return Nl("invalid.mobile");if("email"===n.type&&!cl(r))return Nl("invalid.email");if("id_no"===n.type&&(r.length<15||r.length>18))return Nl("invalid.id_no")}}},getFormatter:function(t){return function(e){return"mobile"===t.type||"tel"===t.type?e.replace(/[^\d.]/g,""):e}},genMessage:function(t,e){var r=this,n=this.$createElement;if("image"===t.type)return n(mt,{key:this.goodsId+"-"+e,attrs:{title:t.name,required:"1"===String(t.required),valueClass:Rl("image-cell-value")},class:Rl("image-cell")},[n(xl,{attrs:{maxSize:this.messageConfig.uploadMaxSize,uploadImg:this.messageConfig.uploadImg},model:{value:r.messageValues[e].value,callback:function(t){r.$set(r.messageValues[e],"value",t)}}}),n("div",{class:Rl("image-cell-label")},[Nl("imageLabel")])]);var i=["date","time"].indexOf(t.type)>-1;return i?n(Pl,{attrs:{label:t.name,required:"1"===String(t.required),placeholder:this.getPlaceholder(t),type:this.getType(t)},key:this.goodsId+"-"+e,model:{value:r.messageValues[e].value,callback:function(t){r.$set(r.messageValues[e],"value",t)}}}):n(St,{attrs:{maxlength:"200",center:!t.multiple,label:t.name,required:"1"===String(t.required),placeholder:this.getPlaceholder(t),type:this.getType(t),formatter:this.getFormatter(t)},key:this.goodsId+"-"+e,model:{value:r.messageValues[e].value,callback:function(t){r.$set(r.messageValues[e],"value",t)}}})}},render:function(){var t=arguments[0];return t("div",{class:Rl()},[this.messages.map(this.genMessage)])}}),Ll=Object(u["a"])("sku-actions"),Ul=Ll[0],Dl=Ll[1],Fl=Ll[2];function zl(t,e,r,n){var i=function(t){return function(){e.skuEventBus.$emit(t)}};return t("div",o()([{class:Dl()},Object(h["b"])(n)]),[e.showAddCartBtn&&t(Ct,{attrs:{size:"large",type:"warning",text:e.addCartText||Fl("addCart")},on:{click:i("sku:addCart")}}),t(Ct,{attrs:{size:"large",type:"danger",text:e.buyText||Fl("buy")},on:{click:i("sku:buy")}})])}zl.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};var ql=Ul(zl),Hl=Object(u["a"])("sku"),$l=Hl[0],Vl=Hl[1],Kl=Hl[2],Wl=yh.QUOTA_LIMIT,Gl=$l({props:{sku:Object,goods:Object,value:Boolean,buyText:String,goodsId:[Number,String],priceTag:String,lazyLoad:Boolean,hideStock:Boolean,properties:Array,addCartText:String,stepperTitle:String,getContainer:[String,Function],hideQuotaText:Boolean,hideSelectedText:Boolean,resetStepperOnHide:Boolean,customSkuValidator:Function,disableStepperInput:Boolean,resetSelectedSkuOnHide:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1},initialSku:{type:Object,default:function(){return{}}},stockThreshold:{type:Number,default:50},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},disableSoldoutSku:{type:Boolean,default:!0},customStepperConfig:{type:Object,default:function(){return{}}},showHeaderImage:{type:Boolean,default:!0},previewOnClickImage:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{initialMessages:{},placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}}},data:function(){return{selectedSku:{},selectedProp:{},selectedNum:1,show:this.value}},watch:{show:function(t){this.$emit("input",t),t||(this.$emit("sku-close",{selectedSkuValues:this.selectedSkuValues,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku())},value:function(t){this.show=t},skuTree:"resetSelectedSku",initialSku:function(){this.resetStepper(),this.resetSelectedSku()}},computed:{skuGroupClass:function(){return["van-sku-group-container",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer){var t=window.innerHeight-this.bodyOffsetTop;return{maxHeight:t+"px"}}},isSkuCombSelected:function(){var t=this;return!(this.hasSku&&!kh(this.skuTree,this.selectedSku))&&!this.propList.filter((function(t){return!1!==t.is_necessary})).some((function(e){return 0===(t.selectedProp[e.k_id]||[]).length}))},isSkuEmpty:function(){return 0===Object.keys(this.sku).length},hasSku:function(){return!this.sku.none_sku},hasSkuOrAttr:function(){return this.hasSku||this.propList.length>0},selectedSkuComb:function(){var t=null;return this.isSkuCombSelected&&(t=this.hasSku?Sh(this.skuList,this.selectedSku):{id:this.sku.collection_id,price:Math.round(100*this.sku.price),stock_num:this.sku.stock_num},t&&(t.properties=Oh(this.propList,this.selectedProp),t.property_price=this.selectedPropValues.reduce((function(t,e){return t+(e.price||0)}),0))),t},selectedSkuValues:function(){return xh(this.skuTree,this.selectedSku)},selectedPropValues:function(){return Ah(this.propList,this.selectedProp)},price:function(){return this.selectedSkuComb?((this.selectedSkuComb.price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.price},originPrice:function(){return this.selectedSkuComb&&this.selectedSkuComb.origin_price?((this.selectedSkuComb.origin_price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.origin_price},skuTree:function(){return this.sku.tree||[]},skuList:function(){return this.sku.list||[]},propList:function(){return this.properties||[]},imageList:function(){var t=[this.goods.picture];return this.skuTree.length>0&&this.skuTree.forEach((function(e){e.v&&e.v.forEach((function(e){var r=e.previewImgUrl||e.imgUrl||e.img_url;r&&-1===t.indexOf(r)&&t.push(r)}))})),t},stock:function(){var t=this.customStepperConfig.stockNum;return void 0!==t?t:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.sku.stock_num},stockText:function(){var t=this.$createElement,e=this.customStepperConfig.stockFormatter;return e?e(this.stock):[Kl("stock")+" ",t("span",{class:Vl("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+Kl("stockUnit")]},selectedText:function(){var t=this;if(this.selectedSkuComb){var e=this.selectedSkuValues.concat(this.selectedPropValues);return Kl("selected")+" "+e.map((function(t){return t.name})).join(" ")}var r=this.skuTree.filter((function(e){return t.selectedSku[e.k_s]===bh})).map((function(t){return t.k})),n=this.propList.filter((function(e){return(t.selectedProp[e.k_id]||[]).length<1})).map((function(t){return t.k}));return Kl("select")+" "+r.concat(n).join(" ")}},created:function(){var t=new a.a;this.skuEventBus=t,t.$on("sku:select",this.onSelect),t.$on("sku:propSelect",this.onPropSelect),t.$on("sku:numChange",this.onNumChange),t.$on("sku:previewImage",this.onPreviewImage),t.$on("sku:overLimit",this.onOverLimit),t.$on("sku:stepperState",this.onStepperState),t.$on("sku:addCart",this.onAddCart),t.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(),this.$emit("after-sku-create",t)},methods:{resetStepper:function(){var t=this.$refs.skuStepper,e=this.initialSku.selectedNum,r=null!=e?e:this.startSaleNum;this.stepperError=null,t?t.setCurrentNum(r):this.selectedNum=r},resetSelectedSku:function(){var t=this;this.selectedSku={},this.skuTree.forEach((function(e){t.selectedSku[e.k_s]=bh})),this.skuTree.forEach((function(e){var r=e.k_s,n=1===e.v.length?e.v[0].id:t.initialSku[r];n&&Eh(t.skuList,t.selectedSku,{key:r,valueId:n})&&(t.selectedSku[r]=n)}));var e=this.selectedSkuValues;e.length>0&&this.$nextTick((function(){t.$emit("sku-selected",{skuValue:e[e.length-1],selectedSku:t.selectedSku,selectedSkuComb:t.selectedSkuComb})})),this.selectedProp={};var r=this.initialSku.selectedProp,n=void 0===r?{}:r;this.propList.forEach((function(e){n[e.k_id]&&(t.selectedProp[e.k_id]=n[e.k_id])})),Object(b["d"])(this.selectedProp)&&this.propList.forEach((function(e){var r;if((null==e||null==(r=e.v)?void 0:r.length)>0){var n=e.v,i=e.k_id,o=n.some((function(t){return 0!==+t.price}));o||(t.selectedProp[i]=[n[0].id])}}));var i=this.selectedPropValues;i.length>0&&this.$emit("sku-prop-selected",{propValue:i[i.length-1],selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.$emit("sku-reset",{selectedSku:this.selectedSku,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.centerInitialSku()},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(0===this.selectedNum)return Kl("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return Kl("selectSku")},onSelect:function(t){var e,r;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?Object(n["a"])({},this.selectedSku,(e={},e[t.skuKeyStr]=bh,e)):Object(n["a"])({},this.selectedSku,(r={},r[t.skuKeyStr]=t.id,r)),this.$emit("sku-selected",{skuValue:t,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onPropSelect:function(t){var e,r=this.selectedProp[t.skuKeyStr]||[],i=r.indexOf(t.id);i>-1?r.splice(i,1):t.multiple?r.push(t.id):r.splice(0,1,t.id),this.selectedProp=Object(n["a"])({},this.selectedProp,(e={},e[t.skuKeyStr]=r,e)),this.$emit("sku-prop-selected",{propValue:t,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(t){this.selectedNum=t},onPreviewImage:function(t){var e=this,r=this.imageList,i=0,o=r[0];t&&t.imgUrl&&(this.imageList.some((function(e,r){return e===t.imgUrl&&(i=r,!0)})),o=t.imgUrl);var s=Object(n["a"])({},t,{index:i,imageList:this.imageList,indexImage:o});this.$emit("open-preview",s),this.previewOnClickImage&&os({images:this.imageList,startPosition:i,onClose:function(){e.$emit("close-preview",s)}})},onOverLimit:function(t){var e=t.action,r=t.limitType,n=t.quota,i=t.quotaUsed,o=this.customStepperConfig.handleOverLimit;o?o(t):"minus"===e?this.startSaleNum>1?Object(xt["a"])(Kl("minusStartTip",this.startSaleNum)):Object(xt["a"])(Kl("minusTip")):"plus"===e&&(r===Wl?i>0?Object(xt["a"])(Kl("quotaUsedTip",n,i)):Object(xt["a"])(Kl("quotaTip",n)):Object(xt["a"])(Kl("soldout")))},onStepperState:function(t){this.stepperError=t.valid?null:Object(n["a"])({},t,{action:"plus"})},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(t){if(this.stepperError)return this.onOverLimit(this.stepperError);var e=this.validateSku();e?Object(xt["a"])(e):this.$emit(t,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,messages:this.getSkuMessages(),selectedNum:this.selectedNum,cartMessages:this.getSkuCartMessages(),selectedSkuComb:this.selectedSkuComb}},onOpened:function(){this.centerInitialSku()},centerInitialSku:function(){var t=this;(this.$refs.skuRows||[]).forEach((function(e){var r=e.skuRow||{},n=r.k_s;e.centerItem(t.initialSku[n])}))}},render:function(){var t=this,e=arguments[0];if(!this.isSkuEmpty){var r=this.sku,n=this.skuList,i=this.goods,o=this.price,s=this.lazyLoad,a=this.originPrice,u=this.skuEventBus,h=this.selectedSku,l=this.selectedProp,c=this.selectedNum,d=this.stepperTitle,p=this.selectedSkuComb,m=this.showHeaderImage,v=this.disableSoldoutSku,g={price:o,originPrice:a,selectedNum:c,skuEventBus:u,selectedSku:h,selectedSkuComb:p},y=function(e){return t.slots(e,g)},b=y("sku-header")||e(Nh,{attrs:{sku:r,goods:i,skuEventBus:u,selectedSku:h,showHeaderImage:m}},[e("template",{slot:"sku-header-image-extra"},[y("sku-header-image-extra")]),y("sku-header-price")||e("div",{class:"van-sku__goods-price"},[e("span",{class:"van-sku__price-symbol"},["¥"]),e("span",{class:"van-sku__price-num"},[o]),this.priceTag&&e("span",{class:"van-sku__price-tag"},[this.priceTag])]),y("sku-header-origin-price")||a&&e(Fh,[Kl("originPrice")," ¥",a]),!this.hideStock&&e(Fh,[e("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&e(Fh,[this.selectedText]),y("sku-header-extra")]),w=y("sku-group")||this.hasSkuOrAttr&&e("div",{class:this.skuGroupClass},[this.skuTree.map((function(t){return e(Vh,{attrs:{skuRow:t},ref:"skuRows",refInFor:!0},[t.v.map((function(r){return e(Gh,{attrs:{skuList:n,lazyLoad:s,skuValue:r,skuKeyStr:t.k_s,selectedSku:h,skuEventBus:u,disableSoldoutSku:v,largeImageMode:t.largeImageMode}})}))])})),this.propList.map((function(t){return e(Vh,{attrs:{skuRow:t}},[t.v.map((function(r){return e(Xh,{attrs:{skuValue:r,skuKeyStr:t.k_id+"",selectedProp:l,skuEventBus:u,multiple:t.is_multiple}})}))])}))]),M=y("sku-stepper")||e(ll,{ref:"skuStepper",attrs:{stock:this.stock,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum,skuEventBus:u,selectedNum:c,stepperTitle:d,skuStockNum:r.stock_num,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig,hideQuotaText:this.hideQuotaText},on:{change:function(e){t.$emit("stepper-change",e)}}}),_=y("sku-messages")||e(jl,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:r.messages}}),k=y("sku-actions")||e(ql,{attrs:{buyText:this.buyText,skuEventBus:u,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return e(f["a"],{attrs:{round:!0,closeable:!0,position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:"van-sku-container",on:{opened:this.onOpened},model:{value:t.show,callback:function(e){t.show=e}}},[b,e("div",{class:"van-sku-body",style:this.bodyStyle},[y("sku-body-top"),w,y("extra-sku-group"),M,_]),y("sku-actions-top"),k])}}});ws["a"].add(gh),Gl.SkuActions=ql,Gl.SkuHeader=Nh,Gl.SkuHeaderItem=Fh,Gl.SkuMessages=jl,Gl.SkuStepper=ll,Gl.SkuRow=Vh,Gl.SkuRowItem=Gh,Gl.SkuRowPropItem=Xh,Gl.skuHelper=Th,Gl.skuConstants=wh;var Zl=Gl,Jl=Object(u["a"])("slider"),Xl=Jl[0],Yl=Jl[1],Ql=function(t,e){return JSON.stringify(t)===JSON.stringify(e)},tc=Xl({mixins:[U["a"],se],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var t=Object(B["a"])(this.buttonSize);return{width:t,height:t}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(t){if(!this.disabled){"start"===this.dragStatus&&this.$emit("drag-start"),Object(k["c"])(t,!0),this.touchMove(t),this.dragStatus="draging";var e=this.$el.getBoundingClientRect(),r=this.vertical?this.deltaY:this.deltaX,n=this.vertical?e.height:e.width,i=r/n*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+i:this.currentValue=this.startValue+i,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||("draging"===this.dragStatus&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(t){if(t.stopPropagation(),!this.disabled){var e=this.$el.getBoundingClientRect(),r=this.vertical?t.clientY-e.top:t.clientX-e.left,n=this.vertical?e.height:e.width,i=+this.min+r/n*this.scope;if(this.range){var o=this.value,s=o[0],a=o[1],u=(s+a)/2;i<=u?s=i:a=i,i=[s,a]}this.startValue=this.value,this.updateValue(i,!0)}},handleOverlap:function(t){return t[0]>t[1]?(t=I(t),t.reverse()):t},updateValue:function(t,e){t=this.range?this.handleOverlap(t).map(this.format):this.format(t),Ql(t,this.value)||this.$emit("input",t),e&&!Ql(t,this.startValue)&&this.$emit("change",t)},format:function(t){var e=+this.min,r=+this.max,n=+this.step;t=R(t,e,r);var i=Math.round((t-e)/n)*n;return L(e,i)}},render:function(){var t,e,r=this,n=arguments[0],i=this.vertical,o=i?"height":"width",s=i?"width":"height",a=(t={background:this.inactiveColor},t[s]=Object(B["a"])(this.barHeight),t),u=function(){var t=r.value,e=r.min,n=r.range,i=r.scope;return n?100*(t[1]-t[0])/i+"%":100*(t-e)/i+"%"},h=function(){var t=r.value,e=r.min,n=r.range,i=r.scope;return n?100*(t[0]-e)/i+"%":null},l=(e={},e[o]=u(),e.left=this.vertical?null:h(),e.top=this.vertical?h():null,e.background=this.activeColor,e);this.dragStatus&&(l.transition="none");var c=function(t){var e=["left","right"],i="number"===typeof t,o=function(){return i?"button-wrapper-"+e[t]:"button-wrapper"},s=function(){return i?"wrapper"+t:"wrapper"};return n("div",{ref:s(),attrs:{role:"slider",tabindex:r.disabled?-1:0,"aria-valuemin":r.min,"aria-valuenow":r.value,"aria-valuemax":r.max,"aria-orientation":r.vertical?"vertical":"horizontal"},class:Yl(o()),on:{touchstart:function(){i&&(r.index=t)},click:function(t){return t.stopPropagation()}}},[r.slots("button")||n("div",{class:Yl("button"),style:r.buttonStyle})])};return n("div",{style:a,class:Yl({disabled:this.disabled,vertical:i}),on:{click:this.onClick}},[n("div",{class:Yl("bar"),style:l},[this.range?[c(0),c(1)]:c()])])}}),ec=Object(u["a"])("step"),rc=ec[0],nc=ec[1],ic=rc({mixins:[It("vanSteps")],computed:{status:function(){return this.index<this.parent.active?"finish":this.index===+this.parent.active?"process":void 0},active:function(){return"process"===this.status},lineStyle:function(){return"finish"===this.status?{background:this.parent.activeColor}:{background:this.parent.inactiveColor}},titleStyle:function(){return this.active?{color:this.parent.activeColor}:this.status?void 0:{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var t=this.$createElement,e=this.parent,r=e.activeIcon,n=e.iconPrefix,i=e.activeColor,o=e.finishIcon,s=e.inactiveIcon;if(this.active)return this.slots("active-icon")||t(c["a"],{class:nc("icon","active"),attrs:{name:r,color:i,classPrefix:n}});var a=this.slots("finish-icon");if("finish"===this.status&&(o||a))return a||t(c["a"],{class:nc("icon","finish"),attrs:{name:o,color:i,classPrefix:n}});var u=this.slots("inactive-icon");return s||u?u||t(c["a"],{class:nc("icon"),attrs:{name:s,classPrefix:n}}):t("i",{class:nc("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var t,e=arguments[0],r=this.status,n=this.active,i=this.parent.direction;return e("div",{class:[x,nc([i,(t={},t[r]=r,t)])]},[e("div",{class:nc("title",{active:n}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),e("div",{class:nc("circle-container"),on:{click:this.onClickStep}},[this.genCircle()]),e("div",{class:nc("line"),style:this.lineStyle})])}}),oc=Object(u["a"])("steps"),sc=oc[0],ac=oc[1],uc=sc({mixins:[Rt("vanSteps")],props:{iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var t=arguments[0];return t("div",{class:ac([this.direction])},[t("div",{class:ac("items")},[this.slots()])])}}),hc=Object(u["a"])("submit-bar"),lc=hc[0],cc=hc[1],fc=hc[2];function dc(t,e,r,n){var i=e.tip,s=e.price,a=e.tipIcon;function u(){if("number"===typeof s){var r=(s/100).toFixed(e.decimalLength).split("."),n=e.decimalLength?"."+r[1]:"";return t("div",{style:{textAlign:e.textAlign?e.textAlign:""},class:cc("text")},[t("span",[e.label||fc("label")]),t("span",{class:cc("price")},[e.currency,t("span",{class:cc("price","integer")},[r[0]]),n]),e.suffixLabel&&t("span",{class:cc("suffix-label")},[e.suffixLabel])])}}function l(){if(r.tip||i)return t("div",{class:cc("tip")},[a&&t(c["a"],{class:cc("tip-icon"),attrs:{name:a}}),i&&t("span",{class:cc("tip-text")},[i]),r.tip&&r.tip()])}return t("div",o()([{class:cc({unfit:!e.safeAreaInsetBottom})},Object(h["b"])(n)]),[r.top&&r.top(),l(),t("div",{class:cc("bar")},[r.default&&r.default(),u(),r.button?r.button():t(Ct,{attrs:{round:!0,type:e.buttonType,text:e.loading?"":e.buttonText,color:e.buttonColor,loading:e.loading,disabled:e.disabled},class:cc("button",e.buttonType),on:{click:function(){Object(h["a"])(n,"submit")}}})])])}dc.props={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,disabled:Boolean,textAlign:String,buttonText:String,buttonColor:String,suffixLabel:String,safeAreaInsetBottom:{type:Boolean,default:!0},decimalLength:{type:[Number,String],default:2},currency:{type:String,default:"¥"},buttonType:{type:String,default:"danger"}};var pc=lc(dc),mc=Object(u["a"])("swipe-cell"),vc=mc[0],gc=mc[1],yc=.15,bc=vc({mixins:[U["a"],fo({event:"touchstart",method:"onClick"})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(t){if(this.$refs[t]){var e=this.$refs[t].getBoundingClientRect();return e.width}return 0},open:function(t){var e="left"===t?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=e,this.$emit("open",{position:t,name:this.name,detail:this.name})},close:function(t){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:t,name:this.name}))},onTouchStart:function(t){this.disabled||(this.startOffset=this.offset,this.touchStart(t))},onTouchMove:function(t){if(!this.disabled&&(this.touchMove(t),"horizontal"===this.direction)){this.dragging=!0,this.lockClick=!0;var e=!this.opened||this.deltaX*this.startOffset<0;e&&Object(k["c"])(t,this.stopPropagation),this.offset=R(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)}},onTouchEnd:function(){var t=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout((function(){t.lockClick=!1}),0))},toggle:function(t){var e=Math.abs(this.offset),r=this.opened?1-yc:yc,n=this.computedLeftWidth,i=this.computedRightWidth;i&&"right"===t&&e>i*r?this.open("right"):n&&"left"===t&&e>n*r?this.open("left"):this.close()},onClick:function(t){void 0===t&&(t="outside"),this.$emit("click",t),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:t,name:this.name,instance:this}):this.onClose?this.onClose(t,this,{name:this.name}):this.close(t))},getClickHandler:function(t,e){var r=this;return function(n){e&&n.stopPropagation(),r.onClick(t)}},genLeftPart:function(){var t=this.$createElement,e=this.slots("left");if(e)return t("div",{ref:"left",class:gc("left"),on:{click:this.getClickHandler("left",!0)}},[e])},genRightPart:function(){var t=this.$createElement,e=this.slots("right");if(e)return t("div",{ref:"right",class:gc("right"),on:{click:this.getClickHandler("right",!0)}},[e])}},render:function(){var t=arguments[0],e={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return t("div",{class:gc(),on:{click:this.getClickHandler("cell")}},[t("div",{class:gc("wrapper"),style:e},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),wc=Object(u["a"])("switch-cell"),Mc=wc[0],_c=wc[1];function kc(t,e,r,i){return t(mt,o()([{attrs:{center:!0,size:e.cellSize,title:e.title,border:e.border},class:_c([e.cellSize])},Object(h["b"])(i)]),[t(le,{props:Object(n["a"])({},e),on:Object(n["a"])({},i.listeners)})])}kc.props=Object(n["a"])({},oe,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var Sc=Mc(kc),xc=Object(u["a"])("tabbar"),Ec=xc[0],Ac=xc[1],Oc=Ec({mixins:[Rt("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:null}},data:function(){return{height:null}},computed:{fit:function(){return null!==this.safeAreaInsetBottom?this.safeAreaInsetBottom:this.fixed}},watch:{value:"setActiveItem",children:"setActiveItem"},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.tabbar.getBoundingClientRect().height)},methods:{setActiveItem:function(){var t=this;this.children.forEach((function(e,r){e.active=(e.name||r)===t.value}))},onChange:function(t){var e=this;t!==this.value&&jr({interceptor:this.beforeChange,args:[t],done:function(){e.$emit("input",t),e.$emit("change",t)}})},genTabbar:function(){var t,e=this.$createElement;return e("div",{ref:"tabbar",style:{zIndex:this.zIndex},class:[(t={},t[C]=this.border,t),Ac({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:Ac("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}}),Tc=Object(u["a"])("tabbar-item"),Cc=Tc[0],Pc=Tc[1],Bc=Cc({mixins:[It("vanTabbar")],props:Object(n["a"])({},ht,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{active:!1}},computed:{routeActive:function(){var t=this.to,e=this.$route;if(t&&e){var r=Object(b["f"])(t)?t:{path:t},n=r.path===e.path,i=Object(b["c"])(r.name)&&r.name===e.name;return n||i}}},methods:{onClick:function(t){this.parent.onChange(this.name||this.index),this.$emit("click",t),at(this.$router,this)},genIcon:function(t){var e=this.$createElement,r=this.slots("icon",{active:t});return r||(this.icon?e(c["a"],{attrs:{name:this.icon,classPrefix:this.iconPrefix}}):void 0)}},render:function(){var t,e=arguments[0],r=this.parent.route?this.routeActive:this.active,n=this.parent[r?"activeColor":"inactiveColor"];return e("div",{class:Pc({active:r}),style:{color:n},on:{click:this.onClick}},[e("div",{class:Pc("icon")},[this.genIcon(r),e(Ur["a"],{attrs:{dot:this.dot,info:null!=(t=this.badge)?t:this.info}})]),e("div",{class:Pc("text")},[this.slots("default",{active:r})])])}}),Ic=Object(u["a"])("tree-select"),Rc=Ic[0],Nc=Ic[1];function jc(t,e,r,n){var i=e.items,s=e.height,a=e.activeId,u=e.selectedIcon,l=e.mainActiveIndex;var f=i[+l]||{},d=f.children||[],p=Array.isArray(a);function m(t){return p?-1!==a.indexOf(t):a===t}var v=i.map((function(e){var r;return t(hh,{attrs:{dot:e.dot,info:null!=(r=e.badge)?r:e.info,title:e.text,disabled:e.disabled},class:[Nc("nav-item"),e.className]})}));function g(){return r.content?r.content():d.map((function(r){return t("div",{key:r.id,class:["van-ellipsis",Nc("item",{active:m(r.id),disabled:r.disabled})],on:{click:function(){if(!r.disabled){var t=r.id;if(p){t=a.slice();var i=t.indexOf(r.id);-1!==i?t.splice(i,1):t.length<e.max&&t.push(r.id)}Object(h["a"])(n,"update:active-id",t),Object(h["a"])(n,"click-item",r),Object(h["a"])(n,"itemclick",r)}}}},[r.text,m(r.id)&&t(c["a"],{attrs:{name:u},class:Nc("selected")})])}))}return t("div",o()([{class:Nc(),style:{height:Object(B["a"])(s)}},Object(h["b"])(n)]),[t(oh,{class:Nc("nav"),attrs:{activeKey:l},on:{change:function(t){Object(h["a"])(n,"update:main-active-index",t),Object(h["a"])(n,"click-nav",t),Object(h["a"])(n,"navclick",t)}}},[v]),t("div",{class:Nc("content")},[g()])])}jc.props={max:{type:[Number,String],default:1/0},items:{type:Array,default:function(){return[]}},height:{type:[Number,String],default:300},activeId:{type:[Number,String,Array],default:0},selectedIcon:{type:String,default:"success"},mainActiveIndex:{type:[Number,String],default:0}};var Lc=Rc(jc),Uc="2.12.24";function Dc(t){var e=[y,ge,qe,ot,We,Ct,yr,Or,an,mt,fn,vn,wn,On,Bn,jn,zn,Wn,Qn,oi,gi,Ei,Ii,Di,eo,Yt,so,co,go,So,St,Oo,Dt,Ht,Bo,jo,Fo,c["a"],_r,os,hs,ps,Ur["a"],bs,d["a"],ws["a"],Ss,Os,Ts["a"],Ds,Fs["a"],Ks,Xs,ra,Y,ku,f["a"],Au,Ru,Pe,Me,Du,Hu,Zu,eh,oh,hh,vh,Zl,tc,ic,il,uc,Kr,pc,Wo,bc,Xo,le,Sc,Br,Oc,Bc,en,Ee,xt["a"],Lc,Ml];e.forEach((function(e){e.install?t.use(e):e.name&&t.component(e.name,e)}))}"undefined"!==typeof window&&window.Vue&&Dc(window.Vue);e["a"]={install:Dc,version:Uc}},b9a8:function(t,e,r){"use strict";var n=r("80af"),i=r("6aa2"),o=r("f3a3"),s=r("0cbb"),a=r("fdac"),u=o.assert,h=r("bb34"),l=r("b73f");function c(t){if(!(this instanceof c))return new c(t);"string"===typeof t&&(u(s.hasOwnProperty(t),"Unknown curve "+t),t=s[t]),t instanceof s.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=c,c.prototype.keyPair=function(t){return new h(this,t)},c.prototype.keyFromPrivate=function(t,e){return h.fromPrivate(this,t,e)},c.prototype.keyFromPublic=function(t,e){return h.fromPublic(this,t,e)},c.prototype.genKeyPair=function(t){t||(t={});var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||a(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));do{var s=new n(e.generate(r));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}while(1)},c.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},c.prototype.sign=function(t,e,r,o){"object"===typeof r&&(o=r,r=null),o||(o={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new n(t,16));for(var s=this.n.byteLength(),a=e.getPrivate().toArray("be",s),u=t.toArray("be",s),h=new i({hash:this.hash,entropy:a,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),c=this.n.sub(new n(1)),f=0;1;f++){var d=o.k?o.k(f):new n(h.generate(this.n.byteLength()));if(d=this._truncateToN(d,!0),!(d.cmpn(1)<=0||d.cmp(c)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var m=p.getX(),v=m.umod(this.n);if(0!==v.cmpn(0)){var g=d.invm(this.n).mul(v.mul(e.getPrivate()).iadd(t));if(g=g.umod(this.n),0!==g.cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(v)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new l({r:v,s:g,recoveryParam:y})}}}}}},c.prototype.verify=function(t,e,r,i){t=this._truncateToN(new n(t,16)),r=this.keyFromPublic(r,i),e=new l(e,"hex");var o=e.r,s=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var a=s.invm(this.n),u=a.mul(t).umod(this.n),h=a.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var c=this.g.mulAdd(u,r.getPublic(),h);return!c.isInfinity()&&0===c.getX().umod(this.n).cmp(o)}c=this.g.jmulAdd(u,r.getPublic(),h);return!c.isInfinity()&&c.eqXToP(o)},c.prototype.recoverPubKey=function(t,e,r,i){u((3&r)===r,"The recovery param is more than two bits"),e=new l(e,i);var o=this.n,s=new n(t),a=e.r,h=e.s,c=1&r,f=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");a=f?this.curve.pointFromX(a.add(this.curve.n),c):this.curve.pointFromX(a,c);var d=e.r.invm(o),p=o.sub(s).mul(d).umod(o),m=h.mul(d).umod(o);return this.g.mulAdd(p,a,m)},c.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new l(e,n),null!==e.recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},b9b5:function(t,e,r){"use strict";var n=r("9d8a").codes.ERR_INVALID_OPT_VALUE;function i(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}function o(t,e,r,o){var s=i(e,o,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){var a=o?r:"highWaterMark";throw new n(a,s)}return Math.floor(s)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},ba0c:function(t){t.exports=JSON.parse('{"_args":[["websocket@1.0.34","D:\\\\Code\\\\JinYuan\\\\8925\\\\website-dapp-m"]],"_from":"websocket@1.0.34","_id":"websocket@1.0.34","_inBundle":false,"_integrity":"sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==","_location":"/websocket","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"websocket@1.0.34","name":"websocket","escapedName":"websocket","rawSpec":"1.0.34","saveSpec":null,"fetchSpec":"1.0.34"},"_requiredBy":["/web3-providers-ws"],"_resolved":"https://registry.npmjs.org/websocket/-/websocket-1.0.34.tgz","_spec":"1.0.34","_where":"D:\\\\Code\\\\JinYuan\\\\8925\\\\website-dapp-m","author":{"name":"Brian McKelvey","email":"theturtle32@gmail.com","url":"https://github.com/theturtle32"},"browser":"lib/browser.js","bugs":{"url":"https://github.com/theturtle32/WebSocket-Node/issues"},"config":{"verbose":false},"contributors":[{"name":"Iñaki Baz Castillo","email":"ibc@aliax.net","url":"http://dev.sipdoc.net"}],"dependencies":{"bufferutil":"^4.0.1","debug":"^2.2.0","es5-ext":"^0.10.50","typedarray-to-buffer":"^3.1.5","utf-8-validate":"^5.0.2","yaeti":"^0.0.6"},"description":"Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.","devDependencies":{"buffer-equal":"^1.0.0","gulp":"^4.0.2","gulp-jshint":"^2.0.4","jshint":"^2.0.0","jshint-stylish":"^2.2.1","tape":"^4.9.1"},"directories":{"lib":"./lib"},"engines":{"node":">=4.0.0"},"homepage":"https://github.com/theturtle32/WebSocket-Node","keywords":["websocket","websockets","socket","networking","comet","push","RFC-6455","realtime","server","client"],"license":"Apache-2.0","main":"index","name":"websocket","repository":{"type":"git","url":"git+https://github.com/theturtle32/WebSocket-Node.git"},"scripts":{"gulp":"gulp","test":"tape test/unit/*.js"},"version":"1.0.34"}')},ba10:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function s(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function a(t,e,r,n,o){if("function"!==typeof r)throw new TypeError("The listener must be a function");var a=new s(r,n||t,o),u=i?i+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],a]:t._events[u].push(a):(t._events[u]=a,t._eventsCount++),t}function u(t,e){0===--t._eventsCount?t._events=new o:delete t._events[e]}function h(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),h.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},h.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,s=new Array(o);n<o;n++)s[n]=r[n].fn;return s},h.prototype.listenerCount=function(t){var e=i?i+t:t,r=this._events[e];return r?r.fn?1:r.length:0},h.prototype.emit=function(t,e,r,n,o,s){var a=i?i+t:t;if(!this._events[a])return!1;var u,h,l=this._events[a],c=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,n),!0;case 5:return l.fn.call(l.context,e,r,n,o),!0;case 6:return l.fn.call(l.context,e,r,n,o,s),!0}for(h=1,u=new Array(c-1);h<c;h++)u[h-1]=arguments[h];l.fn.apply(l.context,u)}else{var f,d=l.length;for(h=0;h<d;h++)switch(l[h].once&&this.removeListener(t,l[h].fn,void 0,!0),c){case 1:l[h].fn.call(l[h].context);break;case 2:l[h].fn.call(l[h].context,e);break;case 3:l[h].fn.call(l[h].context,e,r);break;case 4:l[h].fn.call(l[h].context,e,r,n);break;default:if(!u)for(f=1,u=new Array(c-1);f<c;f++)u[f-1]=arguments[f];l[h].fn.apply(l[h].context,u)}}return!0},h.prototype.on=function(t,e,r){return a(this,t,e,r,!1)},h.prototype.once=function(t,e,r){return a(this,t,e,r,!0)},h.prototype.removeListener=function(t,e,r,n){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return u(this,o),this;var s=this._events[o];if(s.fn)s.fn!==e||n&&!s.once||r&&s.context!==r||u(this,o);else{for(var a=0,h=[],l=s.length;a<l;a++)(s[a].fn!==e||n&&!s[a].once||r&&s[a].context!==r)&&h.push(s[a]);h.length?this._events[o]=1===h.length?h[0]:h:u(this,o)}return this},h.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&u(this,e)):(this._events=new o,this._eventsCount=0),this},h.prototype.off=h.prototype.removeListener,h.prototype.addListener=h.prototype.on,h.prefixed=i,h.EventEmitter=h,t.exports=h},ba31:function(t,e,r){"use strict";r.d(e,"b",(function(){return u})),r.d(e,"a",(function(){return h})),r.d(e,"c",(function(){return l}));var n=r("c31d"),i=r("8bbf"),o=r.n(i),s=["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],a={nativeOn:"on"};function u(t,e){var r=s.reduce((function(e,r){return t.data[r]&&(e[a[r]||r]=t.data[r]),e}),{});return e&&(r.on=r.on||{},Object(n["a"])(r.on,t.data.on)),r}function h(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var o=t.listeners[e];o&&(Array.isArray(o)?o.forEach((function(t){t.apply(void 0,n)})):o.apply(void 0,n))}function l(t,e){var r=new o.a({el:document.createElement("div"),props:t.props,render:function(r){return r(t,Object(n["a"])({props:this.$props},e))}});return document.body.appendChild(r.$el),r}},ba92:function(t,e,r){"use strict";var n=r("4bf8"),i=r("77f1"),o=r("9def");t.exports=[].copyWithin||function(t,e){var r=n(this),s=o(r.length),a=i(t,s),u=i(e,s),h=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===h?s:i(h,s))-u,s-a),c=1;u<a&&a<u+l&&(c=-1,u+=l-1,a+=l-1);while(l-- >0)u in r?r[a]=r[u]:delete r[a],a+=c,u+=c;return r}},bac2:function(t,e,r){var n={ECB:r("0145"),CBC:r("c119"),CFB:r("3505"),CFB8:r("62c9"),CFB1:r("5239"),OFB:r("5165"),CTR:r("6ade"),GCM:r("6ade")},i=r("e85f");for(var o in i)i[o].module=n[i[o].mode];t.exports=i},bb34:function(t,e,r){"use strict";var n=r("80af"),i=r("f3a3"),o=i.assert;function s(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=s,s.fromPublic=function(t,e,r){return e instanceof s?e:new s(t,{pub:e,pubEnc:r})},s.fromPrivate=function(t,e,r){return e instanceof s?e:new s(t,{priv:e,privEnc:r})},s.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(t,e){return"string"===typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},s.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?o(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},s.prototype.derive=function(t){return t.mul(this.priv).getX()},s.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},s.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},s.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},bb44:function(t,e,r){"use strict";var n=r("c3c0"),i=r("edc9"),o=n.rotl32,s=n.sum32,a=n.sum32_3,u=n.sum32_4,h=i.BlockHash;function l(){if(!(this instanceof l))return new l;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function c(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function f(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function d(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(l,h),e.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],h=this.h[3],l=this.h[4],y=r,b=n,w=i,M=h,_=l,k=0;k<80;k++){var S=s(o(u(r,c(k,n,i,h),t[p[k]+e],f(k)),v[k]),l);r=l,l=h,h=o(i,10),i=n,n=S,S=s(o(u(y,c(79-k,b,w,M),t[m[k]+e],d(k)),g[k]),_),y=_,_=M,M=o(w,10),w=b,b=S}S=a(this.h[1],i,M),this.h[1]=a(this.h[2],h,_),this.h[2]=a(this.h[3],l,y),this.h[3]=a(this.h[4],r,b),this.h[4]=a(this.h[0],n,w),this.h[0]=S},l.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[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],m=[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],v=[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],g=[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]},bbf9:function(t,e,r){(function(e,r){
/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
*
* @version 0.5.7
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2015-2016
* @license MIT
*/
(function(){"use strict";var n="object"===typeof window?window:{},i=!n.JS_SHA3_NO_NODE_JS&&"object"===typeof e&&e.versions&&e.versions.node;i&&(n=r);for(var o=!n.JS_SHA3_NO_COMMON_JS&&"object"===typeof t&&t.exports,s="0123456789abcdef".split(""),a=[31,7936,2031616,520093696],u=[1,256,65536,16777216],h=[6,1536,393216,100663296],l=[0,8,16,24],c=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],f=[224,256,384,512],d=[128,256],p=["hex","buffer","arrayBuffer","array"],m=function(t,e,r){return function(n){return new A(t,e,t).update(n)[r]()}},v=function(t,e,r){return function(n,i){return new A(t,e,i).update(n)[r]()}},g=function(t,e){var r=m(t,e,"hex");r.create=function(){return new A(t,e,t)},r.update=function(t){return r.create().update(t)};for(var n=0;n<p.length;++n){var i=p[n];r[i]=m(t,e,i)}return r},y=function(t,e){var r=v(t,e,"hex");r.create=function(r){return new A(t,e,r)},r.update=function(t,e){return r.create(e).update(t)};for(var n=0;n<p.length;++n){var i=p[n];r[i]=v(t,e,i)}return r},b=[{name:"keccak",padding:u,bits:f,createMethod:g},{name:"sha3",padding:h,bits:f,createMethod:g},{name:"shake",padding:a,bits:d,createMethod:y}],w={},M=[],_=0;_<b.length;++_)for(var k=b[_],S=k.bits,x=0;x<S.length;++x){var E=k.name+"_"+S[x];M.push(E),w[E]=k.createMethod(S[x],k.padding)}function A(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}A.prototype.update=function(t){var e="string"!==typeof t;e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));var r,n,i=t.length,o=this.blocks,s=this.byteCount,a=this.blockCount,u=0,h=this.s;while(u<i){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<a+1;++r)o[r]=0;if(e)for(r=this.start;u<i&&r<s;++u)o[r>>2]|=t[u]<<l[3&r++];else for(r=this.start;u<i&&r<s;++u)n=t.charCodeAt(u),n<128?o[r>>2]|=n<<l[3&r++]:n<2048?(o[r>>2]|=(192|n>>6)<<l[3&r++],o[r>>2]|=(128|63&n)<<l[3&r++]):n<55296||n>=57344?(o[r>>2]|=(224|n>>12)<<l[3&r++],o[r>>2]|=(128|n>>6&63)<<l[3&r++],o[r>>2]|=(128|63&n)<<l[3&r++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++u)),o[r>>2]|=(240|n>>18)<<l[3&r++],o[r>>2]|=(128|n>>12&63)<<l[3&r++],o[r>>2]|=(128|n>>6&63)<<l[3&r++],o[r>>2]|=(128|63&n)<<l[3&r++]);if(this.lastByteIndex=r,r>=s){for(this.start=r-s,this.block=o[a],r=0;r<a;++r)h[r]^=o[r];O(h),this.reset=!0}else this.start=r}return this},A.prototype.finalize=function(){var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];O(n)},A.prototype.toString=A.prototype.hex=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,u="";while(a<n){for(o=0;o<e&&a<n;++o,++a)t=r[o],u+=s[t>>4&15]+s[15&t]+s[t>>12&15]+s[t>>8&15]+s[t>>20&15]+s[t>>16&15]+s[t>>28&15]+s[t>>24&15];a%e===0&&(O(r),o=0)}return i&&(t=r[o],i>0&&(u+=s[t>>4&15]+s[15&t]),i>1&&(u+=s[t>>12&15]+s[t>>8&15]),i>2&&(u+=s[t>>20&15]+s[t>>16&15])),u},A.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);var u=new Uint32Array(t);while(s<n){for(o=0;o<e&&s<n;++o,++s)u[s]=r[o];s%e===0&&O(r)}return i&&(u[o]=r[o],t=t.slice(0,a)),t},A.prototype.buffer=A.prototype.arrayBuffer,A.prototype.digest=A.prototype.array=function(){this.finalize();var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,a=0,u=[];while(a<i){for(s=0;s<r&&a<i;++s,++a)t=a<<2,e=n[s],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;a%r===0&&O(n)}return o&&(t=a<<2,e=n[s],o>0&&(u[t]=255&e),o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u};var O=function(t){var e,r,n,i,o,s,a,u,h,l,f,d,p,m,v,g,y,b,w,M,_,k,S,x,E,A,O,T,C,P,B,I,R,N,j,L,U,D,F,z,q,H,$,V,K,W,G,Z,J,X,Y,Q,tt,et,rt,nt,it,ot,st,at,ut,ht,lt;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],h=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(s<<1|a>>>31),r=p^(a<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|h>>>31),r=o^(h<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(l<<1|f>>>31),r=a^(f<<1|l>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(d<<1|p>>>31),r=h^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],v=t[1],W=t[11]<<4|t[10]>>>28,G=t[10]<<4|t[11]>>>28,T=t[20]<<3|t[21]>>>29,C=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,$=t[41]<<18|t[40]>>>14,N=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,B=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,U=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,K=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,k=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~g&b,t[1]=v^~y&w,t[10]=x^~A&T,t[11]=E^~O&C,t[20]=N^~L&D,t[21]=j^~U&F,t[30]=V^~W&Z,t[31]=K^~G&J,t[40]=et^~nt&ot,t[41]=rt^~it&st,t[2]=g^~b&M,t[3]=y^~w&_,t[12]=A^~T&P,t[13]=O^~C&B,t[22]=L^~D&z,t[23]=U^~F&q,t[32]=W^~Z&X,t[33]=G^~J&Y,t[42]=nt^~ot&at,t[43]=it^~st&ut,t[4]=b^~M&k,t[5]=w^~_&S,t[14]=T^~P&I,t[15]=C^~B&R,t[24]=D^~z&H,t[25]=F^~q&$,t[34]=Z^~X&Q,t[35]=J^~Y&tt,t[44]=ot^~at&ht,t[45]=st^~ut&lt,t[6]=M^~k&m,t[7]=_^~S&v,t[16]=P^~I&x,t[17]=B^~R&E,t[26]=z^~H&N,t[27]=q^~$&j,t[36]=X^~Q&V,t[37]=Y^~tt&K,t[46]=at^~ht&et,t[47]=ut^~lt&rt,t[8]=k^~m&g,t[9]=S^~v&y,t[18]=I^~x&A,t[19]=R^~E&O,t[28]=H^~N&L,t[29]=$^~j&U,t[38]=Q^~V&W,t[39]=tt^~K&G,t[48]=ht^~et&nt,t[49]=lt^~rt&it,t[0]^=c[n],t[1]^=c[n+1]};if(o)t.exports=w;else for(_=0;_<M.length;++_)n[M[_]]=w[M[_]]})()}).call(this,r("f28c"),r("c8ba"))},bc12:function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s=r(17).Buffer}catch(E){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var s=t.charCodeAt(o)-48;n<<=4,n|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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"],l=[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],c=[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){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?h[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=l[t],d=c[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:h[f-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function v(t,e,r){var n=new g;return n.mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?m(this,t,e):v(this,t,e),r},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},g.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=f(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(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 b(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 w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){S.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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(w,b),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,b),i(_,b),i(k,b),k.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}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 w;else if("p224"===t)e=new M;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("62e4")(t))},bc3a:function(t,e,r){t.exports=r("cee4")},bc86:function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(21).Buffer}catch(A){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,l=r;l<a;l+=n)u=h(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var c=1;for(u=h(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],c=[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],f=[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 d(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?l[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],d=f[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:l[h-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function v(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function g(t,e,r){var n=new y;return n.mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?v(this,t,e):g(this,t,e),r},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},y.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=d(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function w(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 M(){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=o._prime(t);this.m=e.p,this.prime=e}else n(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)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(M,w),M.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,w),i(k,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new M;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 b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(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 r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},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)},i(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 r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._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,r("62e4")(t))},bcaa:function(t,e,r){var n=r("cb7c"),i=r("d3f4"),o=r("a5b8");t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t),s=r.resolve;return s(e),r.promise}},bd9d:function(t,e){function r(t){var e,r=t.length;while(r--){if(e=t.readUInt8(r),255!==e){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}t.exports=r},be09:function(t,e,r){(function(e){var r;r="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},t.exports=r}).call(this,r("c8ba"))},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},be6a:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessLists=void 0;var n=r("5b66"),i=r("6f3d"),o=function(){function t(){}return t.getAccessListData=function(t){var e,r;if(t&&i.isAccessList(t)){e=t;for(var o=[],s=0;s<t.length;s++){for(var a=t[s],u=n.toBuffer(a.address),h=[],l=0;l<a.storageKeys.length;l++)h.push(n.toBuffer(a.storageKeys[l]));o.push([u,h])}r=o}else{r=null!==t&&void 0!==t?t:[];var c=[];for(s=0;s<r.length;s++){var f=r[s],d=n.bufferToHex(f[0]),p=[];for(a=0;a<f[1].length;a++)p.push(n.bufferToHex(f[1][a]));var m={address:d,storageKeys:p};c.push(m)}e=c}return{AccessListJSON:e,accessList:r}},t.verifyAccessList=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=r[0],i=r[1];if(void 0!==r[2])throw new Error("Access list item cannot have 3 elements. It can only have an address, and an array of storage slots.");if(20!=n.length)throw new Error("Invalid EIP-2930 transaction: address length should be 20 bytes");for(var o=0;o<i.length;o++)if(32!=i[o].length)throw new Error("Invalid EIP-2930 transaction: storage slot length should be 32 bytes")}},t.getAccessListJSON=function(t){for(var e=[],r=0;r<t.length;r++){for(var i=t[r],o={address:"0x"+n.setLengthLeft(i[0],20).toString("hex"),storageKeys:[]},s=i[1],a=0;a<s.length;a++){var u=s[a];o.storageKeys.push("0x"+n.setLengthLeft(u,32).toString("hex"))}e.push(o)}return e},t.getDataFeeEIP2930=function(t,e){for(var r=e.param("gasPrices","accessListStorageKeyCost"),n=e.param("gasPrices","accessListAddressCost"),i=0,o=0;o<t.length;o++){var s=t[o],a=s[1];i+=a.length}var u=t.length;return u*n+i*r},t}();e.AccessLists=o},c044:function(t,e,r){"use strict";var n=r("490f"),i=r("68e2");t.exports={errors:n,formatters:i}},c063:function(t,e,r){const n=r("166e"),i=r("c23d"),o=(t,e)=>{if(e=Array.prototype.slice.call(e),!t)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(t,"currentProvider",{get:()=>t._provider,set:e=>t.setProvider(e),enumerable:!0,configurable:!0}),e[0]&&e[0]._requestManager?t._requestManager=e[0]._requestManager:t._requestManager=new n.Manager(e[0],e[1]),t.givenProvider=n.Manager.givenProvider,t.providers=n.Manager.providers,t._provider=t._requestManager.provider,t.setProvider||(t.setProvider=(e,r)=>(t._requestManager.setProvider(e,r),t._provider=t._requestManager.provider,!0)),t.setRequestManager=e=>{t._requestManager=e,t._provider=e.provider},t.BatchRequest=n.BatchManager.bind(null,t._requestManager),t.extend=i(t)},s=t=>{t.givenProvider=n.Manager.givenProvider,t.providers=n.Manager.providers};t.exports={packageInit:o,addProviders:s}},c119:function(t,e,r){var n=r("8c8a");e.encrypt=function(t,e){var r=n(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return n(i,r)}},c23d:function(t,e,r){"use strict";var n=r("c044").formatters,i=r("7789"),o=r("5ba3"),s=function(t){var e=function(e){var r;return e.property?(t[e.property]||(t[e.property]={}),r=t[e.property]):r=t,e.methods&&e.methods.forEach((function(e){e instanceof i||(e=new i(e)),e.attachToObject(r),e.setRequestManager(t._requestManager)})),t};return e.formatters=n,e.utils=o,e.Method=i,e};t.exports=s},c24b:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return $}));var n=r("4121"),i=r.n(n),o=r("7d92"),s=r.n(o);"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function a(t,e,r){return r={path:e,exports:{},require:function(t,e){return u(t,void 0===e||null===e?r.path:e)}},t(r,r.exports),r.exports}function u(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var h=l;function l(t,e){if(!t)throw new Error(e||"Assertion failed")}l.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var c=a((function(t,e){var r=e;function n(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!==typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t);for(n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}return r}function i(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",r=0;r<t.length;r++)e+=i(t[r].toString(16));return e}r.toArray=n,r.zero2=i,r.toHex=o,r.encode=function(t,e){return"hex"===e?o(t):t}})),f=a((function(t,e){var r=e;function n(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,o=t.clone(),s=0;s<n.length;s++){var a,u=o.andln(i-1);o.isOdd()?(a=u>(i>>1)-1?(i>>1)-u:u,o.isubn(a)):a=0,n[s]=a,o.iushrn(1)}return n}function o(t,e){var r=[[],[]];t=t.clone(),e=e.clone();var n,i=0,o=0;while(t.cmpn(-i)>0||e.cmpn(-o)>0){var s,a,u=t.andln(3)+i&3,h=e.andln(3)+o&3;3===u&&(u=-1),3===h&&(h=-1),0===(1&u)?s=0:(n=t.andln(7)+i&7,s=3!==n&&5!==n||2!==h?u:-u),r[0].push(s),0===(1&h)?a=0:(n=e.andln(7)+o&7,a=3!==n&&5!==n||2!==u?h:-h),r[1].push(a),2*i===s+1&&(i=1-i),2*o===a+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r}function s(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function a(t){return"string"===typeof t?r.toArray(t,"hex"):t}function u(t){return new i.a(t,"hex","le")}r.assert=h,r.toArray=c.toArray,r.zero2=c.zero2,r.toHex=c.toHex,r.encode=c.encode,r.getNAF=n,r.getJSF=o,r.cachedProperty=s,r.parseBytes=a,r.intFromLE=u})),d=f.getNAF,p=f.getJSF,m=f.assert;function v(t,e){this.type=t,this.p=new i.a(e.p,16),this.red=e.prime?i.a.red(e.prime):i.a.mont(this.p),this.zero=new i.a(0).toRed(this.red),this.one=new i.a(1).toRed(this.red),this.two=new i.a(2).toRed(this.red),this.n=e.n&&new i.a(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var g=v;function y(t,e){this.curve=t,this.type=e,this.precomputed=null}v.prototype.point=function(){throw new Error("Not implemented")},v.prototype.validate=function(){throw new Error("Not implemented")},v.prototype._fixedNafMul=function(t,e){m(t.precomputed);var r=t._getDoubles(),n=d(e,1,this._bitLength),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;var o,s,a=[];for(o=0;o<n.length;o+=r.step){s=0;for(var u=o+r.step-1;u>=o;u--)s=(s<<1)+n[u];a.push(s)}for(var h=this.jpoint(null,null,null),l=this.jpoint(null,null,null),c=i;c>0;c--){for(o=0;o<a.length;o++)s=a[o],s===c?l=l.mixedAdd(r.points[o]):s===-c&&(l=l.mixedAdd(r.points[o].neg()));h=h.add(l)}return h.toP()},v.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=d(e,r,this._bitLength),s=this.jpoint(null,null,null),a=o.length-1;a>=0;a--){for(var u=0;a>=0&&0===o[a];a--)u++;if(a>=0&&u++,s=s.dblp(u),a<0)break;var h=o[a];m(0!==h),s="affine"===t.type?h>0?s.mixedAdd(i[h-1>>1]):s.mixedAdd(i[-h-1>>1].neg()):h>0?s.add(i[h-1>>1]):s.add(i[-h-1>>1].neg())}return"affine"===t.type?s.toP():s},v.prototype._wnafMulAdd=function(t,e,r,n,i){var o,s,a,u=this._wnafT1,h=this._wnafT2,l=this._wnafT3,c=0;for(o=0;o<n;o++){a=e[o];var f=a._getNAFPoints(t);u[o]=f.wnd,h[o]=f.points}for(o=n-1;o>=1;o-=2){var m=o-1,v=o;if(1===u[m]&&1===u[v]){var g=[e[m],null,null,e[v]];0===e[m].y.cmp(e[v].y)?(g[1]=e[m].add(e[v]),g[2]=e[m].toJ().mixedAdd(e[v].neg())):0===e[m].y.cmp(e[v].y.redNeg())?(g[1]=e[m].toJ().mixedAdd(e[v]),g[2]=e[m].add(e[v].neg())):(g[1]=e[m].toJ().mixedAdd(e[v]),g[2]=e[m].toJ().mixedAdd(e[v].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],b=p(r[m],r[v]);for(c=Math.max(b[0].length,c),l[m]=new Array(c),l[v]=new Array(c),s=0;s<c;s++){var w=0|b[0][s],M=0|b[1][s];l[m][s]=y[3*(w+1)+(M+1)],l[v][s]=0,h[m]=g}}else l[m]=d(r[m],u[m],this._bitLength),l[v]=d(r[v],u[v],this._bitLength),c=Math.max(l[m].length,c),c=Math.max(l[v].length,c)}var _=this.jpoint(null,null,null),k=this._wnafT4;for(o=c;o>=0;o--){var S=0;while(o>=0){var x=!0;for(s=0;s<n;s++)k[s]=0|l[s][o],0!==k[s]&&(x=!1);if(!x)break;S++,o--}if(o>=0&&S++,_=_.dblp(S),o<0)break;for(s=0;s<n;s++){var E=k[s];0!==E&&(E>0?a=h[s][E-1>>1]:E<0&&(a=h[s][-E-1>>1].neg()),_="affine"===a.type?_.mixedAdd(a):_.add(a))}}for(o=0;o<n;o++)h[o]=null;return i?_:_.toP()},v.BasePoint=y,y.prototype.eq=function(){throw new Error("Not implemented")},y.prototype.validate=function(){return this.curve.validate(this)},v.prototype.decodePoint=function(t,e){t=f.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1===2*r){6===t[0]?m(t[t.length-1]%2===0):7===t[0]&&m(t[t.length-1]%2===1);var n=this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));return n}if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},y.prototype.encodeCompressed=function(t){return this.encode(t,!0)},y.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},y.prototype.encode=function(t,e){return f.encode(this._encode(e),t)},y.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},y.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},y.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},y.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},y.prototype._getBeta=function(){return null},y.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var b=a((function(t){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}})),w=f.assert;function M(t){g.call(this,"short",t),this.a=new i.a(t.a,16).toRed(this.red),this.b=new i.a(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}b(M,g);var _=M;function k(t,e,r,n){g.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i.a(e,16),this.y=new i.a(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function S(t,e,r,n){g.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i.a(0)):(this.x=new i.a(e,16),this.y=new i.a(r,16),this.z=new i.a(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}M.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r,n;if(t.beta)e=new i.a(t.beta,16).toRed(this.red);else{var o=this._getEndoRoots(this.p);e=o[0].cmp(o[1])<0?o[0]:o[1],e=e.toRed(this.red)}if(t.lambda)r=new i.a(t.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(e))?r=s[0]:(r=s[1],w(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return n=t.basis?t.basis.map((function(t){return{a:new i.a(t.a,16),b:new i.a(t.b,16)}})):this._getEndoBasis(r),{beta:e,lambda:r,basis:n}}},M.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.a.mont(t),r=new i.a(2).toRed(e).redInvm(),n=r.redNeg(),o=new i.a(3).toRed(e).redNeg().redSqrt().redMul(r),s=n.redAdd(o).fromRed(),a=n.redSub(o).fromRed();return[s,a]},M.prototype._getEndoBasis=function(t){var e,r,n,o,s,a,u,h,l,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=t,d=this.n.clone(),p=new i.a(1),m=new i.a(0),v=new i.a(0),g=new i.a(1),y=0;while(0!==f.cmpn(0)){var b=d.div(f);h=d.sub(b.mul(f)),l=v.sub(b.mul(p));var w=g.sub(b.mul(m));if(!n&&h.cmp(c)<0)e=u.neg(),r=p,n=h.neg(),o=l;else if(n&&2===++y)break;u=h,d=f,f=h,v=p,p=l,g=m,m=w}s=h.neg(),a=l;var M=n.sqr().add(o.sqr()),_=s.sqr().add(a.sqr());return _.cmp(M)>=0&&(s=e,a=r),n.negative&&(n=n.neg(),o=o.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:n,b:o},{a:s,b:a}]},M.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),h=o.mul(n.b),l=t.sub(s).sub(a),c=u.add(h).neg();return{k1:l,k2:c}},M.prototype.pointFromX=function(t,e){t=new i.a(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(e&&!o||!e&&o)&&(n=n.redNeg()),this.point(t,n)},M.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},M.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var s=this._endoSplit(e[o]),a=t[o],u=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),u=u.neg(!0)),n[2*o]=a,n[2*o+1]=u,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var h=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return h},b(k,g.BasePoint),M.prototype.point=function(t,e,r){return new k(this,t,e,r)},M.prototype.pointFromJSON=function(t,e){return k.fromJSON(this,t,e)},k.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},k.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},k.fromJSON=function(t,e,r){"string"===typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},k.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},k.prototype.isInfinity=function(){return this.inf},k.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},k.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(t){return t=new i.a(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},k.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},k.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},k.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},k.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},k.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t},b(S,g.BasePoint),M.prototype.jpoint=function(t,e,r){return new S(this,t,e,r)},S.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},S.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},S.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=a.redSqr(),l=h.redMul(a),c=n.redMul(h),f=u.redSqr().redIAdd(l).redISub(c).redISub(c),d=u.redMul(c.redISub(f)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(f,d,p)},S.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),h=u.redMul(s),l=r.redMul(u),c=a.redSqr().redIAdd(h).redISub(l).redISub(l),f=a.redMul(l.redISub(c)).redISub(i.redMul(h)),d=this.z.redMul(s);return this.curve.jpoint(c,f,d)},S.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,u=a.redSqr().redSqr(),h=s.redAdd(s);for(e=0;e<t;e++){var l=o.redSqr(),c=h.redSqr(),f=c.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(c),m=d.redSqr().redISub(p.redAdd(p)),v=p.redISub(m),g=d.redMul(v);g=g.redIAdd(g).redISub(f);var y=h.redMul(a);e+1<t&&(u=u.redMul(f)),o=m,a=y,h=g}return this.curve.jpoint(o,h.redMul(i),a)},S.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},S.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),u=a.redSqr().redISub(s).redISub(s),h=o.redIAdd(o);h=h.redIAdd(h),h=h.redIAdd(h),t=u,e=a.redMul(s.redISub(u)).redISub(h),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),c=this.y.redSqr(),f=c.redSqr(),d=this.x.redAdd(c).redSqr().redISub(l).redISub(f);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),v=f.redIAdd(f);v=v.redIAdd(v),v=v.redIAdd(v),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(v),r=this.y.redMul(this.z),r=r.redIAdd(r)}return this.curve.jpoint(t,e,r)},S.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=a.redSqr().redISub(s).redISub(s);t=u;var h=o.redIAdd(o);h=h.redIAdd(h),h=h.redIAdd(h),e=a.redMul(s.redISub(u)).redISub(h),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),c=this.y.redSqr(),f=this.x.redMul(c),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=f.redIAdd(f);p=p.redIAdd(p);var m=p.redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(c).redISub(l);var v=c.redSqr();v=v.redIAdd(v),v=v.redIAdd(v),v=v.redIAdd(v),e=d.redMul(p.redISub(t)).redISub(v)}return this.curve.jpoint(t,e,r)},S.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e);u=u.redIAdd(u);var h=u.redMul(s),l=a.redSqr().redISub(h.redAdd(h)),c=h.redISub(l),f=s.redSqr();f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var d=a.redMul(c).redISub(f),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},S.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),s=this.x.redAdd(e).redSqr().redISub(t).redISub(n);s=s.redIAdd(s),s=s.redAdd(s).redIAdd(s),s=s.redISub(o);var a=s.redSqr(),u=n.redIAdd(n);u=u.redIAdd(u),u=u.redIAdd(u),u=u.redIAdd(u);var h=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(u),l=e.redMul(h);l=l.redIAdd(l),l=l.redIAdd(l);var c=this.x.redMul(a).redISub(l);c=c.redIAdd(c),c=c.redIAdd(c);var f=this.y.redMul(h.redMul(u.redISub(h)).redISub(s.redMul(a)));f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var d=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(c,f,d)},S.prototype.mul=function(t,e){return t=new i.a(t,e),this.curve._wnafMul(this,t)},S.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},S.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},S.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},S.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var x=a((function(t,e){var r=e;r.base=g,r.short=_,r.mont=null,r.edwards=null})),E=a((function(t,e){var r,n=e,i=f.assert;function o(t){"short"===t.type?this.curve=new x.short(t):"edwards"===t.type?this.curve=new x.edwards(t):this.curve=new x.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new o(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.a.sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(u){r=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function A(t){if(!(this instanceof A))return new A(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=c.toArray(t.entropy,t.entropyEnc||"hex"),r=c.toArray(t.nonce,t.nonceEnc||"hex"),n=c.toArray(t.pers,t.persEnc||"hex");h(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var O=A;A.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},A.prototype._hmac=function(){return new s.a.hmac(this.hash,this.K)},A.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},A.prototype.reseed=function(t,e,r,n){"string"!==typeof e&&(n=r,r=e,e=null),t=c.toArray(t,e),r=c.toArray(r,n),h(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},A.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(n=r,r=e,e=null),r&&(r=c.toArray(r,n||"hex"),this._update(r));var i=[];while(i.length<t)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,t);return this._update(r),this._reseed++,c.encode(o,e)};var T=f.assert;function C(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var P=C;C.fromPublic=function(t,e,r){return e instanceof C?e:new C(t,{pub:e,pubEnc:r})},C.fromPrivate=function(t,e,r){return e instanceof C?e:new C(t,{priv:e,privEnc:r})},C.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},C.prototype.getPublic=function(t,e){return"string"===typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},C.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},C.prototype._importPrivate=function(t,e){this.priv=new i.a(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},C.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?T(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||T(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},C.prototype.derive=function(t){return t.validate()||T(t.validate(),"public point not validated"),t.mul(this.priv).getX()},C.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},C.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},C.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var B=f.assert;function I(t,e){if(t instanceof I)return t;this._importDER(t,e)||(B(t.r&&t.s,"Signature without r or s"),this.r=new i.a(t.r,16),this.s=new i.a(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var R=I;function N(){this.place=0}function j(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,s=e.place;o<n;o++,s++)i<<=8,i|=t[s],i>>>=0;return!(i<=127)&&(e.place=s,i)}function L(t){var e=0,r=t.length-1;while(!t[e]&&!(128&t[e+1])&&e<r)e++;return 0===e?t:t.slice(e)}function U(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);t.push(128|r);while(--r)t.push(e>>>(r<<3)&255);t.push(e)}}I.prototype._importDER=function(t,e){t=f.toArray(t,e);var r=new N;if(48!==t[r.place++])return!1;var n=j(t,r);if(!1===n)return!1;if(n+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var o=j(t,r);if(!1===o)return!1;var s=t.slice(r.place,o+r.place);if(r.place+=o,2!==t[r.place++])return!1;var a=j(t,r);if(!1===a)return!1;if(t.length!==a+r.place)return!1;var u=t.slice(r.place,a+r.place);if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new i.a(s),this.s=new i.a(u),this.recoveryParam=null,!0},I.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=L(e),r=L(r);while(!r[0]&&!(128&r[1]))r=r.slice(1);var n=[2];U(n,e.length),n=n.concat(e),n.push(2),U(n,r.length);var i=n.concat(r),o=[48];return U(o,i.length),o=o.concat(i),f.encode(o,t)};var D=function(){throw new Error("unsupported")},F=f.assert;function z(t){if(!(this instanceof z))return new z(t);"string"===typeof t&&(F(Object.prototype.hasOwnProperty.call(E,t),"Unknown curve "+t),t=E[t]),t instanceof E.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var q=z;z.prototype.keyPair=function(t){return new P(this,t)},z.prototype.keyFromPrivate=function(t,e){return P.fromPrivate(this,t,e)},z.prototype.keyFromPublic=function(t,e){return P.fromPublic(this,t,e)},z.prototype.genKeyPair=function(t){t||(t={});for(var e=new O({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||D(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new i.a(2));;){var o=new i.a(e.generate(r));if(!(o.cmp(n)>0))return o.iaddn(1),this.keyFromPrivate(o)}},z.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},z.prototype.sign=function(t,e,r,n){"object"===typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new i.a(t,16));for(var o=this.n.byteLength(),s=e.getPrivate().toArray("be",o),a=t.toArray("be",o),u=new O({hash:this.hash,entropy:s,nonce:a,pers:n.pers,persEnc:n.persEnc||"utf8"}),h=this.n.sub(new i.a(1)),l=0;;l++){var c=n.k?n.k(l):new i.a(u.generate(this.n.byteLength()));if(c=this._truncateToN(c,!0),!(c.cmpn(1)<=0||c.cmp(h)>=0)){var f=this.g.mul(c);if(!f.isInfinity()){var d=f.getX(),p=d.umod(this.n);if(0!==p.cmpn(0)){var m=c.invm(this.n).mul(p.mul(e.getPrivate()).iadd(t));if(m=m.umod(this.n),0!==m.cmpn(0)){var v=(f.getY().isOdd()?1:0)|(0!==d.cmp(p)?2:0);return n.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new R({r:p,s:m,recoveryParam:v})}}}}}},z.prototype.verify=function(t,e,r,n){t=this._truncateToN(new i.a(t,16)),r=this.keyFromPublic(r,n),e=new R(e,"hex");var o=e.r,s=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var a,u=s.invm(this.n),h=u.mul(t).umod(this.n),l=u.mul(o).umod(this.n);return this.curve._maxwellTrick?(a=this.g.jmulAdd(h,r.getPublic(),l),!a.isInfinity()&&a.eqXToP(o)):(a=this.g.mulAdd(h,r.getPublic(),l),!a.isInfinity()&&0===a.getX().umod(this.n).cmp(o))},z.prototype.recoverPubKey=function(t,e,r,n){F((3&r)===r,"The recovery param is more than two bits"),e=new R(e,n);var o=this.n,s=new i.a(t),a=e.r,u=e.s,h=1&r,l=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");a=l?this.curve.pointFromX(a.add(this.curve.n),h):this.curve.pointFromX(a,h);var c=e.r.invm(o),f=o.sub(s).mul(c).umod(o),d=u.mul(c).umod(o);return this.g.mulAdd(f,a,d)},z.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new R(e,n),null!==e.recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var H=a((function(t,e){var r=e;r.version={version:"6.5.4"}.version,r.utils=f,r.rand=function(){throw new Error("unsupported")},r.curve=x,r.curves=E,r.ec=q,r.eddsa=null})),$=H.ec}).call(this,r("c8ba"))},c24d:function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},c26b:function(t,e,r){"use strict";var n=r("86cc").f,i=r("2aeb"),o=r("dcbc"),s=r("9b43"),a=r("f605"),u=r("4a59"),h=r("01f9"),l=r("d53b"),c=r("7a56"),f=r("9e1e"),d=r("67ab").fastKey,p=r("b39a"),m=f?"_s":"size",v=function(t,e){var r,n=d(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};t.exports={getConstructor:function(t,e,r,h){var l=t((function(t,n){a(t,l,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=n&&u(n,r,t[h],t)}));return o(l.prototype,{clear:function(){for(var t=p(this,e),r=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var r=p(this,e),n=v(r,t);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[m]--}return!!n},forEach:function(t){p(this,e);var r,n=s(t,arguments.length>1?arguments[1]:void 0,3);while(r=r?r.n:this._f){n(r.v,r.k,this);while(r&&r.r)r=r.p}},has:function(t){return!!v(p(this,e),t)}}),f&&n(l.prototype,"size",{get:function(){return p(this,e)[m]}}),l},def:function(t,e,r){var n,i,o=v(t,e);return o?o.v=r:(t._l=o={i:i=d(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[m]++,"F"!==i&&(t._i[i]=o)),t},getEntry:v,setStrong:function(t,e,r){h(t,e,(function(t,r){this._t=p(t,e),this._k=r,this._l=void 0}),(function(){var t=this,e=t._k,r=t._l;while(r&&r.r)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?l(0,"keys"==e?r.k:"values"==e?r.v:[r.k,r.v]):(t._t=void 0,l(1))}),r?"entries":"values",!r,!0),c(e)}}},c2ae:function(t,e,r){t.exports=r("e372").PassThrough},c31d:function(t,e,r){"use strict";function n(){return n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n.apply(this,arguments)}r.d(e,"a",(function(){return n}))},c331:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r("990e"),i=r("6983");e.keccak224=n.createHashFunction((function(){return i("keccak224")})),e.keccak256=n.createHashFunction((function(){return i("keccak256")})),e.keccak384=n.createHashFunction((function(){return i("keccak384")})),e.keccak512=n.createHashFunction((function(){return i("keccak512")}))},c345:function(t,e,r){"use strict";var n=r("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,o,s={};return t?(n.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=n.trim(t.substr(0,o)).toLowerCase(),r=n.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([r]):s[e]?s[e]+", "+r:r}})),s):s}},c366:function(t,e,r){var n=r("6821"),i=r("9def"),o=r("77f1");t.exports=function(t){return function(e,r,s){var a,u=n(e),h=i(u.length),l=o(s,h);if(t&&r!=r){while(h>l)if(a=u[l++],a!=a)return!0}else for(;h>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}}},c3c0:function(t,e,r){"use strict";var n=r("da3e"),i=r("3fb5");function o(t,e){return 55296===(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function s(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"===typeof t)if(e){if("hex"===e)for(t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var n=0,i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?r[n++]=s:s<2048?(r[n++]=s>>6|192,r[n++]=63&s|128):o(t,i)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++i)),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=63&s|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=63&s|128)}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r}function a(t){for(var e="",r=0;r<t.length;r++)e+=l(t[r].toString(16));return e}function u(t){var e=t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24;return e>>>0}function h(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=u(i)),r+=c(i.toString(16))}return r}function l(t){return 1===t.length?"0"+t:t}function c(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}function f(t,e,r,i){var o=r-e;n(o%4===0);for(var s=new Array(o/4),a=0,u=e;a<s.length;a++,u+=4){var h;h="big"===i?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],s[a]=h>>>0}return s}function d(t,e){for(var r=new Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var o=t[n];"big"===e?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r}function p(t,e){return t>>>e|t<<32-e}function m(t,e){return t<<e|t>>>32-e}function v(t,e){return t+e>>>0}function g(t,e,r){return t+e+r>>>0}function y(t,e,r,n){return t+e+r+n>>>0}function b(t,e,r,n,i){return t+e+r+n+i>>>0}function w(t,e,r,n){var i=t[e],o=t[e+1],s=n+o>>>0,a=(s<n?1:0)+r+i;t[e]=a>>>0,t[e+1]=s}function M(t,e,r,n){var i=e+n>>>0,o=(i<e?1:0)+t+r;return o>>>0}function _(t,e,r,n){var i=e+n;return i>>>0}function k(t,e,r,n,i,o,s,a){var u=0,h=e;h=h+n>>>0,u+=h<e?1:0,h=h+o>>>0,u+=h<o?1:0,h=h+a>>>0,u+=h<a?1:0;var l=t+r+i+s+u;return l>>>0}function S(t,e,r,n,i,o,s,a){var u=e+n+o+a;return u>>>0}function x(t,e,r,n,i,o,s,a,u,h){var l=0,c=e;c=c+n>>>0,l+=c<e?1:0,c=c+o>>>0,l+=c<o?1:0,c=c+a>>>0,l+=c<a?1:0,c=c+h>>>0,l+=c<h?1:0;var f=t+r+i+s+u+l;return f>>>0}function E(t,e,r,n,i,o,s,a,u,h){var l=e+n+o+a+h;return l>>>0}function A(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}function O(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}function T(t,e,r){return t>>>r}function C(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}e.inherits=i,e.toArray=s,e.toHex=a,e.htonl=u,e.toHex32=h,e.zero2=l,e.zero8=c,e.join32=f,e.split32=d,e.rotr32=p,e.rotl32=m,e.sum32=v,e.sum32_3=g,e.sum32_4=y,e.sum32_5=b,e.sum64=w,e.sum64_hi=M,e.sum64_lo=_,e.sum64_4_hi=k,e.sum64_4_lo=S,e.sum64_5_hi=x,e.sum64_5_lo=E,e.rotr64_hi=A,e.rotr64_lo=O,e.shr64_hi=T,e.shr64_lo=C},c3e6:function(t,e,r){"use strict";var n=r("b287"),i=function(t){this.name=t.name,this.type=t.type,this.subscriptions=t.subscriptions||{},this.requestManager=null};i.prototype.setRequestManager=function(t){this.requestManager=t},i.prototype.attachToObject=function(t){var e=this.buildCall(),r=this.name.split(".");r.length>1?(t[r[0]]=t[r[0]]||{},t[r[0]][r[1]]=e):t[r[0]]=e},i.prototype.buildCall=function(){var t=this;return function(){t.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var e=new n({subscription:t.subscriptions[arguments[0]]||{},requestManager:t.requestManager,type:t.type});return e.subscribe.apply(e,arguments)}},t.exports={subscriptions:i,subscription:n}},c401:function(t,e,r){"use strict";var n=r("c532");t.exports=function(t,e,r){return n.forEach(r,(function(r){t=r(t,e)})),t}},c444:function(t,e,r){"use strict";function n(t,e){t=t.replace(new RegExp("=","g"),"");const r=t.length;let n=0,i=0,o=0;const s=new Uint8Array(5*r/8|0);for(let a=0;a<r;a++)i=i<<5|e.indexOf(t[a]),n+=5,n>=8&&(s[o++]=i>>>n-8&255,n-=8);return s.buffer}function i(t,e){const r=t.byteLength,n=new Uint8Array(t),i=e.indexOf("=")===e.length-1;i&&(e=e.substring(0,e.length-1));let o=0,s=0,a="";for(let u=0;u<r;u++){s=s<<8|n[u],o+=8;while(o>=5)a+=e[s>>>o-5&31],o-=5}if(o>0&&(a+=e[s<<5-o&31]),i)while(a.length%8!==0)a+="=";return a}t.exports=function(t){return{encode(e){return i("string"===typeof e?Uint8Array.from(e):e,t)},decode(e){for(const r of e)if(t.indexOf(r)<0)throw new Error("invalid base32 character");return n(e,t)}}}},c449:function(t,e,r){"use strict";const{Buffer:n}=r("b639"),i=r("354e"),o=r("675c"),s=r("7106"),a=r("0222"),u=r("42a6"),h=r("ec12");class l{constructor(t,e,r,a){if(c.isCID(t)){const e=t;return this.version=e.version,this.codec=e.codec,this.multihash=n.from(e.multihash),void(this.multibaseName=e.multibaseName||(0===e.version?"base58btc":"base32"))}if("string"===typeof t){const e=o.isEncoded(t);if(e){const r=o.decode(t);this.version=parseInt(r.slice(0,1).toString("hex"),16),this.codec=s.getCodec(r.slice(1)),this.multihash=s.rmPrefix(r.slice(1)),this.multibaseName=e}else this.version=0,this.codec="dag-pb",this.multihash=i.fromB58String(t),this.multibaseName="base58btc";return l.validateCID(this),void Object.defineProperty(this,"string",{value:t})}if(n.isBuffer(t)){const e=t.slice(0,1),r=parseInt(e.toString("hex"),16);if(1===r){const e=t;this.version=r,this.codec=s.getCodec(e.slice(1)),this.multihash=s.rmPrefix(e.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=t,this.multibaseName="base58btc";l.validateCID(this)}else this.version=t,this.codec=e,this.multihash=r,this.multibaseName=a||(0===t?"base58btc":"base32"),l.validateCID(this)}get buffer(){let t=this._buffer;if(!t){if(0===this.version)t=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");t=n.concat([n.from("01","hex"),s.getCodeVarint(this.codec),this.multihash])}Object.defineProperty(this,"_buffer",{value:t})}return t}get prefix(){return n.concat([n.from("0"+this.version,"hex"),s.getCodeVarint(this.codec),i.prefix(this.multihash)])}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");const{name:t,length:e}=i.decode(this.multihash);if("sha2-256"!==t)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==e)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new c(0,this.codec,this.multihash)}toV1(){return new c(1,this.codec,this.multihash)}toBaseEncodedString(t=this.multibaseName){if(this.string&&t===this.multibaseName)return this.string;let e=null;if(0===this.version){if("base58btc"!==t)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");e=i.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");e=o.encode(t,this.buffer).toString()}return t===this.multibaseName&&Object.defineProperty(this,"string",{value:e}),e}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(t){return this.toBaseEncodedString(t)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(t){return this.codec===t.codec&&this.version===t.version&&this.multihash.equals(t.multihash)}static validateCID(t){const e=u.checkCIDComponents(t);if(e)throw new Error(e)}}const c=h(l,{className:"CID",symbolName:"@ipld/js-cid/CID"});c.codecs=a,t.exports=c},c532:function(t,e,r){"use strict";var n=r("1d2b"),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function s(t){return"undefined"===typeof t}function a(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function u(t){return"[object ArrayBuffer]"===i.call(t)}function h(t){return"undefined"!==typeof FormData&&t instanceof FormData}function l(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function c(t){return"string"===typeof t}function f(t){return"number"===typeof t}function d(t){return null!==t&&"object"===typeof t}function p(t){return"[object Date]"===i.call(t)}function m(t){return"[object File]"===i.call(t)}function v(t){return"[object Blob]"===i.call(t)}function g(t){return"[object Function]"===i.call(t)}function y(t){return d(t)&&g(t.pipe)}function b(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function w(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function M(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function _(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function k(){var t={};function e(e,r){"object"===typeof t[r]&&"object"===typeof e?t[r]=k(t[r],e):t[r]=e}for(var r=0,n=arguments.length;r<n;r++)_(arguments[r],e);return t}function S(){var t={};function e(e,r){"object"===typeof t[r]&&"object"===typeof e?t[r]=S(t[r],e):t[r]="object"===typeof e?S({},e):e}for(var r=0,n=arguments.length;r<n;r++)_(arguments[r],e);return t}function x(t,e,r){return _(e,(function(e,i){t[i]=r&&"function"===typeof e?n(e,r):e})),t}t.exports={isArray:o,isArrayBuffer:u,isBuffer:a,isFormData:h,isArrayBufferView:l,isString:c,isNumber:f,isObject:d,isUndefined:s,isDate:p,isFile:m,isBlob:v,isFunction:g,isStream:y,isURLSearchParams:b,isStandardBrowserEnv:M,forEach:_,merge:k,deepMerge:S,extend:x,trim:w}},c5f6:function(t,e,r){"use strict";var n=r("7726"),i=r("69a8"),o=r("2d95"),s=r("5dbc"),a=r("6a99"),u=r("79e5"),h=r("9093").f,l=r("11e9").f,c=r("86cc").f,f=r("aa77").trim,d="Number",p=n[d],m=p,v=p.prototype,g=o(r("2aeb")(v))==d,y="trim"in String.prototype,b=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=y?e.trim():f(e,3);var r,n,i,o=e.charCodeAt(0);if(43===o||45===o){if(r=e.charCodeAt(2),88===r||120===r)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var s,u=e.slice(2),h=0,l=u.length;h<l;h++)if(s=u.charCodeAt(h),s<48||s>i)return NaN;return parseInt(u,n)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof p&&(g?u((function(){v.valueOf.call(r)})):o(r)!=d)?s(new m(b(e)),r,p):b(e)};for(var w,M=r("9e1e")?h(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;M.length>_;_++)i(m,w=M[_])&&!i(p,w)&&c(p,w,l(m,w));p.prototype=v,v.constructor=p,r("2aba")(n,d,p)}},c674:function(t){t.exports=JSON.parse('{"name":"EIP-3554","comment":"Reduction in refunds","url":"Difficulty Bomb Delay to December 1st 2021","status":"Draft","minimumHardfork":"muirGlacier","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{"difficultyBombDelay":{"v":9500000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},c69a:function(t,e,r){t.exports=!r("9e1e")&&!r("79e5")((function(){return 7!=Object.defineProperty(r("230e")("div"),"a",{get:function(){return 7}}).a}))},c8af:function(t,e,r){"use strict";var n=r("c532");t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},c905:function(t){t.exports=JSON.parse('{"name":"mainnet","chainId":1,"networkId":1,"defaultHardfork":"istanbul","consensus":{"type":"pow","algorithm":"ethash","ethash":{}},"comment":"The Ethereum main chain","url":"https://ethstats.net/","genesis":{"hash":"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3","timestamp":null,"gasLimit":5000,"difficulty":17179869184,"nonce":"0x0000000000000042","extraData":"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa","stateRoot":"0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xfc64ec04"},{"name":"homestead","block":1150000,"forkHash":"0x97c2c34c"},{"name":"dao","block":1920000,"forkHash":"0x91d1f948"},{"name":"tangerineWhistle","block":2463000,"forkHash":"0x7a64da13"},{"name":"spuriousDragon","block":2675000,"forkHash":"0x3edd5b10"},{"name":"byzantium","block":4370000,"forkHash":"0xa00bc324"},{"name":"constantinople","block":7280000,"forkHash":"0x668db0af"},{"name":"petersburg","block":7280000,"forkHash":"0x668db0af"},{"name":"istanbul","block":9069000,"forkHash":"0x879d6e30"},{"name":"muirGlacier","block":9200000,"forkHash":"0xe029e991"},{"name":"berlin","block":12244000,"forkHash":"0x0eb440f6"},{"name":"london","block":12965000,"forkHash":"0xb715077d"}],"bootstrapNodes":[{"ip":"18.138.108.67","port":30303,"id":"d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666","location":"ap-southeast-1-001","comment":"bootnode-aws-ap-southeast-1-001"},{"ip":"3.209.45.79","port":30303,"id":"22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de","location":"us-east-1-001","comment":"bootnode-aws-us-east-1-001"},{"ip":"34.255.23.113","port":30303,"id":"ca6de62fce278f96aea6ec5a2daadb877e51651247cb96ee310a318def462913b653963c155a0ef6c7d50048bba6e6cea881130857413d9f50a621546b590758","location":"eu-west-1-001","comment":"bootnode-aws-eu-west-1-001"},{"ip":"35.158.244.151","port":30303,"id":"279944d8dcd428dffaa7436f25ca0ca43ae19e7bcf94a8fb7d1641651f92d121e972ac2e8f381414b80cc8e5555811c2ec6e1a99bb009b3f53c4c69923e11bd8","location":"eu-central-1-001","comment":"bootnode-aws-eu-central-1-001"},{"ip":"52.187.207.27","port":30303,"id":"8499da03c47d637b20eee24eec3c356c9a2e6148d6fe25ca195c7949ab8ec2c03e3556126b0d7ed644675e78c4318b08691b7b57de10e5f0d40d05b09238fa0a","location":"australiaeast-001","comment":"bootnode-azure-australiaeast-001"},{"ip":"191.234.162.198","port":30303,"id":"103858bdb88756c71f15e9b5e09b56dc1be52f0a5021d46301dbbfb7e130029cc9d0d6f73f693bc29b665770fff7da4d34f3c6379fe12721b5d7a0bcb5ca1fc1","location":"brazilsouth-001","comment":"bootnode-azure-brazilsouth-001"},{"ip":"52.231.165.108","port":30303,"id":"715171f50508aba88aecd1250af392a45a330af91d7b90701c436b618c86aaa1589c9184561907bebbb56439b8f8787bc01f49a7c77276c58c1b09822d75e8e8","location":"koreasouth-001","comment":"bootnode-azure-koreasouth-001"},{"ip":"104.42.217.25","port":30303,"id":"5d6d7cd20d6da4bb83a1d28cadb5d409b64edf314c0335df658c1a54e32c7c4a7ab7823d57c39b6a757556e68ff1df17c748b698544a55cb488b52479a92b60f","location":"westus-001","comment":"bootnode-azure-westus-001"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.mainnet.ethdisco.net"]}')},c90b:function(t,e,r){(function(t,n,i){var o=r("a9f1"),s=r("3fb5"),a=r("e372"),u=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},h=e.IncomingMessage=function(e,r,s,u){var h=this;if(a.Readable.call(h),h._mode=s,h.headers={},h.rawHeaders=[],h.trailers={},h.rawTrailers=[],h.on("end",(function(){t.nextTick((function(){h.emit("close")}))})),"fetch"===s){if(h._fetchResponse=r,h.url=r.url,h.statusCode=r.status,h.statusMessage=r.statusText,r.headers.forEach((function(t,e){h.headers[e.toLowerCase()]=t,h.rawHeaders.push(e,t)})),o.writableStream){var l=new WritableStream({write:function(t){return new Promise((function(e,r){h._destroyed?r():h.push(new n(t))?e():h._resumeFetch=e}))},close:function(){i.clearTimeout(u),h._destroyed||h.push(null)},abort:function(t){h._destroyed||h.emit("error",t)}});try{return void r.body.pipeTo(l).catch((function(t){i.clearTimeout(u),h._destroyed||h.emit("error",t)}))}catch(v){}}var c=r.body.getReader();function f(){c.read().then((function(t){if(!h._destroyed){if(t.done)return i.clearTimeout(u),void h.push(null);h.push(new n(t.value)),f()}})).catch((function(t){i.clearTimeout(u),h._destroyed||h.emit("error",t)}))}f()}else{h._xhr=e,h._pos=0,h.url=e.responseURL,h.statusCode=e.status,h.statusMessage=e.statusText;var d=e.getAllResponseHeaders().split(/\r?\n/);if(d.forEach((function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var r=e[1].toLowerCase();"set-cookie"===r?(void 0===h.headers[r]&&(h.headers[r]=[]),h.headers[r].push(e[2])):void 0!==h.headers[r]?h.headers[r]+=", "+e[2]:h.headers[r]=e[2],h.rawHeaders.push(e[1],e[2])}})),h._charset="x-user-defined",!o.overrideMimeType){var p=h.rawHeaders["mime-type"];if(p){var m=p.match(/;\s*charset=([^;])(;|$)/);m&&(h._charset=m[1].toLowerCase())}h._charset||(h._charset="utf-8")}}};s(h,a.Readable),h.prototype._read=function(){var t=this,e=t._resumeFetch;e&&(t._resumeFetch=null,e())},h.prototype._onXHRProgress=function(){var t=this,e=t._xhr,r=null;switch(t._mode){case"text:vbarray":if(e.readyState!==u.DONE)break;try{r=new i.VBArray(e.responseBody).toArray()}catch(l){}if(null!==r){t.push(new n(r));break}case"text":try{r=e.responseText}catch(l){t._mode="text:vbarray";break}if(r.length>t._pos){var o=r.substr(t._pos);if("x-user-defined"===t._charset){for(var s=new n(o.length),a=0;a<o.length;a++)s[a]=255&o.charCodeAt(a);t.push(s)}else t.push(o,t._charset);t._pos=r.length}break;case"arraybuffer":if(e.readyState!==u.DONE||!e.response)break;r=e.response,t.push(new n(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=e.response,e.readyState!==u.LOADING||!r)break;t.push(new n(new Uint8Array(r)));break;case"ms-stream":if(r=e.response,e.readyState!==u.LOADING)break;var h=new i.MSStreamReader;h.onprogress=function(){h.result.byteLength>t._pos&&(t.push(new n(new Uint8Array(h.result.slice(t._pos)))),t._pos=h.result.byteLength)},h.onload=function(){t.push(null)},h.readAsArrayBuffer(r);break}t._xhr.readyState===u.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,r("f28c"),r("b639").Buffer,r("c8ba"))},c98c:function(t,e,r){const n=r("e073"),i=r("92a9");t.exports=function(t){const e=n(t),r=i(t);return function(t,n){const i="string"===typeof t?t.toLowerCase():t;switch(i){case"keccak224":return new e(1152,448,null,224,n);case"keccak256":return new e(1088,512,null,256,n);case"keccak384":return new e(832,768,null,384,n);case"keccak512":return new e(576,1024,null,512,n);case"sha3-224":return new e(1152,448,6,224,n);case"sha3-256":return new e(1088,512,6,256,n);case"sha3-384":return new e(832,768,6,384,n);case"sha3-512":return new e(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+t)}}}},c9b4:function(t){t.exports=JSON.parse('{"name":"chainstart","comment":"Start of the Ethereum main chain","url":"","status":"","gasConfig":{"minGasLimit":{"v":5000,"d":"Minimum the gas limit may ever be"},"gasLimitBoundDivisor":{"v":1024,"d":"The bound divisor of the gas limit, used in update calculations"},"maxRefundQuotient":{"v":2,"d":"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},"gasPrices":{"base":{"v":2,"d":"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},"tierStep":{"v":[0,2,3,5,8,10,20],"d":"Once per operation, for a selection of them"},"exp":{"v":10,"d":"Base fee of the EXP opcode"},"expByte":{"v":10,"d":"Times ceil(log256(exponent)) for the EXP instruction"},"sha3":{"v":30,"d":"Base fee of the SHA3 opcode"},"sha3Word":{"v":6,"d":"Once per word of the SHA3 operation\'s data"},"sload":{"v":50,"d":"Base fee of the SLOAD opcode"},"sstoreSet":{"v":20000,"d":"Once per SSTORE operation if the zeroness changes from zero"},"sstoreReset":{"v":5000,"d":"Once per SSTORE operation if the zeroness does not change from zero"},"sstoreRefund":{"v":15000,"d":"Once per SSTORE operation if the zeroness changes to zero"},"jumpdest":{"v":1,"d":"Base fee of the JUMPDEST opcode"},"log":{"v":375,"d":"Base fee of the LOG opcode"},"logData":{"v":8,"d":"Per byte in a LOG* operation\'s data"},"logTopic":{"v":375,"d":"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},"create":{"v":32000,"d":"Base fee of the CREATE opcode"},"call":{"v":40,"d":"Base fee of the CALL opcode"},"callStipend":{"v":2300,"d":"Free gas given at beginning of call"},"callValueTransfer":{"v":9000,"d":"Paid for CALL when the value transfor is non-zero"},"callNewAccount":{"v":25000,"d":"Paid for CALL when the destination address didn\'t exist prior"},"selfdestructRefund":{"v":24000,"d":"Refunded following a selfdestruct operation"},"memory":{"v":3,"d":"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},"quadCoeffDiv":{"v":512,"d":"Divisor for the quadratic particle of the memory cost equation"},"createData":{"v":200,"d":""},"tx":{"v":21000,"d":"Per transaction. NOTE: Not payable on data of calls between transactions"},"txCreation":{"v":32000,"d":"The cost of creating a contract via tx"},"txDataZero":{"v":4,"d":"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},"txDataNonZero":{"v":68,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"copy":{"v":3,"d":"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},"ecRecover":{"v":3000,"d":""},"sha256":{"v":60,"d":""},"sha256Word":{"v":12,"d":""},"ripemd160":{"v":600,"d":""},"ripemd160Word":{"v":120,"d":""},"identity":{"v":15,"d":""},"identityWord":{"v":3,"d":""},"stop":{"v":0,"d":"Base fee of the STOP opcode"},"add":{"v":3,"d":"Base fee of the ADD opcode"},"mul":{"v":5,"d":"Base fee of the MUL opcode"},"sub":{"v":3,"d":"Base fee of the SUB opcode"},"div":{"v":5,"d":"Base fee of the DIV opcode"},"sdiv":{"v":5,"d":"Base fee of the SDIV opcode"},"mod":{"v":5,"d":"Base fee of the MOD opcode"},"smod":{"v":5,"d":"Base fee of the SMOD opcode"},"addmod":{"v":8,"d":"Base fee of the ADDMOD opcode"},"mulmod":{"v":8,"d":"Base fee of the MULMOD opcode"},"signextend":{"v":5,"d":"Base fee of the SIGNEXTEND opcode"},"lt":{"v":3,"d":"Base fee of the LT opcode"},"gt":{"v":3,"d":"Base fee of the GT opcode"},"slt":{"v":3,"d":"Base fee of the SLT opcode"},"sgt":{"v":3,"d":"Base fee of the SGT opcode"},"eq":{"v":3,"d":"Base fee of the EQ opcode"},"iszero":{"v":3,"d":"Base fee of the ISZERO opcode"},"and":{"v":3,"d":"Base fee of the AND opcode"},"or":{"v":3,"d":"Base fee of the OR opcode"},"xor":{"v":3,"d":"Base fee of the XOR opcode"},"not":{"v":3,"d":"Base fee of the NOT opcode"},"byte":{"v":3,"d":"Base fee of the BYTE opcode"},"address":{"v":2,"d":"Base fee of the ADDRESS opcode"},"balance":{"v":20,"d":"Base fee of the BALANCE opcode"},"origin":{"v":2,"d":"Base fee of the ORIGIN opcode"},"caller":{"v":2,"d":"Base fee of the CALLER opcode"},"callvalue":{"v":2,"d":"Base fee of the CALLVALUE opcode"},"calldataload":{"v":3,"d":"Base fee of the CALLDATALOAD opcode"},"calldatasize":{"v":2,"d":"Base fee of the CALLDATASIZE opcode"},"calldatacopy":{"v":3,"d":"Base fee of the CALLDATACOPY opcode"},"codesize":{"v":2,"d":"Base fee of the CODESIZE opcode"},"codecopy":{"v":3,"d":"Base fee of the CODECOPY opcode"},"gasprice":{"v":2,"d":"Base fee of the GASPRICE opcode"},"extcodesize":{"v":20,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":20,"d":"Base fee of the EXTCODECOPY opcode"},"blockhash":{"v":20,"d":"Base fee of the BLOCKHASH opcode"},"coinbase":{"v":2,"d":"Base fee of the COINBASE opcode"},"timestamp":{"v":2,"d":"Base fee of the TIMESTAMP opcode"},"number":{"v":2,"d":"Base fee of the NUMBER opcode"},"difficulty":{"v":2,"d":"Base fee of the DIFFICULTY opcode"},"gaslimit":{"v":2,"d":"Base fee of the GASLIMIT opcode"},"pop":{"v":2,"d":"Base fee of the POP opcode"},"mload":{"v":3,"d":"Base fee of the MLOAD opcode"},"mstore":{"v":3,"d":"Base fee of the MSTORE opcode"},"mstore8":{"v":3,"d":"Base fee of the MSTORE8 opcode"},"sstore":{"v":0,"d":"Base fee of the SSTORE opcode"},"jump":{"v":8,"d":"Base fee of the JUMP opcode"},"jumpi":{"v":10,"d":"Base fee of the JUMPI opcode"},"pc":{"v":2,"d":"Base fee of the PC opcode"},"msize":{"v":2,"d":"Base fee of the MSIZE opcode"},"gas":{"v":2,"d":"Base fee of the GAS opcode"},"push":{"v":3,"d":"Base fee of the PUSH opcode"},"dup":{"v":3,"d":"Base fee of the DUP opcode"},"swap":{"v":3,"d":"Base fee of the SWAP opcode"},"callcode":{"v":40,"d":"Base fee of the CALLCODE opcode"},"return":{"v":0,"d":"Base fee of the RETURN opcode"},"invalid":{"v":0,"d":"Base fee of the INVALID opcode"},"selfdestruct":{"v":0,"d":"Base fee of the SELFDESTRUCT opcode"}},"vm":{"stackLimit":{"v":1024,"d":"Maximum size of VM stack allowed"},"callCreateDepth":{"v":1024,"d":"Maximum depth of call/create stack"},"maxExtraDataSize":{"v":32,"d":"Maximum size extra data may be after Genesis"}},"pow":{"minimumDifficulty":{"v":131072,"d":"The minimum that the difficulty may ever be"},"difficultyBoundDivisor":{"v":2048,"d":"The bound divisor of the difficulty, used in the update calculations"},"durationLimit":{"v":13,"d":"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},"epochDuration":{"v":30000,"d":"Duration between proof-of-work epochs"},"timebombPeriod":{"v":100000,"d":"Exponential difficulty timebomb period"},"minerReward":{"v":"5000000000000000000","d":"the amount a miner get rewarded for mining a block"},"difficultyBombDelay":{"v":0,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},ca5a:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},cadf:function(t,e,r){"use strict";var n=r("9c6c"),i=r("d53b"),o=r("84f2"),s=r("6821");t.exports=r("01f9")(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},cb7c:function(t,e,r){var n=r("d3f4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},cc3c:function(t,e,r){"use strict";const n=r("cfab"),i=r("1c13").varintEncode,o={};for(const s in n){const t=n[s];o[s]=i(t)}t.exports=Object.freeze(o)},cd1c:function(t,e,r){var n=r("e853");t.exports=function(t,e){return new(n(t))(e)}},cd91:function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},ce10:function(t,e,r){var n=r("69a8"),i=r("6821"),o=r("c366")(!1),s=r("613b")("IE_PROTO");t.exports=function(t,e){var r,a=i(t),u=0,h=[];for(r in a)r!=s&&n(a,r)&&h.push(r);while(e.length>u)n(a,r=e[u++])&&(~o(h,r)||h.push(r));return h}},ce43:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t["default"]=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.rlp=e.BN=void 0;var a=s(r("399f"));e.BN=a.default;var u=o(r("a3ca"));e.rlp=u},ced0:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||e.hasOwnProperty(r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0});var o=r("24b7");Object.defineProperty(e,"Transaction",{enumerable:!0,get:function(){return o.default}});var s=r("1355");Object.defineProperty(e,"AccessListEIP2930Transaction",{enumerable:!0,get:function(){return s.default}});var a=r("f48f");Object.defineProperty(e,"TransactionFactory",{enumerable:!0,get:function(){return a.default}});var u=r("5043");Object.defineProperty(e,"FeeMarketEIP1559Transaction",{enumerable:!0,get:function(){return u.default}}),i(r("6f3d"),e)},cee4:function(t,e,r){"use strict";var n=r("c532"),i=r("1d2b"),o=r("0a06"),s=r("4a7b"),a=r("2444");function u(t){var e=new o(t),r=i(o.prototype.request,e);return n.extend(r,o.prototype,e),n.extend(r,e),r}var h=u(a);h.Axios=o,h.create=function(t){return u(s(h.defaults,t))},h.Cancel=r("7a77"),h.CancelToken=r("8df4"),h.isCancel=r("2e67"),h.all=function(t){return Promise.all(t)},h.spread=r("0df6"),t.exports=h,t.exports.default=h},cf35:function(t,e,r){"use strict";(function(e,n){var i;t.exports=T,T.ReadableState=O;r("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},s=r("f12a"),a=r("b639").Buffer,u=e.Uint8Array||function(){};function h(t){return a.from(t)}function l(t){return a.isBuffer(t)||t instanceof u}var c,f=r(12);c=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p,m,v=r("22ab"),g=r("9019"),y=r("05f0"),b=y.getHighWaterMark,w=r("d113").codes,M=w.ERR_INVALID_ARG_TYPE,_=w.ERR_STREAM_PUSH_AFTER_EOF,k=w.ERR_METHOD_NOT_IMPLEMENTED,S=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r("3fb5")(T,s);var x=g.errorOrDestroy,E=["error","close","destroy","pause","resume"];function A(t,e,r){if("function"===typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}function O(t,e,n){i=i||r("5e7d"),t=t||{},"boolean"!==typeof n&&(n=e instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",n),this.buffer=new v,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.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=r("7d72").StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||r("5e7d"),!(this instanceof T))return new T(t);var e=this instanceof i;this._readableState=new O(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function C(t,e,r,n,i){c("readableAddChunk",e);var o,s=t._readableState;if(null===e)s.reading=!1,j(t,s);else if(i||(o=B(s,e)),o)x(t,o);else if(s.objectMode||e&&e.length>0)if("string"===typeof e||s.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=h(e)),n)s.endEmitted?x(t,new S):P(t,s,e,!0);else if(s.ended)x(t,new _);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||0!==e.length?P(t,s,e,!1):D(t,s)):P(t,s,e,!1)}else n||(s.reading=!1,D(t,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function P(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&L(t)),D(t,e)}function B(t,e){var r;return l(e)||"string"===typeof e||void 0===e||t.objectMode||(r=new M("chunk",["string","Buffer","Uint8Array"],e)),r}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=g.destroy,T.prototype._undestroy=g.undestroy,T.prototype._destroy=function(t,e){e(t)},T.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof t&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=a.from(t,e),e=""),r=!0),C(this,t,e,!1,r)},T.prototype.unshift=function(t){return C(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){d||(d=r("7d72").StringDecoder);var e=new d(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;var n=this._readableState.buffer.head,i="";while(null!==n)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var I=1073741824;function R(t){return t>=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function N(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=R(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function j(t,e){if(c("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?L(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,U(t)))}}function L(t){var e=t._readableState;c("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(c("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(U,t))}function U(t){var e=t._readableState;c("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,K(t)}function D(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(F,t,e))}function F(t,e){while(!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length)){var r=e.length;if(c("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function z(t){return function(){var e=t._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,K(t))}}function q(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function H(t){c("readable nexttick read 0"),t.read(0)}function $(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(V,t,e))}function V(t,e){c("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),K(t),e.flowing&&!e.reading&&t.read(0)}function K(t){var e=t._readableState;c("flow",e.flowing);while(e.flowing&&null!==t.read());}function W(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function G(t){var e=t._readableState;c("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(Z,e,t))}function Z(t,e){if(c("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function J(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}T.prototype.read=function(t){c("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return c("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?G(this):L(this),null;if(t=N(t,e),0===t&&e.ended)return 0===e.length&&G(this),null;var n,i=e.needReadable;return c("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,c("length less than watermark",i)),e.ended||e.reading?(i=!1,c("reading or ended",i)):i&&(c("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=N(r,e))),n=t>0?W(t,e):null,null===n?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&G(this)),null!==n&&this.emit("data",n),n},T.prototype._read=function(t){x(this,new k("_read()"))},T.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr,a=s?h:y;function u(t,e){c("onunpipe"),t===r&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d())}function h(){c("onend"),t.end()}i.endEmitted?n.nextTick(a):r.once("end",a),t.on("unpipe",u);var l=z(r);t.on("drain",l);var f=!1;function d(){c("cleanup"),t.removeListener("close",v),t.removeListener("finish",g),t.removeListener("drain",l),t.removeListener("error",m),t.removeListener("unpipe",u),r.removeListener("end",h),r.removeListener("end",y),r.removeListener("data",p),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||l()}function p(e){c("ondata");var n=t.write(e);c("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==J(i.pipes,t))&&!f&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function m(e){c("onerror",e),y(),t.removeListener("error",m),0===o(t,"error")&&x(t,e)}function v(){t.removeListener("finish",g),y()}function g(){c("onfinish"),t.removeListener("close",v),y()}function y(){c("unpipe"),r.unpipe(t)}return r.on("data",p),A(t,"error",m),t.once("close",v),t.once("finish",g),t.emit("pipe",r),i.flowing||(c("pipe resume"),r.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,r={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,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=J(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},T.prototype.on=function(t,e){var r=s.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?L(this):i.reading||n.nextTick(H,this))),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var r=s.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(q,this),r},T.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(q,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!t.readableListening,$(this,t)),t.paused=!1,this},T.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)){var o=e.push(i);o||(n=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<E.length;o++)t.on(E[o],this.emit.bind(this,E[o]));return this._read=function(e){c("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"===typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=r("57e2")),p(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),T._fromList=W,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(T.from=function(t,e){return void 0===m&&(m=r("f83c")),m(T,t,e)})}).call(this,r("c8ba"),r("f28c"))},cfab:function(t){t.exports=JSON.parse('{"identity":0,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"x11":4352,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}')},cfbd:function(t,e,r){var n=r("3fb5"),i=r("7f7a"),o=i.base,s=i.bignum,a=i.constants.der;function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){o.Node.call(this,"der",t)}function l(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var n=a.tagClass[r>>6],i=0===(32&r);if(31===(31&r)){var o=r;r=0;while(128===(128&o)){if(o=t.readUInt8(e),t.isError(o))return o;r<<=7,r|=127&o}}else r&=31;var s=a.tag[r];return{cls:n,primitive:i,tag:r,tagStr:s}}function c(t,e,r){var n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&128===n)return null;if(0===(128&n))return n;var i=127&n;if(i>4)return t.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var s=t.readUInt8(r);if(t.isError(s))return s;n|=s}return n}t.exports=u,u.prototype.decode=function(t,e){return t instanceof o.DecoderBuffer||(t=new o.DecoderBuffer(t,e)),this.tree._decode(t,e)},n(h,o.Node),h.prototype._peekTag=function(t,e,r){if(t.isEmpty())return!1;var n=t.save(),i=l(t,'Failed to peek tag: "'+e+'"');return t.isError(i)?i:(t.restore(n),i.tag===e||i.tagStr===e||i.tagStr+"of"===e||r)},h.prototype._decodeTag=function(t,e,r){var n=l(t,'Failed to decode tag of "'+e+'"');if(t.isError(n))return n;var i=c(t,n.primitive,'Failed to get length of "'+e+'"');if(t.isError(i))return i;if(!r&&n.tag!==e&&n.tagStr!==e&&n.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(n.primitive||null!==i)return t.skip(i,'Failed to match body of: "'+e+'"');var o=t.save(),s=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(s)?s:(i=t.offset-o.offset,t.restore(o),t.skip(i,'Failed to match body of: "'+e+'"'))},h.prototype._skipUntilEnd=function(t,e){while(1){var r=l(t,e);if(t.isError(r))return r;var n,i=c(t,r.primitive,e);if(t.isError(i))return i;if(n=r.primitive||null!==i?t.skip(i):this._skipUntilEnd(t,e),t.isError(n))return n;if("end"===r.tagStr)break}},h.prototype._decodeList=function(t,e,r,n){var i=[];while(!t.isEmpty()){var o=this._peekTag(t,"end");if(t.isError(o))return o;var s=r.decode(t,"der",n);if(t.isError(s)&&o)break;i.push(s)}return i},h.prototype._decodeStr=function(t,e){if("bitstr"===e){var r=t.readUInt8();return t.isError(r)?r:{unused:r,data:t.raw()}}if("bmpstr"===e){var n=t.raw();if(n.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===e){var s=t.raw().toString("ascii");return this._isNumstr(s)?s:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var a=t.raw().toString("ascii");return this._isPrintstr(a)?a:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},h.prototype._decodeObjid=function(t,e,r){var n,i=[],o=0;while(!t.isEmpty()){var s=t.readUInt8();o<<=7,o|=127&s,0===(128&s)&&(i.push(o),o=0)}128&s&&i.push(o);var a=i[0]/40|0,u=i[0]%40;if(n=r?i:[a,u].concat(i.slice(1)),e){var h=e[n.join(" ")];void 0===h&&(h=e[n.join(".")]),void 0!==h&&(n=h)}return n},h.prototype._decodeTime=function(t,e){var r=t.raw().toString();if("gentime"===e)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),s=0|r.slice(8,10),a=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),s=0|r.slice(6,8),a=0|r.slice(8,10),u=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,s,a,u,0)},h.prototype._decodeNull=function(t){return null},h.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},h.prototype._decodeInt=function(t,e){var r=t.raw(),n=new s(r);return e&&(n=e[n.toString(10)]||n),n},h.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getDecoder("der").tree}},d000:function(t){t.exports=JSON.parse('{"name":"EIP-2565","number":2565,"comment":"ModExp gas cost","url":"https://eips.ethereum.org/EIPS/eip-2565","status":"Last call","minimumHardfork":"byzantium","gasConfig":{},"gasPrices":{"modexpGquaddivisor":{"v":3,"d":"Gquaddivisor from modexp precompile for gas calculation"}},"vm":{},"pow":{}}')},d0eb:function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s=r(10).Buffer}catch(E){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var s=t.charCodeAt(o)-48;n<<=4,n|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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"],l=[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],c=[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){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?h[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=l[t],d=c[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:h[f-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function v(t,e,r){var n=new g;return n.mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?m(this,t,e):v(this,t,e),r},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},g.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=f(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(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 b(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 w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){S.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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(w,b),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,b),i(_,b),i(k,b),k.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}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 w;else if("p224"===t)e=new M;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("62e4")(t))},d105:function(t,e,r){"use strict";class n{constructor(t,e,r,n){this.name=t,this.code=e,this.alphabet=n,r&&n&&(this.engine=r(n))}encode(t){return this.engine.encode(t)}decode(t){return this.engine.decode(t)}isImplemented(){return this.engine}}t.exports=n},d113:function(t,e,r){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i={};function o(t,e,r){function o(t,r,n){return"string"===typeof e?e:e(t,r,n)}r||(r=Error);var s=function(t){function e(e,r,n){return t.call(this,o(e,r,n))||this}return n(e,t),e}(r);s.prototype.name=r.name,s.prototype.code=t,i[t]=s}function s(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function a(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function u(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function h(t,e,r){return"number"!==typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,i;if("string"===typeof e&&a(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be",u(t," argument"))i="The ".concat(t," ").concat(n," ").concat(s(e,"type"));else{var o=h(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(n," ").concat(s(e,"type"))}return i+=". Received type ".concat(typeof r),i}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},d13a:function(t,e,r){"use strict";(function(t){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Address=void 0;var i=n(r("f654")),o=n(r("399f")),s=r("0c30"),a=r("acc3"),u=function(){function e(t){i.default(20===t.length,"Invalid address length"),this.buf=t}return e.zero=function(){return new e(s.zeros(20))},e.fromString=function(t){return i.default(a.isValidAddress(t),"Invalid address"),new e(s.toBuffer(t))},e.fromPublicKey=function(r){i.default(t.isBuffer(r),"Public key should be Buffer");var n=a.pubToAddress(r);return new e(n)},e.fromPrivateKey=function(r){i.default(t.isBuffer(r),"Private key should be Buffer");var n=a.privateToAddress(r);return new e(n)},e.generate=function(r,n){return i.default(o.default.isBN(n)),new e(a.generateAddress(r.buf,n.toArrayLike(t)))},e.generate2=function(r,n,o){return i.default(t.isBuffer(n)),i.default(t.isBuffer(o)),new e(a.generateAddress2(r.buf,n,o))},e.prototype.equals=function(t){return this.buf.equals(t.buf)},e.prototype.isZero=function(){return this.equals(e.zero())},e.prototype.isPrecompileOrSystemAddress=function(){var t=new o.default(this.buf),e=new o.default(0),r=new o.default("ffff","hex");return t.gte(e)&&t.lte(r)},e.prototype.toString=function(){return"0x"+this.buf.toString("hex")},e.prototype.toBuffer=function(){return t.from(this.buf)},e}();e.Address=u}).call(this,r("b639").Buffer)},d17b:function(t,e,r){t.exports=r("e372").Transform},d1c8:function(t,e,r){var n=r("3fb5");function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,r){var n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,r=e.obj;return e.obj=t,r},i.prototype.error=function(t){var e,r=this._reporterState,n=t instanceof o;if(e=n?t:new o(r.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},d233:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t){var e;while(t.length){var r=t.pop();if(e=r.obj[r.prop],Array.isArray(e)){for(var n=[],i=0;i<e.length;++i)"undefined"!==typeof e[i]&&n.push(e[i]);r.obj[r.prop]=n}}return e},s=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)"undefined"!==typeof t[n]&&(r[n]=t[n]);return r},a=function t(e,r,i){if(!r)return e;if("object"!==typeof r){if(Array.isArray(e))e.push(r);else{if("object"!==typeof e)return[e,r];(i.plainObjects||i.allowPrototypes||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if("object"!==typeof e)return[e].concat(r);var o=e;return Array.isArray(e)&&!Array.isArray(r)&&(o=s(e,i)),Array.isArray(e)&&Array.isArray(r)?(r.forEach((function(r,o){n.call(e,o)?e[o]&&"object"===typeof e[o]?e[o]=t(e[o],r,i):e.push(r):e[o]=r})),e):Object.keys(r).reduce((function(e,o){var s=r[o];return n.call(e,o)?e[o]=t(e[o],s,i):e[o]=s,e}),o)},u=function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},h=function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},l=function(t){if(0===t.length)return t;for(var e="string"===typeof t?t:String(t),r="",n=0;n<e.length;++n){var o=e.charCodeAt(n);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=e.charAt(n):o<128?r+=i[o]:o<2048?r+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?r+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(n+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(n)),r+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return r},c=function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var i=e[n],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var h=a[u],l=s[h];"object"===typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:s,prop:h}),r.push(l))}return o(e)},f=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},d=function(t){return null!==t&&"undefined"!==typeof t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))};t.exports={arrayToObject:s,assign:u,compact:c,decode:h,encode:l,isBuffer:d,isRegExp:f,merge:a}},d282:function(t,e,r){"use strict";function n(t,e){return e?"string"===typeof e?" "+t+"--"+e:Array.isArray(e)?e.reduce((function(e,r){return e+n(t,r)}),""):Object.keys(e).reduce((function(r,i){return r+(e[i]?n(t,i):"")}),""):""}function i(t){return function(e,r){return e&&"string"!==typeof e&&(r=e,e=""),e=e?t+"__"+e:t,""+e+n(e,r)}}r.d(e,"a",(function(){return p}));var o=r("a142"),s=r("68ed"),a={methods:{slots:function(t,e){void 0===t&&(t="default");var r=this.$slots,n=this.$scopedSlots,i=n[t];return i?i(e):r[t]}}};r("8bbf");function u(t){var e=this.name;t.component(e,this),t.component(Object(s["a"])("-"+e),this)}function h(t){var e=t.scopedSlots||t.data.scopedSlots||{},r=t.slots();return Object.keys(r).forEach((function(t){e[t]||(e[t]=function(){return r[t]})})),e}function l(t){return{functional:!0,props:t.props,model:t.model,render:function(e,r){return t(e,r.props,h(r),r)}}}function c(t){return function(e){return Object(o["e"])(e)&&(e=l(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(a)),e.name=t,e.install=u,e}}var f=r("3c69");function d(t){var e=Object(s["a"])(t)+".";return function(t){for(var r=f["a"].messages(),n=Object(o["a"])(r,e+t)||Object(o["a"])(r,t),i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return Object(o["e"])(n)?n.apply(void 0,s):n}}function p(t){return t="van-"+t,[c(t),i(t),d(t)]}},d399:function(t,e,r){"use strict";var n=r("c31d"),i=r("8bbf"),o=r.n(i),s=r("d282"),a=r("a142"),u=0;function h(t){t?(u||document.body.classList.add("van-toast--unclickable"),u++):(u--,u||document.body.classList.remove("van-toast--unclickable"))}var l=r("6605"),c=r("ad06"),f=r("543e"),d=Object(s["a"])("toast"),p=d[0],m=d[1],v=p({mixins:[Object(l["a"])()],props:{icon:String,className:null,iconPrefix:String,loadingType:String,forbidClick:Boolean,closeOnClick:Boolean,message:[Number,String],type:{type:String,default:"text"},position:{type:String,default:"middle"},transition:{type:String,default:"van-fade"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickable()},destroyed:function(){this.toggleClickable()},watch:{value:"toggleClickable",forbidClick:"toggleClickable"},methods:{onClick:function(){this.closeOnClick&&this.close()},toggleClickable:function(){var t=this.value&&this.forbidClick;this.clickable!==t&&(this.clickable=t,h(t))},onAfterEnter:function(){this.$emit("opened"),this.onOpened&&this.onOpened()},onAfterLeave:function(){this.$emit("closed")},genIcon:function(){var t=this.$createElement,e=this.icon,r=this.type,n=this.iconPrefix,i=this.loadingType,o=e||"success"===r||"fail"===r;return o?t(c["a"],{class:m("icon"),attrs:{classPrefix:n,name:e||r}}):"loading"===r?t(f["a"],{class:m("loading"),attrs:{type:i}}):void 0},genMessage:function(){var t=this.$createElement,e=this.type,r=this.message;if(Object(a["c"])(r)&&""!==r)return"html"===e?t("div",{class:m("text"),domProps:{innerHTML:r}}):t("div",{class:m("text")},[r])}},render:function(){var t,e=arguments[0];return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[e("div",{directives:[{name:"show",value:this.value}],class:[m([this.position,(t={},t[this.type]=!this.icon,t)]),this.className],on:{click:this.onClick}},[this.genIcon(),this.genMessage()])])}}),g=r("092d"),y={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},b={},w=[],M=!1,_=Object(n["a"])({},y);function k(t){return Object(a["f"])(t)?t:{message:t}}function S(t){return document.body.contains(t)}function x(){if(a["h"])return{};if(w=w.filter((function(t){return!t.$el.parentNode||S(t.$el)})),!w.length||M){var t=new(o.a.extend(v))({el:document.createElement("div")});t.$on("input",(function(e){t.value=e})),w.push(t)}return w[w.length-1]}function E(t){return Object(n["a"])({},t,{overlay:t.mask||t.overlay,mask:void 0,duration:void 0})}function A(t){void 0===t&&(t={});var e=x();return e.value&&e.updateZIndex(),t=k(t),t=Object(n["a"])({},_,b[t.type||_.type],t),t.clear=function(){e.value=!1,t.onClose&&(t.onClose(),t.onClose=null),M&&!a["h"]&&e.$on("closed",(function(){clearTimeout(e.timer),w=w.filter((function(t){return t!==e})),Object(g["a"])(e.$el),e.$destroy()}))},Object(n["a"])(e,E(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout((function(){e.clear()}),t.duration)),e}var O=function(t){return function(e){return A(Object(n["a"])({type:t},k(e)))}};["loading","success","fail"].forEach((function(t){A[t]=O(t)})),A.clear=function(t){w.length&&(t?(w.forEach((function(t){t.clear()})),w=[]):M?w.shift().clear():w[0].clear())},A.setDefaultOptions=function(t,e){"string"===typeof t?b[t]=e:Object(n["a"])(_,t)},A.resetDefaultOptions=function(t){"string"===typeof t?b[t]=null:(_=Object(n["a"])({},y),b={})},A.allowMultiple=function(t){void 0===t&&(t=!0),M=t},A.install=function(){o.a.use(v)},o.a.prototype.$toast=A;e["a"]=A},d39a:function(t,e){function r(t,e){if(e){e=e.trim().replace(/^(\?|#|&)/,""),e=e?"?"+e:e;var r=t.split(/[\?\#]/),n=r[0];e&&/\:\/\/[^\/]*$/.test(n)&&(n+="/");var i=t.match(/(\#.*)$/);t=n+e,i&&(t+=i[0])}return t}t.exports=r},d3ec:function(t){t.exports=JSON.parse('{"name":"tangerineWhistle","comment":"Hardfork with gas cost changes for IO-heavy operations","url":"https://eips.ethereum.org/EIPS/eip-608","status":"Final","gasConfig":{},"gasPrices":{"sload":{"v":200,"d":"Once per SLOAD operation"},"call":{"v":700,"d":"Once per CALL operation & message call transaction"},"extcodesize":{"v":700,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":700,"d":"Base fee of the EXTCODECOPY opcode"},"balance":{"v":400,"d":"Base fee of the BALANCE opcode"},"delegatecall":{"v":700,"d":"Base fee of the DELEGATECALL opcode"},"callcode":{"v":700,"d":"Base fee of the CALLCODE opcode"},"selfdestruct":{"v":5000,"d":"Base fee of the SELFDESTRUCT opcode"}},"vm":{},"pow":{}}')},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d424:function(t,e,r){"use strict";var n=r("3fb5"),i=r("8707").Buffer,o=r("6430"),s=i.alloc(128),a=64;function u(t,e){o.call(this,"digest"),"string"===typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>a?e=t(e):e.length<a&&(e=i.concat([e,s],a));for(var r=this._ipad=i.allocUnsafe(a),n=this._opad=i.allocUnsafe(a),u=0;u<a;u++)r[u]=54^e[u],n[u]=92^e[u];this._hash=[r]}n(u,o),u.prototype._update=function(t){this._hash.push(t)},u.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=u},d485:function(t,e,r){t.exports=o;var n=r("faa1").EventEmitter,i=r("3fb5");function o(){n.call(this)}i(o,n),o.Readable=r("e372"),o.Writable=r("2c63"),o.Duplex=r("0960"),o.Transform=r("d17b"),o.PassThrough=r("c2ae"),o.Stream=o,o.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(r.on("end",a),r.on("close",u));var s=!1;function a(){s||(s=!0,t.end())}function u(){s||(s=!0,"function"===typeof t.destroy&&t.destroy())}function h(t){if(l(),0===n.listenerCount(this,"error"))throw t}function l(){r.removeListener("data",i),t.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",u),r.removeListener("error",h),t.removeListener("error",h),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("error",h),t.on("error",h),r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d54b:function(t){t.exports=JSON.parse('{"name":"dao","comment":"DAO rescue hardfork","url":"https://eips.ethereum.org/EIPS/eip-779","status":"Final","gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},d60a:function(t,e){t.exports=function(t){return t&&"object"===typeof t&&"function"===typeof t.copy&&"function"===typeof t.fill&&"function"===typeof t.readUInt8}},d70e:function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},d873:function(t,e){var r=function(t,e){for(var r=[],n=0;n<t;++n)r.push(e(n));return r},n=function(t,e){return r(t,(function(){return e}))},i=function(t,e){return t.concat(e)},o=function(t){for(var e=[],r=0,n=t.length;r<n;++r)for(var i=0,o=t[r].length;i<o;++i)e.push(t[r][i]);return e},s=function(t,e){for(var r=[],n=0,i=e.length;n<i;n+=t)r.push(e.slice(n,n+t));return r};t.exports={generate:r,replicate:n,concat:i,flatten:o,chunksOf:s}},d8ce:function(t,e,r){(function(t){const n=r("c449"),i=r("354e"),o=t=>{let e=t.slice(0,2),r=t.slice(2),n="";return n="0x"===e?r:t,i.fromHexString(n)},s={swarm:t=>{const e=i.encode(o(t),"keccak-256");return new n(1,"swarm-manifest",e).buffer},ipfs:t=>{const e=i.fromB58String(t);return new n(1,"dag-pb",e).buffer},utf8:e=>t.from(e,"utf8")},a={hexMultiHash:t=>{const e=new n(t);return i.decode(e.multihash).digest.toString("hex")},b58MultiHash:t=>{const e=new n(t);return i.toB58String(e.multihash)},utf8:t=>t.toString("utf8")},u={"swarm-ns":{encode:s.swarm,decode:a.hexMultiHash},"ipfs-ns":{encode:s.ipfs,decode:a.b58MultiHash},"ipns-ns":{encode:s.ipfs,decode:a.b58MultiHash},default:{encode:s.utf8,decode:a.utf8}};e.hexStringToBuffer=o,e.profiles=u}).call(this,r("b639").Buffer)},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d925:function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d938:function(t,e,r){var n=r("b639").Buffer;t.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"===typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(n.isBuffer(t)){for(var e=new Uint8Array(t.length),r=t.length,i=0;i<r;i++)e[i]=t[i];return e.buffer}throw new Error("Argument must be a Buffer")}},da3e:function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=r,r.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},db43:function(t){t.exports=JSON.parse('{"name":"EIP-2718","comment":"Typed Transaction Envelope","url":"https://eips.ethereum.org/EIPS/eip-2718","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},dbaf:function(t,e,r){var n,i;(function(o,s){n=[r("1985"),r("abeb")],i=function(t,e){return s(t,e)}.apply(e,n),void 0===i||(t.exports=i)})(0,(function(t,e){function r(r,n,i){for(var o=[],s=t.ucs2.decode(r),a=0;a<s.length;a++){var u=s[a],h=t.ucs2.encode([s[a]]),l=e.mapChar(u),c=l>>23,f=l>>21&3,d=l>>5&65535,p=31&l,m=e.mapStr.substr(d,p);if(0===f||n&&1&c)throw new Error("Illegal char "+h);1===f?o.push(m):2===f?o.push(i?m:h):3===f&&o.push(h)}var v=o.join("").normalize("NFC");return v}function n(e,n,o){void 0===o&&(o=!1);var s=r(e,o,n),a=s.split(".");return a=a.map((function(e){return e.startsWith("xn--")?(e=t.decode(e.substring(4)),i(e,o,!1)):i(e,o,n),e})),a.join(".")}function i(t,n,i){if("-"===t[2]&&"-"===t[3])throw new Error("Failed to validate "+t);if(t.startsWith("-")||t.endsWith("-"))throw new Error("Failed to validate "+t);if(t.includes("."))throw new Error("Failed to validate "+t);if(r(t,n,i)!==t)throw new Error("Failed to validate "+t);var o=t.codePointAt(0);if(e.mapChar(o)&2<<23)throw new Error("Label contains illegal character: "+o)}function o(e,r){void 0===r&&(r={});var i,o=!("transitional"in r)||r.transitional,s="useStd3ASCII"in r&&r.useStd3ASCII,a="verifyDnsLength"in r&&r.verifyDnsLength,u=n(e,o,s).split("."),h=u.map(t.toASCII),l=h.join(".");if(a){if(l.length<1||l.length>253)throw new Error("DNS name has wrong length: "+l);for(i=0;i<h.length;i++){var c=h[i];if(c.length<1||c.length>63)throw new Error("DNS label has wrong length: "+c)}}return l}function s(t,e){void 0===e&&(e={});var r="useStd3ASCII"in e&&e.useStd3ASCII;return n(t,!1,r)}return{toUnicode:s,toAscii:o}}))},dc14:function(t,e,r){"use strict";(function(e,n){var i=r("966d");function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){j(e,t)}}t.exports=b;var s,a=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?setImmediate:i.nextTick;b.WritableState=y;var u=Object.create(r("3a7c"));u.inherits=r("3fb5");var h={deprecate:r("b7d1")},l=r("429b"),c=r("8707").Buffer,f=n.Uint8Array||function(){};function d(t){return c.from(t)}function p(t){return c.isBuffer(t)||t instanceof f}var m,v=r("4681");function g(){}function y(t,e){s=s||r("b19a"),t=t||{};var n=e instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,a=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:u,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 h=!1===t.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){A(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 b(t){if(s=s||r("b19a"),!m.call(b,this)&&!(this instanceof s))return new b(t);this._writableState=new y(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 w(t,e){var r=new Error("write after end");t.emit("error",r),i.nextTick(e,r)}function M(t,e,r,n){var o=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||e.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),i.nextTick(n,s),o=!1),o}function _(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=c.from(e,r)),e}function k(t,e,r,n,i,o){if(!r){var s=_(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else S(t,e,!1,a,n,i,o);return u}function S(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function x(t,e,r,n,o){--e.pendingcb,r?(i.nextTick(o,n),i.nextTick(R,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(o(n),t._writableState.errorEmitted=!0,t.emit("error",n),R(t,e))}function E(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function A(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(E(r),e)x(t,r,n,e,i);else{var o=P(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||C(t,r),n?a(O,t,r,o,i):O(t,r,o,i)}}function O(t,e,r,n){r||T(t,e),e.pendingcb--,n(),R(t,e)}function T(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function C(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;var a=0,u=!0;while(r)i[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;i.allBuffers=u,S(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{while(r){var h=r.chunk,l=r.encoding,c=r.callback,f=e.objectMode?1:h.length;if(S(t,e,!1,f,h,l,c),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function P(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function B(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),R(t,e)}))}function I(t,e){e.prefinished||e.finalCalled||("function"===typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(B,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function R(t,e){var r=P(e);return r&&(I(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}function N(t,e,r){e.ending=!0,R(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function j(t,e,r){var n=t.entry;t.entry=null;while(n){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}u.inherits(b,l),y.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(y.prototype,"buffer",{get:h.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(t){return!!m.call(this,t)||this===b&&(t&&t._writableState instanceof y)}})):m=function(t){return t instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&p(t);return o&&!c.isBuffer(t)&&(t=d(t)),"function"===typeof e&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),"function"!==typeof r&&(r=g),n.ended?w(this,r):(o||M(this,n,t,r))&&(n.pendingcb++,i=k(this,n,o,t,e,r)),i},b.prototype.cork=function(){var t=this._writableState;t.corked++},b.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||C(this,t))},b.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(t,e,r){var n=this._writableState;"function"===typeof t?(r=t,t=null,e=null):"function"===typeof e&&(r=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||N(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r("f28c"),r("c8ba"))},dc31:function(t,e,r){var n=r("568c");function i(t){var e=null,r=null,i=null;if(t&&t.error)return{protocolType:null,decoded:t.error};if(t)try{e=n.decode(t);var o=n.getCodec(t);"ipfs-ns"===o?r="ipfs":"swarm-ns"===o?r="bzz":"onion"===o?r="onion":"onion3"===o?r="onion3":e=t}catch(s){i=s.message}return{protocolType:r,decoded:e,error:i}}function o(t){var e,r,i=!1;if(t){var o=t.match(/^(ipfs|bzz|onion|onion3):\/\/(.*)/)||t.match(/\/(ipfs)\/(.*)/);o&&(r=o[1],e=o[2]);try{if("ipfs"===r)e.length>=4&&(i="0x"+n.fromIpfs(e));else if("bzz"===r)e.length>=4&&(i="0x"+n.fromSwarm(e));else if("onion"===r)16===e.length&&(i="0x"+n.encode("onion",e));else{if("onion3"!==r)throw new Error("Could not encode content hash: unsupported content type");56===e.length&&(i="0x"+n.encode("onion3",e))}}catch(s){throw s}}return i}t.exports={decode:i,encode:o}},dcbc:function(t,e,r){var n=r("2aba");t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},e073:function(t,e,r){(function(e){const{Transform:n}=r("d485");t.exports=t=>class r extends n{constructor(e,r,n,i,o){super(o),this._rate=e,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=o,this._state=new t,this._state.initialize(e,r),this._finalized=!1}_transform(t,e,r){let n=null;try{this.update(t,e)}catch(i){n=i}r(n)}_flush(t){let e=null;try{this.push(this.digest())}catch(r){e=r}t(e)}update(t,r){if(!e.isBuffer(t)&&"string"!==typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return e.isBuffer(t)||(t=e.from(t,r)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new r(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}}).call(this,r("b639").Buffer)},e07b:function(t,e,r){var n=r("5a76"),i=r("b5ca"),o=r("69f2"),s=r("8707").Buffer,a=r("7d2a"),u=r("9f9d"),h=r("8be6"),l=s.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(t,e,r){var n=d(t),i="sha512"===t||"sha384"===t?128:64;e.length>i?e=n(e):e.length<i&&(e=s.concat([e,l],i));for(var o=s.allocUnsafe(i+c[t]),a=s.allocUnsafe(i+c[t]),u=0;u<i;u++)o[u]=54^e[u],a[u]=92^e[u];var h=s.allocUnsafe(i+r+4);o.copy(h,0,0,i),this.ipad1=h,this.ipad2=o,this.opad=a,this.alg=t,this.blocksize=i,this.hash=n,this.size=c[t]}function d(t){function e(e){return o(t).update(e).digest()}function r(t){return(new i).update(t).digest()}return"rmd160"===t||"ripemd160"===t?r:"md5"===t?n:e}function p(t,e,r,n,i){a(r,n),t=h(t,u,"Password"),e=h(e,u,"Salt"),i=i||"sha1";var o=new f(i,t,e.length),l=s.allocUnsafe(n),d=s.allocUnsafe(e.length+4);e.copy(d,0,0,e.length);for(var p=0,m=c[i],v=Math.ceil(n/m),g=1;g<=v;g++){d.writeUInt32BE(g,e.length);for(var y=o.run(d,o.ipad1),b=y,w=1;w<r;w++){b=o.run(b,o.ipad2);for(var M=0;M<m;M++)y[M]^=b[M]}y.copy(l,p),p+=m}return l}f.prototype.run=function(t,e){t.copy(e,this.blocksize);var r=this.hash(e);return r.copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=p},e099:function(t,e,r){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,a){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"===typeof t?o(s(t),(function(s){var a=encodeURIComponent(n(s))+r;return i(t[s])?o(t[s],(function(t){return a+encodeURIComponent(n(t))})).join(e):a+encodeURIComponent(n(t[s]))})).join(e):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var s=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},e0b8:function(t,e,r){"use strict";var n=r("7726"),i=r("5ca1"),o=r("2aba"),s=r("dcbc"),a=r("67ab"),u=r("4a59"),h=r("f605"),l=r("d3f4"),c=r("79e5"),f=r("5cc5"),d=r("7f20"),p=r("5dbc");t.exports=function(t,e,r,m,v,g){var y=n[t],b=y,w=v?"set":"add",M=b&&b.prototype,_={},k=function(t){var e=M[t];o(M,t,"delete"==t||"has"==t?function(t){return!(g&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,r){return e.call(this,0===t?0:t,r),this})};if("function"==typeof b&&(g||M.forEach&&!c((function(){(new b).entries().next()})))){var S=new b,x=S[w](g?{}:-0,1)!=S,E=c((function(){S.has(1)})),A=f((function(t){new b(t)})),O=!g&&c((function(){var t=new b,e=5;while(e--)t[w](e,e);return!t.has(-0)}));A||(b=e((function(e,r){h(e,b,t);var n=p(new y,e,b);return void 0!=r&&u(r,v,n[w],n),n})),b.prototype=M,M.constructor=b),(E||O)&&(k("delete"),k("has"),v&&k("get")),(O||x)&&k(w),g&&M.clear&&delete M.clear}else b=m.getConstructor(e,t,v,w),s(b.prototype,r),a.NEED=!0;return d(b,t),_[t]=b,i(i.G+i.W+i.F*(b!=y),_),g||m.setStrong(b,t,v),b}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e15f:function(t,e,r){"use strict";var n=r("c063"),i=r("c044"),o=r("c3e6").subscriptions,s=r("7789"),a=r("5ba3"),u=r("795e"),h=r("ff82"),l=r("a297"),c=r("6e11"),f=r("5fa0"),d=r("0924"),p=r("aab1"),m=r("5663"),v=i.formatters,g=function(t){return"string"===typeof t[0]&&0===t[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},y=function(t){return"string"===typeof t[0]&&0===t[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},b=function(t){return"string"===typeof t[0]&&0===t[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},w=function(t){return"string"===typeof t[0]&&0===t[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},M=function(t){return"string"===typeof t[0]&&0===t[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"},_=function(){var t=this;n.packageInit(this,arguments);var e=this.setRequestManager;this.setRequestManager=function(r){return e(r),t.net.setRequestManager(r),t.personal.setRequestManager(r),t.accounts.setRequestManager(r),t.Contract._requestManager=t._requestManager,t.Contract.currentProvider=t._provider,!0};var r=this.setProvider;this.setProvider=function(){r.apply(t,arguments),t.setRequestManager(t._requestManager),t.ens._detectedAddress=null,t.ens._lastSyncCheck=null};var i,_,k,S=!1,x=null,E="latest",A=50,O=24,T=750,C=100;Object.defineProperty(this,"handleRevert",{get:function(){return S},set:function(e){S=e,t.Contract.handleRevert=S,I.forEach((function(t){t.handleRevert=S}))},enumerable:!0}),Object.defineProperty(this,"defaultCommon",{get:function(){return k},set:function(e){k=e,t.Contract.defaultCommon=k,I.forEach((function(t){t.defaultCommon=k}))},enumerable:!0}),Object.defineProperty(this,"defaultHardfork",{get:function(){return _},set:function(e){_=e,t.Contract.defaultHardfork=_,I.forEach((function(t){t.defaultHardfork=_}))},enumerable:!0}),Object.defineProperty(this,"defaultChain",{get:function(){return i},set:function(e){i=e,t.Contract.defaultChain=i,I.forEach((function(t){t.defaultChain=i}))},enumerable:!0}),Object.defineProperty(this,"transactionPollingTimeout",{get:function(){return T},set:function(e){T=e,t.Contract.transactionPollingTimeout=T,I.forEach((function(t){t.transactionPollingTimeout=T}))},enumerable:!0}),Object.defineProperty(this,"transactionConfirmationBlocks",{get:function(){return O},set:function(e){O=e,t.Contract.transactionConfirmationBlocks=O,I.forEach((function(t){t.transactionConfirmationBlocks=O}))},enumerable:!0}),Object.defineProperty(this,"transactionBlockTimeout",{get:function(){return A},set:function(e){A=e,t.Contract.transactionBlockTimeout=A,I.forEach((function(t){t.transactionBlockTimeout=A}))},enumerable:!0}),Object.defineProperty(this,"defaultAccount",{get:function(){return x},set:function(e){return e&&(x=a.toChecksumAddress(v.inputAddressFormatter(e))),t.Contract.defaultAccount=x,t.personal.defaultAccount=x,I.forEach((function(t){t.defaultAccount=x})),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return E},set:function(e){return E=e,t.Contract.defaultBlock=E,t.personal.defaultBlock=E,I.forEach((function(t){t.defaultBlock=E})),e},enumerable:!0}),Object.defineProperty(this,"maxListenersWarningThreshold",{get:function(){return C},set:function(e){t.currentProvider&&t.currentProvider.setMaxListeners&&(C=e,t.currentProvider.setMaxListeners(e))},enumerable:!0}),this.clearSubscriptions=t._requestManager.clearSubscriptions.bind(t._requestManager),this.removeSubscriptionById=t._requestManager.removeSubscription.bind(t._requestManager),this.net=new u(this),this.net.getNetworkType=m.bind(this),this.accounts=new d(this),this.personal=new l(this),this.personal.defaultAccount=this.defaultAccount,this.maxListenersWarningThreshold=C;var P=this,B=function(){c.apply(this,arguments);var t=this,e=P.setProvider;P.setProvider=function(){e.apply(P,arguments),n.packageInit(t,[P])}};B.setProvider=function(){c.setProvider.apply(this,arguments)},B.prototype=Object.create(c.prototype),B.prototype.constructor=B,this.Contract=B,this.Contract.defaultAccount=this.defaultAccount,this.Contract.defaultBlock=this.defaultBlock,this.Contract.transactionBlockTimeout=this.transactionBlockTimeout,this.Contract.transactionConfirmationBlocks=this.transactionConfirmationBlocks,this.Contract.transactionPollingTimeout=this.transactionPollingTimeout,this.Contract.handleRevert=this.handleRevert,this.Contract._requestManager=this._requestManager,this.Contract._ethAccounts=this.accounts,this.Contract.currentProvider=this._requestManager.provider,this.Iban=f,this.abi=p,this.ens=new h(this);var I=[new s({name:"getNodeInfo",call:"web3_clientVersion"}),new s({name:"getProtocolVersion",call:"eth_protocolVersion",params:0}),new s({name:"getCoinbase",call:"eth_coinbase",params:0}),new s({name:"isMining",call:"eth_mining",params:0}),new s({name:"getHashrate",call:"eth_hashrate",params:0,outputFormatter:a.hexToNumber}),new s({name:"isSyncing",call:"eth_syncing",params:0,outputFormatter:v.outputSyncingFormatter}),new s({name:"getGasPrice",call:"eth_gasPrice",params:0,outputFormatter:v.outputBigNumberFormatter}),new s({name:"getFeeHistory",call:"eth_feeHistory",params:3,inputFormatter:[a.toNumber,a.toHex,function(t){return t}]}),new s({name:"getAccounts",call:"eth_accounts",params:0,outputFormatter:a.toChecksumAddress}),new s({name:"getBlockNumber",call:"eth_blockNumber",params:0,outputFormatter:a.hexToNumber}),new s({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[v.inputAddressFormatter,v.inputDefaultBlockNumberFormatter],outputFormatter:v.outputBigNumberFormatter}),new s({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[v.inputAddressFormatter,a.numberToHex,v.inputDefaultBlockNumberFormatter]}),new s({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[v.inputAddressFormatter,v.inputDefaultBlockNumberFormatter]}),new s({name:"getBlock",call:g,params:2,inputFormatter:[v.inputBlockNumberFormatter,function(t){return!!t}],outputFormatter:v.outputBlockFormatter}),new s({name:"getUncle",call:b,params:2,inputFormatter:[v.inputBlockNumberFormatter,a.numberToHex],outputFormatter:v.outputBlockFormatter}),new s({name:"getBlockTransactionCount",call:w,params:1,inputFormatter:[v.inputBlockNumberFormatter],outputFormatter:a.hexToNumber}),new s({name:"getBlockUncleCount",call:M,params:1,inputFormatter:[v.inputBlockNumberFormatter],outputFormatter:a.hexToNumber}),new s({name:"getTransaction",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:v.outputTransactionFormatter}),new s({name:"getTransactionFromBlock",call:y,params:2,inputFormatter:[v.inputBlockNumberFormatter,a.numberToHex],outputFormatter:v.outputTransactionFormatter}),new s({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:v.outputTransactionReceiptFormatter}),new s({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[v.inputAddressFormatter,v.inputDefaultBlockNumberFormatter],outputFormatter:a.hexToNumber}),new s({name:"sendSignedTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null],abiCoder:p}),new s({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[v.inputTransactionFormatter]}),new s({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[v.inputTransactionFormatter],abiCoder:p}),new s({name:"sign",call:"eth_sign",params:2,inputFormatter:[v.inputSignFormatter,v.inputAddressFormatter],transformPayload:function(t){return t.params.reverse(),t}}),new s({name:"call",call:"eth_call",params:2,inputFormatter:[v.inputCallFormatter,v.inputDefaultBlockNumberFormatter],abiCoder:p}),new s({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[v.inputCallFormatter],outputFormatter:a.hexToNumber}),new s({name:"submitWork",call:"eth_submitWork",params:3}),new s({name:"getWork",call:"eth_getWork",params:0}),new s({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[v.inputLogFormatter],outputFormatter:v.outputLogFormatter}),new s({name:"getChainId",call:"eth_chainId",params:0,outputFormatter:a.hexToNumber}),new s({name:"requestAccounts",call:"eth_requestAccounts",params:0,outputFormatter:a.toChecksumAddress}),new s({name:"getProof",call:"eth_getProof",params:3,inputFormatter:[v.inputAddressFormatter,v.inputStorageKeysFormatter,v.inputDefaultBlockNumberFormatter],outputFormatter:v.outputProofFormatter}),new s({name:"getPendingTransactions",call:"eth_pendingTransactions",params:0,outputFormatter:v.outputTransactionFormatter}),new o({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:v.outputBlockFormatter},pendingTransactions:{subscriptionName:"newPendingTransactions",params:0},logs:{params:1,inputFormatter:[v.inputLogFormatter],outputFormatter:v.outputLogFormatter,subscriptionHandler:function(t){t.removed?this.emit("changed",t):this.emit("data",t),"function"===typeof this.callback&&this.callback(null,t,this)}},syncing:{params:0,outputFormatter:v.outputSyncingFormatter,subscriptionHandler:function(t){var e=this;!0!==this._isSyncing?(this._isSyncing=!0,this.emit("changed",e._isSyncing),"function"===typeof this.callback&&this.callback(null,e._isSyncing,this),setTimeout((function(){e.emit("data",t),"function"===typeof e.callback&&e.callback(null,t,e)}),0)):(this.emit("data",t),"function"===typeof e.callback&&this.callback(null,t,this),clearTimeout(this._isSyncingTimeout),this._isSyncingTimeout=setTimeout((function(){t.currentBlock>t.highestBlock-200&&(e._isSyncing=!1,e.emit("changed",e._isSyncing),"function"===typeof e.callback&&e.callback(null,e._isSyncing,e))}),500))}}}})];I.forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager,t.accounts),e.defaultBlock=t.defaultBlock,e.defaultAccount=t.defaultAccount,e.transactionBlockTimeout=t.transactionBlockTimeout,e.transactionConfirmationBlocks=t.transactionConfirmationBlocks,e.transactionPollingTimeout=t.transactionPollingTimeout,e.handleRevert=t.handleRevert}))};n.addProviders(_),t.exports=_},e165:function(t,e,r){"use strict";r.d(e,"b",(function(){return l})),r.d(e,"a",(function(){return d}));var n=r("549e"),i=r("ffb2");const o="rlp/5.4.0",s=new i["Logger"](o);function a(t){const e=[];while(t)e.unshift(255&t),t>>=8;return e}function u(t,e,r){let n=0;for(let i=0;i<r;i++)n=256*n+t[e+i];return n}function h(t){if(Array.isArray(t)){let e=[];if(t.forEach((function(t){e=e.concat(h(t))})),e.length<=55)return e.unshift(192+e.length),e;const r=a(e.length);return r.unshift(247+r.length),r.concat(e)}Object(n["isBytesLike"])(t)||s.throwArgumentError("RLP object must be BytesLike","object",t);const e=Array.prototype.slice.call(Object(n["arrayify"])(t));if(1===e.length&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=a(e.length);return r.unshift(183+r.length),r.concat(e)}function l(t){return Object(n["hexlify"])(h(t))}function c(t,e,r,n){const o=[];while(r<e+1+n){const a=f(t,r);o.push(a.result),r+=a.consumed,r>e+1+n&&s.throwError("child data too short",i["Logger"].errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:o}}function f(t,e){if(0===t.length&&s.throwError("data too short",i["Logger"].errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&s.throwError("data short segment too short",i["Logger"].errors.BUFFER_OVERRUN,{});const n=u(t,e+1,r);return e+1+r+n>t.length&&s.throwError("data long segment too short",i["Logger"].errors.BUFFER_OVERRUN,{}),c(t,e,e+1+r,r+n)}if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&s.throwError("data array too short",i["Logger"].errors.BUFFER_OVERRUN,{}),c(t,e,e+1,r)}if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&s.throwError("data array too short",i["Logger"].errors.BUFFER_OVERRUN,{});const o=u(t,e+1,r);e+1+r+o>t.length&&s.throwError("data array too short",i["Logger"].errors.BUFFER_OVERRUN,{});const a=Object(n["hexlify"])(t.slice(e+1+r,e+1+r+o));return{consumed:1+r+o,result:a}}if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&s.throwError("data too short",i["Logger"].errors.BUFFER_OVERRUN,{});const o=Object(n["hexlify"])(t.slice(e+1,e+1+r));return{consumed:1+r,result:o}}return{consumed:1,result:Object(n["hexlify"])(t[e])}}function d(t){const e=Object(n["arrayify"])(t),r=f(e,0);return r.consumed!==e.length&&s.throwArgumentError("invalid rlp data","data",t),r.result}},e1d3:function(t,e,r){(function(e){var n=r("3337"),i=r("37e6");t.exports=function(t){return new s(t)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(t){this.curveType=o[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function a(t,r,n){Array.isArray(t)||(t=t.toArray());var i=new e(t);if(n&&i.length<n){var o=new e(n-i.length);o.fill(0),i=e.concat([o,i])}return r?i.toString(r):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,s.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},s.prototype.computeSecret=function(t,r,n){r=r||"utf8",e.isBuffer(t)||(t=new e(t,r));var i=this.curve.keyFromPublic(t).getPublic(),o=i.mul(this.keys.getPrivate()).getX();return a(o,n,this.curveType.byteLength)},s.prototype.getPublicKey=function(t,e){var r=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(r[r.length-1]%2?r[0]=7:r[0]=6),a(r,t)},s.prototype.getPrivateKey=function(t){return a(this.keys.getPrivate(),t)},s.prototype.setPublicKey=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.keys._importPublic(t),this},s.prototype.setPrivateKey=function(t,r){r=r||"utf8",e.isBuffer(t)||(t=new e(t,r));var n=new i(t);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r("b639").Buffer)},e2aa:function(t,e){var r=function(t){return function(){return new Promise((function(e,r){var n,i=function(r){var n={},i=r.target.files.length,o=0;[].map.call(r.target.files,(function(r){var s=new FileReader;s.onload=function(s){var a=new Uint8Array(s.target.result);if("directory"===t){var u=r.webkitRelativePath;n[u.slice(u.indexOf("/")+1)]={type:"text/plain",data:a},++o===i&&e(n)}else if("file"===t){var h=r.webkitRelativePath;e({type:mimetype.lookup(h),data:a})}else e(a)},s.readAsArrayBuffer(r)}))};"directory"===t?(n=document.createElement("input"),n.addEventListener("change",i),n.type="file",n.webkitdirectory=!0,n.mozdirectory=!0,n.msdirectory=!0,n.odirectory=!0,n.directory=!0):(n=document.createElement("input"),n.addEventListener("change",i),n.type="file");var o=document.createEvent("MouseEvents");o.initEvent("click",!0,!1),n.dispatchEvent(o)}))}};t.exports={data:r("data"),file:r("file"),directory:r("directory")}},e2f5:function(t,e,r){"use strict";const{Buffer:n}=r("b639");t.exports=function(t){const e=t.indexOf("=")>-1,r=t.indexOf("-")>-1&&t.indexOf("_")>-1;return{encode(t){let i="";i="string"===typeof t?n.from(t).toString("base64"):t.toString("base64"),r&&(i=i.replace(/\+/g,"-").replace(/\//g,"_"));const o=i.indexOf("=");return o>0&&!e&&(i=i.substring(0,o)),i},decode(e){for(const r of e)if(t.indexOf(r)<0)throw new Error("invalid base64 character");return n.from(e,"base64")}}}},e36d:function(t,e,r){"use strict";r.d(e,"a",(function(){return d})),r.d(e,"c",(function(){return y})),r.d(e,"b",(function(){return b}));var n=r("b4d1"),i=r.n(n),o=r("549e"),s=r("ffb2");const a="bignumber/5.4.1";var u=i.a.BN;const h=new s["Logger"](a),l={},c=9007199254740991;let f=!1;class d{constructor(t,e){h.checkNew(new.target,d),t!==l&&h.throwError("cannot call constructor directly; use BigNumber.from",s["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return m(v(this).fromTwos(t))}toTwos(t){return m(v(this).toTwos(t))}abs(){return"-"===this._hex[0]?d.from(this._hex.substring(1)):this}add(t){return m(v(this).add(v(t)))}sub(t){return m(v(this).sub(v(t)))}div(t){const e=d.from(t);return e.isZero()&&g("division by zero","div"),m(v(this).div(v(t)))}mul(t){return m(v(this).mul(v(t)))}mod(t){const e=v(t);return e.isNeg()&&g("cannot modulo negative values","mod"),m(v(this).umod(e))}pow(t){const e=v(t);return e.isNeg()&&g("cannot raise to negative values","pow"),m(v(this).pow(e))}and(t){const e=v(t);return(this.isNegative()||e.isNeg())&&g("cannot 'and' negative values","and"),m(v(this).and(e))}or(t){const e=v(t);return(this.isNegative()||e.isNeg())&&g("cannot 'or' negative values","or"),m(v(this).or(e))}xor(t){const e=v(t);return(this.isNegative()||e.isNeg())&&g("cannot 'xor' negative values","xor"),m(v(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&g("cannot mask negative values","mask"),m(v(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&g("cannot shift negative values","shl"),m(v(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&g("cannot shift negative values","shr"),m(v(this).shrn(t))}eq(t){return v(this).eq(v(t))}lt(t){return v(this).lt(v(t))}lte(t){return v(this).lte(v(t))}gt(t){return v(this).gt(v(t))}gte(t){return v(this).gte(v(t))}isNegative(){return"-"===this._hex[0]}isZero(){return v(this).isZero()}toNumber(){try{return v(this).toNumber()}catch(t){g("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return h.throwError("this platform does not support BigInt",s["Logger"].errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?f||(f=!0,h.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?h.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",s["Logger"].errors.UNEXPECTED_ARGUMENT,{}):h.throwError("BigNumber.toString does not accept parameters",s["Logger"].errors.UNEXPECTED_ARGUMENT,{})),v(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof d)return t;if("string"===typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new d(l,p(t)):t.match(/^-?[0-9]+$/)?new d(l,p(new u(t))):h.throwArgumentError("invalid BigNumber string","value",t);if("number"===typeof t)return t%1&&g("underflow","BigNumber.from",t),(t>=c||t<=-c)&&g("overflow","BigNumber.from",t),d.from(String(t));const e=t;if("bigint"===typeof e)return d.from(e.toString());if(Object(o["isBytes"])(e))return d.from(Object(o["hexlify"])(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"===typeof t)return d.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"===typeof t&&(Object(o["isHexString"])(t)||"-"===t[0]&&Object(o["isHexString"])(t.substring(1))))return d.from(t)}return h.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function p(t){if("string"!==typeof t)return p(t.toString(16));if("-"===t[0])return t=t.substring(1),"-"===t[0]&&h.throwArgumentError("invalid hex","value",t),t=p(t),"0x00"===t?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";t.length%2&&(t="0x0"+t.substring(2));while(t.length>4&&"0x00"===t.substring(0,4))t="0x"+t.substring(4);return t}function m(t){return d.from(p(t))}function v(t){const e=d.from(t).toHexString();return"-"===e[0]?new u("-"+e.substring(3),16):new u(e.substring(2),16)}function g(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),h.throwError(t,s["Logger"].errors.NUMERIC_FAULT,n)}function y(t){return new u(t,36).toString(16)}function b(t){return new u(t,16).toString(36)}},e372:function(t,e,r){e=t.exports=r("ad71"),e.Stream=e,e.Readable=e,e.Writable=r("dc14"),e.Duplex=r("b19a"),e.Transform=r("27bf"),e.PassThrough=r("780f")},e3db:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},e41f:function(t,e,r){"use strict";var n=r("d282"),i=r("a142"),o=r("6605"),s=r("ad06"),a=Object(n["a"])("popup"),u=a[0],h=a[1];e["a"]=u({mixins:[Object(o["a"])()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(r){return t.$emit(e,r)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(t){this.$emit("click-close-icon",t),this.close()}},render:function(){var t,e=arguments[0];if(this.shouldRender){var r=this.round,n=this.position,o=this.duration,a="center"===n,u=this.transition||(a?"van-fade":"van-popup-slide-"+n),l={};if(Object(i["c"])(o)){var c=a?"animationDuration":"transitionDuration";l[c]=o+"s"}return e("transition",{attrs:{appear:this.transitionAppear,name:u},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:l,class:h((t={round:r},t[n]=n,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(s["a"],{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:h("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}})},e456:function(t,e,r){"use strict";const{Buffer:n}=r("b639");t.exports=function(t){return{encode(t){return"string"===typeof t?n.from(t).toString("hex"):t.toString("hex")},decode(e){for(const r of e)if(t.indexOf(r)<0)throw new Error("invalid base16 character");return n.from(e,"hex")}}}},e666:function(t,e,r){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=h;var i=r("4250"),o=r("19ea");r("3fb5")(h,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var u=s[a];h.prototype[u]||(h.prototype[u]=o.prototype[u])}function h(t){if(!(this instanceof h))return new h(t);i.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||e.nextTick(c,this)}function c(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,r("f28c"))},e683:function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e853:function(t,e,r){var n=r("d3f4"),i=r("1169"),o=r("2b4c")("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&(e=e[o],null===e&&(e=void 0))),void 0===e?Array:e}},e85f:function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},e8a6:function(t,e,r){"use strict";const{Buffer:n}=r("b639");t.exports=function(t){const e=t.indexOf("=")>-1,r=t.indexOf("-")>-1&&t.indexOf("_")>-1;return{encode(t){let i="";i="string"===typeof t?n.from(t).toString("base64"):t.toString("base64"),r&&(i=i.replace(/\+/g,"-").replace(/\//g,"_"));const o=i.indexOf("=");return o>0&&!e&&(i=i.substring(0,o)),i},decode(e){for(const r of e)if(t.indexOf(r)<0)throw new Error("invalid base64 character");return n.from(e,"base64")}}}},e943:function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s=r("b639").Buffer}catch(E){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var s=t.charCodeAt(o)-48;n<<=4,n|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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"],l=[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],c=[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){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?h[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=l[t],d=c[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:h[f-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function v(t,e,r){var n=new g;return n.mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?m(this,t,e):v(this,t,e),r},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},g.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=f(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(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 b(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 w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){S.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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(w,b),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,b),i(_,b),i(k,b),k.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}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 w;else if("p224"===t)e=new M;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("62e4")(t))},e94e:function(t,e,r){"use strict";(function(t){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t["default"]=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.defineProperties=void 0;var a=s(r("f654")),u=o(r("9a12")),h=o(r("a3ca")),l=r("0c30");e.defineProperties=function(e,r,n){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(void 0===t&&(t=!1),t){var r={};return e._fields.forEach((function(t){r[t]="0x"+e[t].toString("hex")})),r}return l.baToJSON(e.raw)},e.serialize=function(){return h.encode(e.raw)},r.forEach((function(r,n){function i(){return e.raw[n]}function o(i){i=l.toBuffer(i),"00"!==i.toString("hex")||r.allowZero||(i=t.allocUnsafe(0)),r.allowLess&&r.length?(i=l.unpadBuffer(i),a.default(r.length>=i.length,"The field "+r.name+" must not have more "+r.length+" bytes")):r.allowZero&&0===i.length||!r.length||a.default(r.length===i.length,"The field "+r.name+" must have byte length of "+r.length),e.raw[n]=i}e._fields.push(r.name),Object.defineProperty(e,r.name,{enumerable:!0,configurable:!0,get:i,set:o}),r.default&&(e[r.name]=r.default),r.alias&&Object.defineProperty(e,r.alias,{enumerable:!1,configurable:!0,set:o,get:i})})),n)if("string"===typeof n&&(n=t.from(u.stripHexPrefix(n),"hex")),t.isBuffer(n)&&(n=h.decode(n)),Array.isArray(n)){if(n.length>e._fields.length)throw new Error("wrong number of fields in data");n.forEach((function(t,r){e[e._fields[r]]=l.toBuffer(t)}))}else{if("object"!==typeof n)throw new Error("invalid data");var i=Object.keys(n);r.forEach((function(t){-1!==i.indexOf(t.name)&&(e[t.name]=n[t.name]),-1!==i.indexOf(t.alias)&&(e[t.alias]=n[t.alias])}))}}}).call(this,r("b639").Buffer)},ea53:function(t,e,r){"use strict";var n=r("80af"),i=r("f3a3"),o=i.getNAF,s=i.getJSF,a=i.assert;function u(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){a(t.precomputed);var r=t._getDoubles(),n=o(e,1,this._bitLength),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;for(var s=[],u=0;u<n.length;u+=r.step){var h=0;for(e=u+r.step-1;e>=u;e--)h=(h<<1)+n[e];s.push(h)}for(var l=this.jpoint(null,null,null),c=this.jpoint(null,null,null),f=i;f>0;f--){for(u=0;u<s.length;u++){h=s[u];h===f?c=c.mixedAdd(r.points[u]):h===-f&&(c=c.mixedAdd(r.points[u].neg()))}l=l.add(c)}return l.toP()},u.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,s=o(e,r,this._bitLength),u=this.jpoint(null,null,null),h=s.length-1;h>=0;h--){for(e=0;h>=0&&0===s[h];h--)e++;if(h>=0&&e++,u=u.dblp(e),h<0)break;var l=s[h];a(0!==l),u="affine"===t.type?l>0?u.mixedAdd(i[l-1>>1]):u.mixedAdd(i[-l-1>>1].neg()):l>0?u.add(i[l-1>>1]):u.add(i[-l-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,r,n,i){for(var a=this._wnafT1,u=this._wnafT2,h=this._wnafT3,l=0,c=0;c<n;c++){var f=e[c],d=f._getNAFPoints(t);a[c]=d.wnd,u[c]=d.points}for(c=n-1;c>=1;c-=2){var p=c-1,m=c;if(1===a[p]&&1===a[m]){var v=[e[p],null,null,e[m]];0===e[p].y.cmp(e[m].y)?(v[1]=e[p].add(e[m]),v[2]=e[p].toJ().mixedAdd(e[m].neg())):0===e[p].y.cmp(e[m].y.redNeg())?(v[1]=e[p].toJ().mixedAdd(e[m]),v[2]=e[p].add(e[m].neg())):(v[1]=e[p].toJ().mixedAdd(e[m]),v[2]=e[p].toJ().mixedAdd(e[m].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=s(r[p],r[m]);l=Math.max(y[0].length,l),h[p]=new Array(l),h[m]=new Array(l);for(var b=0;b<l;b++){var w=0|y[0][b],M=0|y[1][b];h[p][b]=g[3*(w+1)+(M+1)],h[m][b]=0,u[p]=v}}else h[p]=o(r[p],a[p],this._bitLength),h[m]=o(r[m],a[m],this._bitLength),l=Math.max(h[p].length,l),l=Math.max(h[m].length,l)}var _=this.jpoint(null,null,null),k=this._wnafT4;for(c=l;c>=0;c--){var S=0;while(c>=0){var x=!0;for(b=0;b<n;b++)k[b]=0|h[b][c],0!==k[b]&&(x=!1);if(!x)break;S++,c--}if(c>=0&&S++,_=_.dblp(S),c<0)break;for(b=0;b<n;b++){var E=k[b];0!==E&&(E>0?f=u[b][E-1>>1]:E<0&&(f=u[b][-E-1>>1].neg()),_="affine"===f.type?_.mixedAdd(f):_.add(f))}}for(c=0;c<n;c++)u[c]=null;return i?_:_.toP()},u.BasePoint=h,h.prototype.eq=function(){throw new Error("Not implemented")},h.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(t,e){t=i.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1===2*r){6===t[0]?a(t[t.length-1]%2===0):7===t[0]&&a(t[t.length-1]%2===1);var n=this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));return n}if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},h.prototype.encodeCompressed=function(t){return this.encode(t,!0)},h.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},h.prototype.encode=function(t,e){return i.encode(this._encode(e),t)},h.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},h.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},h.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},h.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},h.prototype._getBeta=function(){return null},h.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}},ea8e:function(t,e,r){"use strict";r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return c}));var n,i=r("a142"),o=r("90c6");function s(t){if(Object(i["c"])(t))return t=String(t),Object(o["b"])(t)?t+"px":t}function a(){if(!n){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;n=parseFloat(e)}return n}function u(t){return t=t.replace(/rem/g,""),+t*a()}function h(t){return t=t.replace(/vw/g,""),+t*window.innerWidth/100}function l(t){return t=t.replace(/vh/g,""),+t*window.innerHeight/100}function c(t){if("number"===typeof t)return t;if(i["b"]){if(-1!==t.indexOf("rem"))return u(t);if(-1!==t.indexOf("vw"))return h(t);if(-1!==t.indexOf("vh"))return l(t)}return parseFloat(t)}},eae1:function(t){t.exports=JSON.parse('{"name":"EIP-3529","comment":"Reduction in refunds","url":"https://eips.ethereum.org/EIPS/eip-3529","status":"Draft","minimumHardfork":"berlin","requiredEIPs":[2929],"gasConfig":{"maxRefundQuotient":{"v":5,"d":"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},"gasPrices":{"selfdestructRefund":{"v":0,"d":"Refunded following a selfdestruct operation"},"sstoreClearRefundEIP2200":{"v":4800,"d":"Once per SSTORE operation for clearing an originally existing storage slot"}},"vm":{},"pow":{}}')},ebd6:function(t,e,r){var n=r("cb7c"),i=r("d8e8"),o=r("2b4c")("species");t.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||void 0==(r=n(s)[o])?e:i(r)}},ec12:function(t,e,r){"use strict";function n(t,{className:e,symbolName:r}){const n=Symbol.for(r),i={[e]:class extends t{constructor(...t){super(...t),Object.defineProperty(this,n,{value:!0})}get[Symbol.toStringTag](){return e}}}[e];return i["is"+e]=t=>!(!t||!t[n]),i}function i(t,{className:e,symbolName:r,withoutNew:n}){const i=Symbol.for(r),o={[e]:function(...e){if(n&&!(this instanceof o))return new o(...e);const r=t.call(this,...e)||this;return r&&!r[i]&&Object.defineProperty(r,i,{value:!0}),r}}[e];return o.prototype=Object.create(t.prototype),o.prototype.constructor=o,Object.defineProperty(o.prototype,Symbol.toStringTag,{get(){return e}}),o["is"+e]=t=>!(!t||!t[i]),o}t.exports=n,t.exports.proto=i},ec30:function(t,e,r){"use strict";if(r("9e1e")){var n=r("2d00"),i=r("7726"),o=r("79e5"),s=r("5ca1"),a=r("0f88"),u=r("ed0b"),h=r("9b43"),l=r("f605"),c=r("4630"),f=r("32e9"),d=r("dcbc"),p=r("4588"),m=r("9def"),v=r("09fa"),g=r("77f1"),y=r("6a99"),b=r("69a8"),w=r("23c6"),M=r("d3f4"),_=r("4bf8"),k=r("33a4"),S=r("2aeb"),x=r("38fd"),E=r("9093").f,A=r("27ee"),O=r("ca5a"),T=r("2b4c"),C=r("0a49"),P=r("c366"),B=r("ebd6"),I=r("cadf"),R=r("84f2"),N=r("5cc5"),j=r("7a56"),L=r("36bd"),U=r("ba92"),D=r("86cc"),F=r("11e9"),z=D.f,q=F.f,H=i.RangeError,$=i.TypeError,V=i.Uint8Array,K="ArrayBuffer",W="Shared"+K,G="BYTES_PER_ELEMENT",Z="prototype",J=Array[Z],X=u.ArrayBuffer,Y=u.DataView,Q=C(0),tt=C(2),et=C(3),rt=C(4),nt=C(5),it=C(6),ot=P(!0),st=P(!1),at=I.values,ut=I.keys,ht=I.entries,lt=J.lastIndexOf,ct=J.reduce,ft=J.reduceRight,dt=J.join,pt=J.sort,mt=J.slice,vt=J.toString,gt=J.toLocaleString,yt=T("iterator"),bt=T("toStringTag"),wt=O("typed_constructor"),Mt=O("def_constructor"),_t=a.CONSTR,kt=a.TYPED,St=a.VIEW,xt="Wrong length!",Et=C(1,(function(t,e){return Pt(B(t,t[Mt]),e)})),At=o((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),Ot=!!V&&!!V[Z].set&&o((function(){new V(1).set({})})),Tt=function(t,e){var r=p(t);if(r<0||r%e)throw H("Wrong offset!");return r},Ct=function(t){if(M(t)&&kt in t)return t;throw $(t+" is not a typed array!")},Pt=function(t,e){if(!M(t)||!(wt in t))throw $("It is not a typed array constructor!");return new t(e)},Bt=function(t,e){return It(B(t,t[Mt]),e)},It=function(t,e){var r=0,n=e.length,i=Pt(t,n);while(n>r)i[r]=e[r++];return i},Rt=function(t,e,r){z(t,e,{get:function(){return this._d[r]}})},Nt=function(t){var e,r,n,i,o,s,a=_(t),u=arguments.length,l=u>1?arguments[1]:void 0,c=void 0!==l,f=A(a);if(void 0!=f&&!k(f)){for(s=f.call(a),n=[],e=0;!(o=s.next()).done;e++)n.push(o.value);a=n}for(c&&u>2&&(l=h(l,arguments[2],2)),e=0,r=m(a.length),i=Pt(this,r);r>e;e++)i[e]=c?l(a[e],e):a[e];return i},jt=function(){var t=0,e=arguments.length,r=Pt(this,e);while(e>t)r[t]=arguments[t++];return r},Lt=!!V&&o((function(){gt.call(new V(1))})),Ut=function(){return gt.apply(Lt?mt.call(Ct(this)):Ct(this),arguments)},Dt={copyWithin:function(t,e){return U.call(Ct(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return rt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(Ct(this),arguments)},filter:function(t){return Bt(this,tt(Ct(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return nt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return it(Ct(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(Ct(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(Ct(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(Ct(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return dt.apply(Ct(this),arguments)},lastIndexOf:function(t){return lt.apply(Ct(this),arguments)},map:function(t){return Et(Ct(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Ct(this),arguments)},reduceRight:function(t){return ft.apply(Ct(this),arguments)},reverse:function(){var t,e=this,r=Ct(e).length,n=Math.floor(r/2),i=0;while(i<n)t=e[i],e[i++]=e[--r],e[r]=t;return e},some:function(t){return et(Ct(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(Ct(this),t)},subarray:function(t,e){var r=Ct(this),n=r.length,i=g(t,n);return new(B(r,r[Mt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,m((void 0===e?n:g(e,n))-i))}},Ft=function(t,e){return Bt(this,mt.call(Ct(this),t,e))},zt=function(t){Ct(this);var e=Tt(arguments[1],1),r=this.length,n=_(t),i=m(n.length),o=0;if(i+e>r)throw H(xt);while(o<i)this[e+o]=n[o++]},qt={entries:function(){return ht.call(Ct(this))},keys:function(){return ut.call(Ct(this))},values:function(){return at.call(Ct(this))}},Ht=function(t,e){return M(t)&&t[kt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},$t=function(t,e){return Ht(t,e=y(e,!0))?c(2,t[e]):q(t,e)},Vt=function(t,e,r){return!(Ht(t,e=y(e,!0))&&M(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?z(t,e,r):(t[e]=r.value,t)};_t||(F.f=$t,D.f=Vt),s(s.S+s.F*!_t,"Object",{getOwnPropertyDescriptor:$t,defineProperty:Vt}),o((function(){vt.call({})}))&&(vt=gt=function(){return dt.call(this)});var Kt=d({},Dt);d(Kt,qt),f(Kt,yt,qt.values),d(Kt,{slice:Ft,set:zt,constructor:function(){},toString:vt,toLocaleString:Ut}),Rt(Kt,"buffer","b"),Rt(Kt,"byteOffset","o"),Rt(Kt,"byteLength","l"),Rt(Kt,"length","e"),z(Kt,bt,{get:function(){return this[kt]}}),t.exports=function(t,e,r,u){u=!!u;var h=t+(u?"Clamped":"")+"Array",c="get"+t,d="set"+t,p=i[h],g=p||{},y=p&&x(p),b=!p||!a.ABV,_={},k=p&&p[Z],A=function(t,r){var n=t._d;return n.v[c](r*e+n.o,At)},O=function(t,r,n){var i=t._d;u&&(n=(n=Math.round(n))<0?0:n>255?255:255&n),i.v[d](r*e+i.o,n,At)},T=function(t,e){z(t,e,{get:function(){return A(this,e)},set:function(t){return O(this,e,t)},enumerable:!0})};b?(p=r((function(t,r,n,i){l(t,p,h,"_d");var o,s,a,u,c=0,d=0;if(M(r)){if(!(r instanceof X||(u=w(r))==K||u==W))return kt in r?It(p,r):Nt.call(p,r);o=r,d=Tt(n,e);var g=r.byteLength;if(void 0===i){if(g%e)throw H(xt);if(s=g-d,s<0)throw H(xt)}else if(s=m(i)*e,s+d>g)throw H(xt);a=s/e}else a=v(r),s=a*e,o=new X(s);f(t,"_d",{b:o,o:d,l:s,e:a,v:new Y(o)});while(c<a)T(t,c++)})),k=p[Z]=S(Kt),f(k,"constructor",p)):o((function(){p(1)}))&&o((function(){new p(-1)}))&&N((function(t){new p,new p(null),new p(1.5),new p(t)}),!0)||(p=r((function(t,r,n,i){var o;return l(t,p,h),M(r)?r instanceof X||(o=w(r))==K||o==W?void 0!==i?new g(r,Tt(n,e),i):void 0!==n?new g(r,Tt(n,e)):new g(r):kt in r?It(p,r):Nt.call(p,r):new g(v(r))})),Q(y!==Function.prototype?E(g).concat(E(y)):E(g),(function(t){t in p||f(p,t,g[t])})),p[Z]=k,n||(k.constructor=p));var C=k[yt],P=!!C&&("values"==C.name||void 0==C.name),B=qt.values;f(p,wt,!0),f(k,kt,h),f(k,St,!0),f(k,Mt,p),(u?new p(1)[bt]==h:bt in k)||z(k,bt,{get:function(){return h}}),_[h]=p,s(s.G+s.W+s.F*(p!=g),_),s(s.S,h,{BYTES_PER_ELEMENT:e}),s(s.S+s.F*o((function(){g.of.call(p,1)})),h,{from:Nt,of:jt}),G in k||f(k,G,e),s(s.P,h,Dt),j(h),s(s.P+s.F*Ot,h,{set:zt}),s(s.P+s.F*!P,h,qt),n||k.toString==vt||(k.toString=vt),s(s.P+s.F*o((function(){new p(1).slice()})),h,{slice:Ft}),s(s.P+s.F*(o((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!o((function(){k.toLocaleString.call([1,2])}))),h,{toLocaleString:Ut}),R[h]=P?C:B,n||P||f(k,yt,B)}}else t.exports=function(){}},ed0b:function(t,e,r){"use strict";var n=r("7726"),i=r("9e1e"),o=r("2d00"),s=r("0f88"),a=r("32e9"),u=r("dcbc"),h=r("79e5"),l=r("f605"),c=r("4588"),f=r("9def"),d=r("09fa"),p=r("9093").f,m=r("86cc").f,v=r("36bd"),g=r("7f20"),y="ArrayBuffer",b="DataView",w="prototype",M="Wrong length!",_="Wrong index!",k=n[y],S=n[b],x=n.Math,E=n.RangeError,A=n.Infinity,O=k,T=x.abs,C=x.pow,P=x.floor,B=x.log,I=x.LN2,R="buffer",N="byteLength",j="byteOffset",L=i?"_b":R,U=i?"_l":N,D=i?"_o":j;function F(t,e,r){var n,i,o,s=new Array(r),a=8*r-e-1,u=(1<<a)-1,h=u>>1,l=23===e?C(2,-24)-C(2,-77):0,c=0,f=t<0||0===t&&1/t<0?1:0;for(t=T(t),t!=t||t===A?(i=t!=t?1:0,n=u):(n=P(B(t)/I),t*(o=C(2,-n))<1&&(n--,o*=2),t+=n+h>=1?l/o:l*C(2,1-h),t*o>=2&&(n++,o/=2),n+h>=u?(i=0,n=u):n+h>=1?(i=(t*o-1)*C(2,e),n+=h):(i=t*C(2,h-1)*C(2,e),n=0));e>=8;s[c++]=255&i,i/=256,e-=8);for(n=n<<e|i,a+=e;a>0;s[c++]=255&n,n/=256,a-=8);return s[--c]|=128*f,s}function z(t,e,r){var n,i=8*r-e-1,o=(1<<i)-1,s=o>>1,a=i-7,u=r-1,h=t[u--],l=127&h;for(h>>=7;a>0;l=256*l+t[u],u--,a-=8);for(n=l&(1<<-a)-1,l>>=-a,a+=e;a>0;n=256*n+t[u],u--,a-=8);if(0===l)l=1-s;else{if(l===o)return n?NaN:h?-A:A;n+=C(2,e),l-=s}return(h?-1:1)*n*C(2,l-e)}function q(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function H(t){return[255&t]}function $(t){return[255&t,t>>8&255]}function V(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function K(t){return F(t,52,8)}function W(t){return F(t,23,4)}function G(t,e,r){m(t[w],e,{get:function(){return this[r]}})}function Z(t,e,r,n){var i=+r,o=d(i);if(o+e>t[U])throw E(_);var s=t[L]._b,a=o+t[D],u=s.slice(a,a+e);return n?u:u.reverse()}function J(t,e,r,n,i,o){var s=+r,a=d(s);if(a+e>t[U])throw E(_);for(var u=t[L]._b,h=a+t[D],l=n(+i),c=0;c<e;c++)u[h+c]=l[o?c:e-c-1]}if(s.ABV){if(!h((function(){k(1)}))||!h((function(){new k(-1)}))||h((function(){return new k,new k(1.5),new k(NaN),k.name!=y}))){k=function(t){return l(this,k),new O(d(t))};for(var X,Y=k[w]=O[w],Q=p(O),tt=0;Q.length>tt;)(X=Q[tt++])in k||a(k,X,O[X]);o||(Y.constructor=k)}var et=new S(new k(2)),rt=S[w].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||u(S[w],{setInt8:function(t,e){rt.call(this,t,e<<24>>24)},setUint8:function(t,e){rt.call(this,t,e<<24>>24)}},!0)}else k=function(t){l(this,k,y);var e=d(t);this._b=v.call(new Array(e),0),this[U]=e},S=function(t,e,r){l(this,S,b),l(t,k,b);var n=t[U],i=c(e);if(i<0||i>n)throw E("Wrong offset!");if(r=void 0===r?n-i:f(r),i+r>n)throw E(M);this[L]=t,this[D]=i,this[U]=r},i&&(G(k,N,"_l"),G(S,R,"_b"),G(S,N,"_l"),G(S,j,"_o")),u(S[w],{getInt8:function(t){return Z(this,1,t)[0]<<24>>24},getUint8:function(t){return Z(this,1,t)[0]},getInt16:function(t){var e=Z(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Z(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return q(Z(this,4,t,arguments[1]))},getUint32:function(t){return q(Z(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return z(Z(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return z(Z(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){J(this,1,t,H,e)},setUint8:function(t,e){J(this,1,t,H,e)},setInt16:function(t,e){J(this,2,t,$,e,arguments[2])},setUint16:function(t,e){J(this,2,t,$,e,arguments[2])},setInt32:function(t,e){J(this,4,t,V,e,arguments[2])},setUint32:function(t,e){J(this,4,t,V,e,arguments[2])},setFloat32:function(t,e){J(this,4,t,W,e,arguments[2])},setFloat64:function(t,e){J(this,8,t,K,e,arguments[2])}});g(k,y),g(S,b),a(S[w],s.VIEW,!0),e[y]=k,e[b]=S},ed14:function(t,e){const r=t=>{const e=t=>t.length%2===0?t:"0"+t,r=t=>e(t.toString(16)),n=(t,e)=>t<56?r(e+t):r(e+r(t).length/2+55)+r(t),i=t=>{if("string"===typeof t){const e=t.slice(2),r=2!=e.length||e>="80"?n(e.length/2,128):"";return r+e}{const e=t.map(i).join(""),r=n(e.length/2,192);return r+e}};return"0x"+i(t)},n=t=>{let e=2;const r=()=>{if(e>=t.length)throw"";const r=t.slice(e,e+2);return r<"80"?(e+=2,"0x"+r):r<"c0"?i():o()},n=()=>{const r=parseInt(t.slice(e,e+=2),16)%64;return r<56?r:parseInt(t.slice(e,e+=2*(r-55)),16)},i=()=>{const r=n();return"0x"+t.slice(e,e+=2*r)},o=()=>{const t=2*n()+e;let i=[];while(e<t)i.push(r());return i};try{return r()}catch(s){return[]}};t.exports={encode:r,decode:n}},edc9:function(t,e,r){"use strict";var n=r("c3c0"),i=r("da3e");function o(){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}e.BlockHash=o,o.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var r=t.length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},ee93:function(t,e,r){"use strict";var n=r("9d8a").codes.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function o(){}function s(t){return t.setHeader&&"function"===typeof t.abort}function a(t,e,r){if("function"===typeof e)return a(t,null,e);e||(e={}),r=i(r||o);var u=e.readable||!1!==e.readable&&t.readable,h=e.writable||!1!==e.writable&&t.writable,l=function(){t.writable||f()},c=t._writableState&&t._writableState.finished,f=function(){h=!1,c=!0,u||r.call(t)},d=t._readableState&&t._readableState.endEmitted,p=function(){u=!1,d=!0,h||r.call(t)},m=function(e){r.call(t,e)},v=function(){var e;return u&&!d?(t._readableState&&t._readableState.ended||(e=new n),r.call(t,e)):h&&!c?(t._writableState&&t._writableState.ended||(e=new n),r.call(t,e)):void 0},g=function(){t.req.on("finish",f)};return s(t)?(t.on("complete",f),t.on("abort",v),t.req?g():t.on("request",g)):h&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",p),t.on("finish",f),!1!==e.error&&t.on("error",m),t.on("close",v),function(){t.removeListener("complete",f),t.removeListener("abort",v),t.removeListener("request",g),t.req&&t.req.removeListener("finish",f),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",f),t.removeListener("end",p),t.removeListener("error",m),t.removeListener("close",v)}}t.exports=a},eec7:function(t,e,r){"use strict";var n=r("be09"),i=r("8362"),o=r("6444"),s=r("53a8");function a(t,e){for(var r=0;r<t.length;r++)e(t[r])}function u(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function h(t,e,r){var n=t;return i(e)?(r=e,"string"===typeof t&&(n={uri:t})):n=s(e,{uri:t}),n.callback=r,n}function l(t,e,r){return e=h(t,e,r),c(e)}function c(t){if("undefined"===typeof t.callback)throw new Error("callback argument missing");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){4===d.readyState&&setTimeout(a,0)}function i(){var t=void 0;if(t=d.response?d.response:d.responseText||f(d),w)try{t=JSON.parse(t)}catch(e){}return t}function s(t){return clearTimeout(p),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,M)}function a(){if(!c){var e;clearTimeout(p),e=t.useXDR&&void 0===d.status?200:1223===d.status?204:d.status;var n=M,s=null;return 0!==e?(n={body:i(),statusCode:e,method:v,headers:{},url:m,rawRequest:d},d.getAllResponseHeaders&&(n.headers=o(d.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),r(s,n,n.body)}}var h,c,d=t.xhr||null;d||(d=t.cors||t.useXDR?new l.XDomainRequest:new l.XMLHttpRequest);var p,m=d.url=t.uri||t.url,v=d.method=t.method||"GET",g=t.body||t.data,y=d.headers=t.headers||{},b=!!t.sync,w=!1,M={body:void 0,headers:{},statusCode:0,method:v,url:m,rawRequest:d};if("json"in t&&!1!==t.json&&(w=!0,y["accept"]||y["Accept"]||(y["Accept"]="application/json"),"GET"!==v&&"HEAD"!==v&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),g=JSON.stringify(!0===t.json?g:t.json))),d.onreadystatechange=n,d.onload=a,d.onerror=s,d.onprogress=function(){},d.onabort=function(){c=!0},d.ontimeout=s,d.open(v,m,!b,t.username,t.password),b||(d.withCredentials=!!t.withCredentials),!b&&t.timeout>0&&(p=setTimeout((function(){if(!c){c=!0,d.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",s(t)}}),t.timeout)),d.setRequestHeader)for(h in y)y.hasOwnProperty(h)&&d.setRequestHeader(h,y[h]);else if(t.headers&&!u(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(d.responseType=t.responseType),"beforeSend"in t&&"function"===typeof t.beforeSend&&t.beforeSend(d),d.send(g||null),d}function f(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(r){}return null}function d(){}t.exports=l,t.exports.default=l,l.XMLHttpRequest=n.XMLHttpRequest||d,l.XDomainRequest="withCredentials"in new l.XMLHttpRequest?l.XMLHttpRequest:n.XDomainRequest,a(["get","put","post","patch","head","delete"],(function(t){l["delete"===t?"del":t]=function(e,r,n){return r=h(e,r,n),r.method=t.toUpperCase(),c(r)}}))},ef3a:function(t,e,r){var n=r("7f7a"),i=r("3fb5"),o=e;function s(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}o.define=function(t,e){return new s(t,e)},s.prototype._createNamed=function(t){var e;try{e=r("0706").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(n){e=function(t){this._initNamed(t)}}return i(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},s.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(n.decoders[t])),this.decoders[t]},s.prototype.decode=function(t,e,r){return this._getDecoder(e).decode(t,r)},s.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n.encoders[t])),this.encoders[t]},s.prototype.encode=function(t,e,r){return this._getEncoder(e).encode(t,r)}},efab:function(t,e,r){(function(e,n){var i="[object process]"===Object.prototype.toString.call("undefined"!==typeof e?e:0),o="undefined"!==typeof navigator&&"ReactNative"===navigator.product,s=null,a=null;if(i||o){s=function(t){return n.from(t).toString("base64")};var u=r("0b16");if(u.URL){var h=u.URL;a=function(t){return new h(t)}}else a=r("0b16").parse}else s=btoa.bind(window),a=function(t){return new URL(t)};t.exports={parseURL:a,btoa:s}}).call(this,r("f28c"),r("b639").Buffer)},f12a:function(t,e,r){t.exports=r("faa1").EventEmitter},f1ae:function(t,e,r){"use strict";var n=r("86cc"),i=r("4630");t.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},f1c8:function(t,e,r){"use strict";t.exports=l;var n=r("d113").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r("5e7d");function h(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(t){if(!(this instanceof l))return new l(t);u.call(this,t),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function c(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(e,r){f(t,e,r)}))}function f(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new a;if(t._transformState.transforming)throw new s;return t.push(null)}r("3fb5")(l,u),l.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},l.prototype._transform=function(t,e,r){r(new i("_transform()"))},l.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},l.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},f1dd:function(t,e,r){(function(t){var e,r,n,i=String.fromCharCode;function o(t){var e,r,n=[],i=0,o=t.length;while(i<o)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(r=t.charCodeAt(i++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--)):n.push(e);return n}function s(t){var e,r=t.length,n=-1,o="";while(++n<r)e=t[n],e>65535&&(e-=65536,o+=i(e>>>10&1023|55296),e=56320|1023&e),o+=i(e);return o}function a(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function u(t,e){return i(t>>e&63|128)}function h(t){if(0==(4294967168&t))return i(t);var e="";return 0==(4294965248&t)?e=i(t>>6&31|192):0==(4294901760&t)?(a(t),e=i(t>>12&15|224),e+=u(t,6)):0==(4292870144&t)&&(e=i(t>>18&7|240),e+=u(t,12),e+=u(t,6)),e+=i(63&t|128),e}function l(t){var e,r=o(t),n=r.length,i=-1,s="";while(++i<n)e=r[i],s+=h(e);return s}function c(){if(n>=r)throw Error("Invalid byte index");var t=255&e[n];if(n++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function f(){var t,i,o,s,u;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(t=255&e[n],n++,0==(128&t))return t;if(192==(224&t)){if(i=c(),u=(31&t)<<6|i,u>=128)return u;throw Error("Invalid continuation byte")}if(224==(240&t)){if(i=c(),o=c(),u=(15&t)<<12|i<<6|o,u>=2048)return a(u),u;throw Error("Invalid continuation byte")}if(240==(248&t)&&(i=c(),o=c(),s=c(),u=(7&t)<<18|i<<12|o<<6|s,u>=65536&&u<=1114111))return u;throw Error("Invalid UTF-8 detected")}function d(t){e=o(t),r=e.length,n=0;var i,a=[];while(!1!==(i=f()))a.push(i);return s(a)}t.version="3.0.0",t.encode=l,t.decode=d})(e)},f234:function(t,e,r){"use strict";var n="%[a-f0-9]{2}",i=new RegExp(n,"gi"),o=new RegExp("("+n+")+","gi");function s(t,e){try{return decodeURIComponent(t.join(""))}catch(i){}if(1===t.length)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],s(r),s(n))}function a(t){try{return decodeURIComponent(t)}catch(n){for(var e=t.match(i),r=1;r<e.length;r++)t=s(e,r).join(""),e=t.match(i);return t}}function u(t){var e={"%FE%FF":"<22><>","%FF%FE":"<22><>"},r=o.exec(t);while(r){try{e[r[0]]=decodeURIComponent(r[0])}catch(h){var n=a(r[0]);n!==r[0]&&(e[r[0]]=n)}r=o.exec(t)}e["%C2"]="<22>";for(var i=Object.keys(e),s=0;s<i.length;s++){var u=i[s];t=t.replace(new RegExp(u,"g"),e[u])}return t}t.exports=function(t){if("string"!==typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return u(t)}}},f28c:function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}function u(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(function(){try{r="function"===typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"===typeof clearTimeout?clearTimeout:s}catch(t){n=s}})();var h,l=[],c=!1,f=-1;function d(){c&&h&&(c=!1,h.length?l=h.concat(l):f=-1,l.length&&p())}function p(){if(!c){var t=a(d);c=!0;var e=l.length;while(e){h=l,l=[];while(++f<e)h&&h[f].run();f=-1,e=l.length}h=null,c=!1,u(t)}}function m(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];l.push(new m(t,e)),1!==l.length||c||a(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},f33e:function(t,e,r){"use strict";const n=r("2612"),{Buffer:i}=r("b639");function o(t){return parseInt(t.toString("hex"),16)}function s(t){let e=t.toString(16);return e.length%2===1&&(e="0"+e),i.from(e,"hex")}function a(t){return i.from(n.encode(o(t)))}function u(t){return s(n.decode(t))}function h(t){return i.from(n.encode(t))}t.exports={numberToBuffer:s,bufferToNumber:o,varintBufferEncode:a,varintBufferDecode:u,varintEncode:h}},f3a3:function(t,e,r){"use strict";var n=e,i=r("80af"),o=r("da3e"),s=r("7658");function a(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,o=t.clone(),s=0;s<n.length;s++){var a,u=o.andln(i-1);o.isOdd()?(a=u>(i>>1)-1?(i>>1)-u:u,o.isubn(a)):a=0,n[s]=a,o.iushrn(1)}return n}function u(t,e){var r=[[],[]];t=t.clone(),e=e.clone();var n=0,i=0;while(t.cmpn(-n)>0||e.cmpn(-i)>0){var o,s,a=t.andln(3)+n&3,u=e.andln(3)+i&3;if(3===a&&(a=-1),3===u&&(u=-1),0===(1&a))o=0;else{var h=t.andln(7)+n&7;o=3!==h&&5!==h||2!==u?a:-a}if(r[0].push(o),0===(1&u))s=0;else{h=e.andln(7)+i&7;s=3!==h&&5!==h||2!==a?u:-u}r[1].push(s),2*n===o+1&&(n=1-n),2*i===s+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r}function h(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function l(t){return"string"===typeof t?n.toArray(t,"hex"):t}function c(t){return new i(t,"hex","le")}n.assert=o,n.toArray=s.toArray,n.zero2=s.zero2,n.toHex=s.toHex,n.encode=s.encode,n.getNAF=a,n.getJSF=u,n.cachedProperty=h,n.parseBytes=l,n.intFromLE=c},f400:function(t,e,r){"use strict";var n=r("c26b"),i=r("b39a"),o="Map";t.exports=r("e0b8")(o,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=n.getEntry(i(this,o),t);return e&&e.v},set:function(t,e){return n.def(i(this,o),0===t?0:t,e)}},n,!0)},f460:function(t,e,r){var n=r("98e6"),i=r("8707").Buffer;function o(t){var e=i.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){var r,s=i.alloc(0),a=0;while(s.length<e)r=o(a++),s=i.concat([s,n("sha1").update(t).update(r).digest()]);return s.slice(0,e)}},f48f:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=r("5b66"),i=r("ced0"),o=function(){function e(){}return e.fromTxData=function(t,e){if(void 0===e&&(e={}),"type"in t&&void 0!==t.type){var r=new n.BN(n.toBuffer(t.type)).toNumber();if(0===r)return i.Transaction.fromTxData(t,e);if(1===r)return i.AccessListEIP2930Transaction.fromTxData(t,e);if(2===r)return i.FeeMarketEIP1559Transaction.fromTxData(t,e);throw new Error("Tx instantiation with type "+r+" not supported")}return i.Transaction.fromTxData(t,e)},e.fromSerializedData=function(t,e){if(void 0===e&&(e={}),t[0]<=127){var r=void 0;switch(t[0]){case 1:r=2930;break;case 2:r=1559;break;default:throw new Error("TypedTransaction with ID "+t[0]+" unknown")}return 1559===r?i.FeeMarketEIP1559Transaction.fromSerializedTx(t,e):i.AccessListEIP2930Transaction.fromSerializedTx(t,e)}return i.Transaction.fromSerializedTx(t,e)},e.fromBlockBodyData=function(e,r){if(void 0===r&&(r={}),t.isBuffer(e))return this.fromSerializedData(e,r);if(Array.isArray(e))return i.Transaction.fromValuesArray(e,r);throw new Error("Cannot decode transaction: unknown type input")},e.getTransactionClass=function(t,e){void 0===t&&(t=0);var r=0==t||t>=128&&t<=255;if(r)return i.Transaction;switch(t){case 1:return i.AccessListEIP2930Transaction;case 2:return i.FeeMarketEIP1559Transaction;default:throw new Error("TypedTransaction with ID "+t+" unknown")}},e}();e.default=o}).call(this,r("b639").Buffer)},f564:function(t,e,r){"use strict";var n=r("c31d"),i=r("8bbf"),o=r.n(i),s=r("2638"),a=r.n(s),u=r("d282"),h=r("ba31"),l=r("6605"),c=r("e41f"),f=Object(u["a"])("notify"),d=f[0],p=f[1];function m(t,e,r,n){var i={color:e.color,background:e.background};return t(c["a"],a()([{attrs:{value:e.value,position:"top",overlay:!1,duration:.2,lockScroll:!1},style:i,class:[p([e.type]),e.className]},Object(h["b"])(n,!0)]),[(null==r.default?void 0:r.default())||e.message])}m.props=Object(n["a"])({},l["b"],{color:String,message:[Number,String],duration:[Number,String],className:null,background:String,getContainer:[String,Function],type:{type:String,default:"danger"}});var v,g,y=d(m),b=r("a142");function w(t){return Object(b["f"])(t)?t:{message:t}}function M(t){if(!b["h"])return g||(g=Object(h["c"])(y,{on:{click:function(t){g.onClick&&g.onClick(t)},close:function(){g.onClose&&g.onClose()},opened:function(){g.onOpened&&g.onOpened()}}})),t=Object(n["a"])({},M.currentOptions,w(t)),Object(n["a"])(g,t),clearTimeout(v),t.duration&&t.duration>0&&(v=setTimeout(M.clear,t.duration)),g}function _(){return{type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null}}M.clear=function(){g&&(g.value=!1)},M.currentOptions=_(),M.setDefaultOptions=function(t){Object(n["a"])(M.currentOptions,t)},M.resetDefaultOptions=function(){M.currentOptions=_()},M.install=function(){o.a.use(y)},M.Component=y,o.a.prototype.$notify=M;e["a"]=M},f576:function(t,e,r){"use strict";var n=r("3fb5"),i=r("93e6"),o=r("8707").Buffer,s=new Array(16);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<<e|t>>>32-e}function h(t,e,r,n,i,o,s){return u(t+(e&r|~e&n)+i+o|0,s)+e|0}function l(t,e,r,n,i,o,s){return u(t+(e&n|r&~n)+i+o|0,s)+e|0}function c(t,e,r,n,i,o,s){return u(t+(e^r^n)+i+o|0,s)+e|0}function f(t,e,r,n,i,o,s){return u(t+(r^(e|~n))+i+o|0,s)+e|0}n(a,i),a.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,i=this._c,o=this._d;r=h(r,n,i,o,t[0],3614090360,7),o=h(o,r,n,i,t[1],3905402710,12),i=h(i,o,r,n,t[2],606105819,17),n=h(n,i,o,r,t[3],3250441966,22),r=h(r,n,i,o,t[4],4118548399,7),o=h(o,r,n,i,t[5],1200080426,12),i=h(i,o,r,n,t[6],2821735955,17),n=h(n,i,o,r,t[7],4249261313,22),r=h(r,n,i,o,t[8],1770035416,7),o=h(o,r,n,i,t[9],2336552879,12),i=h(i,o,r,n,t[10],4294925233,17),n=h(n,i,o,r,t[11],2304563134,22),r=h(r,n,i,o,t[12],1804603682,7),o=h(o,r,n,i,t[13],4254626195,12),i=h(i,o,r,n,t[14],2792965006,17),n=h(n,i,o,r,t[15],1236535329,22),r=l(r,n,i,o,t[1],4129170786,5),o=l(o,r,n,i,t[6],3225465664,9),i=l(i,o,r,n,t[11],643717713,14),n=l(n,i,o,r,t[0],3921069994,20),r=l(r,n,i,o,t[5],3593408605,5),o=l(o,r,n,i,t[10],38016083,9),i=l(i,o,r,n,t[15],3634488961,14),n=l(n,i,o,r,t[4],3889429448,20),r=l(r,n,i,o,t[9],568446438,5),o=l(o,r,n,i,t[14],3275163606,9),i=l(i,o,r,n,t[3],4107603335,14),n=l(n,i,o,r,t[8],1163531501,20),r=l(r,n,i,o,t[13],2850285829,5),o=l(o,r,n,i,t[2],4243563512,9),i=l(i,o,r,n,t[7],1735328473,14),n=l(n,i,o,r,t[12],2368359562,20),r=c(r,n,i,o,t[5],4294588738,4),o=c(o,r,n,i,t[8],2272392833,11),i=c(i,o,r,n,t[11],1839030562,16),n=c(n,i,o,r,t[14],4259657740,23),r=c(r,n,i,o,t[1],2763975236,4),o=c(o,r,n,i,t[4],1272893353,11),i=c(i,o,r,n,t[7],4139469664,16),n=c(n,i,o,r,t[10],3200236656,23),r=c(r,n,i,o,t[13],681279174,4),o=c(o,r,n,i,t[0],3936430074,11),i=c(i,o,r,n,t[3],3572445317,16),n=c(n,i,o,r,t[6],76029189,23),r=c(r,n,i,o,t[9],3654602809,4),o=c(o,r,n,i,t[12],3873151461,11),i=c(i,o,r,n,t[15],530742520,16),n=c(n,i,o,r,t[2],3299628645,23),r=f(r,n,i,o,t[0],4096336452,6),o=f(o,r,n,i,t[7],1126891415,10),i=f(i,o,r,n,t[14],2878612391,15),n=f(n,i,o,r,t[5],4237533241,21),r=f(r,n,i,o,t[12],1700485571,6),o=f(o,r,n,i,t[3],2399980690,10),i=f(i,o,r,n,t[10],4293915773,15),n=f(n,i,o,r,t[1],2240044497,21),r=f(r,n,i,o,t[8],1873313359,6),o=f(o,r,n,i,t[15],4264355552,10),i=f(i,o,r,n,t[6],2734768916,15),n=f(n,i,o,r,t[13],1309151649,21),r=f(r,n,i,o,t[4],4149444226,6),o=f(o,r,n,i,t[11],3174756917,10),i=f(i,o,r,n,t[2],718787259,15),n=f(n,i,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},a.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=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=a},f5766:function(t,e,r){"use strict";var n=r("5ca1"),i=r("2e08"),o=r("a25f"),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*s,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},f5e1:function(t,e,r){var n=r("33a0"),i=r("9850");function o(t,e,r){var o=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null),t=t||{};var s=t.random||(t.rng||n)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e)for(var a=0;a<16;++a)e[o+a]=s[a];return e||i(s)}t.exports=o},f605:function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},f609:function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(1).Buffer}catch(A){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,l=r;l<a;l+=n)u=h(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var c=1;for(u=h(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],c=[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],f=[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 d(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+c,l+=s/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,r=0!==o||s!==this.length-1?l[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],d=f[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:l[h-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,h=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-i;a++)h[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,y=v>>>13,b=0|s[3],w=8191&b,M=b>>>13,_=0|s[4],k=8191&_,S=_>>>13,x=0|s[5],E=8191&x,A=x>>>13,O=0|s[6],T=8191&O,C=O>>>13,P=0|s[7],B=8191&P,I=P>>>13,R=0|s[8],N=8191&R,j=R>>>13,L=0|s[9],U=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,H=0|a[1],$=8191&H,V=H>>>13,K=0|a[2],W=8191&K,G=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,z),i=Math.imul(c,q),i=i+Math.imul(f,z)|0,o=Math.imul(f,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(c,$)|0,i=i+Math.imul(c,V)|0,i=i+Math.imul(f,$)|0,o=o+Math.imul(f,V)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),i=Math.imul(g,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),n=n+Math.imul(p,$)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,$)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(c,W)|0,i=i+Math.imul(c,G)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,G)|0;var yt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),n=n+Math.imul(g,$)|0,i=i+Math.imul(g,V)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(c,J)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),i=Math.imul(k,q),i=i+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(w,$)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(k,$)|0,i=i+Math.imul(k,V)|0,i=i+Math.imul(S,$)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,z),i=Math.imul(T,q),i=i+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(E,$)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(A,$)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,i=i+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(I,z)|0,o=Math.imul(I,q),n=n+Math.imul(T,$)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(E,W)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(c,ut)|0,i=i+Math.imul(c,ht)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ht)|0;var kt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(B,$)|0,i=i+Math.imul(B,V)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=i+Math.imul(g,st)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ht)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,ft)|0,i=i+Math.imul(f,ct)|0,o=o+Math.imul(f,ft)|0;var St=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=Math.imul(U,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(N,$)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(B,W)|0,i=i+Math.imul(B,G)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,ut)|0,i=i+Math.imul(g,ht)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(U,$),i=Math.imul(U,V),i=i+Math.imul(D,$)|0,o=Math.imul(D,V),n=n+Math.imul(N,W)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(B,J)|0,i=i+Math.imul(B,X)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ht)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(U,W),i=Math.imul(U,G),i=i+Math.imul(D,W)|0,o=Math.imul(D,G),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,X)|0,i=i+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ht)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,J),i=Math.imul(U,X),i=i+Math.imul(D,J)|0,o=Math.imul(D,X),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ht)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(k,ct)|0,i=i+Math.imul(k,ft)|0,i=i+Math.imul(S,ct)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ot=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,Q),i=Math.imul(U,tt),i=i+Math.imul(D,Q)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(B,ot)|0,i=i+Math.imul(B,st)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ht)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(E,ct)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,rt),i=Math.imul(U,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(B,ut)|0,i=i+Math.imul(B,ht)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(T,ct)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Ct=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ot),i=Math.imul(U,st),i=i+Math.imul(D,ot)|0,o=Math.imul(D,st),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ht)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(B,ct)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Pt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=Math.imul(U,ht),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ht),n=n+Math.imul(N,ct)|0,i=i+Math.imul(N,ft)|0,i=i+Math.imul(j,ct)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(B,pt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Bt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(U,ct),i=Math.imul(U,ft),i=i+Math.imul(D,ct)|0,o=Math.imul(D,ft),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,pt),i=Math.imul(U,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var Rt=(h+n|0)+((8191&i)<<13)|0;return h=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=kt,u[8]=St,u[9]=xt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Tt,u[14]=Ct,u[15]=Pt,u[16]=Bt,u[17]=It,u[18]=Rt,0!==h&&(u[19]=h,r.length++),r};function v(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=0|t.words[l],f=0|e.words[h],d=c*f,p=67108863&d;s=s+(d/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function g(t,e,r){var n=new y;return n.mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?v(this,t,e):g(this,t,e),r},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},y.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,f=h,d=0;d<s;d++){var p=r[l+d],m=n[l+d],v=r[l+d+s],g=n[l+d+s],y=c*v-f*g;g=c*g+f*v,v=y,r[l+d]=p+v,n[l+d]=m+g,r[l+d+s]=p-v,n[l+d+s]=m-g,d!==a&&(y=u*c-h*f,f=u*f+h*c,c=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,u,n,i),this.transform(h,o,l,c,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*c[d];u[d]=a[d]*c[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=d(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+a,a=o>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)o=-(0|this.words[i])+a,a=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,h=n.length-i.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,h);0===c.negative&&(n=c,u&&(u.words[h]=1));for(var f=h-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):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 i,s,a},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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),h=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++h;var l=r.clone(),c=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var h=0,l=1;0===(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var c=0,f=1;0===(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0){r.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function w(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 M(){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=o._prime(t);this.m=e.p,this.prime=e}else n(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)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(M,w),M.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,w),i(k,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new M;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 b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(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 r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,h).cmp(u))l.redIAdd(u);var c=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();n(v<p);var g=this.pow(c,new o(1).iushln(p-v-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=v}return f},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var s=n[0],a=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],c=h-1;c>=0;c--){var f=l>>c&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}h=26}return s},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)},i(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 r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._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,r("62e4")(t))},f654:function(t,e,r){"use strict";(function(e){var n=r("320c");
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function o(t){return e.Buffer&&"function"===typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var s=r("3022"),a=Object.prototype.hasOwnProperty,u=Array.prototype.slice,h=function(){return"foo"===function(){}.name}();function l(t){return Object.prototype.toString.call(t)}function c(t){return!o(t)&&("function"===typeof e.ArrayBuffer&&("function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var f=t.exports=b,d=/\s*function\s+([^\(\s]*)\s*/;function p(t){if(s.isFunction(t)){if(h)return t.name;var e=t.toString(),r=e.match(d);return r&&r[1]}}function m(t,e){return"string"===typeof t?t.length<e?t:t.slice(0,e):t}function v(t){if(h||!s.isFunction(t))return s.inspect(t);var e=p(t),r=e?": "+e:"";return"[Function"+r+"]"}function g(t){return m(v(t.actual),128)+" "+t.operator+" "+m(v(t.expected),128)}function y(t,e,r,n,i){throw new f.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function b(t,e){t||y(t,!0,e,"==",f.ok)}function w(t,e,r,n){if(t===e)return!0;if(o(t)&&o(e))return 0===i(t,e);if(s.isDate(t)&&s.isDate(e))return t.getTime()===e.getTime();if(s.isRegExp(t)&&s.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"===typeof t||null!==e&&"object"===typeof e){if(c(t)&&c(e)&&l(t)===l(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;n=n||{actual:[],expected:[]};var a=n.actual.indexOf(t);return-1!==a&&a===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),_(t,e,r,n))}return r?t===e:t==e}function M(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function _(t,e,r,n){if(null===t||void 0===t||null===e||void 0===e)return!1;if(s.isPrimitive(t)||s.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=M(t),o=M(e);if(i&&!o||!i&&o)return!1;if(i)return t=u.call(t),e=u.call(e),w(t,e,r);var a,h,l=O(t),c=O(e);if(l.length!==c.length)return!1;for(l.sort(),c.sort(),h=l.length-1;h>=0;h--)if(l[h]!==c[h])return!1;for(h=l.length-1;h>=0;h--)if(a=l[h],!w(t[a],e[a],r,n))return!1;return!0}function k(t,e,r){w(t,e,!0)&&y(t,e,r,"notDeepStrictEqual",k)}function S(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(r){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function x(t){var e;try{t()}catch(r){e=r}return e}function E(t,e,r,n){var i;if("function"!==typeof e)throw new TypeError('"block" argument must be a function');"string"===typeof r&&(n=r,r=null),i=x(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&y(i,r,"Missing expected exception"+n);var o="string"===typeof n,a=!t&&s.isError(i),u=!t&&i&&!r;if((a&&o&&S(i,r)||u)&&y(i,r,"Got unwanted exception"+n),t&&i&&r&&!S(i,r)||!t&&i)throw i}function A(t,e){t||y(t,!0,e,"==",A)}f.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=g(this),this.generatedMessage=!0);var e=t.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=p(e),o=n.indexOf("\n"+i);if(o>=0){var s=n.indexOf("\n",o+1);n=n.substring(s+1)}this.stack=n}}},s.inherits(f.AssertionError,Error),f.fail=y,f.ok=b,f.equal=function(t,e,r){t!=e&&y(t,e,r,"==",f.equal)},f.notEqual=function(t,e,r){t==e&&y(t,e,r,"!=",f.notEqual)},f.deepEqual=function(t,e,r){w(t,e,!1)||y(t,e,r,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(t,e,r){w(t,e,!0)||y(t,e,r,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(t,e,r){w(t,e,!1)&&y(t,e,r,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=k,f.strictEqual=function(t,e,r){t!==e&&y(t,e,r,"===",f.strictEqual)},f.notStrictEqual=function(t,e,r){t===e&&y(t,e,r,"!==",f.notStrictEqual)},f.throws=function(t,e,r){E(!0,t,e,r)},f.doesNotThrow=function(t,e,r){E(!1,t,e,r)},f.ifError=function(t){if(t)throw t},f.strict=n(A,f,{equal:f.strictEqual,deepEqual:f.deepStrictEqual,notEqual:f.notStrictEqual,notDeepEqual:f.notDeepStrictEqual}),f.strict.strict=f.strict;var O=Object.keys||function(t){var e=[];for(var r in t)a.call(t,r)&&e.push(r);return e}}).call(this,r("c8ba"))},f6b4:function(t,e,r){"use strict";var n=r("c532");function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},f751:function(t,e,r){var n=r("5ca1");n(n.S+n.F,"Object",{assign:r("7333")})},f83c:function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},f9a0:function(t,e){function r(t,e,r){var n=e.toLowerCase();t[e]||t[n]||(t[e]=r)}t.exports=r},f9e1:function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Error);e.SecurityError=i;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Error);e.InvalidStateError=o;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Error);e.NetworkError=s;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Error);e.SyntaxError=a},fa45:function(t,e){t.exports=i;var r=128,n=127;function i(t,e){var o,s=0,a=(e=e||0,0),u=e,h=t.length;do{if(u>=h)throw i.bytes=0,new RangeError("Could not decode varint");o=t[u++],s+=a<28?(o&n)<<a:(o&n)*Math.pow(2,a),a+=7}while(o>=r);return i.bytes=u-e,s}},fa5b:function(t,e,r){t.exports=r("5537")("native-function-to-string",Function.toString)},faa1:function(t,e,r){"use strict";var n,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};function s(t){console&&console.warn&&console.warn(t)}n=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!==t};function u(){u.init.call(this)}t.exports=u,t.exports.once=w,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var h=10;function l(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,o,a;if(l(r),o=t._events,void 0===o?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]),void 0===a)a=o[e]=r,++t._eventsCount;else if("function"===typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),i=c(t),i>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s(u)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function m(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?b(i):g(i,i.length)}function v(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function y(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function b(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}function w(t,e){return new Promise((function(r,n){function i(){void 0!==o&&t.removeListener("error",o),r([].slice.call(arguments))}var o;"error"!==e&&(o=function(r){t.removeListener(e,i),n(r)},t.once("error",o)),t.once(e,i)}))}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(t){if("number"!==typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");h=t}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(t){if("number"!==typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},u.prototype.getMaxListeners=function(){return c(this)},u.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n="error"===t,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[t];if(void 0===u)return!1;if("function"===typeof u)o(u,this,e);else{var h=u.length,l=g(u,h);for(r=0;r<h;++r)o(l[r],this,e)}return!0},u.prototype.addListener=function(t,e){return f(this,t,e,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(t,e){return f(this,t,e,!0)},u.prototype.once=function(t,e){return l(e),this.on(t,p(this,t,e)),this},u.prototype.prependOnceListener=function(t,e){return l(e),this.prependListener(t,p(this,t,e)),this},u.prototype.removeListener=function(t,e){var r,n,i,o,s;if(l(e),n=this._events,void 0===n)return this;if(r=n[t],void 0===r)return this;if(r===e||r.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!==typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():y(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var e,r,n;if(r=this._events,void 0===r)return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)i=o[n],"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=r[t],"function"===typeof e)this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},u.prototype.listeners=function(t){return m(this,t,!0)},u.prototype.rawListeners=function(t){return m(this,t,!1)},u.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):v.call(t,e)},u.prototype.listenerCount=v,u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},fab2:function(t,e,r){var n=r("7726").document;t.exports=n&&n.documentElement},fb7f:function(t,e,r){"use strict";var n=r("00d7"),i=r("2c0b"),o=r("c044").errors,s=r("7fd8").interfaceIds;function a(t){this.registry=t}a.prototype.method=function(t,e,r,n,i){return{call:this.call.bind({ensName:t,methodName:e,methodArguments:r,callback:i,parent:this,outputFormatter:n}),send:this.send.bind({ensName:t,methodName:e,methodArguments:r,callback:i,parent:this})}},a.prototype.call=function(t){var e=this,r=new n,i=this.parent.prepareArguments(this.ensName,this.methodArguments),o=this.outputFormatter||null;return this.parent.registry.getResolver(this.ensName).then((async function(n){await e.parent.checkInterfaceSupport(n,e.methodName),e.parent.handleCall(r,n.methods[e.methodName],i,o,t)})).catch((function(e){"function"!==typeof t?r.reject(e):t(e,null)})),r.eventEmitter},a.prototype.send=function(t,e){var r=this,i=new n,o=this.parent.prepareArguments(this.ensName,this.methodArguments);return this.parent.registry.getResolver(this.ensName).then((async function(n){await r.parent.checkInterfaceSupport(n,r.methodName),r.parent.handleSend(i,n.methods[r.methodName],o,t,e)})).catch((function(t){"function"!==typeof e?i.reject(t):e(t,null)})),i.eventEmitter},a.prototype.handleCall=function(t,e,r,n,i){return e.apply(this,r).call().then((function(e){n&&(e=n(e)),"function"!==typeof i?t.resolve(e):i(e,e)})).catch((function(e){"function"!==typeof i?t.reject(e):i(e,null)})),t},a.prototype.handleSend=function(t,e,r,n,i){return e.apply(this,r).send(n).on("sending",(function(){t.eventEmitter.emit("sending")})).on("sent",(function(){t.eventEmitter.emit("sent")})).on("transactionHash",(function(e){t.eventEmitter.emit("transactionHash",e)})).on("confirmation",(function(e,r){t.eventEmitter.emit("confirmation",e,r)})).on("receipt",(function(e){t.eventEmitter.emit("receipt",e),t.resolve(e),"function"===typeof i&&i(e,e)})).on("error",(function(e){t.eventEmitter.emit("error",e),"function"!==typeof i?t.reject(e):i(e,null)})),t},a.prototype.prepareArguments=function(t,e){var r=i.hash(t);return e.length>0?(e.unshift(r),e):[r]},a.prototype.checkInterfaceSupport=async function(t,e){if(s[e]){var r=!1;try{r=await t.methods.supportsInterface(s[e]).call()}catch(n){console.warn('Could not verify interface of resolver contract at "'+t.options.address+'". ')}if(!r)throw o.ResolverMethodMissingError(t.options.address,e)}},t.exports=a},fbd5:function(t,e,r){"use strict";var n;function i(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var o=r("9d8a").codes,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(t){if(t)throw t}function h(t){return t.setHeader&&"function"===typeof t.abort}function l(t,e,o,s){s=i(s);var u=!1;t.on("close",(function(){u=!0})),void 0===n&&(n=r("ee93")),n(t,{readable:e,writable:o},(function(t){if(t)return s(t);u=!0,s()}));var l=!1;return function(e){if(!u&&!l)return l=!0,h(t)?t.abort():"function"===typeof t.destroy?t.destroy():void s(e||new a("pipe"))}}function c(t){t()}function f(t,e){return t.pipe(e)}function d(t){return t.length?"function"!==typeof t[t.length-1]?u:t.pop():u}function p(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=d(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new s("streams");var o=e.map((function(t,r){var s=r<e.length-1,a=r>0;return l(t,s,a,(function(t){n||(n=t),t&&o.forEach(c),s||(o.forEach(c),i(n))}))}));return e.reduce(f)}t.exports=p},fda6:function(t,e,r){var n=r("8947"),i=r("4228"),o=r("e85f");function s(){return Object.keys(o)}e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=s},fdac:function(t,e,r){var n;function i(t){this.rand=t}if(t.exports=function(t){return n||(n=new i(null)),n.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"===typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(11);if("function"!==typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(t){return o.randomBytes(t)}}catch(s){}},fdd3:function(t){t.exports=JSON.parse('{"name":"kovan","chainId":42,"networkId":42,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"aura","aura":{}},"comment":"Parity PoA test network","url":"https://kovan-testnet.github.io/website/","genesis":{"hash":"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9","timestamp":null,"gasLimit":6000000,"difficulty":131072,"nonce":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","extraData":"0x","stateRoot":"0x2480155b48a1cea17d67dbfdfaafe821c1d19cdd478c5358e8ec56dec24502b2"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x010ffe56"},{"name":"homestead","block":0,"forkHash":"0x010ffe56"},{"name":"dao","block":null,"forkHash":"0x010ffe56"},{"name":"tangerineWhistle","block":0,"forkHash":"0x010ffe56"},{"name":"spuriousDragon","block":0,"forkHash":"0x010ffe56"},{"name":"byzantium","block":5067000,"forkHash":"0x7f83c620"},{"name":"constantinople","block":9200000,"forkHash":"0xa94e3dc4"},{"name":"petersburg","block":10255201,"forkHash":"0x186874aa"},{"name":"istanbul","block":14111141,"forkHash":"0x7f6599a6"},{"name":"berlin","block":null,"forkHash":null},{"name":"london","block":null,"forkHash":null}],"bootstrapNodes":[{"ip":"116.203.116.241","port":30303,"id":"16898006ba2cd4fa8bf9a3dfe32684c178fa861df144bfc21fe800dc4838a03e342056951fa9fd533dcb0be1219e306106442ff2cf1f7e9f8faa5f2fc1a3aa45","location":"","comment":"1"},{"ip":"3.217.96.11","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"2"},{"ip":"108.61.170.124","port":30303,"id":"740e1c8ea64e71762c71a463a04e2046070a0c9394fcab5891d41301dc473c0cff00ebab5a9bc87fbcb610ab98ac18225ff897bc8b7b38def5975d5ceb0a7d7c","location":"","comment":"3"},{"ip":"157.230.31.163","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"4"}]}')},fdef:function(t,e){t.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},ff82:function(t,e,r){"use strict";var n=r("6101");t.exports=n},ffb2:function(t,e,r){"use strict";r.r(e),r.d(e,"LogLevel",(function(){return c})),r.d(e,"ErrorCode",(function(){return f})),r.d(e,"Logger",(function(){return d}));const n="logger/5.4.0";let i=!1,o=!1;const s={debug:1,default:2,info:2,warning:3,error:4,off:5};let a=s["default"],u=null;function h(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const l=h();var c,f;(function(t){t["DEBUG"]="DEBUG",t["INFO"]="INFO",t["WARNING"]="WARNING",t["ERROR"]="ERROR",t["OFF"]="OFF"})(c||(c={})),function(t){t["UNKNOWN_ERROR"]="UNKNOWN_ERROR",t["NOT_IMPLEMENTED"]="NOT_IMPLEMENTED",t["UNSUPPORTED_OPERATION"]="UNSUPPORTED_OPERATION",t["NETWORK_ERROR"]="NETWORK_ERROR",t["SERVER_ERROR"]="SERVER_ERROR",t["TIMEOUT"]="TIMEOUT",t["BUFFER_OVERRUN"]="BUFFER_OVERRUN",t["NUMERIC_FAULT"]="NUMERIC_FAULT",t["MISSING_NEW"]="MISSING_NEW",t["INVALID_ARGUMENT"]="INVALID_ARGUMENT",t["MISSING_ARGUMENT"]="MISSING_ARGUMENT",t["UNEXPECTED_ARGUMENT"]="UNEXPECTED_ARGUMENT",t["CALL_EXCEPTION"]="CALL_EXCEPTION",t["INSUFFICIENT_FUNDS"]="INSUFFICIENT_FUNDS",t["NONCE_EXPIRED"]="NONCE_EXPIRED",t["REPLACEMENT_UNDERPRICED"]="REPLACEMENT_UNDERPRICED",t["UNPREDICTABLE_GAS_LIMIT"]="UNPREDICTABLE_GAS_LIMIT",t["TRANSACTION_REPLACED"]="TRANSACTION_REPLACED"}(f||(f={}));class d{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==s[r]&&this.throwArgumentError("invalid log level name","logLevel",t),a>s[r]||console.log.apply(console,e)}debug(...t){this._log(d.levels.DEBUG,t)}info(...t){this._log(d.levels.INFO,t)}warn(...t){this._log(d.levels.WARNING,t)}makeError(t,e,r){if(o)return this.makeError("censored error",e,{});e||(e=d.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach(t=>{try{n.push(t+"="+JSON.stringify(r[t]))}catch(s){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push("code="+e),n.push("version="+this.version);const i=t;n.length&&(t+=" ("+n.join(", ")+")");const s=new Error(t);return s.reason=i,s.code=e,Object.keys(r).forEach((function(t){s[t]=r[t]})),s}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,d.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",d.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})}checkSafeUint53(t,e){"number"===typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,d.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,d.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",d.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",d.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",d.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return u||(u=new d(n)),u}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),i){if(!t)return;this.globalLogger().throwError("error censorship permanent",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}o=!!t,i=!!e}static setLogLevel(t){const e=s[t.toLowerCase()];null!=e?a=e:d.globalLogger().warn("invalid log level - "+t)}static from(t){return new d(t)}}d.errors=f,d.levels=c},ffc1:function(t,e,r){var n=r("5ca1"),i=r("504c")(!0);n(n.S,"Object",{entries:function(t){return i(t)}})}}]);