diff --git a/browser-solc.js b/browser-solc.js index e3e8a30..528649f 100644 --- a/browser-solc.js +++ b/browser-solc.js @@ -1568,7 +1568,7 @@ args.push(replacer);}if(arguments.length>2){args.push(arguments[2]);}return orig script.onreadystatechange=function(){if(script.readyState=="loaded"||script.readyState=="complete"){script.onreadystatechange=null;callback();}};}else{//Others script.onload=function(){callback();};}script.src=url;document.getElementsByTagName("head")[0].appendChild(script);}function loadVersion(version,callback){delete window.Module;// NOTE: workaround some browsers window.Module=undefined;var url="https://ethereum.github.io/solc-bin/bin/"+version;loadScript("solc",url,function(){var compiler=solc(window.Module);callback(compiler);});}// Also loads global variables called "soljsonSources" and "soljsonReleases" -function getVersions(callback){var url="https://ethereum.github.io/solc-bin/bin/list.js";loadScript("solc-list",url,function(){callback(soljsonSources,soljsonReleases);});}module.exports={'getVersions':getVersions,'loadVersion':loadVersion};},{"es6-shim":46,"solc/wrapper":51}],48:[function(require,module,exports){require('es6-shim');var solc=require('./browser-solc');var domIsReady=function(domIsReady){var isBrowserIeOrNot=function(){return!document.attachEvent||typeof document.attachEvent==="undefined"?'not-ie':'ie';};domIsReady=function(callback){if(callback&&typeof callback==='function'){if(isBrowserIeOrNot()!=='ie'){document.addEventListener("DOMContentLoaded",function(){return callback();});}else{document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){return callback();}});}}else{console.error('The callback is not a function!');}};return domIsReady;}(domIsReady||{});(function(document,window,domIsReady,undefined){domIsReady(function(){window.BrowserSolc=solc;});})(document,window,domIsReady);},{"./browser-solc":47,"es6-shim":46}],49:[function(require,module,exports){(function(Buffer){'use strict';var STREAM=require('stream'),UTIL=require('util'),StringDecoder=require('string_decoder').StringDecoder;function MemoryReadableStream(data,options){if(!(this instanceof MemoryReadableStream))return new MemoryReadableStream(data,options);MemoryReadableStream.super_.call(this,options);this.init(data,options);}UTIL.inherits(MemoryReadableStream,STREAM.Readable);function MemoryWritableStream(data,options){if(!(this instanceof MemoryWritableStream))return new MemoryWritableStream(data,options);MemoryWritableStream.super_.call(this,options);this.init(data,options);}UTIL.inherits(MemoryWritableStream,STREAM.Writable);function MemoryDuplexStream(data,options){if(!(this instanceof MemoryDuplexStream))return new MemoryDuplexStream(data,options);MemoryDuplexStream.super_.call(this,options);this.init(data,options);}UTIL.inherits(MemoryDuplexStream,STREAM.Duplex);MemoryReadableStream.prototype.init=MemoryWritableStream.prototype.init=MemoryDuplexStream.prototype.init=function init(data,options){var self=this;this.queue=[];if(data){if(!Array.isArray(data)){data=[data];}data.forEach(function(chunk){if(!(chunk instanceof Buffer)){chunk=new Buffer(chunk);}self.queue.push(chunk);});}options=options||{};this.maxbufsize=options.hasOwnProperty('maxbufsize')?options.maxbufsize:null;this.bufoverflow=options.hasOwnProperty('bufoverflow')?options.bufoverflow:null;this.frequence=options.hasOwnProperty('frequence')?options.frequence:null;};function MemoryStream(data,options){if(!(this instanceof MemoryStream))return new MemoryStream(data,options);options=options||{};var readable=options.hasOwnProperty('readable')?options.readable:true,writable=options.hasOwnProperty('writable')?options.writable:true;if(readable&&writable){return new MemoryDuplexStream(data,options);}else if(readable){return new MemoryReadableStream(data,options);}else if(writable){return new MemoryWritableStream(data,options);}else{throw new Error("Unknown stream type Readable, Writable or Duplex ");}}MemoryStream.createReadStream=function(data,options){options=options||{};options.readable=true;options.writable=false;return new MemoryStream(data,options);};MemoryStream.createWriteStream=function(data,options){options=options||{};options.readable=false;options.writable=true;return new MemoryStream(data,options);};MemoryReadableStream.prototype._read=MemoryDuplexStream.prototype._read=function _read(n){var self=this,frequence=self.frequence||0,wait_data=this instanceof STREAM.Duplex&&!this._writableState.finished?true:false;if(!this.queue.length&&!wait_data){this.push(null);// finish stream +function getVersions(callback){var url="https://raw.githubusercontent.com/ethereum/solc-bin/gh-pages/bin/list.js";loadScript("solc-list",url,function(){callback(soljsonSources,soljsonReleases);});}module.exports={'getVersions':getVersions,'loadVersion':loadVersion};},{"es6-shim":46,"solc/wrapper":51}],48:[function(require,module,exports){require('es6-shim');var solc=require('./browser-solc');var domIsReady=function(domIsReady){var isBrowserIeOrNot=function(){return!document.attachEvent||typeof document.attachEvent==="undefined"?'not-ie':'ie';};domIsReady=function(callback){if(callback&&typeof callback==='function'){if(isBrowserIeOrNot()!=='ie'){document.addEventListener("DOMContentLoaded",function(){return callback();});}else{document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){return callback();}});}}else{console.error('The callback is not a function!');}};return domIsReady;}(domIsReady||{});(function(document,window,domIsReady,undefined){domIsReady(function(){window.BrowserSolc=solc;});})(document,window,domIsReady);},{"./browser-solc":47,"es6-shim":46}],49:[function(require,module,exports){(function(Buffer){'use strict';var STREAM=require('stream'),UTIL=require('util'),StringDecoder=require('string_decoder').StringDecoder;function MemoryReadableStream(data,options){if(!(this instanceof MemoryReadableStream))return new MemoryReadableStream(data,options);MemoryReadableStream.super_.call(this,options);this.init(data,options);}UTIL.inherits(MemoryReadableStream,STREAM.Readable);function MemoryWritableStream(data,options){if(!(this instanceof MemoryWritableStream))return new MemoryWritableStream(data,options);MemoryWritableStream.super_.call(this,options);this.init(data,options);}UTIL.inherits(MemoryWritableStream,STREAM.Writable);function MemoryDuplexStream(data,options){if(!(this instanceof MemoryDuplexStream))return new MemoryDuplexStream(data,options);MemoryDuplexStream.super_.call(this,options);this.init(data,options);}UTIL.inherits(MemoryDuplexStream,STREAM.Duplex);MemoryReadableStream.prototype.init=MemoryWritableStream.prototype.init=MemoryDuplexStream.prototype.init=function init(data,options){var self=this;this.queue=[];if(data){if(!Array.isArray(data)){data=[data];}data.forEach(function(chunk){if(!(chunk instanceof Buffer)){chunk=new Buffer(chunk);}self.queue.push(chunk);});}options=options||{};this.maxbufsize=options.hasOwnProperty('maxbufsize')?options.maxbufsize:null;this.bufoverflow=options.hasOwnProperty('bufoverflow')?options.bufoverflow:null;this.frequence=options.hasOwnProperty('frequence')?options.frequence:null;};function MemoryStream(data,options){if(!(this instanceof MemoryStream))return new MemoryStream(data,options);options=options||{};var readable=options.hasOwnProperty('readable')?options.readable:true,writable=options.hasOwnProperty('writable')?options.writable:true;if(readable&&writable){return new MemoryDuplexStream(data,options);}else if(readable){return new MemoryReadableStream(data,options);}else if(writable){return new MemoryWritableStream(data,options);}else{throw new Error("Unknown stream type Readable, Writable or Duplex ");}}MemoryStream.createReadStream=function(data,options){options=options||{};options.readable=true;options.writable=false;return new MemoryStream(data,options);};MemoryStream.createWriteStream=function(data,options){options=options||{};options.readable=false;options.writable=true;return new MemoryStream(data,options);};MemoryReadableStream.prototype._read=MemoryDuplexStream.prototype._read=function _read(n){var self=this,frequence=self.frequence||0,wait_data=this instanceof STREAM.Duplex&&!this._writableState.finished?true:false;if(!this.queue.length&&!wait_data){this.push(null);// finish stream }else if(this.queue.length){setTimeout(function(){if(self.queue.length){var chunk=self.queue.shift();if(chunk&&!self._readableState.ended){if(!self.push(chunk)){self.queue.unshift(chunk);}}}},frequence);}};MemoryWritableStream.prototype._write=MemoryDuplexStream.prototype._write=function _write(chunk,encoding,cb){var decoder=null;try{decoder=this.decodeStrings&&encoding?new StringDecoder(encoding):null;}catch(err){return cb(err);}var decoded_chunk=decoder?decoder.write(chunk):chunk,queue_size=this._getQueueSize(),chunk_size=decoded_chunk.length;if(this.maxbufsize&&queue_size+chunk_size>this.maxbufsize){if(this.bufoverflow){return cb("Buffer overflowed ("+this.bufoverflow+"/"+queue_size+")");}else{return cb();}}if(this instanceof STREAM.Duplex){while(this.queue.length){this.push(this.queue.shift());}this.push(decoded_chunk);}else{this.queue.push(decoded_chunk);}cb();};MemoryDuplexStream.prototype.end=function(chunk,encoding,cb){var self=this;return MemoryDuplexStream.super_.prototype.end.call(this,chunk,encoding,function(){self.push(null);//finish readble stream too if(cb)cb();});};MemoryReadableStream.prototype._getQueueSize=MemoryWritableStream.prototype._getQueueSize=MemoryDuplexStream.prototype._getQueueSize=function(){var queuesize=0,i;for(i=0;i=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function f(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!d;e--){var g=e>=0?arguments[e]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,d="/"===g.charAt(0))}return c=b(f(c.split("/"),function(a){return!!a}),!d).join("/"),(d?"/":"")+c||"."},c.normalize=function(a){var d=c.isAbsolute(a),e="/"===g(a,-1);return a=b(f(a.split("/"),function(a){return!!a}),!d).join("/"),a||d||(a="."),a&&e&&(a+="/"),(d?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(f(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;i1)for(var c=1;c1&&(d=c[0]+"@",a=c[1]),a=a.replace(t,".");var e=a.split("."),f=A(e,b).join(".");return d+f}function C(a){for(var e,f,b=[],c=0,d=a.length;c=55296&&e<=56319&&c65535&&(a-=65536,b+=x(a>>>10&1023|55296),a=56320|1023&a),b+=x(a)}).join("")}function E(a){return a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:j}function F(a,b){return a+22+75*(a<26)-((0!=b)<<5)}function G(a,b,c){var d=0;for(a=c?w(a/n):a>>1,a+=w(a/b);a>v*l>>1;d+=j)a=w(a/v);return w(d+(v+1)*a/(a+m))}function H(a){var d,h,m,n,r,s,t,u,v,x,b=[],c=a.length,e=0,f=p,g=o;for(h=a.lastIndexOf(q),h<0&&(h=0),m=0;m=128&&z("not-basic"),b.push(a.charCodeAt(m));for(n=h>0?h+1:0;n=c&&z("invalid-input"),u=E(a.charCodeAt(n++)),(u>=j||u>w((i-e)/s))&&z("overflow"),e+=u*s,v=t<=g?k:t>=g+l?l:t-g,!(uw(i/x)&&z("overflow"),s*=x;d=b.length+1,g=G(e-r,d,0==r),w(e/d)>i-f&&z("overflow"),f+=w(e/d),e%=d,b.splice(e++,0,f)}return D(b)}function I(a){var b,c,d,e,f,g,h,m,n,r,s,u,v,y,A,t=[];for(a=C(a),u=a.length,b=p,c=0,f=o,g=0;g=b&&sw((i-c)/v)&&z("overflow"),c+=(h-b)*v,b=h,g=0;gi&&z("overflow"),s==b){for(m=c,n=j;r=n<=f?k:n>=f+l?l:n-f,!(m= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=j-k,w=Math.floor,x=String.fromCharCode;if(h={version:"1.4.1",ucs2:{decode:C,encode:D},decode:H,encode:I,toASCII:K,toUnicode:J},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return h});else if(e&&f)if(b.exports==e)f.exports=h;else for(y in h)h.hasOwnProperty(y)&&(e[y]=h[y]);else d.punycode=h}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],18:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}b.exports=function(a,b,c,f){b=b||"&",c=c||"=";var g={};if("string"!=typeof a||0===a.length)return g;var h=/\+/g;a=a.split(b);var i=1e3;f&&"number"==typeof f.maxKeys&&(i=f.maxKeys);var j=a.length;i>0&&j>i&&(j=i);for(var k=0;k=0?(n=l.substr(0,m),o=l.substr(m+1)):(n=l,o=""),p=decodeURIComponent(n),q=decodeURIComponent(o),d(g,p)?e(g[p])?g[p].push(q):g[p]=[g[p],q]:g[p]=q}return g};var e=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{}],19:[function(a,b,c){"use strict";function f(a,b){if(a.map)return a.map(b);for(var c=[],d=0;d0)if(b.ended&&!e){var g=new Error("stream.push() after EOF");a.emit("error",g)}else if(b.endEmitted&&e){var h=new Error("stream.unshift() after end event");a.emit("error",h)}else{var i;!b.decoder||e||d||(c=b.decoder.write(c),i=!b.objectMode&&0===c.length),e||(b.reading=!1),i||(b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&A(a))),C(a,b)}else e||(b.reading=!1);return u(b)}function u(a){return!a.ended&&(a.needReadable||a.length=v?a=v:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function x(a,b){return a<=0||0===b.length&&b.ended?0:b.objectMode?1:a!==a?b.flowing&&b.length?b.buffer.head.data.length:b.length:(a>b.highWaterMark&&(b.highWaterMark=w(a)),a<=b.length?a:b.ended?b.length:(b.needReadable=!0,0))}function y(a,b){var c=null;return j.isBuffer(b)||"string"==typeof b||null===b||void 0===b||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c}function z(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,A(a)}}function A(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(n("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?d(B,a):B(a))}function B(a){n("emit readable"),a.emit("readable"),I(a)}function C(a,b){b.readingMore||(b.readingMore=!0,d(D,a,b))}function D(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length=b.length?(c=b.decoder?b.buffer.join(""):1===b.buffer.length?b.buffer.head.data:b.buffer.concat(b.length),b.buffer.clear()):c=K(a,b.buffer,b.decoder),c}function K(a,b,c){var d;return af.length?f.length:a;if(e+=g===f.length?f:f.slice(0,a),a-=g,0===a){g===f.length?(++d,c.next?b.head=c.next:b.head=b.tail=null):(b.head=c,c.data=f.slice(g));break}++d}return b.length-=d,e}function M(a,b){var c=k.allocUnsafe(a),d=b.head,e=1;for(d.data.copy(c),a-=d.data.length;d=d.next;){var f=d.data,g=a>f.length?f.length:a;if(f.copy(c,c.length-a,0,g),a-=g,0===a){g===f.length?(++e,d.next?b.head=d.next:b.head=b.tail=null):(b.head=d,d.data=f.slice(g));break}++e}return b.length-=e,c}function N(a){var b=a._readableState;if(b.length>0)throw new Error('"endReadable()" called on non-empty stream');b.endEmitted||(b.ended=!0,d(O,b,a))}function O(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function P(a,b){for(var c=0,d=a.length;c=b.highWaterMark||b.ended))return n("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?N(this):A(this),null;if(a=x(a,b),0===a&&b.ended)return 0===b.length&&N(this),null;var d=b.needReadable;n("need readable",d),(0===b.length||b.length-a0?J(a,b):null,null===e?(b.needReadable=!0,a=0):b.length-=a,0===b.length&&(b.ended||(b.needReadable=!0),c!==a&&b.ended&&N(this)),null!==e&&this.emit("data",e),e},s.prototype._read=function(a){this.emit("error",new Error("_read() is not implemented"))},s.prototype.pipe=function(a,b){function j(a){n("onunpipe"),a===e&&o()}function k(){n("onend"),a.end()}function o(){n("cleanup"),a.removeListener("close",t),a.removeListener("finish",u),a.removeListener("drain",l),a.removeListener("error",s),a.removeListener("unpipe",j),e.removeListener("end",k),e.removeListener("end",o),e.removeListener("data",r),m=!0,!f.awaitDrain||a._writableState&&!a._writableState.needDrain||l()}function r(b){n("ondata"),p=!1;var c=a.write(b);!1!==c||p||((1===f.pipesCount&&f.pipes===a||f.pipesCount>1&&Q(f.pipes,a)!==-1)&&!m&&(n("false write response, pause",e._readableState.awaitDrain),e._readableState.awaitDrain++,p=!0),e.pause())}function s(b){n("onerror",b),v(),a.removeListener("error",s),0===h(a,"error")&&a.emit("error",b)}function t(){a.removeListener("finish",u),v()}function u(){n("onfinish"),a.removeListener("close",t),v()}function v(){n("unpipe"),e.unpipe(a)}var e=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=a;break;case 1:f.pipes=[f.pipes,a];break;default:f.pipes.push(a)}f.pipesCount+=1,n("pipe count=%d opts=%j",f.pipesCount,b);var g=(!b||b.end!==!1)&&a!==c.stdout&&a!==c.stderr,i=g?k:o;f.endEmitted?d(i):e.once("end",i),a.on("unpipe",j);var l=E(e);a.on("drain",l);var m=!1,p=!1;return e.on("data",r),q(a,"error",s),a.once("close",t),a.once("finish",u),a.emit("pipe",e),f.flowing||(n("pipe resume"),e.resume()),a},s.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var e=0;e-1?setImmediate:d;p.WritableState=n;var g=a("core-util-is");g.inherits=a("inherits");var i,h={deprecate:a("util-deprecate")};!function(){try{i=a("stream")}catch(a){}finally{i||(i=a("events").EventEmitter)}}();var j=a("buffer").Buffer,k=a("buffer-shims");g.inherits(p,i),n.prototype.getBuffer=function(){for(var b=this.bufferedRequest,c=[];b;)c.push(b),b=b.next;return c},function(){try{Object.defineProperty(n.prototype,"buffer",{get:h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(a){}}();var o;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(a){return!!o.call(this,a)||a&&a._writableState instanceof n}})):o=function(a){return a instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(a,b,c){var d=this._writableState,e=!1;return"function"==typeof b&&(c=b,b=null),j.isBuffer(a)?b="buffer":b||(b=d.defaultEncoding),"function"!=typeof c&&(c=l),d.ended?q(this,c):r(this,d,a,c)&&(d.pendingcb++,e=t(this,d,a,b,c)),e},p.prototype.cork=function(){var a=this._writableState;a.corked++},p.prototype.uncork=function(){var a=this._writableState;a.corked&&(a.corked--,a.writing||a.corked||a.finished||a.bufferProcessing||!a.bufferedRequest||A(this,a))},p.prototype.setDefaultEncoding=function(b){if("string"==typeof b&&(b=b.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((b+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+b);return this._writableState.defaultEncoding=b,this},p.prototype._write=function(a,b,c){c(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(a,b,c){var d=this._writableState;"function"==typeof a?(c=a,a=null,b=null):"function"==typeof b&&(c=b,b=null),null!==a&&void 0!==a&&this.write(a,b),d.corked&&(d.corked=1,this.uncork()),d.ending||d.finished||E(this,d,c)}}).call(this,a("_process"))},{"./_stream_duplex":22,_process:16,buffer:5,"buffer-shims":4,"core-util-is":7,events:8,inherits:11,"process-nextick-args":15,"util-deprecate":41}],27:[function(a,b,c){"use strict";function f(){this.head=null,this.tail=null,this.length=0}var e=(a("buffer").Buffer,a("buffer-shims"));b.exports=f,f.prototype.push=function(a){var b={data:a,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length},f.prototype.unshift=function(a){var b={data:a,next:this.head};0===this.length&&(this.tail=b),this.head=b,++this.length},f.prototype.shift=function(){if(0!==this.length){var a=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},f.prototype.clear=function(){this.head=this.tail=null,this.length=0},f.prototype.join=function(a){if(0===this.length)return"";for(var b=this.head,c=""+b.data;b=b.next;)c+=a+b.data;return c},f.prototype.concat=function(a){if(0===this.length)return e.alloc(0);if(1===this.length)return this.head.data;for(var b=e.allocUnsafe(a>>>0),c=this.head,d=0;c;)c.data.copy(b,d),d+=c.data.length,c=c.next;return b}},{buffer:5,"buffer-shims":4}],28:[function(a,b,c){b.exports=a("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":23}],29:[function(a,b,c){(function(d){var e=function(){try{return a("stream")}catch(a){}}();c=b.exports=a("./lib/_stream_readable.js"),c.Stream=e||c,c.Readable=c,c.Writable=a("./lib/_stream_writable.js"),c.Duplex=a("./lib/_stream_duplex.js"),c.Transform=a("./lib/_stream_transform.js"),c.PassThrough=a("./lib/_stream_passthrough.js"),!d.browser&&"disable"===d.env.READABLE_STREAM&&e&&(b.exports=e)}).call(this,a("_process"))},{"./lib/_stream_duplex.js":22,"./lib/_stream_passthrough.js":23,"./lib/_stream_readable.js":24,"./lib/_stream_transform.js":25,"./lib/_stream_writable.js":26,_process:16}],30:[function(a,b,c){b.exports=a("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":25}],31:[function(a,b,c){b.exports=a("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":26}],32:[function(a,b,c){function f(){d.call(this)}b.exports=f;var d=a("events").EventEmitter,e=a("inherits");e(f,d),f.Readable=a("readable-stream/readable.js"),f.Writable=a("readable-stream/writable.js"),f.Duplex=a("readable-stream/duplex.js"),f.Transform=a("readable-stream/transform.js"),f.PassThrough=a("readable-stream/passthrough.js"),f.Stream=f,f.prototype.pipe=function(a,b){function e(b){a.writable&&!1===a.write(b)&&c.pause&&c.pause()}function f(){c.readable&&c.resume&&c.resume()}function h(){g||(g=!0,a.end())}function i(){g||(g=!0,"function"==typeof a.destroy&&a.destroy())}function j(a){if(k(),0===d.listenerCount(this,"error"))throw a}function k(){c.removeListener("data",e),a.removeListener("drain",f),c.removeListener("end",h),c.removeListener("close",i),c.removeListener("error",j),a.removeListener("error",j),c.removeListener("end",k),c.removeListener("close",k),a.removeListener("close",k)}var c=this;c.on("data",e),a.on("drain",f),a._isStdio||b&&b.end===!1||(c.on("end",h),c.on("close",i));var g=!1;return c.on("error",j),a.on("error",j),c.on("end",k),c.on("close",k),a.on("close",k),a.emit("pipe",c),a}},{events:8,inherits:11,"readable-stream/duplex.js":21,"readable-stream/passthrough.js":28,"readable-stream/readable.js":29,"readable-stream/transform.js":30,"readable-stream/writable.js":31}],33:[function(a,b,c){(function(b){var d=a("./lib/request"),e=a("xtend"),f=a("builtin-status-codes"),g=a("url"),h=c;h.request=function(a,c){a="string"==typeof a?g.parse(a):e(a);var f=b.location.protocol.search(/^https?:$/)===-1?"http:":"",h=a.protocol||f,i=a.hostname||a.host,j=a.port,k=a.path||"/";i&&i.indexOf(":")!==-1&&(i="["+i+"]"),a.url=(i?h+"//"+i:"")+(j?":"+j:"")+k,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var l=new d(a); return c&&l.on("response",c),l},h.get=function(b,c){var d=h.request(b,c);return d.end(),d},h.Agent=function(){},h.Agent.defaultMaxSockets=4,h.STATUS_CODES=f,h.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":35,"builtin-status-codes":6,url:39,xtend:45}],34:[function(a,b,c){(function(a){function d(a){try{return b.responseType=a,b.responseType===a}catch(a){}return!1}function g(a){return"function"==typeof a}c.fetch=g(a.fetch)&&g(a.ReadableStream),c.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),c.blobConstructor=!0}catch(a){}var b=new a.XMLHttpRequest;b.open("GET",a.XDomainRequest?"/":"https://example.com");var e="undefined"!=typeof a.ArrayBuffer,f=e&&g(a.ArrayBuffer.prototype.slice);c.arraybuffer=e&&d("arraybuffer"),c.msstream=!c.fetch&&f&&d("ms-stream"),c.mozchunkedarraybuffer=!c.fetch&&e&&d("moz-chunked-arraybuffer"),c.overrideMimeType=g(b.overrideMimeType),c.vbArray=g(a.VBArray),b=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],35:[function(a,b,c){(function(c,d,e){function m(a,b){return f.fetch&&b?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&a?"arraybuffer":f.vbArray&&a?"text:vbarray":"text"}function o(a){try{var b=a.status;return null!==b&&0!==b}catch(a){return!1}}var f=a("./capability"),g=a("inherits"),h=a("./response"),i=a("readable-stream"),j=a("to-arraybuffer"),k=h.IncomingMessage,l=h.readyStates,n=b.exports=function(a){var b=this;i.Writable.call(b),b._opts=a,b._body=[],b._headers={},a.auth&&b.setHeader("Authorization","Basic "+new e(a.auth).toString("base64")),Object.keys(a.headers).forEach(function(c){b.setHeader(c,a.headers[c])});var c,d=!0;if("disable-fetch"===a.mode)d=!1,c=!0;else if("prefer-streaming"===a.mode)c=!1;else if("allow-wrong-content-type"===a.mode)c=!f.overrideMimeType;else{if(a.mode&&"default"!==a.mode&&"prefer-fast"!==a.mode)throw new Error("Invalid value for opts.mode");c=!0}b._mode=m(c,d),b.on("finish",function(){b._onFinish()})};g(n,i.Writable),n.prototype.setHeader=function(a,b){var c=this,d=a.toLowerCase();p.indexOf(d)===-1&&(c._headers[d]={name:a,value:b})},n.prototype.getHeader=function(a){var b=this;return b._headers[a.toLowerCase()].value},n.prototype.removeHeader=function(a){var b=this;delete b._headers[a.toLowerCase()]},n.prototype._onFinish=function(){var a=this;if(!a._destroyed){var h,b=a._opts,g=a._headers;if("POST"!==b.method&&"PUT"!==b.method&&"PATCH"!==b.method&&"MERGE"!==b.method||(h=f.blobConstructor?new d.Blob(a._body.map(function(a){return j(a)}),{type:(g["content-type"]||{}).value||""}):e.concat(a._body).toString()),"fetch"===a._mode){var i=Object.keys(g).map(function(a){return[g[a].name,g[a].value]});d.fetch(a._opts.url,{method:a._opts.method,headers:i,body:h,mode:"cors",credentials:b.withCredentials?"include":"same-origin"}).then(function(b){a._fetchResponse=b,a._connect()},function(b){a.emit("error",b)})}else{var k=a._xhr=new d.XMLHttpRequest;try{k.open(a._opts.method,a._opts.url,!0)}catch(b){return void c.nextTick(function(){a.emit("error",b)})}"responseType"in k&&(k.responseType=a._mode.split(":")[0]),"withCredentials"in k&&(k.withCredentials=!!b.withCredentials),"text"===a._mode&&"overrideMimeType"in k&&k.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(g).forEach(function(a){k.setRequestHeader(g[a].name,g[a].value)}),a._response=null,k.onreadystatechange=function(){switch(k.readyState){case l.LOADING:case l.DONE:a._onXHRProgress()}},"moz-chunked-arraybuffer"===a._mode&&(k.onprogress=function(){a._onXHRProgress()}),k.onerror=function(){a._destroyed||a.emit("error",new Error("XHR error"))};try{k.send(h)}catch(b){return void c.nextTick(function(){a.emit("error",b)})}}}},n.prototype._onXHRProgress=function(){var a=this;o(a._xhr)&&!a._destroyed&&(a._response||a._connect(),a._response._onXHRProgress())},n.prototype._connect=function(){var a=this;a._destroyed||(a._response=new k(a._xhr,a._fetchResponse,a._mode),a.emit("response",a._response))},n.prototype._write=function(a,b,c){var d=this;d._body.push(a),c()},n.prototype.abort=n.prototype.destroy=function(){var a=this;a._destroyed=!0,a._response&&(a._response._destroyed=!0),a._xhr&&a._xhr.abort()},n.prototype.end=function(a,b,c){var d=this;"function"==typeof a&&(c=a,a=void 0),i.Writable.prototype.end.call(d,a,b,c)},n.prototype.flushHeaders=function(){},n.prototype.setTimeout=function(){},n.prototype.setNoDelay=function(){},n.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":34,"./response":36,_process:16,buffer:5,inherits:11,"readable-stream":29,"to-arraybuffer":38}],36:[function(a,b,c){(function(b,d,e){var f=a("./capability"),g=a("inherits"),h=a("readable-stream"),i=c.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},j=c.IncomingMessage=function(a,c,d){function j(){i.read().then(function(a){if(!g._destroyed){if(a.done)return void g.push(null);g.push(new e(a.value)),j()}})}var g=this;if(h.Readable.call(g),g._mode=d,g.headers={},g.rawHeaders=[],g.trailers={},g.rawTrailers=[],g.on("end",function(){b.nextTick(function(){g.emit("close")})}),"fetch"===d){g._fetchResponse=c,g.url=c.url,g.statusCode=c.status,g.statusMessage=c.statusText,c.headers.forEach(function(a,b){g.headers[b.toLowerCase()]=a,g.rawHeaders.push(b,a)});var i=c.body.getReader();j()}else{g._xhr=a,g._pos=0,g.url=a.responseURL,g.statusCode=a.status,g.statusMessage=a.statusText;var k=a.getAllResponseHeaders().split(/\r?\n/);if(k.forEach(function(a){var b=a.match(/^([^:]+):\s*(.*)/);if(b){var c=b[1].toLowerCase();"set-cookie"===c?(void 0===g.headers[c]&&(g.headers[c]=[]),g.headers[c].push(b[2])):void 0!==g.headers[c]?g.headers[c]+=", "+b[2]:g.headers[c]=b[2],g.rawHeaders.push(b[1],b[2])}}),g._charset="x-user-defined",!f.overrideMimeType){var l=g.rawHeaders["mime-type"];if(l){var m=l.match(/;\s*charset=([^;])(;|$)/);m&&(g._charset=m[1].toLowerCase())}g._charset||(g._charset="utf-8")}}};g(j,h.Readable),j.prototype._read=function(){},j.prototype._onXHRProgress=function(){var a=this,b=a._xhr,c=null;switch(a._mode){case"text:vbarray":if(b.readyState!==i.DONE)break;try{c=new d.VBArray(b.responseBody).toArray()}catch(a){}if(null!==c){a.push(new e(c));break}case"text":try{c=b.responseText}catch(b){a._mode="text:vbarray";break}if(c.length>a._pos){var f=c.substr(a._pos);if("x-user-defined"===a._charset){for(var g=new e(f.length),h=0;ha._pos&&(a.push(new e(new Uint8Array(j.result.slice(a._pos)))),a._pos=j.result.byteLength)},j.onload=function(){a.push(null)},j.readAsArrayBuffer(c)}a._xhr.readyState===i.DONE&&"ms-stream"!==a._mode&&a.push(null)}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":34,_process:16,buffer:5,inherits:11,"readable-stream":29}],37:[function(a,b,c){function f(a){if(a&&!e(a))throw new Error("Unknown encoding: "+a)}function h(a){return a.toString(this.encoding)}function i(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function j(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var d=a("buffer").Buffer,e=d.isEncoding||function(a){switch(a&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},g=c.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),f(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=i;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=j;break;default:return void(this.write=h)}this.charBuffer=new d(6),this.charReceived=0,this.charLength=0};g.prototype.write=function(a){for(var b="";this.charLength;){var c=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived=55296&&d<=56319)){if(this.charReceived=this.charLength=0,0===a.length)return b;break}this.charLength+=this.surrogateSize,b=""}this.detectIncompleteChar(a);var e=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,e),e-=this.charReceived),b+=a.toString(this.encoding,0,e);var e=b.length-1,d=b.charCodeAt(e);if(d>=55296&&d<=56319){var f=this.surrogateSize;return this.charLength+=f,this.charReceived+=f,this.charBuffer.copy(this.charBuffer,f,0,f),a.copy(this.charBuffer,0,0,f),b.substring(0,e)}return b},g.prototype.detectIncompleteChar=function(a){for(var b=a.length>=3?3:a.length;b>0;b--){var c=a[a.length-b];if(1==b&&c>>5==6){this.charLength=2;break}if(b<=2&&c>>4==14){this.charLength=3;break}if(b<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=b},g.prototype.end=function(a){var b="";if(a&&a.length&&(b=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,e=this.encoding;b+=d.slice(0,c).toString(e)}return b}},{buffer:5}],38:[function(a,b,c){var d=a("buffer").Buffer;b.exports=function(a){if(a instanceof Uint8Array){if(0===a.byteOffset&&a.byteLength===a.buffer.byteLength)return a.buffer;if("function"==typeof a.buffer.slice)return a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}if(d.isBuffer(a)){for(var b=new Uint8Array(a.length),c=a.length,e=0;e",'"',"`"," ","\r","\n","\t"],k=["{","}","|","\\","^","`"].concat(j),l=["'"].concat(k),m=["%","/","?",";","#"].concat(l),n=["/","?","#"],o=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,q=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,r={javascript:!0,"javascript:":!0},s={javascript:!0,"javascript:":!0},t={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},u=a("querystring");f.prototype.parse=function(a,b,c){if(!e.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var f=a.indexOf("?"),h=f!==-1&&f127?"x":I[K];if(!J.match(p)){var M=G.slice(0,B),N=G.slice(B+1),O=I.match(q);O&&(M.push(O[1]),N.unshift(O[2])),N.length&&(v="/"+N.join(".")+v),this.hostname=M.join(".");break}}}this.hostname.length>o?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=d.toASCII(this.hostname));var P=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+P,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!r[y])for(var B=0,H=l.length;B0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return c.search=a.search,c.query=a.query,e.isNull(c.pathname)&&e.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!x.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var A=x.slice(-1)[0],B=(c.host||a.host||x.length>1)&&("."===A||".."===A)||""===A,C=0,D=x.length;D>=0;D--)A=x[D],"."===A?x.splice(D,1):".."===A?(x.splice(D,1),C++):C&&(x.splice(D,1),C--);if(!v&&!w)for(;C--;C)x.unshift("..");!v||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),B&&"/"!==x.join("/").substr(-1)&&x.push("");var E=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(y){c.hostname=c.host=E?"":x.length?x.shift():"";var z=!!(c.host&&c.host.indexOf("@")>0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return v=v||c.host&&x.length,v&&!E&&x.unshift(""),x.length?c.pathname=x.join("/"):(c.pathname=null,c.path=null),e.isNull(c.pathname)&&e.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},f.prototype.parseHost=function(){var a=this.host,b=h.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{"./util":40,punycode:17,querystring:20}],40:[function(a,b,c){"use strict";b.exports={isString:function(a){return"string"==typeof a},isObject:function(a){return"object"==typeof a&&null!==a},isNull:function(a){return null===a},isNullOrUndefined:function(a){return null==a}}},{}],41:[function(a,b,c){(function(a){function c(a,b){function e(){if(!c){if(d("throwDeprecation"))throw new Error(b);d("traceDeprecation")?console.trace(b):console.warn(b),c=!0}return a.apply(this,arguments)}if(d("noDeprecation"))return a;var c=!1;return e}function d(b){try{if(!a.localStorage)return!1}catch(a){return!1}var c=a.localStorage[b];return null!=c&&"true"===String(c).toLowerCase()}b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],42:[function(a,b,c){arguments[4][11][0].apply(c,arguments)},{dup:11}],43:[function(a,b,c){b.exports=function(b){return b&&"object"==typeof b&&"function"==typeof b.copy&&"function"==typeof b.fill&&"function"==typeof b.readUInt8}},{}],44:[function(a,b,c){(function(b,d){function h(a,b){var d={seen:[],stylize:j};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),s(b)?d.showHidden=b:b&&c._extend(d,b),y(d.showHidden)&&(d.showHidden=!1),y(d.depth)&&(d.depth=2),y(d.colors)&&(d.colors=!1),y(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=i),l(d,a,d.depth)}function i(a,b){var c=h.styles[b];return c?"["+h.colors[c][0]+"m"+a+"["+h.colors[c][1]+"m":a}function j(a,b){return a}function k(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function l(a,b,d){if(a.customInspect&&b&&D(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return w(e)||(e=l(a,e,d)),e}var f=m(a,b);if(f)return f;var g=Object.keys(b),h=k(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),C(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return n(b);if(0===g.length){if(D(b)){var i=b.name?": "+b.name:"";return a.stylize("[Function"+i+"]","special")}if(z(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(B(b))return a.stylize(Date.prototype.toString.call(b),"date");if(C(b))return n(b)}var j="",s=!1,t=["{","}"];if(r(b)&&(s=!0,t=["[","]"]),D(b)){var u=b.name?": "+b.name:"";j=" [Function"+u+"]"}if(z(b)&&(j=" "+RegExp.prototype.toString.call(b)),B(b)&&(j=" "+Date.prototype.toUTCString.call(b)),C(b)&&(j=" "+n(b)),0===g.length&&(!s||0==b.length))return t[0]+j+t[1];if(d<0)return z(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special");a.seen.push(b);var v;return v=s?o(a,b,d,h,g):g.map(function(c){return p(a,b,d,h,c,s)}),a.seen.pop(),q(v,j,t)}function m(a,b){if(y(b))return a.stylize("undefined","undefined");if(w(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return v(b)?a.stylize(""+b,"number"):s(b)?a.stylize(""+b,"boolean"):t(b)?a.stylize("null","null"):void 0}function n(a){return"["+Error.prototype.toString.call(a)+"]"}function o(a,b,c,d,e){for(var f=[],g=0,h=b.length;g-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),y(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function q(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function r(a){return Array.isArray(a)}function s(a){return"boolean"==typeof a}function t(a){return null===a}function u(a){return null==a}function v(a){return"number"==typeof a}function w(a){return"string"==typeof a}function x(a){return"symbol"==typeof a}function y(a){return void 0===a}function z(a){return A(a)&&"[object RegExp]"===F(a)}function A(a){return"object"==typeof a&&null!==a}function B(a){return A(a)&&"[object Date]"===F(a)}function C(a){return A(a)&&("[object Error]"===F(a)||a instanceof Error)}function D(a){return"function"==typeof a}function E(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function F(a){return Object.prototype.toString.call(a)}function G(a){return a<10?"0"+a.toString(10):a.toString(10)}function I(){var a=new Date,b=[G(a.getHours()),G(a.getMinutes()),G(a.getSeconds())].join(":");return[a.getDate(),H[a.getMonth()],b].join(" ")}function J(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var e=/%[sdj%]/g;c.format=function(a){if(!w(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(a){return"[Circular]"}default:return a}}),i=d[c];c=0&&"[object Array]"!==t(b)&&"[object Function]"===t(b.callee)},ca=aa(arguments)?aa:ba,da={primitive:function(a){return null===a||"function"!=typeof a&&"object"!=typeof a},string:function(a){return"[object String]"===t(a)},regex:function(a){return"[object RegExp]"===t(a)},symbol:function(a){return"function"==typeof z.Symbol&&"symbol"==typeof a}},ea=function(b,c,d){var e=b[c];r(b,c,d,!0),v.preserveToString(b[c],e)},fa="function"==typeof X&&"function"==typeof X.for&&da.symbol(X()),ga=da.symbol(X.iterator)?X.iterator:"_es6-shim iterator_";z.Set&&"function"==typeof(new z.Set)["@@iterator"]&&(ga="@@iterator"),z.Reflect||r(z,"Reflect",{},!0);var ha=z.Reflect,ia=String,ja="undefined"!=typeof document&&document?document.all:null,ka=null==ja?function(b){return null==b}:function(b){return null==b&&b!==ja},la={Call:function(c,d){var e=arguments.length>2?arguments[2]:[];if(!la.IsCallable(c))throw new TypeError(c+" is not a function");return b(c,d,e)},RequireObjectCoercible:function(a,b){if(ka(a))throw new TypeError(b||"Cannot call method on "+a);return a},TypeIsObject:function(a){return void 0!==a&&null!==a&&a!==!0&&a!==!1&&("function"==typeof a||"object"==typeof a||a===ja)},ToObject:function(a,b){return Object(la.RequireObjectCoercible(a,b))},IsCallable:u,IsConstructor:function(a){return la.IsCallable(a)},ToInt32:function(a){return la.ToNumber(a)>>0},ToUint32:function(a){return la.ToNumber(a)>>>0},ToNumber:function(a){if("[object Symbol]"===t(a))throw new TypeError("Cannot convert a Symbol value to a number");return+a},ToInteger:function(a){var b=la.ToNumber(a);return Z(b)?0:0!==b&&$(b)?(b>0?1:-1)*K(L(b)):b},ToLength:function(a){var b=la.ToInteger(a);return b<=0?0:b>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:b},SameValue:function(a,b){return a===b?0!==a||1/a===1/b:Z(a)&&Z(b)},SameValueZero:function(a,b){return a===b||Z(a)&&Z(b)},IsIterable:function(a){return la.TypeIsObject(a)&&("undefined"!=typeof a[ga]||ca(a))},GetIterator:function(a){if(ca(a))return new Q(a,"value");var b=la.GetMethod(a,ga);if(!la.IsCallable(b))throw new TypeError("value is not an iterable");var c=la.Call(b,a);if(!la.TypeIsObject(c))throw new TypeError("bad iterator");return c},GetMethod:function(a,b){var c=la.ToObject(a)[b];if(!ka(c)){if(!la.IsCallable(c))throw new TypeError("Method not callable: "+b);return c}},IteratorComplete:function(a){return!!a.done},IteratorClose:function(a,b){var c=la.GetMethod(a,"return");if(void 0!==c){var d,e;try{d=la.Call(c,a)}catch(a){e=a}if(!b){if(e)throw e;if(!la.TypeIsObject(d))throw new TypeError("Iterator's return method returned a non-object.")}}},IteratorNext:function(a){var b=arguments.length>1?a.next(arguments[1]):a.next();if(!la.TypeIsObject(b))throw new TypeError("bad iterator");return b},IteratorStep:function(a){ var b=la.IteratorNext(a),c=la.IteratorComplete(b);return!c&&b},Construct:function(a,b,c,d){var e="undefined"==typeof c?a:c;if(!d&&ha.construct)return ha.construct(a,b,e);var f=e.prototype;la.TypeIsObject(f)||(f=Object.prototype);var g=w(f),h=la.Call(a,g,b);return la.TypeIsObject(h)?h:g},SpeciesConstructor:function(a,b){var c=a.constructor;if(void 0===c)return b;if(!la.TypeIsObject(c))throw new TypeError("Bad constructor");var d=c[Y];if(ka(d))return b;if(!la.IsConstructor(d))throw new TypeError("Bad @@species");return d},CreateHTML:function(a,b,c,d){var e=la.ToString(a),f="<"+b;if(""!==c){var g=la.ToString(d),h=g.replace(/"/g,""");f+=" "+c+'="'+h+'"'}var i=f+">",j=i+e;return j+""},IsRegExp:function(b){if(!la.TypeIsObject(b))return!1;var c=b[X.match];return"undefined"!=typeof c?!!c:da.regex(b)},ToString:function(b){return ia(b)}};if(l&&fa){var ma=function(b){if(da.symbol(X[b]))return X[b];var c=X.for("Symbol."+b);return Object.defineProperty(X,b,{configurable:!1,enumerable:!1,writable:!1,value:c}),c};if(!da.symbol(X.search)){var na=ma("search"),oa=String.prototype.search;r(RegExp.prototype,na,function(b){return la.Call(oa,b,[this])});var pa=function(b){var c=la.RequireObjectCoercible(this);if(!ka(b)){var d=la.GetMethod(b,na);if("undefined"!=typeof d)return la.Call(d,b,[c])}return la.Call(oa,c,[la.ToString(b)])};ea(String.prototype,"search",pa)}if(!da.symbol(X.replace)){var qa=ma("replace"),ra=String.prototype.replace;r(RegExp.prototype,qa,function(b,c){return la.Call(ra,b,[this,c])});var sa=function(b,c){var d=la.RequireObjectCoercible(this);if(!ka(b)){var e=la.GetMethod(b,qa);if("undefined"!=typeof e)return la.Call(e,b,[d,c])}return la.Call(ra,d,[la.ToString(b),c])};ea(String.prototype,"replace",sa)}if(!da.symbol(X.split)){var ta=ma("split"),ua=String.prototype.split;r(RegExp.prototype,ta,function(b,c){return la.Call(ua,b,[this,c])});var va=function(b,c){var d=la.RequireObjectCoercible(this);if(!ka(b)){var e=la.GetMethod(b,ta);if("undefined"!=typeof e)return la.Call(e,b,[d,c])}return la.Call(ua,d,[la.ToString(b),c])};ea(String.prototype,"split",va)}var wa=da.symbol(X.match),xa=wa&&function(){var a={};return a[X.match]=function(){return 42},42!=="a".match(a)}();if(!wa||xa){var ya=ma("match"),za=String.prototype.match;r(RegExp.prototype,ya,function(b){return la.Call(za,b,[this])});var Aa=function(b){var c=la.RequireObjectCoercible(this);if(!ka(b)){var d=la.GetMethod(b,ya);if("undefined"!=typeof d)return la.Call(d,b,[c])}return la.Call(za,c,[la.ToString(b)])};ea(String.prototype,"match",Aa)}}var Ba=function(b,c,d){v.preserveToString(c,b),Object.setPrototypeOf&&Object.setPrototypeOf(b,c),l?n(Object.getOwnPropertyNames(b),function(a){a in R||d[a]||v.proxy(b,a,c)}):n(Object.keys(b),function(a){a in R||d[a]||(c[a]=b[a])}),c.prototype=b.prototype,v.redefine(b.prototype,"constructor",c)},Ca=function(){return this},Da=function(a){l&&!P(a,Y)&&v.getter(a,Y,Ca)},Ea=function(a,b){var c=b||function(){return this};r(a,ga,c),!a[ga]&&da.symbol(ga)&&(a[ga]=c)},Fa=function(b,c,d){l?Object.defineProperty(b,c,{configurable:!0,enumerable:!0,writable:!0,value:d}):b[c]=d},Ga=function(b,c,d){if(Fa(b,c,d),!la.SameValue(b[c],d))throw new TypeError("property is nonconfigurable")},Ha=function(a,b,c,d){if(!la.TypeIsObject(a))throw new TypeError("Constructor requires `new`: "+b.name);var e=b.prototype;la.TypeIsObject(e)||(e=c);var f=w(e);for(var g in d)if(P(d,g)){var h=d[g];r(f,g,h,!0)}return f};if(String.fromCodePoint&&1!==String.fromCodePoint.length){var Ia=String.fromCodePoint;ea(String,"fromCodePoint",function(b){return la.Call(Ia,this,arguments)})}var Ja={fromCodePoint:function(b){for(var d,c=[],e=0,f=arguments.length;e1114111)throw new RangeError("Invalid code point "+d);d<65536?F(c,String.fromCharCode(d)):(d-=65536,F(c,String.fromCharCode((d>>10)+55296)),F(c,String.fromCharCode(d%1024+56320)))}return c.join("")},raw:function(b){var c=la.ToObject(b,"bad callSite"),d=la.ToObject(c.raw,"bad raw value"),e=d.length,f=la.ToLength(e);if(f<=0)return"";for(var i,j,k,l,g=[],h=0;h=f));)j=h+1=La)throw new RangeError("repeat count must be less than infinity and not overflow maximum string size");return Ka(c,d)},startsWith:function(b){var c=la.ToString(la.RequireObjectCoercible(this));if(la.IsRegExp(b))throw new TypeError('Cannot call method "startsWith" with a regex');var e,d=la.ToString(b);arguments.length>1&&(e=arguments[1]);var f=I(la.ToInteger(e),0);return E(c,f,f+d.length)===d},endsWith:function(b){var c=la.ToString(la.RequireObjectCoercible(this));if(la.IsRegExp(b))throw new TypeError('Cannot call method "endsWith" with a regex');var f,d=la.ToString(b),e=c.length;arguments.length>1&&(f=arguments[1]);var g="undefined"==typeof f?e:la.ToInteger(f),h=J(I(g,0),e);return E(c,h-d.length,h)===d},includes:function(b){if(la.IsRegExp(b))throw new TypeError('"includes" does not accept a RegExp');var d,c=la.ToString(b);return arguments.length>1&&(d=arguments[1]),B(this,c,d)!==-1},codePointAt:function(b){var c=la.ToString(la.RequireObjectCoercible(this)),d=la.ToInteger(b),e=c.length;if(d>=0&&d56319||g)return f;var h=c.charCodeAt(d+1);return h<56320||h>57343?f:1024*(f-55296)+(h-56320)+65536}}};if(String.prototype.includes&&"a".includes("a",1/0)!==!1&&ea(String.prototype,"includes",Ma.includes),String.prototype.startsWith&&String.prototype.endsWith){var Na=h(function(){"/a/".startsWith(/a/)}),Oa=i(function(){return"abc".startsWith("a",1/0)===!1});Na&&Oa||(ea(String.prototype,"startsWith",Ma.startsWith),ea(String.prototype,"endsWith",Ma.endsWith))}if(fa){var Pa=i(function(){var a=/a/;return a[X.match]=!1,"/a/".startsWith(a)});Pa||ea(String.prototype,"startsWith",Ma.startsWith);var Qa=i(function(){var a=/a/;return a[X.match]=!1,"/a/".endsWith(a)});Qa||ea(String.prototype,"endsWith",Ma.endsWith);var Ra=i(function(){var a=/a/;return a[X.match]=!1,"/a/".includes(a)});Ra||ea(String.prototype,"includes",Ma.includes)}s(String.prototype,Ma);var Sa=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),Ta=new RegExp("(^["+Sa+"]+)|(["+Sa+"]+$)","g"),Ua=function(){return la.ToString(la.RequireObjectCoercible(this)).replace(Ta,"")},Va=["…","​","￾"].join(""),Wa=new RegExp("["+Va+"]","g"),Xa=/^[-+]0x[0-9a-f]+$/i,Ya=Va.trim().length!==Va.length;r(String.prototype,"trim",Ua,Ya);var Za=function(a){return{value:a,done:0===arguments.length}},$a=function(a){la.RequireObjectCoercible(a),this._s=la.ToString(a),this._i=0};$a.prototype.next=function(){var a=this._s,b=this._i;if("undefined"==typeof a||b>=a.length)return this._s=void 0,Za();var d,e,c=a.charCodeAt(b);return c<55296||c>56319||b+1===a.length?e=1:(d=a.charCodeAt(b+1),e=d<56320||d>57343?1:2),this._i=b+e,Za(a.substr(b,e))},Ea($a.prototype),Ea(String.prototype,function(){return new $a(this)});var _a={from:function(b){var e,d=this;arguments.length>1&&(e=arguments[1]);var f,g;if("undefined"==typeof e)f=!1;else{if(!la.IsCallable(e))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(g=arguments[2]),f=!0}var i,j,k,h="undefined"!=typeof(ca(b)||la.GetMethod(b,ga));if(h){j=la.IsConstructor(d)?Object(new d):[];var m,n,l=la.GetIterator(b);for(k=0;;){if(m=la.IteratorStep(l),m===!1)break;n=m.value;try{f&&(n="undefined"==typeof g?e(n,k):c(e,g,n,k)),j[k]=n}catch(a){throw la.IteratorClose(l,!0),a}k+=1}i=k}else{var o=la.ToObject(b);i=la.ToLength(o.length),j=la.IsConstructor(d)?Object(new d(i)):new Array(i);var p;for(k=0;k2&&(j=arguments[2]);var k="undefined"==typeof j?e:la.ToInteger(j),l=k<0?I(e+k,0):J(k,e),m=J(l-i,e-h),n=1;for(i0;)i in d?d[h]=d[i]:delete d[h],i+=n,h+=n,m-=1;return d},fill:function(b){var c;arguments.length>1&&(c=arguments[1]);var d;arguments.length>2&&(d=arguments[2]);var e=la.ToObject(this),f=la.ToLength(e.length);c=la.ToInteger("undefined"==typeof c?0:c),d=la.ToInteger("undefined"==typeof d?f:d);for(var g=c<0?I(f+c,0):J(c,f),h=d<0?f+d:d,i=g;i1?arguments[1]:null,g=0;g1?arguments[1]:null,g=0;g1&&"undefined"!=typeof arguments[1]?la.Call(gb,this,arguments):c(gb,this,b)})}var hb=-(Math.pow(2,32)-1),ib=function(a,b){var d={length:hb};return d[b?(d.length>>>0)-1:0]=!0,i(function(){return c(a,d,function(){throw new RangeError("should not reach here")},[]),!0})};if(!ib(Array.prototype.forEach)){var jb=Array.prototype.forEach;ea(Array.prototype,"forEach",function(b){return la.Call(jb,this.length>=0?this:[],arguments)},!0)}if(!ib(Array.prototype.map)){var kb=Array.prototype.map;ea(Array.prototype,"map",function(b){return la.Call(kb,this.length>=0?this:[],arguments)},!0)}if(!ib(Array.prototype.filter)){var lb=Array.prototype.filter;ea(Array.prototype,"filter",function(b){return la.Call(lb,this.length>=0?this:[],arguments)},!0)}if(!ib(Array.prototype.some)){var mb=Array.prototype.some;ea(Array.prototype,"some",function(b){return la.Call(mb,this.length>=0?this:[],arguments)},!0)}if(!ib(Array.prototype.every)){var nb=Array.prototype.every;ea(Array.prototype,"every",function(b){return la.Call(nb,this.length>=0?this:[],arguments)},!0)}if(!ib(Array.prototype.reduce)){var ob=Array.prototype.reduce;ea(Array.prototype,"reduce",function(b){return la.Call(ob,this.length>=0?this:[],arguments)},!0)}if(!ib(Array.prototype.reduceRight,!0)){var pb=Array.prototype.reduceRight;ea(Array.prototype,"reduceRight",function(b){return la.Call(pb,this.length>=0?this:[],arguments)},!0)}var qb=8!==Number("0o10"),rb=2!==Number("0b10"),sb=q(Va,function(a){return 0===Number(a+0+a)});if(qb||rb||sb){var tb=Number,ub=/^0b[01]+$/i,vb=/^0o[0-7]+$/i,wb=ub.test.bind(ub),xb=vb.test.bind(vb),yb=function(a){var b;if("function"==typeof a.valueOf&&(b=a.valueOf(),da.primitive(b)))return b;if("function"==typeof a.toString&&(b=a.toString(),da.primitive(b)))return b;throw new TypeError("No default value")},zb=Wa.test.bind(Wa),Ab=Xa.test.bind(Xa),Bb=function(){var a=function(c){var d;d=arguments.length>0?da.primitive(c)?c:yb(c,"number"):0,"string"==typeof d&&(d=la.Call(Ua,d),wb(d)?d=parseInt(E(d,2),2):xb(d)?d=parseInt(E(d,2),8):(zb(d)||Ab(d))&&(d=NaN));var e=this,f=i(function(){return tb.prototype.valueOf.call(e),!0});return e instanceof a&&!f?new tb(d):tb(d)};return a}();Ba(tb,Bb,{}),s(Bb,{NaN:tb.NaN,MAX_VALUE:tb.MAX_VALUE,MIN_VALUE:tb.MIN_VALUE,NEGATIVE_INFINITY:tb.NEGATIVE_INFINITY,POSITIVE_INFINITY:tb.POSITIVE_INFINITY}),Number=Bb,v.redefine(z,"Number",Bb)}var Cb=Math.pow(2,53)-1;s(Number,{MAX_SAFE_INTEGER:Cb,MIN_SAFE_INTEGER:-Cb,EPSILON:2.220446049250313e-16,parseInt:z.parseInt,parseFloat:z.parseFloat,isFinite:$,isInteger:function(b){return $(b)&&la.ToInteger(b)===b},isSafeInteger:function(b){return Number.isInteger(b)&&L(b)<=Number.MAX_SAFE_INTEGER},isNaN:Z}),r(Number,"parseInt",z.parseInt,Number.parseInt!==z.parseInt),[,1].find(function(a,b){return 0===b})||ea(Array.prototype,"find",bb.find),0!==[,1].findIndex(function(a,b){return 0===b})&&ea(Array.prototype,"findIndex",bb.findIndex);var Db=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable),Eb=function(b,c){l&&Db(b,c)&&Object.defineProperty(b,c,{enumerable:!1})},Fb=function(){for(var b=Number(this),c=arguments.length,d=c-b,e=new Array(d<0?0:d),f=b;f1?NaN:c===-1?-(1/0):1===c?1/0:0===c?c:.5*N((1+c)/(1-c))},cbrt:function(b){var c=Number(b);if(0===c)return c;var e,d=c<0;return d&&(c=-c),c===1/0?e=1/0:(e=M(N(c)/3),e=(c/(e*e)+2*e)/3),d?-e:e},clz32:function(b){var c=Number(b),d=la.ToUint32(c);return 0===d?32:Cc?la.Call(Cc,d):31-K(N(d+.5)*Ac)},cosh:function(b){var c=Number(b);return 0===c?1:Z(c)?NaN:A(c)?(c<0&&(c=-c),c>21?M(c)/2:(M(c)+M(-c))/2):1/0},expm1:function(b){var c=Number(b);if(c===-(1/0))return-1;if(!A(c)||0===c)return c;if(L(c)>.5)return M(c)-1;for(var d=c,e=0,f=1;e+d!==e;)e+=d,f+=1,d*=c/f;return e},hypot:function(b,c){for(var d=0,e=0,f=0;f0?g/e*(g/e):g}return e===1/0?1/0:e*O(d)},log2:function(b){return N(b)*Ac},log10:function(b){return N(b)*Bc},log1p:function(b){var c=Number(b);return c<-1||Z(c)?NaN:0===c||c===1/0?c:c===-1?-(1/0):1+c-1===0?c:c*(N(1+c)/(1+c-1))},sign:_,sinh:function(b){var c=Number(b);return A(c)&&0!==c?L(c)<1?(Math.expm1(c)-Math.expm1(-c))/2:(M(c-1)-M(-c-1))*zc/2:c},tanh:function(b){var c=Number(b);return Z(c)||0===c?c:c>=20?1:c<=-20?-1:(Math.expm1(c)-Math.expm1(-c))/(M(c)+M(-c))},trunc:function(b){var c=Number(b);return c<0?-K(-c):K(c)},imul:function(b,c){var d=la.ToUint32(b),e=la.ToUint32(c),f=d>>>16&65535,g=65535&d,h=e>>>16&65535,i=65535&e;return g*i+(f*i+g*h<<16>>>0)|0},fround:function(b){var c=Number(b);if(0===c||c===1/0||c===-(1/0)||Z(c))return c;var d=_(c),e=L(c);if(exc||Z(g)?d*(1/0):d*g}};s(Math,Dc),r(Math,"log1p",Dc.log1p,Math.log1p(-1e-17)!==-1e-17),r(Math,"asinh",Dc.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7)),r(Math,"tanh",Dc.tanh,Math.tanh(-2e-17)!==-2e-17),r(Math,"acosh",Dc.acosh,Math.acosh(Number.MAX_VALUE)===1/0),r(Math,"cbrt",Dc.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8),r(Math,"sinh",Dc.sinh,Math.sinh(-2e-17)!==-2e-17);var Ec=Math.expm1(10);r(Math,"expm1",Dc.expm1,Ec>22025.465794806718||Ec<22025.465794806718);var Fc=Math.round,Gc=0===Math.round(.5-Number.EPSILON/4)&&1===Math.round(-.5+Number.EPSILON/3.99),Hc=uc+1,Ic=2*uc-1,Jc=[Hc,Ic].every(function(a){return Math.round(a)===a});r(Math,"round",function(b){var c=K(b),d=c===-1?-0:c+1;return b-c<.5?c:d},!Gc||!Jc),v.preserveToString(Math.round,Fc);var Kc=Math.imul;Math.imul(4294967295,5)!==-5&&(Math.imul=Dc.imul,v.preserveToString(Math.imul,Kc)),2!==Math.imul.length&&ea(Math,"imul",function(b,c){return la.Call(Kc,Math,arguments)});var Lc=function(){var b=z.setTimeout;if("function"==typeof b||"object"==typeof b){la.IsPromise=function(a){return!!la.TypeIsObject(a)&&"undefined"!=typeof a._promise};var e,d=function(a){if(!la.IsConstructor(a))throw new TypeError("Bad promise constructor");var b=this,c=function(a,c){if(void 0!==b.resolve||void 0!==b.reject)throw new TypeError("Bad Promise implementation!");b.resolve=a,b.reject=c};if(b.resolve=void 0,b.reject=void 0,b.promise=new a(c),!la.IsCallable(b.resolve)||!la.IsCallable(b.reject))throw new TypeError("Bad promise constructor")};"undefined"!=typeof window&&la.IsCallable(window.postMessage)&&(e=function(){var a=[],b="zero-timeout-message",c=function(c){F(a,c),window.postMessage(b,"*")},d=function(c){if(c.source===window&&c.data===b){if(c.stopPropagation(),0===a.length)return;var d=H(a);d()}};return window.addEventListener("message",d,!0),c});var y,A,f=function(){var a=z.Promise,b=a&&a.resolve&&a.resolve();return b&&function(a){return b.then(a)}},g=la.IsCallable(z.setImmediate)?z.setImmediate:"object"==typeof a&&a.nextTick?a.nextTick:f()||(la.IsCallable(e)?e():function(a){b(a,0)}),h=function(a){return a},i=function(a){throw a},j=0,k=1,l=2,m=0,n=1,o=2,p={},q=function(a,b,c){g(function(){r(a,b,c)})},r=function(a,b,c){var d,e;if(b===p)return a(c);try{d=a(c),e=b.resolve}catch(a){d=a,e=b.reject}e(d)},t=function(a,b){var c=a._promise,d=c.reactionLength;if(d>0&&(q(c.fulfillReactionHandler0,c.reactionCapability0,b),c.fulfillReactionHandler0=void 0,c.rejectReactions0=void 0,c.reactionCapability0=void 0,d>1))for(var e=1,f=0;e0&&(q(c.rejectReactionHandler0,c.reactionCapability0,b),c.fulfillReactionHandler0=void 0,c.rejectReactions0=void 0,c.reactionCapability0=void 0,d>1))for(var e=1,f=0;e2&&arguments[2]===p;g=r&&f===B?p:new d(f);var v,s=la.IsCallable(b)?b:h,t=la.IsCallable(c)?c:i,u=e._promise;if(u.state===j){if(0===u.reactionLength)u.fulfillReactionHandler0=s,u.rejectReactionHandler0=t,u.reactionCapability0=g;else{var w=3*(u.reactionLength-1);u[w+m]=s,u[w+n]=t,u[w+o]=g}u.reactionLength+=1}else if(u.state===k)v=u.result,q(s,g,v);else{if(u.state!==l)throw new TypeError("unexpected Promise state");v=u.result,q(t,g,v)}return g.promise}}),p=new d(B),A=y.then,B}}();if(z.Promise&&(delete z.Promise.accept,delete z.Promise.defer,delete z.Promise.prototype.chain),"function"==typeof Lc){s(z,{Promise:Lc});var Mc=x(z.Promise,function(a){return a.resolve(42).then(function(){})instanceof a}),Nc=!h(function(){z.Promise.reject(42).then(null,5).then(null,R)}),Oc=h(function(){z.Promise.call(3,R)}),Pc=function(a){var b=a.resolve(5);b.constructor={};var c=a.resolve(b);try{c.then(null,R).then(null,R)}catch(a){return!0}return b===c}(z.Promise),Qc=l&&function(){var a=0,b=Object.defineProperty({},"then",{get:function(){a+=1}});return Promise.resolve(b),1===a}(),Rc=function a(b){var c=new Promise(b);b(3,function(){}),this.then=c.then,this.constructor=a};Rc.prototype=Promise.prototype,Rc.all=Promise.all;var Sc=i(function(){return!!Rc.all([1,2])});if(Mc&&Nc&&Oc&&!Pc&&Qc&&!Sc||(Promise=Lc,ea(z,"Promise",Lc)),1!==Promise.all.length){var Tc=Promise.all;ea(Promise,"all",function(b){return la.Call(Tc,this,arguments)})}if(1!==Promise.race.length){var Uc=Promise.race;ea(Promise,"race",function(b){return la.Call(Uc,this,arguments)})}if(1!==Promise.resolve.length){var Vc=Promise.resolve;ea(Promise,"resolve",function(b){return la.Call(Vc,this,arguments)})}if(1!==Promise.reject.length){var Wc=Promise.reject;ea(Promise,"reject",function(b){return la.Call(Wc,this,arguments)})}Eb(Promise,"all"),Eb(Promise,"race"),Eb(Promise,"resolve"),Eb(Promise,"reject"),Da(Promise)}var Xc=function(a){var b=f(o(a,function(a,b){return a[b]=!0,a},{}));return a.join(":")===b.join(":")},Yc=Xc(["z","a","bb"]),Zc=Xc(["z",1,"a","3",2]);if(l){var $c=function(b,c){return c||Yc?ka(b)?"^"+la.ToString(b):"string"==typeof b?"$"+b:"number"==typeof b?Zc?b:"n"+b:"boolean"==typeof b?"b"+b:null:null},_c=function(){return Object.create?Object.create(null):{}},ad=function(b,d,f){if(e(f)||da.string(f))n(f,function(a){if(!la.TypeIsObject(a))throw new TypeError("Iterator value "+a+" is not an entry object");d.set(a[0],a[1])});else if(f instanceof b)c(b.prototype.forEach,f,function(a,b){d.set(b,a)});else{var g,h;if(!ka(f)){if(h=d.set,!la.IsCallable(h))throw new TypeError("bad map");g=la.GetIterator(f)}if("undefined"!=typeof g)for(;;){var i=la.IteratorStep(g);if(i===!1)break;var j=i.value;try{if(!la.TypeIsObject(j))throw new TypeError("Iterator value "+j+" is not an entry object");c(h,d,j[0],j[1])}catch(a){throw la.IteratorClose(g,!0),a}}}},bd=function(b,d,f){if(e(f)||da.string(f))n(f,function(a){d.add(a)});else if(f instanceof b)c(b.prototype.forEach,f,function(a){d.add(a)});else{var g,h;if(!ka(f)){if(h=d.add,!la.IsCallable(h))throw new TypeError("bad set");g=la.GetIterator(f)}if("undefined"!=typeof g)for(;;){var i=la.IteratorStep(g);if(i===!1)break;var j=i.value;try{c(h,d,j)}catch(a){throw la.IteratorClose(g,!0),a}}}},cd={Map:function(){var a={},b=function(b,c){this.key=b,this.value=c,this.next=null,this.prev=null};b.prototype.isRemoved=function(){return this.key===a};var d=function(b){return!!b._es6map},e=function(b,c){if(!la.TypeIsObject(b)||!d(b))throw new TypeError("Method Map.prototype."+c+" called on incompatible receiver "+la.ToString(b))},f=function(b,c){e(b,"[[MapIterator]]"),this.head=b._head,this.i=this.head,this.kind=c};f.prototype={next:function(){var b=this.i,c=this.kind,d=this.head;if("undefined"==typeof this.i)return Za();for(;b.isRemoved()&&b!==d;)b=b.prev;for(var e;b.next!==d;)if(b=b.next,!b.isRemoved())return e="key"===c?b.key:"value"===c?b.value:[b.key,b.value],this.i=b,Za(e);return this.i=void 0,Za()}},Ea(f.prototype);var g,h=function a(){if(!(this instanceof a))throw new TypeError('Constructor Map requires "new"');if(this&&this._es6map)throw new TypeError("Bad construction");var c=Ha(this,a,g,{_es6map:!0,_head:null,_map:S?new S:null,_size:0,_storage:_c()}),d=new b(null,null);return d.next=d.prev=d,c._head=d,arguments.length>0&&ad(a,c,arguments[0]), -c};return g=h.prototype,v.getter(g,"size",function(){if("undefined"==typeof this._size)throw new TypeError("size method called on incompatible Map");return this._size}),s(g,{get:function(b){e(this,"get");var c,d=$c(b,!0);if(null!==d)return c=this._storage[d],c?c.value:void 0;if(this._map)return c=U.call(this._map,b),c?c.value:void 0;for(var f=this._head,g=f;(g=g.next)!==f;)if(la.SameValueZero(g.key,b))return g.value},has:function(b){e(this,"has");var c=$c(b,!0);if(null!==c)return"undefined"!=typeof this._storage[c];if(this._map)return V.call(this._map,b);for(var d=this._head,f=d;(f=f.next)!==d;)if(la.SameValueZero(f.key,b))return!0;return!1},set:function(c,d){e(this,"set");var h,f=this._head,g=f,i=$c(c,!0);if(null!==i){if("undefined"!=typeof this._storage[i])return this._storage[i].value=d,this;h=this._storage[i]=new b(c,d),g=f.prev}else this._map&&(V.call(this._map,c)?U.call(this._map,c).value=d:(h=new b(c,d),W.call(this._map,c,h),g=f.prev));for(;(g=g.next)!==f;)if(la.SameValueZero(g.key,c))return g.value=d,this;return h=h||new b(c,d),la.SameValue(-0,c)&&(h.key=0),h.next=this._head,h.prev=this._head.prev,h.prev.next=h,h.next.prev=h,this._size+=1,this},delete:function(b){e(this,"delete");var c=this._head,d=c,f=$c(b,!0);if(null!==f){if("undefined"==typeof this._storage[f])return!1;d=this._storage[f].prev,delete this._storage[f]}else if(this._map){if(!V.call(this._map,b))return!1;d=U.call(this._map,b).prev,T.call(this._map,b)}for(;(d=d.next)!==c;)if(la.SameValueZero(d.key,b))return d.key=d.value=a,d.prev.next=d.next,d.next.prev=d.prev,this._size-=1,!0;return!1},clear:function(){e(this,"clear"),this._map=S?new S:null,this._size=0,this._storage=_c();for(var c=this._head,d=c,f=d.next;(d=f)!==c;)d.key=d.value=a,f=d.next,d.next=d.prev=c;c.next=c.prev=c},keys:function(){return e(this,"keys"),new f(this,"key")},values:function(){return e(this,"values"),new f(this,"value")},entries:function(){return e(this,"entries"),new f(this,"key+value")},forEach:function(b){e(this,"forEach");for(var d=arguments.length>1?arguments[1]:null,f=this.entries(),g=f.next();!g.done;g=f.next())d?c(b,d,g.value[1],g.value[0],this):b(g.value[1],g.value[0],this)}}),Ea(g,g.entries),h}(),Set:function(){var d,a=function(b){return b._es6set&&"undefined"!=typeof b._storage},b=function(c,d){if(!la.TypeIsObject(c)||!a(c))throw new TypeError("Set.prototype."+d+" called on incompatible receiver "+la.ToString(c))},e=function a(){if(!(this instanceof a))throw new TypeError('Constructor Set requires "new"');if(this&&this._es6set)throw new TypeError("Bad construction");var b=Ha(this,a,d,{_es6set:!0,"[[SetData]]":null,_storage:_c()});if(!b._es6set)throw new TypeError("bad set");return arguments.length>0&&bd(a,b,arguments[0]),b};d=e.prototype;var g=function(a){var b=a;if("^null"===b)return null;if("^undefined"!==b){var c=b.charAt(0);return"$"===c?E(b,1):"n"===c?+E(b,1):"b"===c?"btrue"===b:+b}},h=function(b){if(!b["[[SetData]]"]){var c=b["[[SetData]]"]=new cd.Map;n(f(b._storage),function(a){var b=g(a);c.set(b,b)}),b["[[SetData]]"]=c}b._storage=null};return v.getter(e.prototype,"size",function(){return b(this,"size"),this._storage?f(this._storage).length:(h(this),this["[[SetData]]"].size)}),s(e.prototype,{has:function(c){b(this,"has");var d;return this._storage&&null!==(d=$c(c))?!!this._storage[d]:(h(this),this["[[SetData]]"].has(c))},add:function(c){b(this,"add");var d;return this._storage&&null!==(d=$c(c))?(this._storage[d]=!0,this):(h(this),this["[[SetData]]"].set(c,c),this)},delete:function(a){b(this,"delete");var c;if(this._storage&&null!==(c=$c(a))){var d=P(this._storage,c);return delete this._storage[c]&&d}return h(this),this["[[SetData]]"].delete(a)},clear:function(){b(this,"clear"),this._storage&&(this._storage=_c()),this["[[SetData]]"]&&this["[[SetData]]"].clear()},values:function(){return b(this,"values"),h(this),this["[[SetData]]"].values()},entries:function(){return b(this,"entries"),h(this),this["[[SetData]]"].entries()},forEach:function(d){b(this,"forEach");var e=arguments.length>1?arguments[1]:null,f=this;h(f),this["[[SetData]]"].forEach(function(a,b){e?c(d,e,b,b,f):d(b,b,f)})}}),r(e.prototype,"keys",e.prototype.values,!0),Ea(e.prototype,e.prototype.values),e}()};if(z.Map||z.Set){var dd=i(function(){return 2===new Map([[1,2]]).get(1)});dd||(z.Map=function a(){if(!(this instanceof a))throw new TypeError('Constructor Map requires "new"');var b=new S;return arguments.length>0&&ad(a,b,arguments[0]),delete b.constructor,Object.setPrototypeOf(b,z.Map.prototype),b},z.Map.prototype=w(S.prototype),r(z.Map.prototype,"constructor",z.Map,!0),v.preserveToString(z.Map,S));var ed=new Map,fd=function(){var a=new Map([[1,0],[2,0],[3,0],[4,0]]);return a.set(-0,a),a.get(0)===a&&a.get(-0)===a&&a.has(0)&&a.has(-0)}(),gd=ed.set(1,2)===ed;fd&&gd||ea(Map.prototype,"set",function(b,d){return c(W,this,0===b?0:b,d),this}),fd||(s(Map.prototype,{get:function(b){return c(U,this,0===b?0:b)},has:function(b){return c(V,this,0===b?0:b)}},!0),v.preserveToString(Map.prototype.get,U),v.preserveToString(Map.prototype.has,V));var hd=new Set,id=function(a){return a.delete(0),a.add(-0),!a.has(0)}(hd),jd=hd.add(1)===hd;if(!id||!jd){var kd=Set.prototype.add;Set.prototype.add=function(b){return c(kd,this,0===b?0:b),this},v.preserveToString(Set.prototype.add,kd)}if(!id){var ld=Set.prototype.has;Set.prototype.has=function(b){return c(ld,this,0===b?0:b)},v.preserveToString(Set.prototype.has,ld);var md=Set.prototype.delete;Set.prototype.delete=function(b){return c(md,this,0===b?0:b)},v.preserveToString(Set.prototype.delete,md)}var nd=x(z.Map,function(a){var b=new a([]);return b.set(42,42),b instanceof a}),od=Object.setPrototypeOf&&!nd,pd=function(){try{return!(z.Map()instanceof z.Map)}catch(a){return a instanceof TypeError}}();0===z.Map.length&&!od&&pd||(z.Map=function a(){if(!(this instanceof a))throw new TypeError('Constructor Map requires "new"');var b=new S;return arguments.length>0&&ad(a,b,arguments[0]),delete b.constructor,Object.setPrototypeOf(b,a.prototype),b},z.Map.prototype=S.prototype,r(z.Map.prototype,"constructor",z.Map,!0),v.preserveToString(z.Map,S));var qd=x(z.Set,function(a){var b=new a([]);return b.add(42,42),b instanceof a}),rd=Object.setPrototypeOf&&!qd,sd=function(){try{return!(z.Set()instanceof z.Set)}catch(a){return a instanceof TypeError}}();if(0!==z.Set.length||rd||!sd){var td=z.Set;z.Set=function a(){if(!(this instanceof a))throw new TypeError('Constructor Set requires "new"');var b=new td;return arguments.length>0&&bd(a,b,arguments[0]),delete b.constructor,Object.setPrototypeOf(b,a.prototype),b},z.Set.prototype=td.prototype,r(z.Set.prototype,"constructor",z.Set,!0),v.preserveToString(z.Set,td)}var ud=new z.Map,vd=!i(function(){return ud.keys().next().done});if(("function"!=typeof z.Map.prototype.clear||0!==(new z.Set).size||0!==ud.size||"function"!=typeof z.Map.prototype.keys||"function"!=typeof z.Set.prototype.keys||"function"!=typeof z.Map.prototype.forEach||"function"!=typeof z.Set.prototype.forEach||j(z.Map)||j(z.Set)||"function"!=typeof ud.keys().next||vd||!nd)&&s(z,{Map:cd.Map,Set:cd.Set},!0),z.Set.prototype.keys!==z.Set.prototype.values&&r(z.Set.prototype,"keys",z.Set.prototype.values,!0),Ea(Object.getPrototypeOf((new z.Map).keys())),Ea(Object.getPrototypeOf((new z.Set).keys())),m&&"has"!==z.Set.prototype.has.name){var wd=z.Set.prototype.has;ea(z.Set.prototype,"has",function(b){return c(wd,this,b)})}}s(z,cd),Da(z.Map),Da(z.Set)}var xd=function(b){if(!la.TypeIsObject(b))throw new TypeError("target must be an object")},yd={apply:function(){return la.Call(la.Call,null,arguments)},construct:function(b,c){if(!la.IsConstructor(b))throw new TypeError("First argument must be a constructor.");var d=arguments.length>2?arguments[2]:b;if(!la.IsConstructor(d))throw new TypeError("new.target must be a constructor.");return la.Construct(b,c,d,"internal")},deleteProperty:function(b,c){if(xd(b),l){var d=Object.getOwnPropertyDescriptor(b,c);if(d&&!d.configurable)return!1}return delete b[c]},has:function(b,c){return xd(b),c in b}};Object.getOwnPropertyNames&&Object.assign(yd,{ownKeys:function(b){xd(b);var c=Object.getOwnPropertyNames(b);return la.IsCallable(Object.getOwnPropertySymbols)&&G(c,Object.getOwnPropertySymbols(b)),c}});var zd=function(b){return!h(b)};if(Object.preventExtensions&&Object.assign(yd,{isExtensible:function(b){return xd(b),Object.isExtensible(b)},preventExtensions:function(b){return xd(b),zd(function(){Object.preventExtensions(b)})}}),l){var Ad=function(b,c,d){var e=Object.getOwnPropertyDescriptor(b,c);if(!e){var f=Object.getPrototypeOf(b);if(null===f)return;return Ad(f,c,d)}return"value"in e?e.value:e.get?la.Call(e.get,d):void 0},Bd=function(b,d,e,f){var g=Object.getOwnPropertyDescriptor(b,d);if(!g){var h=Object.getPrototypeOf(b);if(null!==h)return Bd(h,d,e,f);g={value:void 0,writable:!0,enumerable:!0,configurable:!0}}if("value"in g){if(!g.writable)return!1;if(!la.TypeIsObject(f))return!1;var i=Object.getOwnPropertyDescriptor(f,d);return i?ha.defineProperty(f,d,{value:e}):ha.defineProperty(f,d,{value:e,writable:!0,enumerable:!0,configurable:!0})}return!!g.set&&(c(g.set,f,e),!0)};Object.assign(yd,{defineProperty:function(b,c,d){return xd(b),zd(function(){Object.defineProperty(b,c,d)})},getOwnPropertyDescriptor:function(b,c){return xd(b),Object.getOwnPropertyDescriptor(b,c)},get:function(b,c){xd(b);var d=arguments.length>2?arguments[2]:b;return Ad(b,c,d)},set:function(b,c,d){xd(b);var e=arguments.length>3?arguments[3]:b;return Bd(b,c,d,e)}})}if(Object.getPrototypeOf){var Cd=Object.getPrototypeOf;yd.getPrototypeOf=function(b){return xd(b),Cd(b)}}if(Object.setPrototypeOf&&yd.getPrototypeOf){var Dd=function(a,b){for(var c=b;c;){if(a===c)return!0;c=yd.getPrototypeOf(c)}return!1};Object.assign(yd,{setPrototypeOf:function(b,c){if(xd(b),null!==c&&!la.TypeIsObject(c))throw new TypeError("proto must be an object or null");return c===ha.getPrototypeOf(b)||!(ha.isExtensible&&!ha.isExtensible(b))&&(!Dd(b,c)&&(Object.setPrototypeOf(b,c),!0))}})}var Ed=function(a,b){if(la.IsCallable(z.Reflect[a])){var c=i(function(){return z.Reflect[a](1),z.Reflect[a](NaN),z.Reflect[a](!0),!0});c&&ea(z.Reflect,a,b)}else r(z.Reflect,a,b)};Object.keys(yd).forEach(function(a){Ed(a,yd[a])});var Fd=z.Reflect.getPrototypeOf;if(m&&Fd&&"getPrototypeOf"!==Fd.name&&ea(z.Reflect,"getPrototypeOf",function(b){return c(Fd,z.Reflect,b)}),z.Reflect.setPrototypeOf&&i(function(){return z.Reflect.setPrototypeOf(1,{}),!0})&&ea(z.Reflect,"setPrototypeOf",yd.setPrototypeOf),z.Reflect.defineProperty&&(i(function(){var a=!z.Reflect.defineProperty(1,"test",{value:1}),b="function"!=typeof Object.preventExtensions||!z.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return a&&b})||ea(z.Reflect,"defineProperty",yd.defineProperty)),z.Reflect.construct&&(i(function(){var a=function(){};return z.Reflect.construct(function(){},[],a)instanceof a})||ea(z.Reflect,"construct",yd.construct)),"Invalid Date"!==String(new Date(NaN))){var Gd=Date.prototype.toString,Hd=function(){var b=+this;return b!==b?"Invalid Date":la.Call(Gd,this)};ea(Date.prototype,"toString",Hd)}var Id={anchor:function(b){return la.CreateHTML(this,"a","name",b)},big:function(){return la.CreateHTML(this,"big","","")},blink:function(){return la.CreateHTML(this,"blink","","")},bold:function(){return la.CreateHTML(this,"b","","")},fixed:function(){return la.CreateHTML(this,"tt","","")},fontcolor:function(b){return la.CreateHTML(this,"font","color",b)},fontsize:function(b){return la.CreateHTML(this,"font","size",b)},italics:function(){return la.CreateHTML(this,"i","","")},link:function(b){return la.CreateHTML(this,"a","href",b)},small:function(){return la.CreateHTML(this,"small","","")},strike:function(){return la.CreateHTML(this,"strike","","")},sub:function(){return la.CreateHTML(this,"sub","","")},sup:function(){return la.CreateHTML(this,"sup","","")}};n(Object.keys(Id),function(a){var b=String.prototype[a],d=!1;if(la.IsCallable(b)){var e=c(b,"",' " '),f=D([],e.match(/"/g)).length;d=e!==e.toLowerCase()||f>2}else d=!0;d&&ea(String.prototype,a,Id[a])});var Jd=function(){if(!fa)return!1;var a="object"==typeof JSON&&"function"==typeof JSON.stringify?JSON.stringify:null;if(!a)return!1;if("undefined"!=typeof a(X()))return!0;if("[null]"!==a([X()]))return!0;var b={a:X()};return b[X()]=!0,"{}"!==a(b)}(),Kd=i(function(){return!fa||"{}"===JSON.stringify(Object(X()))&&"[{}]"===JSON.stringify([Object(X())])});if(Jd||!Kd){var Ld=JSON.stringify;ea(JSON,"stringify",function(b){if("symbol"!=typeof b){var d;arguments.length>1&&(d=arguments[1]);var f=[b];if(e(d))f.push(d);else{var g=la.IsCallable(d)?d:null,h=function(a,b){var d=g?c(g,this,a,b):b;if("symbol"!=typeof d)return da.symbol(d)?Gb({})(d):d};f.push(h)}return arguments.length>2&&f.push(arguments[2]),Ld.apply(this,f)}})}return z})}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:16}],47:[function(a,b,c){function e(a,b,c){var d=document.getElementById("script-"+a);null!=d&&d.parentElement.removeChild(d),d=document.createElement("script"),d.type="text/javascript",d.setAttribute("id","script-"+a),d.readyState?d.onreadystatechange=function(){"loaded"!=d.readyState&&"complete"!=d.readyState||(d.onreadystatechange=null,c())}:d.onload=function(){c()},d.src=b,document.getElementsByTagName("head")[0].appendChild(d)}function f(a,b){delete window.Module,window.Module=void 0;var c="https://ethereum.github.io/solc-bin/bin/"+a;e("solc",c,function(){var a=d(window.Module);b(a)})}function g(a){var b="https://ethereum.github.io/solc-bin/bin/list.js";e("solc-list",b,function(){a(soljsonSources,soljsonReleases)})}a("es6-shim");var d=a("solc/wrapper");b.exports={getVersions:g,loadVersion:f}},{"es6-shim":46,"solc/wrapper":51}],48:[function(a,b,c){a("es6-shim");var d=a("./browser-solc"),e=function(a){var b=function(){return document.attachEvent&&"undefined"!=typeof document.attachEvent?"ie":"not-ie"};return a=function(a){a&&"function"==typeof a?"ie"!==b()?document.addEventListener("DOMContentLoaded",function(){return a()}):document.attachEvent("onreadystatechange",function(){if("complete"===document.readyState)return a()}):console.error("The callback is not a function!")}}(e||{});!function(a,b,c,e){c(function(){b.BrowserSolc=d})}(document,window,e)},{"./browser-solc":47,"es6-shim":46}],49:[function(a,b,c){(function(c){"use strict";function g(a,b){return this instanceof g?(g.super_.call(this,b),void this.init(a,b)):new g(a,b)}function h(a,b){return this instanceof h?(h.super_.call(this,b),void this.init(a,b)):new h(a,b)}function i(a,b){return this instanceof i?(i.super_.call(this,b),void this.init(a,b)):new i(a,b)}function j(a,b){if(!(this instanceof j))return new j(a,b);b=b||{};var c=!b.hasOwnProperty("readable")||b.readable,d=!b.hasOwnProperty("writable")||b.writable;if(c&&d)return new i(a,b);if(c)return new g(a,b);if(d)return new h(a,b);throw new Error("Unknown stream type Readable, Writable or Duplex ")}var d=a("stream"),e=a("util"),f=a("string_decoder").StringDecoder;e.inherits(g,d.Readable),e.inherits(h,d.Writable),e.inherits(i,d.Duplex),g.prototype.init=h.prototype.init=i.prototype.init=function(b,d){var e=this;this.queue=[],b&&(Array.isArray(b)||(b=[b]),b.forEach(function(a){a instanceof c||(a=new c(a)),e.queue.push(a)})),d=d||{},this.maxbufsize=d.hasOwnProperty("maxbufsize")?d.maxbufsize:null,this.bufoverflow=d.hasOwnProperty("bufoverflow")?d.bufoverflow:null,this.frequence=d.hasOwnProperty("frequence")?d.frequence:null},j.createReadStream=function(a,b){return b=b||{},b.readable=!0,b.writable=!1,new j(a,b)},j.createWriteStream=function(a,b){return b=b||{},b.readable=!1,b.writable=!0,new j(a,b)},g.prototype._read=i.prototype._read=function(b){var c=this,e=c.frequence||0,f=this instanceof d.Duplex&&!this._writableState.finished;this.queue.length||f?this.queue.length&&setTimeout(function(){if(c.queue.length){var a=c.queue.shift();a&&!c._readableState.ended&&(c.push(a)||c.queue.unshift(a))}},e):this.push(null)},h.prototype._write=i.prototype._write=function(b,c,e){var g=null;try{g=this.decodeStrings&&c?new f(c):null}catch(a){return e(a)}var h=g?g.write(b):b,i=this._getQueueSize(),j=h.length;if(this.maxbufsize&&i+j>this.maxbufsize)return this.bufoverflow?e("Buffer overflowed ("+this.bufoverflow+"/"+i+")"):e();if(this instanceof d.Duplex){for(;this.queue.length;)this.push(this.queue.shift());this.push(h)}else this.queue.push(h);e()},i.prototype.end=function(a,b,c){var d=this;return i.super_.prototype.end.call(this,a,b,function(){d.push(null),c&&c()})},g.prototype._getQueueSize=h.prototype._getQueueSize=i.prototype._getQueueSize=function(){var b,a=0;for(b=0;b42)throw new Error("Invalid address specified for "+c);for(f=f.slice(2),f=Array(40-f.length+1).join("0")+f;a.indexOf(e)>=0;)a=a.replace(e,f)}return a},o=b.cwrap("version","string",[]);return{version:o,compile:m,linkBytecode:n,supportsMulti:null!==h,supportsImportCallback:null!==i,useVersion:function(b){return g(a("./bin/soljson-"+b+".js"))},loadRemoteVersion:function(a,b){var c=new f(null,{readable:!1}),h="https://ethereum.github.io/solc-bin/bin/soljson-"+a+".js";e.get(h,function(a){200!==a.statusCode?b("Error retrieving binary: "+a.statusMessage):(a.pipe(c),a.on("end",function(){b(null,g(d(c.toString())))}))}).on("error",function(a){b(a)})},setupMethods:g}}var d=a("require-from-string"),e=a("https"),f=a("memorystream");b.exports=g},{https:9,memorystream:49,"require-from-string":50}]},{},[48]); \ No newline at end of file +c};return g=h.prototype,v.getter(g,"size",function(){if("undefined"==typeof this._size)throw new TypeError("size method called on incompatible Map");return this._size}),s(g,{get:function(b){e(this,"get");var c,d=$c(b,!0);if(null!==d)return c=this._storage[d],c?c.value:void 0;if(this._map)return c=U.call(this._map,b),c?c.value:void 0;for(var f=this._head,g=f;(g=g.next)!==f;)if(la.SameValueZero(g.key,b))return g.value},has:function(b){e(this,"has");var c=$c(b,!0);if(null!==c)return"undefined"!=typeof this._storage[c];if(this._map)return V.call(this._map,b);for(var d=this._head,f=d;(f=f.next)!==d;)if(la.SameValueZero(f.key,b))return!0;return!1},set:function(c,d){e(this,"set");var h,f=this._head,g=f,i=$c(c,!0);if(null!==i){if("undefined"!=typeof this._storage[i])return this._storage[i].value=d,this;h=this._storage[i]=new b(c,d),g=f.prev}else this._map&&(V.call(this._map,c)?U.call(this._map,c).value=d:(h=new b(c,d),W.call(this._map,c,h),g=f.prev));for(;(g=g.next)!==f;)if(la.SameValueZero(g.key,c))return g.value=d,this;return h=h||new b(c,d),la.SameValue(-0,c)&&(h.key=0),h.next=this._head,h.prev=this._head.prev,h.prev.next=h,h.next.prev=h,this._size+=1,this},delete:function(b){e(this,"delete");var c=this._head,d=c,f=$c(b,!0);if(null!==f){if("undefined"==typeof this._storage[f])return!1;d=this._storage[f].prev,delete this._storage[f]}else if(this._map){if(!V.call(this._map,b))return!1;d=U.call(this._map,b).prev,T.call(this._map,b)}for(;(d=d.next)!==c;)if(la.SameValueZero(d.key,b))return d.key=d.value=a,d.prev.next=d.next,d.next.prev=d.prev,this._size-=1,!0;return!1},clear:function(){e(this,"clear"),this._map=S?new S:null,this._size=0,this._storage=_c();for(var c=this._head,d=c,f=d.next;(d=f)!==c;)d.key=d.value=a,f=d.next,d.next=d.prev=c;c.next=c.prev=c},keys:function(){return e(this,"keys"),new f(this,"key")},values:function(){return e(this,"values"),new f(this,"value")},entries:function(){return e(this,"entries"),new f(this,"key+value")},forEach:function(b){e(this,"forEach");for(var d=arguments.length>1?arguments[1]:null,f=this.entries(),g=f.next();!g.done;g=f.next())d?c(b,d,g.value[1],g.value[0],this):b(g.value[1],g.value[0],this)}}),Ea(g,g.entries),h}(),Set:function(){var d,a=function(b){return b._es6set&&"undefined"!=typeof b._storage},b=function(c,d){if(!la.TypeIsObject(c)||!a(c))throw new TypeError("Set.prototype."+d+" called on incompatible receiver "+la.ToString(c))},e=function a(){if(!(this instanceof a))throw new TypeError('Constructor Set requires "new"');if(this&&this._es6set)throw new TypeError("Bad construction");var b=Ha(this,a,d,{_es6set:!0,"[[SetData]]":null,_storage:_c()});if(!b._es6set)throw new TypeError("bad set");return arguments.length>0&&bd(a,b,arguments[0]),b};d=e.prototype;var g=function(a){var b=a;if("^null"===b)return null;if("^undefined"!==b){var c=b.charAt(0);return"$"===c?E(b,1):"n"===c?+E(b,1):"b"===c?"btrue"===b:+b}},h=function(b){if(!b["[[SetData]]"]){var c=b["[[SetData]]"]=new cd.Map;n(f(b._storage),function(a){var b=g(a);c.set(b,b)}),b["[[SetData]]"]=c}b._storage=null};return v.getter(e.prototype,"size",function(){return b(this,"size"),this._storage?f(this._storage).length:(h(this),this["[[SetData]]"].size)}),s(e.prototype,{has:function(c){b(this,"has");var d;return this._storage&&null!==(d=$c(c))?!!this._storage[d]:(h(this),this["[[SetData]]"].has(c))},add:function(c){b(this,"add");var d;return this._storage&&null!==(d=$c(c))?(this._storage[d]=!0,this):(h(this),this["[[SetData]]"].set(c,c),this)},delete:function(a){b(this,"delete");var c;if(this._storage&&null!==(c=$c(a))){var d=P(this._storage,c);return delete this._storage[c]&&d}return h(this),this["[[SetData]]"].delete(a)},clear:function(){b(this,"clear"),this._storage&&(this._storage=_c()),this["[[SetData]]"]&&this["[[SetData]]"].clear()},values:function(){return b(this,"values"),h(this),this["[[SetData]]"].values()},entries:function(){return b(this,"entries"),h(this),this["[[SetData]]"].entries()},forEach:function(d){b(this,"forEach");var e=arguments.length>1?arguments[1]:null,f=this;h(f),this["[[SetData]]"].forEach(function(a,b){e?c(d,e,b,b,f):d(b,b,f)})}}),r(e.prototype,"keys",e.prototype.values,!0),Ea(e.prototype,e.prototype.values),e}()};if(z.Map||z.Set){var dd=i(function(){return 2===new Map([[1,2]]).get(1)});dd||(z.Map=function a(){if(!(this instanceof a))throw new TypeError('Constructor Map requires "new"');var b=new S;return arguments.length>0&&ad(a,b,arguments[0]),delete b.constructor,Object.setPrototypeOf(b,z.Map.prototype),b},z.Map.prototype=w(S.prototype),r(z.Map.prototype,"constructor",z.Map,!0),v.preserveToString(z.Map,S));var ed=new Map,fd=function(){var a=new Map([[1,0],[2,0],[3,0],[4,0]]);return a.set(-0,a),a.get(0)===a&&a.get(-0)===a&&a.has(0)&&a.has(-0)}(),gd=ed.set(1,2)===ed;fd&&gd||ea(Map.prototype,"set",function(b,d){return c(W,this,0===b?0:b,d),this}),fd||(s(Map.prototype,{get:function(b){return c(U,this,0===b?0:b)},has:function(b){return c(V,this,0===b?0:b)}},!0),v.preserveToString(Map.prototype.get,U),v.preserveToString(Map.prototype.has,V));var hd=new Set,id=function(a){return a.delete(0),a.add(-0),!a.has(0)}(hd),jd=hd.add(1)===hd;if(!id||!jd){var kd=Set.prototype.add;Set.prototype.add=function(b){return c(kd,this,0===b?0:b),this},v.preserveToString(Set.prototype.add,kd)}if(!id){var ld=Set.prototype.has;Set.prototype.has=function(b){return c(ld,this,0===b?0:b)},v.preserveToString(Set.prototype.has,ld);var md=Set.prototype.delete;Set.prototype.delete=function(b){return c(md,this,0===b?0:b)},v.preserveToString(Set.prototype.delete,md)}var nd=x(z.Map,function(a){var b=new a([]);return b.set(42,42),b instanceof a}),od=Object.setPrototypeOf&&!nd,pd=function(){try{return!(z.Map()instanceof z.Map)}catch(a){return a instanceof TypeError}}();0===z.Map.length&&!od&&pd||(z.Map=function a(){if(!(this instanceof a))throw new TypeError('Constructor Map requires "new"');var b=new S;return arguments.length>0&&ad(a,b,arguments[0]),delete b.constructor,Object.setPrototypeOf(b,a.prototype),b},z.Map.prototype=S.prototype,r(z.Map.prototype,"constructor",z.Map,!0),v.preserveToString(z.Map,S));var qd=x(z.Set,function(a){var b=new a([]);return b.add(42,42),b instanceof a}),rd=Object.setPrototypeOf&&!qd,sd=function(){try{return!(z.Set()instanceof z.Set)}catch(a){return a instanceof TypeError}}();if(0!==z.Set.length||rd||!sd){var td=z.Set;z.Set=function a(){if(!(this instanceof a))throw new TypeError('Constructor Set requires "new"');var b=new td;return arguments.length>0&&bd(a,b,arguments[0]),delete b.constructor,Object.setPrototypeOf(b,a.prototype),b},z.Set.prototype=td.prototype,r(z.Set.prototype,"constructor",z.Set,!0),v.preserveToString(z.Set,td)}var ud=new z.Map,vd=!i(function(){return ud.keys().next().done});if(("function"!=typeof z.Map.prototype.clear||0!==(new z.Set).size||0!==ud.size||"function"!=typeof z.Map.prototype.keys||"function"!=typeof z.Set.prototype.keys||"function"!=typeof z.Map.prototype.forEach||"function"!=typeof z.Set.prototype.forEach||j(z.Map)||j(z.Set)||"function"!=typeof ud.keys().next||vd||!nd)&&s(z,{Map:cd.Map,Set:cd.Set},!0),z.Set.prototype.keys!==z.Set.prototype.values&&r(z.Set.prototype,"keys",z.Set.prototype.values,!0),Ea(Object.getPrototypeOf((new z.Map).keys())),Ea(Object.getPrototypeOf((new z.Set).keys())),m&&"has"!==z.Set.prototype.has.name){var wd=z.Set.prototype.has;ea(z.Set.prototype,"has",function(b){return c(wd,this,b)})}}s(z,cd),Da(z.Map),Da(z.Set)}var xd=function(b){if(!la.TypeIsObject(b))throw new TypeError("target must be an object")},yd={apply:function(){return la.Call(la.Call,null,arguments)},construct:function(b,c){if(!la.IsConstructor(b))throw new TypeError("First argument must be a constructor.");var d=arguments.length>2?arguments[2]:b;if(!la.IsConstructor(d))throw new TypeError("new.target must be a constructor.");return la.Construct(b,c,d,"internal")},deleteProperty:function(b,c){if(xd(b),l){var d=Object.getOwnPropertyDescriptor(b,c);if(d&&!d.configurable)return!1}return delete b[c]},has:function(b,c){return xd(b),c in b}};Object.getOwnPropertyNames&&Object.assign(yd,{ownKeys:function(b){xd(b);var c=Object.getOwnPropertyNames(b);return la.IsCallable(Object.getOwnPropertySymbols)&&G(c,Object.getOwnPropertySymbols(b)),c}});var zd=function(b){return!h(b)};if(Object.preventExtensions&&Object.assign(yd,{isExtensible:function(b){return xd(b),Object.isExtensible(b)},preventExtensions:function(b){return xd(b),zd(function(){Object.preventExtensions(b)})}}),l){var Ad=function(b,c,d){var e=Object.getOwnPropertyDescriptor(b,c);if(!e){var f=Object.getPrototypeOf(b);if(null===f)return;return Ad(f,c,d)}return"value"in e?e.value:e.get?la.Call(e.get,d):void 0},Bd=function(b,d,e,f){var g=Object.getOwnPropertyDescriptor(b,d);if(!g){var h=Object.getPrototypeOf(b);if(null!==h)return Bd(h,d,e,f);g={value:void 0,writable:!0,enumerable:!0,configurable:!0}}if("value"in g){if(!g.writable)return!1;if(!la.TypeIsObject(f))return!1;var i=Object.getOwnPropertyDescriptor(f,d);return i?ha.defineProperty(f,d,{value:e}):ha.defineProperty(f,d,{value:e,writable:!0,enumerable:!0,configurable:!0})}return!!g.set&&(c(g.set,f,e),!0)};Object.assign(yd,{defineProperty:function(b,c,d){return xd(b),zd(function(){Object.defineProperty(b,c,d)})},getOwnPropertyDescriptor:function(b,c){return xd(b),Object.getOwnPropertyDescriptor(b,c)},get:function(b,c){xd(b);var d=arguments.length>2?arguments[2]:b;return Ad(b,c,d)},set:function(b,c,d){xd(b);var e=arguments.length>3?arguments[3]:b;return Bd(b,c,d,e)}})}if(Object.getPrototypeOf){var Cd=Object.getPrototypeOf;yd.getPrototypeOf=function(b){return xd(b),Cd(b)}}if(Object.setPrototypeOf&&yd.getPrototypeOf){var Dd=function(a,b){for(var c=b;c;){if(a===c)return!0;c=yd.getPrototypeOf(c)}return!1};Object.assign(yd,{setPrototypeOf:function(b,c){if(xd(b),null!==c&&!la.TypeIsObject(c))throw new TypeError("proto must be an object or null");return c===ha.getPrototypeOf(b)||!(ha.isExtensible&&!ha.isExtensible(b))&&(!Dd(b,c)&&(Object.setPrototypeOf(b,c),!0))}})}var Ed=function(a,b){if(la.IsCallable(z.Reflect[a])){var c=i(function(){return z.Reflect[a](1),z.Reflect[a](NaN),z.Reflect[a](!0),!0});c&&ea(z.Reflect,a,b)}else r(z.Reflect,a,b)};Object.keys(yd).forEach(function(a){Ed(a,yd[a])});var Fd=z.Reflect.getPrototypeOf;if(m&&Fd&&"getPrototypeOf"!==Fd.name&&ea(z.Reflect,"getPrototypeOf",function(b){return c(Fd,z.Reflect,b)}),z.Reflect.setPrototypeOf&&i(function(){return z.Reflect.setPrototypeOf(1,{}),!0})&&ea(z.Reflect,"setPrototypeOf",yd.setPrototypeOf),z.Reflect.defineProperty&&(i(function(){var a=!z.Reflect.defineProperty(1,"test",{value:1}),b="function"!=typeof Object.preventExtensions||!z.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return a&&b})||ea(z.Reflect,"defineProperty",yd.defineProperty)),z.Reflect.construct&&(i(function(){var a=function(){};return z.Reflect.construct(function(){},[],a)instanceof a})||ea(z.Reflect,"construct",yd.construct)),"Invalid Date"!==String(new Date(NaN))){var Gd=Date.prototype.toString,Hd=function(){var b=+this;return b!==b?"Invalid Date":la.Call(Gd,this)};ea(Date.prototype,"toString",Hd)}var Id={anchor:function(b){return la.CreateHTML(this,"a","name",b)},big:function(){return la.CreateHTML(this,"big","","")},blink:function(){return la.CreateHTML(this,"blink","","")},bold:function(){return la.CreateHTML(this,"b","","")},fixed:function(){return la.CreateHTML(this,"tt","","")},fontcolor:function(b){return la.CreateHTML(this,"font","color",b)},fontsize:function(b){return la.CreateHTML(this,"font","size",b)},italics:function(){return la.CreateHTML(this,"i","","")},link:function(b){return la.CreateHTML(this,"a","href",b)},small:function(){return la.CreateHTML(this,"small","","")},strike:function(){return la.CreateHTML(this,"strike","","")},sub:function(){return la.CreateHTML(this,"sub","","")},sup:function(){return la.CreateHTML(this,"sup","","")}};n(Object.keys(Id),function(a){var b=String.prototype[a],d=!1;if(la.IsCallable(b)){var e=c(b,"",' " '),f=D([],e.match(/"/g)).length;d=e!==e.toLowerCase()||f>2}else d=!0;d&&ea(String.prototype,a,Id[a])});var Jd=function(){if(!fa)return!1;var a="object"==typeof JSON&&"function"==typeof JSON.stringify?JSON.stringify:null;if(!a)return!1;if("undefined"!=typeof a(X()))return!0;if("[null]"!==a([X()]))return!0;var b={a:X()};return b[X()]=!0,"{}"!==a(b)}(),Kd=i(function(){return!fa||"{}"===JSON.stringify(Object(X()))&&"[{}]"===JSON.stringify([Object(X())])});if(Jd||!Kd){var Ld=JSON.stringify;ea(JSON,"stringify",function(b){if("symbol"!=typeof b){var d;arguments.length>1&&(d=arguments[1]);var f=[b];if(e(d))f.push(d);else{var g=la.IsCallable(d)?d:null,h=function(a,b){var d=g?c(g,this,a,b):b;if("symbol"!=typeof d)return da.symbol(d)?Gb({})(d):d};f.push(h)}return arguments.length>2&&f.push(arguments[2]),Ld.apply(this,f)}})}return z})}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:16}],47:[function(a,b,c){function e(a,b,c){var d=document.getElementById("script-"+a);null!=d&&d.parentElement.removeChild(d),d=document.createElement("script"),d.type="text/javascript",d.setAttribute("id","script-"+a),d.readyState?d.onreadystatechange=function(){"loaded"!=d.readyState&&"complete"!=d.readyState||(d.onreadystatechange=null,c())}:d.onload=function(){c()},d.src=b,document.getElementsByTagName("head")[0].appendChild(d)}function f(a,b){delete window.Module,window.Module=void 0;var c="https://ethereum.github.io/solc-bin/bin/"+a;e("solc",c,function(){var a=d(window.Module);b(a)})}function g(a){var b="https://raw.githubusercontent.com/ethereum/solc-bin/gh-pages/bin/list.js";e("solc-list",b,function(){a(soljsonSources,soljsonReleases)})}a("es6-shim");var d=a("solc/wrapper");b.exports={getVersions:g,loadVersion:f}},{"es6-shim":46,"solc/wrapper":51}],48:[function(a,b,c){a("es6-shim");var d=a("./browser-solc"),e=function(a){var b=function(){return document.attachEvent&&"undefined"!=typeof document.attachEvent?"ie":"not-ie"};return a=function(a){a&&"function"==typeof a?"ie"!==b()?document.addEventListener("DOMContentLoaded",function(){return a()}):document.attachEvent("onreadystatechange",function(){if("complete"===document.readyState)return a()}):console.error("The callback is not a function!")}}(e||{});!function(a,b,c,e){c(function(){b.BrowserSolc=d})}(document,window,e)},{"./browser-solc":47,"es6-shim":46}],49:[function(a,b,c){(function(c){"use strict";function g(a,b){return this instanceof g?(g.super_.call(this,b),void this.init(a,b)):new g(a,b)}function h(a,b){return this instanceof h?(h.super_.call(this,b),void this.init(a,b)):new h(a,b)}function i(a,b){return this instanceof i?(i.super_.call(this,b),void this.init(a,b)):new i(a,b)}function j(a,b){if(!(this instanceof j))return new j(a,b);b=b||{};var c=!b.hasOwnProperty("readable")||b.readable,d=!b.hasOwnProperty("writable")||b.writable;if(c&&d)return new i(a,b);if(c)return new g(a,b);if(d)return new h(a,b);throw new Error("Unknown stream type Readable, Writable or Duplex ")}var d=a("stream"),e=a("util"),f=a("string_decoder").StringDecoder;e.inherits(g,d.Readable),e.inherits(h,d.Writable),e.inherits(i,d.Duplex),g.prototype.init=h.prototype.init=i.prototype.init=function(b,d){var e=this;this.queue=[],b&&(Array.isArray(b)||(b=[b]),b.forEach(function(a){a instanceof c||(a=new c(a)),e.queue.push(a)})),d=d||{},this.maxbufsize=d.hasOwnProperty("maxbufsize")?d.maxbufsize:null,this.bufoverflow=d.hasOwnProperty("bufoverflow")?d.bufoverflow:null,this.frequence=d.hasOwnProperty("frequence")?d.frequence:null},j.createReadStream=function(a,b){return b=b||{},b.readable=!0,b.writable=!1,new j(a,b)},j.createWriteStream=function(a,b){return b=b||{},b.readable=!1,b.writable=!0,new j(a,b)},g.prototype._read=i.prototype._read=function(b){var c=this,e=c.frequence||0,f=this instanceof d.Duplex&&!this._writableState.finished;this.queue.length||f?this.queue.length&&setTimeout(function(){if(c.queue.length){var a=c.queue.shift();a&&!c._readableState.ended&&(c.push(a)||c.queue.unshift(a))}},e):this.push(null)},h.prototype._write=i.prototype._write=function(b,c,e){var g=null;try{g=this.decodeStrings&&c?new f(c):null}catch(a){return e(a)}var h=g?g.write(b):b,i=this._getQueueSize(),j=h.length;if(this.maxbufsize&&i+j>this.maxbufsize)return this.bufoverflow?e("Buffer overflowed ("+this.bufoverflow+"/"+i+")"):e();if(this instanceof d.Duplex){for(;this.queue.length;)this.push(this.queue.shift());this.push(h)}else this.queue.push(h);e()},i.prototype.end=function(a,b,c){var d=this;return i.super_.prototype.end.call(this,a,b,function(){d.push(null),c&&c()})},g.prototype._getQueueSize=h.prototype._getQueueSize=i.prototype._getQueueSize=function(){var b,a=0;for(b=0;b42)throw new Error("Invalid address specified for "+c);for(f=f.slice(2),f=Array(40-f.length+1).join("0")+f;a.indexOf(e)>=0;)a=a.replace(e,f)}return a},o=b.cwrap("version","string",[]);return{version:o,compile:m,linkBytecode:n,supportsMulti:null!==h,supportsImportCallback:null!==i,useVersion:function(b){return g(a("./bin/soljson-"+b+".js"))},loadRemoteVersion:function(a,b){var c=new f(null,{readable:!1}),h="https://ethereum.github.io/solc-bin/bin/soljson-"+a+".js";e.get(h,function(a){200!==a.statusCode?b("Error retrieving binary: "+a.statusMessage):(a.pipe(c),a.on("end",function(){b(null,g(d(c.toString())))}))}).on("error",function(a){b(a)})},setupMethods:g}}var d=a("require-from-string"),e=a("https"),f=a("memorystream");b.exports=g},{https:9,memorystream:49,"require-from-string":50}]},{},[48]); \ No newline at end of file diff --git a/src/browser-solc.js b/src/browser-solc.js index b31e657..2bfacb4 100644 --- a/src/browser-solc.js +++ b/src/browser-solc.js @@ -43,7 +43,7 @@ function loadVersion(version, callback) { // Also loads global variables called "soljsonSources" and "soljsonReleases" function getVersions(callback) { - var url = "https://ethereum.github.io/solc-bin/bin/list.js"; + var url = "https://raw.githubusercontent.com/ethereum/solc-bin/gh-pages/bin/list.js"; loadScript("solc-list", url, function() { callback(soljsonSources, soljsonReleases); });