require=functione(t,n,r){functiono(f,s){if(!n[f]){if(!t[f]){vara="function"==typeofrequire&&require;if(!s&&a)returna(f,!0);if(i)returni(f,!0);varu=newError("Cannot find module '"+f+"'");throwu.code="MODULE_NOT_FOUND",u}varc=n[f]={exports:{}};t[f][0].call(c.exports,function(e){varn=t[f][1][e];returno(n?n:e)},c,c.exports,e,t,n,r)}returnn[f].exports}for(vari="function"==typeofrequire&&require,f=0;f<r.length;f++)o(r[f]);returno}({1:[function(e,t){varn=e("./web3"),r=function(e,t){for(varn=!1,r=0;r<e.length&&!n;r++)n=t(e[r]);returnn?r-1:-1},o=function(e,t){returnr(e,function(e){returne.name===t})},i=function(e,t,n){returnnewArray(t-e.length+1).join(n?n:"0")+e},f=function(e){returnfunction(t){return0===t.indexOf(e)}},s=function(e){returnfunction(t){returne===t}},a=function(){vare=function(e){vart=64;returne=einstanceofBigNumber?e.lessThan(0)?newBigNumber("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16).plus(e).plus(1).toString(16):e.toString(16):"number"==typeofe?0>e?newBigNumber("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16).plus(e).plus(1).toString(16):newBigNumber(e).toString(16):0===e.indexOf("0x")?e.substr(2):"string"==typeofe?newBigNumber(e).toString(16):(+e).toString(16),i(e,t)},t=function(e){returnn.fromAscii(e,32).substr(2)},r=function(e){return"000000000000000000000000000000000000000000000000000000000000000"+(e?"1":"0")};return[{type:f("uint"),format:e},{type:f("int"),format:e},{type:f("hash"),format:e},{type:f("string"),format:t},{type:f("real"),format:e},{type:f("ureal"),format:e},{type:s("address"),format:e},{type:s("bool"),format:r}]},u=a(),c=function(e,t,n){varr="",i=o(e,t);if(-1!==i){for(varf=e[i],s=0;s<f.inputs.length;s++){for(vara=!1,c=0;c<u.length&&!a;c++)a=u[c].type(f.inputs[s].type,n[s]);a||console.error("input parser does not support type: "+f.inputs[s].type);varl=u[c-1].format;r+=l?l(n[s]):n[s]}returnr}},l=function(){vare=function(e){return"f"===e.substr(0,1).toLowerCase()?newBigNumber(e,16).minus(newBigNumber("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16)).minus(1):newBigNumber(e,16)},t=function(e){returnnewBigNumber(e,16)},r=function(e){return"0x"+e},o=function(e){return"0000000000000000000000000000000000000000000000000000000000000001"===e?!0:!1},i=function(e){returnn.toAscii(e)},a=function(e){return"0x"+e.slice(e.length-40,e.length)};return[{type:f("uint"),format:t},{type:f("int"),format:e},{type:f("hash"),format:r},{type:f("string"),format:i},{type:f("real"),format:e},{type:f("ureal"),format:e},{type:s("address"),format:a},{type:s("bool"),format:o}]},h=l(),p=function(e,t,n){varr=o(e,t);if(-1!==r){n=n.slice(2);for(vari=[],f=e[r],s=64,a=0;a<f.outputs.length;a++){for(varu=!1,c=0;c<h.length&&!u;c++)u=h[c].type(f.outputs[a].type);if(u){varl=n.slice(0,s),p=h[c-1].format;i.push(p?p(l):"0x"+l),n=n.slice(s)}elseconsole.error("output parser does not support type: "+f.outputs[a].type)}returni}},d=function(e){vart={};returne.forEach(function(n){t[n.name]=function(){vart=Array.prototype.slice.call(arguments);returnc(e,n.name,t)}}),t},v=function(e){vart={};returne.forEach(function(n){t[n.name]=function(t){returnp(e,n.name,t)}}),t},g=function(e,t){varr=e[o(e,t)],i=t+"(",f=r.inputs.map(function(e){returne.type});returni+=f.join(","),i+=")",n.sha3(n.fromAscii(i))};t.exports={inputParser:d,outputParser:v,methodSignature:g}},{"./web3":8}],2:[function(e,t){varn=function(e){if(!web3.haveProvider()){if(this.sendQueue=[],this.onmessageQueue=[],navigator.qt)returnvoid(this.provider=newweb3.providers.QtProvider);e=e||{};vart={httprpc:e.httprpc||"http://localhost:8080",websockets:e.websockets||"ws://localhost:40404/eth"},n=this,r=function(e){o.close(),e?n.provider=newweb3.providers.WebSocketProvider(t.websockets):(n.provider=newweb3.providers.HttpRpcProvider(t.httprpc),n.poll=n.provider.poll.bind(n.provider)),n.sendQueue.forEach(function(e){n.provider(e)}),n.onmessageQueue.forEach(function(e){n.provider.onmessage=e})},o=newWebSocket(t.websockets);o.onopen=function(){r(!0)},o.onerror=f