{div:e,mod:h.mod}):0!==(this.negative&a.negative)?(h=this.neg().divmod(a.neg(),b),"div"!==b&&(g=h.mod.neg(),c&&0!==g.negative&&g.isub(a)),{div:h.div,mod:g}):a.length>this.length||this.cmp(a)<0?{div:newf(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]),mod:null}:"mod"===b?{div:null,mod:newf(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:newf(this.modn(a.words[0]))}:this._wordDiv(a,b)},f.prototype.div=function(a){returnthis.divmod(a,"div",!1).div},f.prototype.mod=function(a){returnthis.divmod(a,"mod",!1).mod},f.prototype.umod=function(a){returnthis.divmod(a,"mod",!0).mod},f.prototype.divRound=function(a){varb=this.divmod(a);if(b.mod.isZero())returnb.div;varc=0!==b.div.negative?b.mod.isub(a):b.mod,d=a.ushrn(1),e=a.andln(1),f=c.cmp(d);returnf<0||1===e&&0===f?b.div:0!==b.div.negative?b.div.isubn(1):b.div.iaddn(1)},f.prototype.modn=function(a){d(a<=67108863);for(varb=(1<<26)%a,c=0,e=this.length-1;e>=0;e--)c=(b*c+(0|this.words[e]))%a;returnc},f.prototype.idivn=function(a){d(a<=67108863);for(varb=0,c=this.length-1;c>=0;c--){vare=(0|this.words[c])+67108864*b;this.words[c]=e/a|0,b=e%a}returnthis.strip()},f.prototype.divn=function(a){returnthis.clone().idivn(a)},f.prototype.egcd=function(a){d(0===a.negative),d(!a.isZero());varb=this,c=a.clone();b=0!==b.negative?b.umod(a):b.clone();for(vare=newf(1),g=newf(0),h=newf(0),i=newf(1),j=0;b.isEven()&&c.isEven();)b.iushrn(1),c.iushrn(1),++j;for(vark=c.clone(),l=b.clone();!b.isZero();){for(varm=0,n=1;0===(b.words[0]&n)&&m<26;++m,n<<=1);if(m>0)for(b.iushrn(m);m-->0;)(e.isOdd()||g.isOdd())&&(e.iadd(k),g.isub(l)),e.iushrn(1),g.iushrn(1);for(varo=0,p=1;0===(c.words[0]&p)&&o<26;++o,p<<=1);if(o>0)for(c.iushrn(o);o-->0;)(h.isOdd()||i.isOdd())&&(h.iadd(k),i.isub(l)),h.iushrn(1),i.iushrn(1);b.cmp(c)>=0?(b.isub(c),e.isub(h),g.isub(i)):(c.isub(b),h.isub(e),i.isub(g))}return{a:h,b:i,gcd:c.iushln(j)}},f.prototype._invmp=function(a){d(0===a.negative),d(!a.isZero());varb=this,c=a.clone();b=0!==b.negative?b.umod(a):b.clone();for(vare=newf(1),g=newf(0),h=c.clone();b.cmpn(1)>0&&c.cmpn(1)>0;){for(vari=0,j=1;0===(b.words[0]&j)&&i<26;++i,j<<=1);if(i>0)for(b.iushrn(i);i-->0;)e.isOdd()&&e.iadd(h),e.iushrn(1);for(vark=0,l=1;0===(c.words[0]&l)&&k<26;++k,l<<=1);if(k>0)for(c.iushrn(k);k-->0;)g.isOdd()&&g.iadd(h),g.iushrn(1);b.cmp(c)>=0?(b.isub(c),e.isub(g)):(c.isub(b),g.isub(e))}varm;returnm=0===b.cmpn(1)?e:g,m.cmpn(0)<0&&m.iadd(a),m},f.prototype.gcd=function(a){if(this.isZero())returna.abs();if(a.isZero())returnthis.abs();varb=this.clone(),c=a.clone();b.negative=0,c.negative=0;for(vard=0;b.isEven()&&c.isEven();d++)b.iushrn(1),c.iushrn(1);for(;;){for(;b.isEven();)b.iushrn(1);for(;c.isEven();)c.iushrn(1);vare=b.cmp(c);if(e<0){varf=b;b=c,c=f}elseif(0===e||0===c.cmpn(1))break;b.isub(c)}returnc.iushln(d)},f.prototype.invm=function(a){returnthis.egcd(a).a.umod(a)},f.prototype.isEven=function(){return0===(1&this.words[0])},f.prototype.isOdd=function(){return1===(1&this.words[0])},f.prototype.andln=function(a){returnthis.words[0]&a},f.prototype.bincn=function(a){d("number"==typeofa);varb=a%26,c=(a-b)/26,e=1<<b;if(this.length<=c)returnthis._expand(c+1),this.words[c]|=e,this;for(varf=e,g=c;0!==f&&g<this.length;g++){varh=0|this.words[g];h+=f,f=h>>>26,h&=67108863,this.words[g]=h}return0!==f&&(this.words[g]=f,this.length++),this},f.prototype.isZero=function(){return1===this.length&&0===this.words[0]},f.prototype.cmpn=function(a){varb=a<0;if(0!==this.negative&&!b)return-1;if(0===this.negative&&b)return1;this.strip();varc;if(this.length>1)c=1;else{b&&(a=-a),d(a<=67108863,"Number is too big");vare=0|this.words[0];c=e===a?0:e<a?-1:1}return0!==this.negative?0|-c:c},f.prototype.cmp=function(a){if(0!==this.negative&&0===a.negative)return-1;if(0===this.negative&&0!==a.negative)return1;varb=this.ucmp(a);return0!==this.negative?0|-b:b},f.prototype.ucmp=function(a){if(this.length>a.length)return1;if(this.length<a.length)return-1;for(varb=0,c=this.length-1;c>=0;c--){vard=0|this.words[c],e=0|a.words[c];if(d!==e){d<e?b=-1:d>e&&(b=1);break}}returnb},f.pro
a[26]=P^~R&J,a[27]=Q^~S&K,a[36]=Z^~_&T,a[37]=$^~aa&U,a[46]=ha^~ja&ba,a[47]=ia^~ka&ca,a[8]=x^~p&r,a[9]=y^~q&s,a[18]=H^~z&B,a[19]=I^~A&C,a[28]=R^~J&L,a[29]=S^~K&M,a[38]=_^~T&V,a[39]=aa^~U&W,a[48]=ja^~ba&da,a[49]=ka^~ca&ea,a[0]^=m[d],a[1]^=m[d+1]};if(g)b.exports=v;elsefor(varx=0;x<w.length;++x)e[w[x]]=v[w[x]]}()}).call(this,a("_process"),"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{_process:18}],17:[function(a,b,c){functiond(a,b){if(!a)thrownewError(b||"Assertion failed")}b.exports=d,d.equal=function(a,b,c){if(a!=b)thrownewError(c||"Assertion failed: "+a+" != "+b)}},{}],18:[function(a,b,c){functiond(){thrownewError("setTimeout has not been defined")}functione(){thrownewError("clearTimeout has not been defined")}functionf(a){if(l===setTimeout)returnsetTimeout(a,0);if((l===d||!l)&&setTimeout)returnl=setTimeout,setTimeout(a,0);try{returnl(a,0)}catch(b){try{returnl.call(null,a,0)}catch(b){returnl.call(this,a,0)}}}functiong(a){if(m===clearTimeout)returnclearTimeout(a);if((m===e||!m)&&clearTimeout)returnm=clearTimeout,clearTimeout(a);try{returnm(a)}catch(b){try{returnm.call(null,a)}catch(b){returnm.call(this,a)}}}functionh(){q&&o&&(q=!1,o.length?p=o.concat(p):r=-1,p.length&&i())}functioni(){if(!q){vara=f(h);q=!0;for(varb=p.length;b;){for(o=p,p=[];++r<b;)o&&o[r].run();r=-1,b=p.length}o=null,q=!1,g(a)}}functionj(a,b){this.fun=a,this.array=b}functionk(){}varl,m,n=b.exports={};!function(){try{l="function"==typeofsetTimeout?setTimeout:d}catch(a){l=d}try{m="function"==typeofclearTimeout?clearTimeout:e}catch(a){m=e}}();varo,p=[],q=!1,r=-1;n.nextTick=function(a){varb=newArray(arguments.length-1);if(arguments.length>1)for(varc=1;c<arguments.length;c++)b[c-1]=arguments[c];p.push(newj(a,b)),1!==p.length||q||f(i)},j.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=k,n.addListener=k,n.once=k,n.off=k,n.removeListener=k,n.removeAllListeners=k,n.emit=k,n.prependListener=k,n.prependOnceListener=k,n.listeners=function(a){return[]},n.binding=function(a){thrownewError("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(a){thrownewError("process.chdir is not supported")},n.umask=function(){return0}},{}],19:[function(a,b,c){"use strict";functiond(a){varb={};for(varcina)b[c]=a[c];returnb}functione(a){returna.match(/^uint($|[^1-9])/)?a="uint256"+a.substring(4):a.match(/^int($|[^1-9])/)&&(a="int256"+a.substring(3)),a}functionf(a,b){functionc(b){thrownewError('unexpected character "'+a[b]+'" at position '+b+' in "'+a+'"')}for(vard={type:"",name:"",state:{allowType:!0}},f=d,g=0;g<a.length;g++){varh=a[g];switch(h){case"(":f.state.allowParams||c(g),deletef.state.allowType,f.type=e(f.type),f.components=[{type:"",name:"",parent:f,state:{allowType:!0}}],f=f.components[0];break;case")":deletef.state,f.type=e(f.type);vari=f;f=f.parent,f||c(g),deletei.parent,deletef.state.allowParams,f.state.allowName=!0,f.state.allowArray=!0;break;case",":deletef.state,f.type=e(f.type);varj={type:"",name:"",parent:f.parent,state:{allowType:!0}};f.parent.components.push(j),deletef.parent,f=j;break;case" ":f.state.allowType&&""!==f.type&&(f.type=e(f.type),deletef.state.allowType,f.state.allowName=!0,f.state.allowParams=!0),f.state.allowName&&""!==f.name&&(b&&"indexed"===f.name?(f.indexed=!0,f.name=""):deletef.state.allowName);break;case"[":f.state.allowArray||c(g),f.type+=h,deletef.state.allowArray,deletef.state.allowName,f.state.readArray=!0;break;case"]":f.state.readArray||c(g),f.type+=h,deletef.state.readArray,f.state.allowArray=!0,f.state.allowName=!0;break;default:f.state.allowType?(f.type+=h,f.state.allowParams=!0,f.state.allowArray=!0):f.state.allowName?(f.name+=h,deletef.state.allowArray):f.state.readArray?f.type+=h:c(g)}}if(f.parent)thrownewError("unexpected eof");returndeleted.state,d.type=e(d.type),d}functiong(a){varb={anonymous:!1,inputs:[],type:"event"},c=a.match(B);if(!c)thrownewError("invalid event: "+a);if(b.n