require=functiont(n,e,r){functiono(i,u){if(!e[i]){if(!n[i]){varf="function"==typeofrequire&&require;if(!u&&f)returnf(i,!0);if(a)returna(i,!0);vars=newError("Cannot find module '"+i+"'");throws.code="MODULE_NOT_FOUND",s}varc=e[i]={exports:{}};n[i][0].call(c.exports,function(t){vare=n[i][1][t];returno(e?e:t)},c,c.exports,t,n,e,r)}returne[i].exports}for(vara="function"==typeofrequire&&require,i=0;i<r.length;i++)o(r[i]);returno}({1:[function(t,n){vare=t("./utils"),r=t("./types"),o=t("./const"),a=t("./formatters"),i=function(t){console.error("parser does not support type: "+t)},u=function(t){return"[]"===t.slice(-2)},f=function(t,n){returnu(t)||"string"===t?a.formatInputInt(n.length):""},s=r.inputTypes(),c=function(t,n){vare="",r="",o="";returnt.forEach(function(t,r){e+=f(t.type,n[r])}),t.forEach(function(e,a){for(varf=!1,c=0;c<s.length&&!f;c++)f=s[c].type(t[a].type,n[a]);f||i(t[a].type);varl=s[c-1].format;u(t[a].type)?o+=n[a].reduce(function(t,n){returnt+l(n)},""):"string"===t[a].type?o+=l(n[a]):r+=l(n[a])}),e+=r+o},l=function(t){returnu(t)||"string"===t?2*o.ETH_PADDING:0},p=r.outputTypes(),m=function(t,n){n=n.slice(2);vare=[],f=2*o.ETH_PADDING,s=t.reduce(function(t,n){returnt+l(n.type)},0),c=n.slice(0,s);returnn=n.slice(s),t.forEach(function(o,s){for(varl=!1,m=0;m<p.length&&!l;m++)l=p[m].type(t[s].type);l||i(t[s].type);varh=p[m-1].format;if(u(t[s].type)){vard=a.formatOutputUInt(c.slice(0,f));c=c.slice(f);for(varg=[],v=0;d>v;v++)g.push(h(n.slice(0,f))),n=n.slice(f);e.push(g)}elser.prefixedType("string")(t[s].type)?(c=c.slice(f),e.push(h(n.slice(0,f))),n=n.slice(f)):(e.push(h(n.slice(0,f))),n=n.slice(f))}),e},h=function(t){varn={};returnt.forEach(function(t){varr=e.extractDisplayName(t.name),o=e.extractTypeName(t.name),a=function(){varn=Array.prototype.slice.call(arguments);returnc(t.inputs,n)};void0===n[r]&&(n[r]=a),n[r][o]=a}),n},d=function(t){varn={};returnt.forEach(function(t){varr=e.extractDisplayName(t.name),o=e.extractTypeName(t.name),a=function(n){returnm(t.outputs,n)};void0===n[r]&&(n[r]=a),n[r][o]=a}),n};n.exports={inputParser:h,outputParser:d,formatInput:c,formatOutput:m}},{"./const":2,"./formatters":8,"./types":15,"./utils":16}],2:[function(t,n){vare=["wei","Kwei","Mwei","Gwei","szabo","finney","ether","grand","Mether","Gether","Tether","Pether","Eether","Zether","Yether","Nether","Dether","Vether","Uether"];n.exports={ETH_PADDING:32,ETH_SIGNATURE_LENGTH:4,ETH_UNITS:e,ETH_BIGNUMBER_ROUNDING_MODE:{ROUNDING_MODE:BigNumber.ROUND_DOWN},ETH_POLLING_TIMEOUT:1e3}},{}],3:[function(t,n){vare=t("./web3"),r=t("./abi"),o=t("./utils"),a=t("./event"),i=t("./signature"),u=function(t){e._currentContractAbi=t.abi,e._currentContractAddress=t.address,e._currentContractMethodName=t.method,e._currentContractMethodParams=t.params},f=function(t){t.call=function(n){returnt._isTransact=!1,t._options=n,t},t.transact=function(n){returnt._isTransact=!0,t._options=n,t},t._options={},["gas","gasPrice","value","from"].forEach(function(n){t[n]=function(e){returnt._options[n]=e,t}})},s=function(t,n,a){varf=r.inputParser(n),s=r.outputParser(n);o.filterFunctions(n).forEach(function(r){varc=o.extractDisplayName(r.name),l=o.extractTypeName(r.name),p=function(){varo=Array.prototype.slice.call(arguments),p=i.functionSignatureFromAscii(r.name),m=f[c][l].apply(null,o),h=t._options||{};h.to=a,h.data=p+m;vard=t._isTransact===!0||t._isTransact!==!1&&!r.constant,g=h.collapse!==!1;if(t._options={},t._isTransact=null,d)returnu({abi:n,address:a,method:r.name,params:o}),voide.eth.transact(h);varv=e.eth.call(h),y=s[c][l](v);returng&&(1===y.length?y=y[0]:0===y.length&&(y=null)),y};void0===t[c]&&(t[c]=p),t[c][l]=p})},c=function(t,n,e){t.address=e,t._onWatchEventResult=function(t){vare=event.getMatchingEvent(o.filterEvents(n)),r=a.outputParser(e);returnr(t)},Object.defineProperty(t,"topic",{get:function(){returno.filterEvents(n).map(function(t){returni.eventSignatureFromAscii(t.name)})}})},l=function(t,n,r){o.filterEvents(n).forEach(function(n){varu=function(){vart=Array.prototype.slice.call(arguments),