}],22:[function(t,e,n){"use strict";varr=t("../utils/utils"),i=t("./errors"),o='{"jsonrpc": "2.0", "error": {"code": -32603, "message": "IPC Request timed out for method \'__method__\'"}, "id": "__id__"}',a=function(e,n){varo=this;this.responseCallbacks={},this.path=e,n=n||t("net"),this.connection=n.connect({path:this.path}),this.connection.on("error",function(t){console.error("IPC Connection Error",t),o._timeout()}),this.connection.on("end",function(){o._timeout()}),this.connection.on("data",function(t){t=t.toString();vare=t.replace(/\}\{/g,"}|--|{").replace(/\}\]\[\{/g,"}]|--|[{").replace(/\}\[\{/g,"}|--|[{").replace(/\}\]\{/g,"}]|--|{").split("|--|");e.forEach(function(t){o.lastChunk&&(t=o.lastChunk+t);vare=t,n=null;try{e=JSON.parse(e)}catch(a){returno.lastChunk=t,clearTimeout(o.lastChunkTimeout),void(o.lastChunkTimeout=setTimeout(function(){throwo.timeout(),i.InvalidResponse(e)},15e3))}clearTimeout(o.lastChunkTimeout),o.lastChunk=null,r.isArray(e)?e.forEach(function(t){o.responseCallbacks[t.id]&&(n=t.id)}):n=e.id,o.responseCallbacks[n]&&(o.responseCallbacks[n](null,e),deleteo.responseCallbacks[n])})})};a.prototype._getResponse=function(t,e){varn=t.id||t[0].id,r=t.method||t[0].method;this.responseCallbacks[n]=e,this.responseCallbacks[n].method=r},a.prototype._timeout=function(){for(vartinthis.responseCallbacks)this.responseCallbacks.hasOwnProperty(t)&&(this.responseCallbacks[t](o.replace("__id__",t).replace("__method__",this.responseCallbacks[t].method)),deletethis.responseCallbacks[t])},a.prototype.isConnected=function(){vart=this;returnsetTimeout(function(){t.connection.writable||t.connection.connect({path:t.path})},0),!!this.connection.writable},a.prototype.send=function(t){if(this.connection.writeSync){this.connection.writable||this.connection.connect({path:this.path});vare=this.connection.writeSync(JSON.stringify(t));try{e=JSON.parse(e)}catch(n){throwi.InvalidResponse(e)}returne}thrownewError('You tried to send "'+t.method+'" synchronously. Synchronous requests are not supported by the IPC provider.')},a.prototype.sendAsync=function(t,e){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(t)),this._getResponse(t,e)},e.exports=a},{"../utils/utils":7,"./errors":14,net:33}],23:[function(t,e,n){varr=function(){returnarguments.callee._singletonInstance?arguments.callee._singletonInstance:(arguments.callee._singletonInstance=this,void(this.messageId=1))};r.getInstance=function(){vart=newr;returnt},r.prototype.toPayload=function(t,e){returnt||console.error("jsonrpc method should be specified!"),{jsonrpc:"2.0",method:t,params:e||[],id:this.messageId++}},r.prototype.isValidResponse=function(t){return!!t&&!t.error&&"2.0"===t.jsonrpc&&"number"==typeoft.id&&void0!==t.result},r.prototype.toBatchPayload=function(t){vare=this;returnt.map(function(t){returne.toPayload(t.method,t.params)})},e.exports=r},{}],24:[function(t,e,n){varr=t("./requestmanager"),i=t("../utils/utils"),o=t("./errors"),a=function(t){this.name=t.name,this.call=t.call,this.params=t.params||0,this.inputFormatter=t.inputFormatter,this.outputFormatter=t.outputFormatter};a.prototype.getCall=function(t){returni.isFunction(this.call)?this.call(t):this.call},a.prototype.extractCallback=function(t){returni.isFunction(t[t.length-1])?t.pop():void0},a.prototype.validateArgs=function(t){if(t.length!==this.params)throwo.InvalidNumberOfParams()},a.prototype.formatInput=function(t){returnthis.inputFormatter?this.inputFormatter.map(function(e,n){returne?e(t[n]):t[n]}):t},a.prototype.formatOutput=function(t){returnthis.outputFormatter&&t?this.outputFormatter(t):t},a.prototype.attachToObject=function(t){vare=this.send.bind(this);e.request=this.request.bind(this),e.call=this.call;varn=this.name.split(".");n.length>1?(t[n[0]]=t[n[0]]||{},t[n[0]][n[1]]=e):t[n[0]]=e},a.prototype.toPayload=function(t){vare=this.getCall(t),n=this.extractCallback(t),r=this.formatInput(t);returnthis.validateArgs(r),{method:e,params:r,callback:n}},a.prototype.request=function(){vart=this.toPayload(Array.pro
n=null!=n&&J(n,0,8,18,w)?0|n:q,t?C(r,t,n):r},E.toExponential=function(t,e){returnh(this,null!=t&&J(t,0,k,19)?~~t+1:null,e,19)},E.toFixed=function(t,e){returnh(this,null!=t&&J(t,0,k,20)?~~t+this.e+1:null,e,20)},E.toFormat=function(t,e){varn=h(this,null!=t&&J(t,0,k,21)?~~t+this.e+1:null,e,21);if(this.c){varr,i=n.split("."),o=+X.groupSize,a=+X.secondaryGroupSize,s=X.groupSeparator,u=i[0],c=i[1],l=this.s<0,f=l?u.slice(1):u,p=f.length;if(a&&(r=o,o=a,a=r,p-=r),o>0&&p>0){for(r=p%o||o,u=f.substr(0,r);p>r;r+=o)u+=s+f.substr(r,o);a>0&&(u+=s+f.slice(r)),l&&(u="-"+u)}n=c?u+X.decimalSeparator+((a=+X.fractionGroupSize)?c.replace(newRegExp("\\d{"+a+"}\\B","g"),"$&"+X.fractionGroupSeparator):c):u}returnn},E.toFraction=function(t){varn,r,i,a,s,u,c,l,f,p=z,h=this,m=h.c,d=newe(H),g=r=newe(H),y=c=newe(H);if(null!=t&&(z=!1,u=newe(t),z=p,(!(p=u.isInt())||u.lt(H))&&(z&&S(22,"max denominator "+(p?"out of range":"not an integer"),t),t=!p&&u.c&&C(u,u.e+1,1).gte(H)?u:null)),!m)returnh.toString();for(f=o(m),a=d.e=f.length-h.e-1,d.c[0]=N[(s=a%I)<0?I+s:s],t=!t||u.cmp(d)>0?a>0?d:g:u,s=G,G=1/0,u=newe(f),c.c[0]=0;l=D(u,d,0,1),i=r.plus(l.times(y)),1!=i.cmp(t);)r=y,y=i,g=c.plus(l.times(i=g)),c=i,d=u.minus(l.times(i=d)),u=i;returni=D(t.minus(r),y,0,1),c=c.plus(i.times(g)),r=r.plus(i.times(y)),c.s=g.s=h.s,a*=2,n=D(g,y,a,q).minus(h).abs().cmp(D(c,r,a,q).minus(h).abs())<1?[g.toString(),y.toString()]:[c.toString(),r.toString()],G=s,n},E.toNumber=function(){vart=this;return+t||(t.s?0*t.s:0/0)},E.toPower=E.pow=function(t){varn,r,i=v(0>t?-t:+t),o=this;if(!J(t,-B,B,23,"exponent")&&(!isFinite(t)||i>B&&(t/=0)||parseFloat(t)!=t&&!(t=0/0)))returnnewe(Math.pow(+o,t));for(n=V?y(V/I+2):0,r=newe(H);;){if(i%2){if(r=r.times(o),!r.c)break;n&&r.c.length>n&&(r.c.length=n)}if(i=v(i/2),!i)break;o=o.times(o),n&&o.c&&o.c.length>n&&(o.c.length=n)}return0>t&&(r=H.div(r)),n?C(r,V,q):r},E.toPrecision=function(t,e){returnh(this,null!=t&&J(t,1,k,24,"precision")?0|t:null,e,24)},E.toString=function(t){vare,r=this,i=r.s,a=r.e;returnnull===a?i?(e="Infinity",0>i&&(e="-"+e)):e="NaN":(e=o(r.c),e=null!=t&&J(t,2,64,25,"base")?n(f(e,a),0|t,10,i):L>=a||a>=U?l(e,a):f(e,a),0>i&&r.c[0]&&(e="-"+e)),e},E.truncated=E.trunc=function(){returnC(newe(this),this.e+1,1)},E.valueOf=E.toJSON=function(){returnthis.toString()},null!=t&&e.config(t),e}functioni(t){vare=0|t;returnt>0||t===e?e:e-1}functiono(t){for(vare,n,r=1,i=t.length,o=t[0]+"";i>r;){for(e=t[r++]+"",n=I-e.length;n--;e="0"+e);o+=e}for(i=o.length;48===o.charCodeAt(--i););returno.slice(0,i+1||1)}functiona(t,e){varn,r,i=t.c,o=e.c,a=t.s,s=e.s,u=t.e,c=e.e;if(!a||!s)returnnull;if(n=i&&!i[0],r=o&&!o[0],n||r)returnn?r?0:-s:a;if(a!=s)returna;if(n=0>a,r=u==c,!i||!o)returnr?0:!i^n?1:-1;if(!r)returnu>c^n?1:-1;for(s=(u=i.length)<(c=o.length)?u:c,a=0;s>a;a++)if(i[a]!=o[a])returni[a]>o[a]^n?1:-1;returnu==c?0:u>c^n?1:-1}functions(t,e,n){return(t=p(t))>=e&&n>=t}functionu(t){return"[object Array]"==Object.prototype.toString.call(t)}functionc(t,e,n){for(varr,i,o=[0],a=0,s=t.length;s>a;){for(i=o.length;i--;o[i]*=e);for(o[r=0]+=x.indexOf(t.charAt(a++));r<o.length;r++)o[r]>n-1&&(null==o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}returno.reverse()}functionl(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(0>e?"e":"e+")+e}functionf(t,e){varn,r;if(0>e){for(r="0.";++e;r+="0");t=r+t}elseif(n=t.length,++e>n){for(r="0",e-=n;--e;r+="0");t+=r}elsen>e&&(t=t.slice(0,e)+"."+t.slice(e));returnt}functionp(t){returnt=parseFloat(t),0>t?y(t):v(t)}varh,m,d,g=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,y=Math.ceil,v=Math.floor,b=" not a boolean or binary digit",w="rounding mode",_="number type has more than 15 significant digits",x="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",F=1e14,I=14,B=9007199254740991,N=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],O=1e7,k=1e9;if(h=r(),"function"==typeofdefine&&define.amd)define(function(){returnh});elseif("undefined"!=typeofe&&e.exports){if(e.exports=h,!m)try{m=t("crypto")}catch(P){}}elsen.BigNumber=h}(this)},{crypto:33}],web3:[function(t,e,n){varr=t("./li