require=functiont(e,n,r){functiono(a,u){if(!n[a]){if(!e[a]){vars="function"==typeofrequire&&require;if(!u&&s)returns(a,!0);if(i)returni(a,!0);varc=newError("Cannot find module '"+a+"'");throwc.code="MODULE_NOT_FOUND",c}varl=n[a]={exports:{}};e[a][0].call(l.exports,function(t){varn=e[a][1][t];returno(n?n:t)},l,l.exports,t,e,n,r)}returnn[a].exports}for(vari="function"==typeofrequire&&require,a=0;a<r.length;a++)o(r[a]);returno}({1:[function(t,e){varn=t("../utils/utils"),r=t("../utils/config"),o=t("./types"),i=t("./formatters"),a=function(t){thrownewError("parser does not support type: "+t)},u=function(t){return"[]"===t.slice(-2)},s=function(t,e){returnu(t)||"bytes"===t?i.formatInputInt(e.length):""},c=o.inputTypes(),l=function(t,e){varn="",r="",o="";returnt.forEach(function(t,r){n+=s(t.type,e[r])}),t.forEach(function(n,i){for(vars=!1,l=0;l<c.length&&!s;l++)s=c[l].type(t[i].type,e[i]);s||a(t[i].type);varf=c[l-1].format;u(t[i].type)?o+=e[i].reduce(function(t,e){returnt+f(e)},""):"bytes"===t[i].type?o+=f(e[i]):r+=f(e[i])}),n+=r+o},f=function(t){returnu(t)||"bytes"===t?2*r.ETH_PADDING:0},p=o.outputTypes(),m=function(t,e){e=e.slice(2);varn=[],s=2*r.ETH_PADDING,c=t.reduce(function(t,e){returnt+f(e.type)},0),l=e.slice(0,c);returne=e.slice(c),t.forEach(function(r,c){for(varf=!1,m=0;m<p.length&&!f;m++)f=p[m].type(t[c].type);f||a(t[c].type);varh=p[m-1].format;if(u(t[c].type)){vard=i.formatOutputUInt(l.slice(0,s));l=l.slice(s);for(varg=[],v=0;d>v;v++)g.push(h(e.slice(0,s))),e=e.slice(s);n.push(g)}elseo.prefixedType("bytes")(t[c].type)?(l=l.slice(s),n.push(h(e.slice(0,s))),e=e.slice(s)):(n.push(h(e.slice(0,s))),e=e.slice(s))}),n},h=function(t){vare={};returnt.forEach(function(t){varr=n.extractDisplayName(t.name),o=n.extractTypeName(t.name),i=function(){vare=Array.prototype.slice.call(arguments);returnl(t.inputs,e)};void0===e[r]&&(e[r]=i),e[r][o]=i}),e},d=function(t){vare={};returnt.forEach(function(t){varr=n.extractDisplayName(t.name),o=n.extractTypeName(t.name),i=function(e){returnm(t.outputs,e)};void0===e[r]&&(e[r]=i),e[r][o]=i}),e};e.exports={inputParser:h,outputParser:d,formatInput:l,formatOutput:m}},{"../utils/config":5,"../utils/utils":6,"./formatters":2,"./types":3}],2:[function(t,e){varn=t("bignumber.js"),r=t("../utils/utils"),o=t("../utils/config"),i=function(t){vare=2*o.ETH_PADDING;returnn.config(o.ETH_BIGNUMBER_ROUNDING_MODE),r.padLeft(r.toTwosComplement(t).round().toString(16),e)},a=function(t){returnr.fromAscii(t,o.ETH_PADDING).substr(2)},u=function(t){return"000000000000000000000000000000000000000000000000000000000000000"+(t?"1":"0")},s=function(t){returni(newn(t).times(newn(2).pow(128)))},c=function(t){return"1"===newn(t.substr(0,1),16).toString(2).substr(0,1)},l=function(t){returnt=t||"0",c(t)?newn(t,16).minus(newn("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16)).minus(1):newn(t,16)},f=function(t){returnt=t||"0",newn(t,16)},p=function(t){returnl(t).dividedBy(newn(2).pow(128))},m=function(t){returnf(t).dividedBy(newn(2).pow(128))},h=function(t){return"0x"+t},d=function(t){return"0000000000000000000000000000000000000000000000000000000000000001"===t?!0:!1},g=function(t){returnr.toAscii(t)},v=function(t){return"0x"+t.slice(t.length-40,t.length)};e.exports={formatInputInt:i,formatInputString:a,formatInputBool:u,formatInputReal:s,formatOutputInt:l,formatOutputUInt:f,formatOutputReal:p,formatOutputUReal:m,formatOutputHash:h,formatOutputBool:d,formatOutputString:g,formatOutputAddress:v}},{"../utils/config":5,"../utils/utils":6,"bignumber.js":"bignumber.js"}],3:[function(t,e){varn=t("./formatters"),r=function(t){returnfunction(e){return0===e.indexOf(t)}},o=function(t){returnfunction(e){returnt===e}},i=function(){return[{type:r("uint"),format:n.formatInputInt},{type:r("int"),format:n.formatInputInt},{type:r("bytes"),format:n.formatInputString},{type:r("real"),format:n.formatInputReal},{type:r("ureal"),format:n.formatInputReal},{type:o("address"),format:n.formatInputInt},{type:o("bool"),format:n.formatInputBool}]},a=function(){return[{type