!function(t){functionh(t,s){returnthisinstanceofh?(this._low=0,this._high=0,this.remainder=null,"undefined"==typeofs?o.call(this,t):"string"==typeoft?r.call(this,t,s):voidi.call(this,t,s)):newh(t,s)}functioni(t,h){returnthis._low=0|t,this._high=0|h,this}functiono(t){returnthis._low=65535&t,this._high=t>>>16,this}functionr(t,h){vari=parseInt(t,h||10);returnthis._low=65535&i,this._high=i>>>16,this}({36:h(Math.pow(36,5)),16:h(Math.pow(16,7)),10:h(Math.pow(10,9)),2:h(Math.pow(2,30))}),{36:h(36),16:h(16),10:h(10),2:h(2)};h.prototype.fromBits=i,h.prototype.fromNumber=o,h.prototype.fromString=r,h.prototype.toNumber=function(){return65536*this._high+this._low},h.prototype.toString=function(t){returnthis.toNumber().toString(t||10)},h.prototype.add=function(t){varh=this._low+t._low,i=h>>>16;returni+=this._high+t._high,this._low=65535&h,this._high=65535&i,this},h.prototype.subtract=function(t){returnthis.add(t.clone().negate())},h.prototype.multiply=function(t){varh,i,o=this._high,r=this._low,s=t._high,e=t._low;returni=r*e,h=i>>>16,h+=o*e,h&=65535,h+=r*s,this._low=65535&i,this._high=65535&h,this},h.prototype.div=function(t){if(0==t._low&&0==t._high)throwError("division by zero");if(0==t._high&&1==t._low)returnthis.remainder=newh(0),this;if(t.gt(this))returnthis.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))returnthis.remainder=newh(0),this._low=1,this._high=0,this;for(vari=t.clone(),o=-1;!this.lt(i);)i.shiftLeft(1,!0),o++;for(this.remainder=this.clone(),this._low=0,this._high=0;o>=0;o--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),o>=16?this._high|=1<<o-16:this._low|=1<<o);returnthis},h.prototype.negate=function(){vart=(65535&~this._low)+1;returnthis._low=65535&t,this._high=~this._high+(t>>>16)&65535,this},h.prototype.equals=h.prototype.eq=function(t){returnthis._low==t._low&&this._high==t._high},h.prototype.greaterThan=h.prototype.gt=function(t){returnthis._high>t._high?!0:this._high<t._high?!1:this._low>t._low},h.prototype.lessThan=h.prototype.lt=function(t){returnthis._high<t._high?!0:this._high>t._high?!1:this._low<t._low},h.prototype.or=function(t){returnthis._low|=t._low,this._high|=t._high,this},h.prototype.and=function(t){returnthis._low&=t._low,this._high&=t._high,this},h.prototype.not=function(){returnthis._low=65535&~this._low,this._high=65535&~this._high,this},h.prototype.xor=function(t){returnthis._low^=t._low,this._high^=t._high,this},h.prototype.shiftRight=h.prototype.shiftr=function(t){returnt>16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},h.prototype.shiftLeft=h.prototype.shiftl=function(t,h){returnt>16?(this._high=this._low<<t-16,this._low=0,h||(this._high&=65535)):16==t?(this._high=this._low,this._low=0):(this._high=this._high<<t|this._low>>16-t,this._low=this._low<<t&65535,h||(this._high&=65535)),this},h.prototype.rotateLeft=h.prototype.rotl=function(t){varh=this._high<<16|this._low;returnh=h<<t|h>>>32-t,this._low=65535&h,this._high=h>>>16,this},h.prototype.rotateRight=h.prototype.rotr=function(t){varh=this._high<<16|this._low;returnh=h>>>t|h<<32-t,this._low=65535&h,this._high=h>>>16,this},h.prototype.clone=function(){returnnewh(this._low,this._high)},"undefined"!=typeofdefine&&define.amd?define([],function(){returnh}):"undefined"!=typeofmodule&&module.exports?module.exports=h:t.UINT32=h}(this);