Skip to content

Instantly share code, notes, and snippets.

@amiorin
Created August 9, 2013 10:03
Show Gist options
  • Save amiorin/6192567 to your computer and use it in GitHub Desktop.
Save amiorin/6192567 to your computer and use it in GitHub Desktop.
requirebin sketch
'use strict';
var h = require('hyperquest');
var step = require('step');
var es = require('event-stream');
step(
function() {
h.get('/', this.parallel());
h.get('/', this.parallel());
h.get('/', this.parallel());
},
function(err) {
var results =Array.prototype.slice.call(arguments, 1);
results.forEach(function(res) {
res.pipe(es.join(function(err, text) {
log('err: ', err);
log('text: ', text);
}));
});
}
);
function log() {
var args = Array.prototype.slice.call(arguments);
var results = [];
args.forEach(function(arg) {
if (Object.prototype.toString.call(arg) == '[object String]') {
results.push(arg);
} else {
results.push(JSON.stringify(arg));
}
});
var text = results.join(' ');
var divNode = document.createElement('div');
divNode.textContent = text;
document.body.appendChild(divNode);
}
function log(){var t=Array.prototype.slice.call(arguments),e=[];t.forEach(function(t){"[object String]"==Object.prototype.toString.call(t)?e.push(t):e.push(JSON.stringify(t))});var r=e.join(" "),n=document.createElement("div");n.textContent=r,document.body.appendChild(n)}require=function(t,e,r){function n(r,i){if(!e[r]){if(!t[r]){var s="function"==typeof require&&require;if(!i&&s)return s(r,!0);if(o)return o(r,!0);throw Error("Cannot find module '"+r+"'")}var a=e[r]={exports:{}};t[r][0].call(a.exports,function(e){var o=t[r][1][e];return n(o?o:e)},a,a.exports)}return e[r].exports}for(var o="function"==typeof require&&require,i=0;r.length>i;i++)n(r[i]);return n}({1:[function(t,e){var r=t("http"),n=e.exports;for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o]);n.request=function(t,e){return t||(t={}),t.scheme="https",r.request.call(this,t,e)}},{http:2}],3:[function(t,e,r){function n(t,e){for(var r=0,n=t.length;n>r;r++)if(t[r]==e)return r;return-1}function o(t,e,r){if(t&&"object"==typeof t&&t.href)return t;if("string"!=typeof t)throw new TypeError("Parameter 'url' must be a string, not "+typeof t);for(var o={},s=t,a=0,p=s.length;p>a&&-1!==n(l,s.charAt(a));a++);0!==a&&(s=s.substr(a));var g=c.exec(s);if(g){g=g[0];var x=g.toLowerCase();o.protocol=x,s=s.substr(g.length)}if(r||g||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===s.substr(0,2);!S||g&&k[g]||(s=s.substr(2),o.slashes=!0)}if(!k[g]&&(S||g&&!_[g])){var L=n(s,"@");if(-1!==L){for(var B=!0,a=0,p=v.length;p>a;a++){var A=n(s,v[a]);if(-1!==A&&L>A){B=!1;break}}B&&(o.auth=s.substr(0,L),s=s.substr(L+1))}for(var j=-1,a=0,p=y.length;p>a;a++){var A=n(s,y[a]);-1!==A&&(0>j||j>A)&&(j=A)}-1!==j?(o.host=s.substr(0,j),s=s.substr(j)):(o.host=s,s="");for(var U=u(o.host),O=h(U),a=0,p=O.length;p>a;a++){var T=O[a];o[T]=U[T]}if(o.hostname=o.hostname||"",o.hostname.length>b)o.hostname="";else for(var C=o.hostname.split(/\./),a=0,p=C.length;p>a;a++){var M=C[a];if(M&&!M.match(m)){for(var W="",N=0,q=M.length;q>N;N++)W+=M.charCodeAt(N)>127?"x":M[N];if(!W.match(m)){var F=C.slice(0,a),D=C.slice(a+1),R=M.match(w);R&&(F.push(R[1]),D.unshift(R[2])),D.length&&(s="/"+D.join(".")+s),o.hostname=F.join(".");break}}}o.hostname=o.hostname.toLowerCase();for(var P=o.hostname.split("."),z=[],a=0;P.length>a;++a){var J=P[a];z.push(J.match(/[^A-Za-z0-9_-]/)?"xn--"+f.encode(J):J)}o.hostname=z.join("."),o.host=(o.hostname||"")+(o.port?":"+o.port:""),o.href+=o.host}if(!E[x]){for(var a=0,p=d.length;p>a;a++){var G=d[a],H=encodeURIComponent(G);H===G&&(H=escape(G)),s=s.split(G).join(H)}for(var X=s.length,a=0,p=l.length;p>a;a++){var Y=n(s,l[a]);-1!==Y&&(X=Math.min(Y,X))}s=s.substr(0,X)}var $=n(s,"#");-1!==$&&(o.hash=s.substr($),s=s.slice(0,$));var Z=n(s,"?");return-1!==Z?(o.search=s.substr(Z),o.query=s.substr(Z+1),e&&(o.query=I.parse(o.query)),s=s.slice(0,Z)):e&&(o.search="",o.query={}),s&&(o.pathname=s),_[g]&&o.hostname&&!o.pathname&&(o.pathname="/"),(o.pathname||o.search)&&(o.path=(o.pathname?o.pathname:"")+(o.search?o.search:"")),o.href=i(o),o}function i(t){"string"==typeof t&&(t=o(t));var e=t.auth||"";if(e){e=e.split("@").join("%40");for(var r=0,n=v.length;n>r;r++){var i=v[r];e=e.split(i).join(encodeURIComponent(i))}e+="@"}var s=t.protocol||"",a=void 0!==t.host?e+t.host:void 0!==t.hostname?e+t.hostname+(t.port?":"+t.port:""):!1,u=t.pathname||"",f=t.query&&("object"==typeof t.query&&h(t.query).length?I.stringify(t.query):"")||"",c=t.search||f&&"?"+f||"",p=t.hash||"";return s&&":"!==s.substr(-1)&&(s+=":"),t.slashes||(!s||_[s])&&a!==!1?(a="//"+(a||""),u&&"/"!==u.charAt(0)&&(u="/"+u)):a||(a=""),p&&"#"!==p.charAt(0)&&(p="#"+p),c&&"?"!==c.charAt(0)&&(c="?"+c),s+a+u+c+p}function s(t,e){return i(a(t,e))}function a(t,e){if(!t)return e;if(t=o(i(t),!1,!0),e=o(i(e),!1,!0),t.hash=e.hash,""===e.href)return t.href=i(t),t;if(e.slashes&&!e.protocol)return e.protocol=t.protocol,_[e.protocol]&&e.hostname&&!e.pathname&&(e.path=e.pathname="/"),e.href=i(e),e;if(e.protocol&&e.protocol!==t.protocol){if(!_[e.protocol])return e.href=i(e),e;if(t.protocol=e.protocol,!e.host&&!k[e.protocol]){for(var r=(e.pathname||"").split("/");r.length&&!(e.host=r.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==r[0]&&r.unshift(""),2>r.length&&r.unshift(""),e.pathname=r.join("/")}return t.pathname=e.pathname,t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,(void 0!==t.pathname||void 0!==t.search)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.slashes=t.slashes||e.slashes,t.href=i(t),t}var s=t.pathname&&"/"===t.pathname.charAt(0),a=void 0!==e.host||e.pathname&&"/"===e.pathname.charAt(0),u=a||s||t.host&&e.pathname,f=u,h=t.pathname&&t.pathname.split("/")||[],r=e.pathname&&e.pathname.split("/")||[],c=t.protocol&&!_[t.protocol];if(c&&(delete t.hostname,delete t.port,t.host&&(""===h[0]?h[0]=t.host:h.unshift(t.host)),delete t.host,e.protocol&&(delete e.hostname,delete e.port,e.host&&(""===r[0]?r[0]=e.host:r.unshift(e.host)),delete e.host),u=u&&(""===r[0]||""===h[0])),a)t.host=e.host||""===e.host?e.host:t.host,t.hostname=e.hostname||""===e.hostname?e.hostname:t.hostname,t.search=e.search,t.query=e.query,h=r;else if(r.length)h||(h=[]),h.pop(),h=h.concat(r),t.search=e.search,t.query=e.query;else if("search"in e){if(c){t.hostname=t.host=h.shift();var p=t.host&&n(t.host,"@")>0?t.host.split("@"):!1;p&&(t.auth=p.shift(),t.host=t.hostname=p.shift())}return t.search=e.search,t.query=e.query,(void 0!==t.pathname||void 0!==t.search)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=i(t),t}if(!h.length)return delete t.pathname,t.search?delete t.path:t.path="/"+t.search,t.href=i(t),t;for(var l=h.slice(-1)[0],g=(t.host||e.host)&&("."===l||".."===l)||""===l,d=0,y=h.length;y>=0;y--)l=h[y],"."==l?h.splice(y,1):".."===l?(h.splice(y,1),d++):d&&(h.splice(y,1),d--);if(!u&&!f)for(;d--;d)h.unshift("..");!u||""===h[0]||h[0]&&"/"===h[0].charAt(0)||h.unshift(""),g&&"/"!==h.join("/").substr(-1)&&h.push("");var v=""===h[0]||h[0]&&"/"===h[0].charAt(0);if(c){t.hostname=t.host=v?"":h.length?h.shift():"";var p=t.host&&n(t.host,"@")>0?t.host.split("@"):!1;p&&(t.auth=p.shift(),t.host=t.hostname=p.shift())}return u=u||t.host&&h.length,u&&!v&&h.unshift(""),t.pathname=h.join("/"),(void 0!==t.pathname||void 0!==t.search)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=i(t),t}function u(t){var e={},r=p.exec(t);return r&&(r=r[0],e.port=r.substr(1),t=t.substr(0,t.length-r.length)),t&&(e.hostname=t),e}var f={encode:function(t){return t}};r.parse=o,r.resolve=s,r.resolveObject=a,r.format=i;var h=Object.keys||function h(t){if(t!==Object(t))throw new TypeError("Invalid object");var e=[];for(var r in t)t.hasOwnProperty(r)&&(e[e.length]=r);return e},c=/^([a-z0-9.+-]+:)/i,p=/:[0-9]+$/,l=["<",">",'"',"`"," ","\r","\n"," "],g=["{","}","|","\\","^","~","[","]","`"].concat(l),d=["'"],y=["%","/","?",";","#"].concat(g).concat(d),v=["/","@","?","#"].concat(l),b=255,m=/^[a-zA-Z0-9][a-z0-9A-Z_-]{0,62}$/,w=/^([a-zA-Z0-9][a-z0-9A-Z_-]{0,62})(.*)$/,E={javascript:!0,"javascript:":!0},k={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},I=t("querystring")},{querystring:4}],5:[function(t,e){var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){if(t.source===window&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.binding=function(){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw Error("process.chdir is not supported")}},{}],6:[function(t,e,r){(function(t){function e(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;t.length>r;r++)if(e===t[r])return r;return-1}t.EventEmitter||(t.EventEmitter=function(){});var n=r.EventEmitter=t.EventEmitter,o="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=10;n.prototype.setMaxListeners=function(t){this._events||(this._events={}),this._events.maxListeners=t},n.prototype.emit=function(t){if("error"===t&&(!this._events||!this._events.error||o(this._events.error)&&!this._events.error.length))throw arguments[1]instanceof Error?arguments[1]:Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;var e=this._events[t];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var r=Array.prototype.slice.call(arguments,1);e.apply(this,r)}return!0}if(o(e)){for(var r=Array.prototype.slice.call(arguments,1),n=e.slice(),i=0,s=n.length;s>i;i++)n[i].apply(this,r);return!0}return!1},n.prototype.addListener=function(t,e){if("function"!=typeof e)throw Error("addListener only takes instances of Function");if(this._events||(this._events={}),this.emit("newListener",t,e),this._events[t])if(o(this._events[t])){if(!this._events[t].warned){var r;r=void 0!==this._events.maxListeners?this._events.maxListeners:i,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace())}this._events[t].push(e)}else this._events[t]=[this._events[t],e];else this._events[t]=e;return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){var r=this;return r.on(t,function n(){r.removeListener(t,n),e.apply(this,arguments)}),this},n.prototype.removeListener=function(t,r){if("function"!=typeof r)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[t])return this;var n=this._events[t];if(o(n)){var i=e(n,r);if(0>i)return this;n.splice(i,1),0==n.length&&delete this._events[t]}else this._events[t]===r&&delete this._events[t];return this},n.prototype.removeAllListeners=function(t){return 0===arguments.length?(this._events={},this):(t&&this._events&&this._events[t]&&(this._events[t]=null),this)},n.prototype.listeners=function(t){return this._events||(this._events={}),this._events[t]||(this._events[t]=[]),o(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]}})(t("__browserify_process"))},{__browserify_process:5}],4:[function(t,e,r){function n(t,e){if(0==t[e].length)return t[e]={};var r={};for(var n in t[e])r[n]=t[e][n];return t[e]=r,r}function o(t,e,r,i){var s=t.shift();if(s){var a=e[r]=e[r]||[];"]"==s?y(a)?""!=i&&a.push(i):"object"==typeof a?a[v(a).length]=i:a=e[r]=[e[r],i]:~d(s,"]")?(s=s.substr(0,s.length-1),!w.test(s)&&y(a)&&(a=n(e,r)),o(t,a,s,i)):(!w.test(s)&&y(a)&&(a=n(e,r)),o(t,a,s,i))}else y(e[r])?e[r].push(i):e[r]="object"==typeof e[r]?i:e[r]===void 0?i:[e[r],i]}function i(t,e,r){if(~d(e,"]")){var n=e.split("[");n.length,o(n,t,"base",r)}else{if(!w.test(e)&&y(t.base)){var i={};for(var s in t.base)i[s]=t.base[s];t.base=i}c(t.base,e,r)}return t}function s(t){var e={base:{}};return b(v(t),function(r){i(e,r,t[r])}),e.base}function a(t){return m((t+"").split("&"),function(t,e){var r=d(e,"="),n=p(e),o=e.substr(0,n||r),s=e.substr(n||r,e.length),s=s.substr(d(s,"=")+1,s.length);return""==o&&(o=e,s=""),""==o?t:i(t,l(o),l(s))},{base:{}}).base}function u(t,e){if(!e)throw new TypeError("stringify expects an object");return e+"="+encodeURIComponent(t)}function f(t,e){var r=[];if(!e)throw new TypeError("stringify expects an object");for(var n=0;t.length>n;n++)r.push(E(t[n],e+"["+n+"]"));return r.join("&")}function h(t,e){for(var r,n=[],o=v(t),i=0,s=o.length;s>i;++i)r=o[i],null==t[r]?n.push(encodeURIComponent(r)+"="):n.push(E(t[r],e?e+"["+encodeURIComponent(r)+"]":encodeURIComponent(r)));return n.join("&")}function c(t,e,r){var n=t[e];void 0===n?t[e]=r:y(n)?n.push(r):t[e]=[n,r]}function p(t){for(var e,r,n=t.length,o=0;n>o;++o)if(r=t[o],"]"==r&&(e=!1),"["==r&&(e=!0),"="==r&&!e)return o}function l(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}}var g=Object.prototype.toString,d="function"==typeof Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var r=0;t.length>r;r++)if(t[r]===e)return r;return-1},y=Array.isArray||function(t){return"[object Array]"==g.call(t)},v=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},b="function"==typeof Array.prototype.forEach?function(t,e){return t.forEach(e)}:function(t,e){for(var r=0;t.length>r;r++)e(t[r])},m=function(t,e,r){if("function"==typeof t.reduce)return t.reduce(e,r);for(var n=r,o=0;t.length>o;o++)n=e(n,t[o]);return n},w=/^[0-9]+$/;r.parse=function(t){return null==t||""==t?{}:"object"==typeof t?s(t):a(t)};var E=r.stringify=function(t,e){return y(t)?f(t,e):"[object Object]"==g.call(t)?h(t,e):"string"==typeof t?u(t,e):e+"="+encodeURIComponent(t+"")}},{}],hyperquest:[function(t,e){e.exports=t("E7p6Hd")},{}],7:[function(t,e){t=function(t,e,r,n){function o(n){if(!r[n]){if(!e[n]){if(t)return t(n);throw Error("Cannot find module '"+n+"'")}var i=r[n]={exports:{}};e[n][0](function(t){var r=e[n][1][t];return o(r?r:t)},i,i.exports)}return r[n].exports}for(var i=0;n.length>i;i++)o(n[i]);return o}(t!==void 0&&t,{1:[function(t,e){function r(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}function n(t,e){return void 0===e?""+e:"number"!=typeof e||!isNaN(e)&&isFinite(e)?"function"==typeof e||e instanceof RegExp?""+e:e:""+e}function o(t,e){return"string"==typeof t?e>t.length?t:t.slice(0,e):t}function i(t,e,r,n,o){throw new y.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:o})}function s(t,e){t||i(t,!0,e,"==",y.ok)}function a(t,e){if(t===e)return!0;if(g.isBuffer(t)&&g.isBuffer(e)){if(t.length!=e.length)return!1;for(var r=0;t.length>r;r++)if(t[r]!==e[r])return!1;return!0}return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():"object"!=typeof t&&"object"!=typeof e?t==e:h(t,e)}function u(t){return null===t||void 0===t}function f(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function h(t,e){if(u(t)||u(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return f(e)?(t=d.call(t),e=d.call(e),a(t,e)):!1;try{var n,o,i=r(t),s=r(e)}catch(h){return!1}if(i.length!=s.length)return!1;for(i.sort(),s.sort(),o=i.length-1;o>=0;o--)if(i[o]!=s[o])return!1;for(o=i.length-1;o>=0;o--)if(n=i[o],!a(t[n],e[n]))return!1;return!0}function c(t,e){return t&&e?e instanceof RegExp?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function p(t,e,r,n){var o;"string"==typeof r&&(n=r,r=null);try{e()}catch(s){o=s}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!o&&i("Missing expected exception"+n),!t&&c(o,r)&&i("Got unwanted exception"+n),t&&o&&r&&!c(o,r)||!t&&o)throw o}var l=t("util"),g=t("buffer").Buffer,d=Array.prototype.slice,y=e.exports=s;y.AssertionError=function(t){this.name="AssertionError",this.message=t.message,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator;var e=t.stackStartFunction||i;Error.captureStackTrace&&Error.captureStackTrace(this,e)},l.inherits(y.AssertionError,Error),y.AssertionError.prototype.toString=function(){return this.message?[this.name+":",this.message].join(" "):[this.name+":",o(JSON.stringify(this.actual,n),128),this.operator,o(JSON.stringify(this.expected,n),128)].join(" ")},y.AssertionError.__proto__=Error.prototype,y.fail=i,y.ok=s,y.equal=function(t,e,r){t!=e&&i(t,e,r,"==",y.equal)},y.notEqual=function(t,e,r){t==e&&i(t,e,r,"!=",y.notEqual)},y.deepEqual=function(t,e,r){a(t,e)||i(t,e,r,"deepEqual",y.deepEqual)},y.notDeepEqual=function(t,e,r){a(t,e)&&i(t,e,r,"notDeepEqual",y.notDeepEqual)},y.strictEqual=function(t,e,r){t!==e&&i(t,e,r,"===",y.strictEqual)},y.notStrictEqual=function(t,e,r){t===e&&i(t,e,r,"!==",y.notStrictEqual)},y.throws=function(){p.apply(this,[!0].concat(d.call(arguments)))},y.doesNotThrow=function(){p.apply(this,[!1].concat(d.call(arguments)))},y.ifError=function(t){if(t)throw t}},{util:2,buffer:3}],2:[function(t,e,r){function n(t){return t instanceof Array||Array.isArray(t)||t&&t!==Object.prototype&&n(t.__proto__)}function o(t){return t instanceof RegExp||"object"==typeof t&&"[object RegExp]"===Object.prototype.toString.call(t)}function i(t){if(t instanceof Date)return!0;if("object"!=typeof t)return!1;var e=Date.prototype&&a(Date.prototype),r=t.__proto__&&a(t.__proto__);return JSON.stringify(r)===JSON.stringify(e)}t("events"),r.isArray=n,r.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},r.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},r.print=function(){},r.puts=function(){},r.debug=function(){},r.inspect=function(t,e,u,f){function h(t,u){if(t&&"function"==typeof t.inspect&&t!==r&&(!t.constructor||t.constructor.prototype!==t))return t.inspect(u);switch(typeof t){case"undefined":return p("undefined","undefined");case"string":var f="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return p(f,"string");case"number":return p(""+t,"number");case"boolean":return p(""+t,"boolean")}if(null===t)return p("null","null");var l=s(t),g=e?a(t):l;if("function"==typeof t&&0===g.length){if(o(t))return p(""+t,"regexp");var d=t.name?": "+t.name:"";return p("[Function"+d+"]","special")}if(i(t)&&0===g.length)return p(t.toUTCString(),"date");var y,v,b;if(n(t)?(v="Array",b=["[","]"]):(v="Object",b=["{","}"]),"function"==typeof t){var m=t.name?": "+t.name:"";y=o(t)?" "+t:" [Function"+m+"]"}else y="";if(i(t)&&(y=" "+t.toUTCString()),0===g.length)return b[0]+y+b[1];if(0>u)return o(t)?p(""+t,"regexp"):p("[Object]","special");c.push(t);var w=g.map(function(e){var r,o;if(t.__lookupGetter__&&(t.__lookupGetter__(e)?o=t.__lookupSetter__(e)?p("[Getter/Setter]","special"):p("[Getter]","special"):t.__lookupSetter__(e)&&(o=p("[Setter]","special"))),0>l.indexOf(e)&&(r="["+e+"]"),o||(0>c.indexOf(t[e])?(o=null===u?h(t[e]):h(t[e],u-1),o.indexOf("\n")>-1&&(o=n(t)?o.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+o.split("\n").map(function(t){return" "+t}).join("\n"))):o=p("[Circular]","special")),r===void 0){if("Array"===v&&e.match(/^\d+$/))return o;r=JSON.stringify(""+e),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=p(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=p(r,"string"))}return r+": "+o});c.pop();var E=0,k=w.reduce(function(t,e){return E++,e.indexOf("\n")>=0&&E++,t+e.length+1},0);return w=k>50?b[0]+(""===y?"":y+"\n ")+" "+w.join(",\n ")+" "+b[1]:b[0]+y+" "+w.join(", ")+" "+b[1]}var c=[],p=function(t,e){var r={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},n={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[e];return n?"["+r[n][0]+"m"+t+"["+r[n][1]+"m":t};return f||(p=function(t){return t}),h(t,u===void 0?2:u)},r.log=function(){},r.pump=null;var s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},a=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.hasOwnProperty.call(t,r)&&e.push(r);return e},u=Object.create||function(t,e){var r;if(null===t)r={__proto__:null};else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var n=function(){};n.prototype=t,r=new n,r.__proto__=t}return e!==void 0&&Object.defineProperties&&Object.defineProperties(r,e),r};r.inherits=function(t,e){t.super_=e,t.prototype=u(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};var f=/%[sdj%]/g;r.format=function(t){if("string"!=typeof t){for(var e=[],n=0;arguments.length>n;n++)e.push(r.inspect(arguments[n]));return e.join(" ")}for(var n=1,o=arguments,i=o.length,s=(t+"").replace(f,function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return o[n++]+"";case"%d":return Number(o[n++]);case"%j":return JSON.stringify(o[n++]);default:return t}}),a=o[n];i>n;a=o[++n])s+=null===a||"object"!=typeof a?" "+a:" "+r.inspect(a);return s}},{events:4}],5:[function(t,e,r){r.readIEEE754=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,f=u>>1,h=-7,c=r?0:o-1,p=r?1:-1,l=t[e+c];for(c+=p,i=l&(1<<-h)-1,l>>=-h,h+=a;h>0;i=256*i+t[e+c],c+=p,h-=8);for(s=i&(1<<-h)-1,i>>=-h,h+=n;h>0;s=256*s+t[e+c],c+=p,h-=8);if(0===i)i=1-f;else{if(i===u)return s?0/0:1/0*(l?-1:1);s+=Math.pow(2,n),i-=f}return(l?-1:1)*s*Math.pow(2,i-n)},r.writeIEEE754=function(t,e,r,n,o,i){var s,a,u,f=8*i-o-1,h=(1<<f)-1,c=h>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?i-1:0,g=n?-1:1,d=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+c>=1?p/u:p*Math.pow(2,1-c),e*u>=2&&(s++,u/=2),s+c>=h?(a=0,s=h):s+c>=1?(a=(e*u-1)*Math.pow(2,o),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,o),s=0));o>=8;t[r+l]=255&a,l+=g,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;t[r+l]=255&s,l+=g,s/=256,f-=8);t[r+l-g]|=128*d}},{}],6:[function(t,e){var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){if(t.source===window&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.binding=function(){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw Error("process.chdir is not supported")}},{}],4:[function(t,e,r){(function(t){function e(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;t.length>r;r++)if(e===t[r])return r;return-1}t.EventEmitter||(t.EventEmitter=function(){});var n=r.EventEmitter=t.EventEmitter,o="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=10;n.prototype.setMaxListeners=function(t){this._events||(this._events={}),this._events.maxListeners=t},n.prototype.emit=function(t){if("error"===t&&(!this._events||!this._events.error||o(this._events.error)&&!this._events.error.length))throw arguments[1]instanceof Error?arguments[1]:Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;var e=this._events[t];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var r=Array.prototype.slice.call(arguments,1);e.apply(this,r)}return!0}if(o(e)){for(var r=Array.prototype.slice.call(arguments,1),n=e.slice(),i=0,s=n.length;s>i;i++)n[i].apply(this,r);return!0}return!1},n.prototype.addListener=function(t,e){if("function"!=typeof e)throw Error("addListener only takes instances of Function");if(this._events||(this._events={}),this.emit("newListener",t,e),this._events[t])if(o(this._events[t])){if(!this._events[t].warned){var r;r=void 0!==this._events.maxListeners?this._events.maxListeners:i,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace())}this._events[t].push(e)}else this._events[t]=[this._events[t],e];else this._events[t]=e;return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){var r=this;return r.on(t,function n(){r.removeListener(t,n),e.apply(this,arguments)}),this},n.prototype.removeListener=function(t,r){if("function"!=typeof r)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[t])return this;var n=this._events[t];if(o(n)){var i=e(n,r);if(0>i)return this;n.splice(i,1),0==n.length&&delete this._events[t]}else this._events[t]===r&&delete this._events[t];return this},n.prototype.removeAllListeners=function(t){return 0===arguments.length?(this._events={},this):(t&&this._events&&this._events[t]&&(this._events[t]=null),this)},n.prototype.listeners=function(t){return this._events||(this._events={}),this._events[t]||(this._events[t]=[]),o(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]}})(t("__browserify_process"))},{__browserify_process:6}],"buffer-browserify":[function(t,e){e.exports=t("q9TxCC")},{}],q9TxCC:[function(t,e,r){function n(t){this.length=t}function o(t){return 16>t?"0"+t.toString(16):t.toString(16)}function i(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),o=0;n.length>o;o++)e.push(parseInt(n[o],16));return e}function s(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function a(e){return t("base64-js").toByteArray(e)}function u(t,e,r,n){for(var o=0;n>o&&!(o+r>=e.length||o>=t.length);)e[o+r]=t[o],o++;return o}function f(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function h(t){return t=~~Math.ceil(+t),0>t?0:t}function c(t,e,r){if(!(this instanceof c))return new c(t,e,r);var o;if("number"==typeof r)this.length=h(e),this.parent=t,this.offset=r;else{switch(o=typeof t){case"number":this.length=h(t);break;case"string":this.length=c.byteLength(t,e);break;case"object":this.length=h(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(this.length>c.poolSize?(this.parent=new n(this.length),this.offset=0):((!j||j.length-j.used<this.length)&&l(),this.parent=j,this.offset=j.used,j.used+=this.length),p(t))for(var i=0;this.length>i;i++)this.parent[i+this.offset]=t instanceof c?t.readUInt8(i):t[i];else"string"==o&&(this.length=this.write(t,0,e))}}function p(t){return Array.isArray(t)||c.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function l(){j=new n(c.poolSize),j.used=0}function g(t,e,r,n){var o=0;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+1,"Trying to read beyond buffer length")),e>=t.length?0:(r?(o=t.parent[t.offset+e]<<8,t.length>e+1&&(o|=t.parent[t.offset+e+1])):(o=t.parent[t.offset+e],t.length>e+1&&(o|=t.parent[t.offset+e+1]<<8)),o)}function d(t,e,r,n){var o=0;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+3,"Trying to read beyond buffer length")),e>=t.length?0:(r?(t.length>e+1&&(o=t.parent[t.offset+e+1]<<16),t.length>e+2&&(o|=t.parent[t.offset+e+2]<<8),t.length>e+3&&(o|=t.parent[t.offset+e+3]),o+=t.parent[t.offset+e]<<24>>>0):(t.length>e+2&&(o=t.parent[t.offset+e+2]<<16),t.length>e+1&&(o|=t.parent[t.offset+e+1]<<8),o|=t.parent[t.offset+e],t.length>e+3&&(o+=t.parent[t.offset+e+3]<<24>>>0)),o)}function y(t,e,r,n){var o,i;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+1,"Trying to read beyond buffer length")),i=g(t,e,r,n),o=32768&i,o?-1*(65535-i+1):i}function v(t,e,r,n){var o,i;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+3,"Trying to read beyond buffer length")),i=d(t,e,r,n),o=2147483648&i,o?-1*(4294967295-i+1):i}function b(e,r,n,o){return o||(A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function m(e,r,n,o){return o||(A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function w(t,e){A.ok("number"==typeof t,"cannot write a non-number as a number"),A.ok(t>=0,"specified a negative value for writing an unsigned value"),A.ok(e>=t,"value is larger than maximum value for type"),A.ok(Math.floor(t)===t,"value has a fractional component")}function E(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+1,"trying to write beyond buffer length"),w(e,65535));for(var i=0;Math.min(t.length-r,2)>i;i++)t.parent[t.offset+r+i]=(e&255<<8*(n?1-i:i))>>>8*(n?1-i:i)}function k(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+3,"trying to write beyond buffer length"),w(e,4294967295));for(var i=0;Math.min(t.length-r,4)>i;i++)t.parent[t.offset+r+i]=255&e>>>8*(n?3-i:i)}function _(t,e,r){A.ok("number"==typeof t,"cannot write a non-number as a number"),A.ok(e>=t,"value larger than maximum allowed value"),A.ok(t>=r,"value smaller than minimum allowed value"),A.ok(Math.floor(t)===t,"value has a fractional component")}function I(t,e,r){A.ok("number"==typeof t,"cannot write a non-number as a number"),A.ok(e>=t,"value larger than maximum allowed value"),A.ok(t>=r,"value smaller than minimum allowed value")}function x(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+1,"Trying to write beyond buffer length"),_(e,32767,-32768)),e>=0?E(t,e,r,n,o):E(t,65535+e+1,r,n,o)}function S(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+3,"Trying to write beyond buffer length"),_(e,2147483647,-2147483648)),e>=0?k(t,e,r,n,o):k(t,4294967295+e+1,r,n,o)}function L(e,r,n,o,i){i||(A.ok(void 0!==r&&null!==r,"missing value"),A.ok("boolean"==typeof o,"missing or invalid endian"),A.ok(void 0!==n&&null!==n,"missing offset"),A.ok(e.length>n+3,"Trying to write beyond buffer length"),I(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,o,23,4)}function B(e,r,n,o,i){i||(A.ok(void 0!==r&&null!==r,"missing value"),A.ok("boolean"==typeof o,"missing or invalid endian"),A.ok(void 0!==n&&null!==n,"missing offset"),A.ok(e.length>n+7,"Trying to write beyond buffer length"),I(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,o,52,8)}var A=t("assert");r.INSPECT_MAX_BYTES=50,n.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return i(t).length;case"ascii":case"binary":return t.length;case"base64":return a(t).length;default:throw Error("Unknown encoding")}},n.prototype.utf8Write=function(t,e,r){return n._charsWritten=u(i(t),this,e,r)},n.prototype.asciiWrite=function(t,e,r){return n._charsWritten=u(s(t),this,e,r)},n.prototype.binaryWrite=n.prototype.asciiWrite,n.prototype.base64Write=function(t,e,r){return n._charsWritten=u(a(t),this,e,r)},n.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},n.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=f(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+f(r)},n.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},n.prototype.binarySlice=n.prototype.asciiSlice,n.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=o(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";
break}return"<SlowBuffer "+t.join(" ")+">"},n.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",i=t;e>i;i++)n+=o(this[i]);return n},n.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},n.prototype.hexWrite=function(t,e,r){e=+e||0;var o=this.length-e;r?(r=+r,r>o&&(r=o)):r=o;var i=t.length;if(i%2)throw Error("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;r>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[e+s]=a}return n._charsWritten=2*s,s},n.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var o=n;n=e,e=r,r=o}e=+e||0;var i=this.length-e;switch(r?(r=+r,r>i&&(r=i)):r=i,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},n.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new c(this,e-t,+t)},n.prototype.copy=function(t,e,r,n){for(var o=[],i=r;n>i;i++)A.ok(this[i]!==void 0,"copying undefined buffer bytes!"),o.push(this[i]);for(var i=e;e+o.length>i;i++)t[i]=o[i-e]},n.prototype.fill=function(t,e,r){if(r>this.length)throw Error("oob");if(e>r)throw Error("oob");for(var n=e;r>n;n++)this[n]=t},r.SlowBuffer=n,r.Buffer=c,c.poolSize=8192;var j;c.isBuffer=function(t){return t instanceof c||t instanceof n},c.concat=function(t,e){if(!Array.isArray(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new c(0);if(1===t.length)return t[0];if("number"!=typeof e){e=0;for(var r=0;t.length>r;r++){var n=t[r];e+=n.length}}for(var o=new c(e),i=0,r=0;t.length>r;r++){var n=t[r];n.copy(o,i),i+=n.length}return o},c.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=o(this.parent[n+this.offset]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},c.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]},c.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]=e},c.prototype.write=function(t,e,r,o){if(isFinite(e))isFinite(r)||(o=r,r=void 0);else{var i=o;o=e,e=r,r=i}e=+e||0;var s=this.length-e;r?(r=+r,r>s&&(r=s)):r=s,o=((o||"utf8")+"").toLowerCase();var a;switch(o){case"hex":a=this.parent.hexWrite(t,this.offset+e,r);break;case"utf8":case"utf-8":a=this.parent.utf8Write(t,this.offset+e,r);break;case"ascii":a=this.parent.asciiWrite(t,this.offset+e,r);break;case"binary":a=this.parent.binaryWrite(t,this.offset+e,r);break;case"base64":a=this.parent.base64Write(t,this.offset+e,r);break;case"ucs2":case"ucs-2":a=this.parent.ucs2Write(t,this.offset+e,r);break;default:throw Error("Unknown encoding")}return c._charsWritten=n._charsWritten,a},c.prototype.toString=function(t,e,r){switch(t=((t||"utf8")+"").toLowerCase(),e===void 0||0>e?e=0:e>this.length&&(e=this.length),r===void 0||r>this.length?r=this.length:0>r&&(r=0),e+=this.offset,r+=this.offset,t){case"hex":return this.parent.hexSlice(e,r);case"utf8":case"utf-8":return this.parent.utf8Slice(e,r);case"ascii":return this.parent.asciiSlice(e,r);case"binary":return this.parent.binarySlice(e,r);case"base64":return this.parent.base64Slice(e,r);case"ucs2":case"ucs-2":return this.parent.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},c.byteLength=n.byteLength,c.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");return this.parent.fill(t,e+this.offset,r+this.offset)},c.prototype.copy=function(t,e,r,n){var o=this;if(r||(r=0),n||(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==o.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=o.length)throw Error("sourceStart out of bounds");if(0>n||n>o.length)throw Error("sourceEnd out of bounds");return n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r),this.parent.copy(t.parent,e+t.offset,r+this.offset,n+this.offset)},c.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new c(this.parent,e-t,+t+this.offset)},c.prototype.utf8Slice=function(t,e){return this.toString("utf8",t,e)},c.prototype.binarySlice=function(t,e){return this.toString("binary",t,e)},c.prototype.asciiSlice=function(t,e){return this.toString("ascii",t,e)},c.prototype.utf8Write=function(t,e){return this.write(t,e,"utf8")},c.prototype.binaryWrite=function(t,e){return this.write(t,e,"binary")},c.prototype.asciiWrite=function(t,e){return this.write(t,e,"ascii")},c.prototype.readUInt8=function(t,e){var r=this;return e||(A.ok(void 0!==t&&null!==t,"missing offset"),A.ok(r.length>t,"Trying to read beyond buffer length")),t>=r.length?void 0:r.parent[r.offset+t]},c.prototype.readUInt16LE=function(t,e){return g(this,t,!1,e)},c.prototype.readUInt16BE=function(t,e){return g(this,t,!0,e)},c.prototype.readUInt32LE=function(t,e){return d(this,t,!1,e)},c.prototype.readUInt32BE=function(t,e){return d(this,t,!0,e)},c.prototype.readInt8=function(t,e){var r,n=this;return e||(A.ok(void 0!==t&&null!==t,"missing offset"),A.ok(n.length>t,"Trying to read beyond buffer length")),t>=n.length?void 0:(r=128&n.parent[n.offset+t],r?-1*(255-n.parent[n.offset+t]+1):n.parent[n.offset+t])},c.prototype.readInt16LE=function(t,e){return y(this,t,!1,e)},c.prototype.readInt16BE=function(t,e){return y(this,t,!0,e)},c.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},c.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},c.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},c.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},c.prototype.readDoubleLE=function(t,e){return m(this,t,!1,e)},c.prototype.readDoubleBE=function(t,e){return m(this,t,!0,e)},c.prototype.writeUInt8=function(t,e,r){var n=this;r||(A.ok(void 0!==t&&null!==t,"missing value"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(n.length>e,"trying to write beyond buffer length"),w(t,255)),n.length>e&&(n.parent[n.offset+e]=t)},c.prototype.writeUInt16LE=function(t,e,r){E(this,t,e,!1,r)},c.prototype.writeUInt16BE=function(t,e,r){E(this,t,e,!0,r)},c.prototype.writeUInt32LE=function(t,e,r){k(this,t,e,!1,r)},c.prototype.writeUInt32BE=function(t,e,r){k(this,t,e,!0,r)},c.prototype.writeInt8=function(t,e,r){var n=this;r||(A.ok(void 0!==t&&null!==t,"missing value"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(n.length>e,"Trying to write beyond buffer length"),_(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},c.prototype.writeInt16LE=function(t,e,r){x(this,t,e,!1,r)},c.prototype.writeInt16BE=function(t,e,r){x(this,t,e,!0,r)},c.prototype.writeInt32LE=function(t,e,r){S(this,t,e,!1,r)},c.prototype.writeInt32BE=function(t,e,r){S(this,t,e,!0,r)},c.prototype.writeFloatLE=function(t,e,r){L(this,t,e,!1,r)},c.prototype.writeFloatBE=function(t,e,r){L(this,t,e,!0,r)},c.prototype.writeDoubleLE=function(t,e,r){B(this,t,e,!1,r)},c.prototype.writeDoubleBE=function(t,e,r){B(this,t,e,!0,r)},n.prototype.readUInt8=c.prototype.readUInt8,n.prototype.readUInt16LE=c.prototype.readUInt16LE,n.prototype.readUInt16BE=c.prototype.readUInt16BE,n.prototype.readUInt32LE=c.prototype.readUInt32LE,n.prototype.readUInt32BE=c.prototype.readUInt32BE,n.prototype.readInt8=c.prototype.readInt8,n.prototype.readInt16LE=c.prototype.readInt16LE,n.prototype.readInt16BE=c.prototype.readInt16BE,n.prototype.readInt32LE=c.prototype.readInt32LE,n.prototype.readInt32BE=c.prototype.readInt32BE,n.prototype.readFloatLE=c.prototype.readFloatLE,n.prototype.readFloatBE=c.prototype.readFloatBE,n.prototype.readDoubleLE=c.prototype.readDoubleLE,n.prototype.readDoubleBE=c.prototype.readDoubleBE,n.prototype.writeUInt8=c.prototype.writeUInt8,n.prototype.writeUInt16LE=c.prototype.writeUInt16LE,n.prototype.writeUInt16BE=c.prototype.writeUInt16BE,n.prototype.writeUInt32LE=c.prototype.writeUInt32LE,n.prototype.writeUInt32BE=c.prototype.writeUInt32BE,n.prototype.writeInt8=c.prototype.writeInt8,n.prototype.writeInt16LE=c.prototype.writeInt16LE,n.prototype.writeInt16BE=c.prototype.writeInt16BE,n.prototype.writeInt32LE=c.prototype.writeInt32LE,n.prototype.writeInt32BE=c.prototype.writeInt32BE,n.prototype.writeFloatLE=c.prototype.writeFloatLE,n.prototype.writeFloatBE=c.prototype.writeFloatBE,n.prototype.writeDoubleLE=c.prototype.writeDoubleLE,n.prototype.writeDoubleBE=c.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":5,"base64-js":7}],7:[function(t,e){(function(){"use strict";function t(t){var e,r,o,i,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],o=s>0?t.length-4:t.length,e=0,r=0;o>e;e+=4,r+=3)i=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&i)>>16),a.push((65280&i)>>8),a.push(255&i);return 2===s?(i=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&i)):1===s&&(i=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&i>>8),a.push(255&i)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,o,i,s=t.length%3,a="";for(r=0,i=t.length-s;i>r;r+=3)o=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(o);switch(s){case 1:o=t[t.length-1],a+=n[o>>2],a+=n[63&o<<4],a+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],a+=n[o>>10],a+=n[63&o>>4],a+=n[63&o<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}],8:[function(t,e,r){r.readIEEE754=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,f=u>>1,h=-7,c=r?0:o-1,p=r?1:-1,l=t[e+c];for(c+=p,i=l&(1<<-h)-1,l>>=-h,h+=a;h>0;i=256*i+t[e+c],c+=p,h-=8);for(s=i&(1<<-h)-1,i>>=-h,h+=n;h>0;s=256*s+t[e+c],c+=p,h-=8);if(0===i)i=1-f;else{if(i===u)return s?0/0:1/0*(l?-1:1);s+=Math.pow(2,n),i-=f}return(l?-1:1)*s*Math.pow(2,i-n)},r.writeIEEE754=function(t,e,r,n,o,i){var s,a,u,f=8*i-o-1,h=(1<<f)-1,c=h>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?i-1:0,g=n?-1:1,d=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+c>=1?p/u:p*Math.pow(2,1-c),e*u>=2&&(s++,u/=2),s+c>=h?(a=0,s=h):s+c>=1?(a=(e*u-1)*Math.pow(2,o),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,o),s=0));o>=8;t[r+l]=255&a,l+=g,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;t[r+l]=255&s,l+=g,s/=256,f-=8);t[r+l-g]|=128*d}},{}],3:[function(t,e,r){function n(t){this.length=t}function o(t){return 16>t?"0"+t.toString(16):t.toString(16)}function i(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),o=0;n.length>o;o++)e.push(parseInt(n[o],16));return e}function s(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function a(e){return t("base64-js").toByteArray(e)}function u(t,e,r,n){for(var o=0;n>o&&!(o+r>=e.length||o>=t.length);)e[o+r]=t[o],o++;return o}function f(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function h(t){return t=~~Math.ceil(+t),0>t?0:t}function c(t,e,r){if(!(this instanceof c))return new c(t,e,r);var o;if("number"==typeof r)this.length=h(e),this.parent=t,this.offset=r;else{switch(o=typeof t){case"number":this.length=h(t);break;case"string":this.length=c.byteLength(t,e);break;case"object":this.length=h(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(this.length>c.poolSize?(this.parent=new n(this.length),this.offset=0):((!j||j.length-j.used<this.length)&&l(),this.parent=j,this.offset=j.used,j.used+=this.length),p(t))for(var i=0;this.length>i;i++)this.parent[i+this.offset]=t[i];else"string"==o&&(this.length=this.write(t,0,e))}}function p(t){return Array.isArray(t)||c.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function l(){j=new n(c.poolSize),j.used=0}function g(t,e,r,n){var o=0;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+1,"Trying to read beyond buffer length")),r?(o=t.parent[t.offset+e]<<8,o|=t.parent[t.offset+e+1]):(o=t.parent[t.offset+e],o|=t.parent[t.offset+e+1]<<8),o}function d(t,e,r,n){var o=0;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+3,"Trying to read beyond buffer length")),r?(o=t.parent[t.offset+e+1]<<16,o|=t.parent[t.offset+e+2]<<8,o|=t.parent[t.offset+e+3],o+=t.parent[t.offset+e]<<24>>>0):(o=t.parent[t.offset+e+2]<<16,o|=t.parent[t.offset+e+1]<<8,o|=t.parent[t.offset+e],o+=t.parent[t.offset+e+3]<<24>>>0),o}function y(t,e,r,n){var o,i;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+1,"Trying to read beyond buffer length")),i=g(t,e,r,n),o=32768&i,o?-1*(65535-i+1):i}function v(t,e,r,n){var o,i;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+3,"Trying to read beyond buffer length")),i=d(t,e,r,n),o=2147483648&i,o?-1*(4294967295-i+1):i}function b(e,r,n,o){return o||(A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function m(e,r,n,o){return o||(A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function w(t,e){A.ok("number"==typeof t,"cannot write a non-number as a number"),A.ok(t>=0,"specified a negative value for writing an unsigned value"),A.ok(e>=t,"value is larger than maximum value for type"),A.ok(Math.floor(t)===t,"value has a fractional component")}function E(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+1,"trying to write beyond buffer length"),w(e,65535)),n?(t.parent[t.offset+r]=(65280&e)>>>8,t.parent[t.offset+r+1]=255&e):(t.parent[t.offset+r+1]=(65280&e)>>>8,t.parent[t.offset+r]=255&e)}function k(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+3,"trying to write beyond buffer length"),w(e,4294967295)),n?(t.parent[t.offset+r]=255&e>>>24,t.parent[t.offset+r+1]=255&e>>>16,t.parent[t.offset+r+2]=255&e>>>8,t.parent[t.offset+r+3]=255&e):(t.parent[t.offset+r+3]=255&e>>>24,t.parent[t.offset+r+2]=255&e>>>16,t.parent[t.offset+r+1]=255&e>>>8,t.parent[t.offset+r]=255&e)}function _(t,e,r){A.ok("number"==typeof t,"cannot write a non-number as a number"),A.ok(e>=t,"value larger than maximum allowed value"),A.ok(t>=r,"value smaller than minimum allowed value"),A.ok(Math.floor(t)===t,"value has a fractional component")}function I(t,e,r){A.ok("number"==typeof t,"cannot write a non-number as a number"),A.ok(e>=t,"value larger than maximum allowed value"),A.ok(t>=r,"value smaller than minimum allowed value")}function x(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+1,"Trying to write beyond buffer length"),_(e,32767,-32768)),e>=0?E(t,e,r,n,o):E(t,65535+e+1,r,n,o)}function S(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+3,"Trying to write beyond buffer length"),_(e,2147483647,-2147483648)),e>=0?k(t,e,r,n,o):k(t,4294967295+e+1,r,n,o)}function L(e,r,n,o,i){i||(A.ok(void 0!==r&&null!==r,"missing value"),A.ok("boolean"==typeof o,"missing or invalid endian"),A.ok(void 0!==n&&null!==n,"missing offset"),A.ok(e.length>n+3,"Trying to write beyond buffer length"),I(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,o,23,4)}function B(e,r,n,o,i){i||(A.ok(void 0!==r&&null!==r,"missing value"),A.ok("boolean"==typeof o,"missing or invalid endian"),A.ok(void 0!==n&&null!==n,"missing offset"),A.ok(e.length>n+7,"Trying to write beyond buffer length"),I(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,o,52,8)}var A=t("assert");r.INSPECT_MAX_BYTES=50,n.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return i(t).length;case"ascii":return t.length;case"base64":return a(t).length;default:throw Error("Unknown encoding")}},n.prototype.utf8Write=function(t,e,r){return n._charsWritten=u(i(t),this,e,r)},n.prototype.asciiWrite=function(t,e,r){return n._charsWritten=u(s(t),this,e,r)},n.prototype.base64Write=function(t,e,r){return n._charsWritten=u(a(t),this,e,r)},n.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},n.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=f(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+f(r)},n.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},n.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=o(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<SlowBuffer "+t.join(" ")+">"},n.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",i=t;e>i;i++)n+=o(this[i]);return n},n.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},n.prototype.hexWrite=function(t,e,r){e=+e||0;var o=this.length-e;r?(r=+r,r>o&&(r=o)):r=o;var i=t.length;if(i%2)throw Error("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;r>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[e+s]=a}return n._charsWritten=2*s,s},n.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var o=n;n=e,e=r,r=o}e=+e||0;var i=this.length-e;switch(r?(r=+r,r>i&&(r=i)):r=i,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},n.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new c(this,e-t,+t)},n.prototype.copy=function(t,e,r,n){for(var o=[],i=r;n>i;i++)A.ok(this[i]!==void 0,"copying undefined buffer bytes!"),o.push(this[i]);for(var i=e;e+o.length>i;i++)t[i]=o[i-e]},r.SlowBuffer=n,r.Buffer=c,c.poolSize=8192;var j;c.isBuffer=function(t){return t instanceof c||t instanceof n},c.concat=function(t,e){if(!Array.isArray(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new c(0);if(1===t.length)return t[0];if("number"!=typeof e){e=0;for(var r=0;t.length>r;r++){var n=t[r];e+=n.length}}for(var o=new c(e),i=0,r=0;t.length>r;r++){var n=t[r];n.copy(o,i),i+=n.length}return o},c.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=o(this.parent[n+this.offset]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},c.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]},c.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]=e},c.prototype.write=function(t,e,r,o){if(isFinite(e))isFinite(r)||(o=r,r=void 0);else{var i=o;o=e,e=r,r=i}e=+e||0;var s=this.length-e;r?(r=+r,r>s&&(r=s)):r=s,o=((o||"utf8")+"").toLowerCase();var a;switch(o){case"hex":a=this.parent.hexWrite(t,this.offset+e,r);break;case"utf8":case"utf-8":a=this.parent.utf8Write(t,this.offset+e,r);break;case"ascii":a=this.parent.asciiWrite(t,this.offset+e,r);break;case"binary":a=this.parent.binaryWrite(t,this.offset+e,r);break;case"base64":a=this.parent.base64Write(t,this.offset+e,r);break;case"ucs2":case"ucs-2":a=this.parent.ucs2Write(t,this.offset+e,r);break;default:throw Error("Unknown encoding")}return c._charsWritten=n._charsWritten,a},c.prototype.toString=function(t,e,r){switch(t=((t||"utf8")+"").toLowerCase(),e===void 0||0>e?e=0:e>this.length&&(e=this.length),r===void 0||r>this.length?r=this.length:0>r&&(r=0),e+=this.offset,r+=this.offset,t){case"hex":return this.parent.hexSlice(e,r);case"utf8":case"utf-8":return this.parent.utf8Slice(e,r);case"ascii":return this.parent.asciiSlice(e,r);case"binary":return this.parent.binarySlice(e,r);case"base64":return this.parent.base64Slice(e,r);case"ucs2":case"ucs-2":return this.parent.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},c.byteLength=n.byteLength,c.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");return this.parent.fill(t,e+this.offset,r+this.offset)},c.prototype.copy=function(t,e,r,n){var o=this;if(r||(r=0),n||(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==o.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=o.length)throw Error("sourceStart out of bounds");if(0>n||n>o.length)throw Error("sourceEnd out of bounds");return n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r),this.parent.copy(t.parent,e+t.offset,r+this.offset,n+this.offset)},c.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new c(this.parent,e-t,+t+this.offset)},c.prototype.utf8Slice=function(t,e){return this.toString("utf8",t,e)},c.prototype.binarySlice=function(t,e){return this.toString("binary",t,e)},c.prototype.asciiSlice=function(t,e){return this.toString("ascii",t,e)},c.prototype.utf8Write=function(t,e){return this.write(t,e,"utf8")},c.prototype.binaryWrite=function(t,e){return this.write(t,e,"binary")},c.prototype.asciiWrite=function(t,e){return this.write(t,e,"ascii")},c.prototype.readUInt8=function(t,e){var r=this;return e||(A.ok(void 0!==t&&null!==t,"missing offset"),A.ok(r.length>t,"Trying to read beyond buffer length")),r.parent[r.offset+t]},c.prototype.readUInt16LE=function(t,e){return g(this,t,!1,e)},c.prototype.readUInt16BE=function(t,e){return g(this,t,!0,e)},c.prototype.readUInt32LE=function(t,e){return d(this,t,!1,e)},c.prototype.readUInt32BE=function(t,e){return d(this,t,!0,e)},c.prototype.readInt8=function(t,e){var r,n=this;return e||(A.ok(void 0!==t&&null!==t,"missing offset"),A.ok(n.length>t,"Trying to read beyond buffer length")),r=128&n.parent[n.offset+t],r?-1*(255-n.parent[n.offset+t]+1):n.parent[n.offset+t]},c.prototype.readInt16LE=function(t,e){return y(this,t,!1,e)},c.prototype.readInt16BE=function(t,e){return y(this,t,!0,e)},c.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},c.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},c.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},c.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},c.prototype.readDoubleLE=function(t,e){return m(this,t,!1,e)},c.prototype.readDoubleBE=function(t,e){return m(this,t,!0,e)},c.prototype.writeUInt8=function(t,e,r){var n=this;r||(A.ok(void 0!==t&&null!==t,"missing value"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(n.length>e,"trying to write beyond buffer length"),w(t,255)),n.parent[n.offset+e]=t},c.prototype.writeUInt16LE=function(t,e,r){E(this,t,e,!1,r)},c.prototype.writeUInt16BE=function(t,e,r){E(this,t,e,!0,r)},c.prototype.writeUInt32LE=function(t,e,r){k(this,t,e,!1,r)},c.prototype.writeUInt32BE=function(t,e,r){k(this,t,e,!0,r)},c.prototype.writeInt8=function(t,e,r){var n=this;r||(A.ok(void 0!==t&&null!==t,"missing value"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(n.length>e,"Trying to write beyond buffer length"),_(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},c.prototype.writeInt16LE=function(t,e,r){x(this,t,e,!1,r)},c.prototype.writeInt16BE=function(t,e,r){x(this,t,e,!0,r)},c.prototype.writeInt32LE=function(t,e,r){S(this,t,e,!1,r)},c.prototype.writeInt32BE=function(t,e,r){S(this,t,e,!0,r)},c.prototype.writeFloatLE=function(t,e,r){L(this,t,e,!1,r)},c.prototype.writeFloatBE=function(t,e,r){L(this,t,e,!0,r)},c.prototype.writeDoubleLE=function(t,e,r){B(this,t,e,!1,r)},c.prototype.writeDoubleBE=function(t,e,r){B(this,t,e,!0,r)},n.prototype.readUInt8=c.prototype.readUInt8,n.prototype.readUInt16LE=c.prototype.readUInt16LE,n.prototype.readUInt16BE=c.prototype.readUInt16BE,n.prototype.readUInt32LE=c.prototype.readUInt32LE,n.prototype.readUInt32BE=c.prototype.readUInt32BE,n.prototype.readInt8=c.prototype.readInt8,n.prototype.readInt16LE=c.prototype.readInt16LE,n.prototype.readInt16BE=c.prototype.readInt16BE,n.prototype.readInt32LE=c.prototype.readInt32LE,n.prototype.readInt32BE=c.prototype.readInt32BE,n.prototype.readFloatLE=c.prototype.readFloatLE,n.prototype.readFloatBE=c.prototype.readFloatBE,n.prototype.readDoubleLE=c.prototype.readDoubleLE,n.prototype.readDoubleBE=c.prototype.readDoubleBE,n.prototype.writeUInt8=c.prototype.writeUInt8,n.prototype.writeUInt16LE=c.prototype.writeUInt16LE,n.prototype.writeUInt16BE=c.prototype.writeUInt16BE,n.prototype.writeUInt32LE=c.prototype.writeUInt32LE,n.prototype.writeUInt32BE=c.prototype.writeUInt32BE,n.prototype.writeInt8=c.prototype.writeInt8,n.prototype.writeInt16LE=c.prototype.writeInt16LE,n.prototype.writeInt16BE=c.prototype.writeInt16BE,n.prototype.writeInt32LE=c.prototype.writeInt32LE,n.prototype.writeInt32BE=c.prototype.writeInt32BE,n.prototype.writeFloatLE=c.prototype.writeFloatLE,n.prototype.writeFloatBE=c.prototype.writeFloatBE,n.prototype.writeDoubleLE=c.prototype.writeDoubleLE,n.prototype.writeDoubleBE=c.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":8,"base64-js":9}],9:[function(t,e){(function(){"use strict";function t(t){var e,r,o,i,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],o=s>0?t.length-4:t.length,e=0,r=0;o>e;e+=4,r+=3)i=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&i)>>16),a.push((65280&i)>>8),a.push(255&i);return 2===s?(i=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&i)):1===s&&(i=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&i>>8),a.push(255&i)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,o,i,s=t.length%3,a="";for(r=0,i=t.length-s;i>r;r+=3)o=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(o);switch(s){case 1:o=t[t.length-1],a+=n[o>>2],a+=n[63&o<<4],a+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],a+=n[o>>10],a+=n[63&o>>4],a+=n[63&o<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}]},{},[]),e.exports=t("buffer-browserify")},{}],E7p6Hd:[function(t,e){(function(r,n){function o(t,e){var r=Array.prototype.slice.call(arguments,2);return function(){var n=r.concat(Array.prototype.slice.call(arguments));return e.apply(t,n)}}function i(t,e,n,i){"object"==typeof t&&(n=e,e=t,t=void 0),"function"==typeof e&&(n=e,e=void 0),e||(e={}),void 0!==t&&(e.uri=t),i&&(e.method=i.method);var a=new s(e),u=a.duplex&&h();u&&u.pause();var f=h(),p=a.duplex?c(u,f):f;a.duplex||(f.writable=!1),p.request=a,p.setHeader=o(a,a.setHeader),p.setLocation=o(a,a.setLocation);var l=!1;return p.on("close",function(){l=!0}),r.nextTick(function(){if(!l){p.on("close",function(){t.destroy()});var t=a._send();t.on("error",o(p,p.emit,"error")),t.on("response",function(t){p.response=t,p.emit("response",t),a.duplex?t.pipe(f):(t.on("data",function(t){f.queue(t)}),t.on("end",function(){f.queue(null)}))}),a.duplex?(u.pipe(t),u.resume()):t.end()}}),n&&(p.on("error",n),p.on("response",o(p,n,null))),p}function s(t){this.headers=t.headers||{};var e=(t.method||"GET").toUpperCase();this.method=e,this.duplex=!("GET"===e||"DELETE"===e),this.auth=t.auth,t.uri&&this.setLocation(t.uri)}var a=t("url"),u=t("http"),f=t("https"),h=t("through"),c=t("duplexer");e.exports=i,i.get=i,i.post=function(t,e,r){return i(t,e,r,{method:"POST"})},i.put=function(t,e,r){return i(t,e,r,{method:"PUT"})},i["delete"]=function(t,e,r){return i(t,e,r,{method:"DELETE"})},s.prototype._send=function(){this._sent=!0;var t=this.headers||{},e=a.parse(this.uri),r=e.auth||this.auth;r&&(t.authorization="Basic "+n(r).toString("base64"));var o=e.protocol||"",i="https:"===o?f:u,s=i.request({scheme:o.replace(/:$/,""),method:this.method,host:e.hostname,port:Number(e.port),path:e.path,agent:!1,headers:t});return s.setTimeout&&s.setTimeout(1e3*Math.pow(2,32)),s},s.prototype.setHeader=function(t,e){if(this._sent)throw Error("request already sent");return this.headers[t]=e,this},s.prototype.setLocation=function(t){return this.uri=t,this}})(t("__browserify_process"),t("__browserify_Buffer").Buffer)},{http:2,url:3,https:1,through:8,duplexer:9,__browserify_process:5,__browserify_Buffer:7}],2:[function(t,e){var r=e.exports;t("events").EventEmitter;var n=t("./lib/request");r.request=function(t,e){t||(t={}),t.host||(t.host=window.location.host.split(":")[0]),t.port||(t.port=window.location.port),t.scheme||(t.scheme=window.location.protocol.split(":")[0]);var r=new n(new o,t);return e&&r.on("response",e),r},r.get=function(t,e){t.method="GET";var n=r.request(t,e);return n.end(),n},r.Agent=function(){},r.Agent.defaultMaxSockets=4;var o=function(){if("undefined"==typeof window)throw Error("no window object present");if(window.XMLHttpRequest)return window.XMLHttpRequest;if(window.ActiveXObject){for(var t=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Microsoft.XMLHTTP"],e=0;t.length>e;e++)try{var r=new window.ActiveXObject(t[e]);return function(){if(r){var n=r;return r=null,n}return new window.ActiveXObject(t[e])}}catch(n){}throw Error("ajax not supported in this browser")}throw Error("ajax not supported in this browser")}()},{events:6,"./lib/request":10}],8:[function(t,e,r){(function(n){function o(t,e){function r(){for(;u.length&&!f.paused;){var t=u.shift();if(null===t)return f.emit("end");f.emit("data",t)}}function o(){f.writable=!1,e.call(f),f.readable||f.destroy()}t=t||function(t){this.queue(t)},e=e||function(){this.queue(null)};var s=!1,a=!1,u=[],f=new i;return f.readable=f.writable=!0,f.paused=!1,f.write=function(e){return t.call(this,e),!f.paused
},f.queue=f.push=function(t){return u.push(t),r(),f},f.on("end",function(){f.readable=!1,f.writable||n.nextTick(function(){f.destroy()})}),f.end=function(t){return s?void 0:(s=!0,arguments.length&&f.write(t),o(),f)},f.destroy=function(){return a?void 0:(a=!0,s=!0,u.length=0,f.writable=f.readable=!1,f.emit("close"),f)},f.pause=function(){return f.paused?void 0:(f.paused=!0,f.emit("pause"),f)},f.resume=function(){return f.paused&&(f.paused=!1),r(),f.paused||f.emit("drain"),f},f}var i=t("stream");r=e.exports=o,o.through=o})(t("__browserify_process"))},{stream:11,__browserify_process:5}],9:[function(t,e){function r(t,e){if(t.forEach)return t.forEach(e);for(var r=0;t.length>r;r++)e(t[r],r)}function n(t,e){function n(e){function r(){return t[e].apply(t,arguments)}l[e]=r}function f(t){function r(){l.emit(t);var r=e[t];return r?r.apply(e,arguments):(e.emit(t),void 0)}l[t]=r}function h(t){function r(){var e=u.call(arguments);e.unshift(t),l.emit.apply(l,e)}e.on(t,r)}function c(){if(!g){g=!0;var t=u.call(arguments);t.unshift("end"),l.emit.apply(l,t)}}function p(t){l.emit("error",t)}var l=new o,g=!1;return r(i,n),r(s,f),r(a,h),e.on("end",c),t.on("drain",function(){l.emit("drain")}),t.on("error",p),e.on("error",p),l.writable=t.writable,l.readable=e.readable,l}var o=t("stream"),i=["write","end","destroy"],s=["resume","pause"],a=["data","close"],u=Array.prototype.slice;e.exports=n},{stream:11}],11:[function(t,e){function r(){n.EventEmitter.call(this)}var n=t("events"),o=t("util");o.inherits(r,n.EventEmitter),e.exports=r,r.Stream=r,r.prototype.pipe=function(t,e){function r(e){t.writable&&!1===t.write(e)&&u.pause&&u.pause()}function n(){u.readable&&u.resume&&u.resume()}function o(){f||(f=!0,t._pipeCount--,a(),t._pipeCount>0||t.end())}function i(){f||(f=!0,t._pipeCount--,a(),t._pipeCount>0||t.destroy())}function s(t){if(a(),0===this.listeners("error").length)throw t}function a(){u.removeListener("data",r),t.removeListener("drain",n),u.removeListener("end",o),u.removeListener("close",i),u.removeListener("error",s),t.removeListener("error",s),u.removeListener("end",a),u.removeListener("close",a),t.removeListener("end",a),t.removeListener("close",a)}var u=this;u.on("data",r),t.on("drain",n),t._isStdio||e&&e.end===!1||(t._pipeCount=t._pipeCount||0,t._pipeCount++,u.on("end",o),u.on("close",i));var f=!1;return u.on("error",s),t.on("error",s),u.on("end",a),u.on("close",a),t.on("end",a),t.on("close",a),t.emit("pipe",u),t}},{events:6,util:12}],12:[function(t,e,r){function n(t){return t instanceof Array||Array.isArray(t)||t&&t!==Object.prototype&&n(t.__proto__)}function o(t){return t instanceof RegExp||"object"==typeof t&&"[object RegExp]"===Object.prototype.toString.call(t)}function i(t){if(t instanceof Date)return!0;if("object"!=typeof t)return!1;var e=Date.prototype&&a(Date.prototype),r=t.__proto__&&a(t.__proto__);return JSON.stringify(r)===JSON.stringify(e)}t("events"),r.isArray=n,r.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},r.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},r.print=function(){},r.puts=function(){},r.debug=function(){},r.inspect=function(t,e,u,f){function h(t,u){if(t&&"function"==typeof t.inspect&&t!==r&&(!t.constructor||t.constructor.prototype!==t))return t.inspect(u);switch(typeof t){case"undefined":return p("undefined","undefined");case"string":var f="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return p(f,"string");case"number":return p(""+t,"number");case"boolean":return p(""+t,"boolean")}if(null===t)return p("null","null");var l=s(t),g=e?a(t):l;if("function"==typeof t&&0===g.length){if(o(t))return p(""+t,"regexp");var d=t.name?": "+t.name:"";return p("[Function"+d+"]","special")}if(i(t)&&0===g.length)return p(t.toUTCString(),"date");var y,v,b;if(n(t)?(v="Array",b=["[","]"]):(v="Object",b=["{","}"]),"function"==typeof t){var m=t.name?": "+t.name:"";y=o(t)?" "+t:" [Function"+m+"]"}else y="";if(i(t)&&(y=" "+t.toUTCString()),0===g.length)return b[0]+y+b[1];if(0>u)return o(t)?p(""+t,"regexp"):p("[Object]","special");c.push(t);var w=g.map(function(e){var r,o;if(t.__lookupGetter__&&(t.__lookupGetter__(e)?o=t.__lookupSetter__(e)?p("[Getter/Setter]","special"):p("[Getter]","special"):t.__lookupSetter__(e)&&(o=p("[Setter]","special"))),0>l.indexOf(e)&&(r="["+e+"]"),o||(0>c.indexOf(t[e])?(o=null===u?h(t[e]):h(t[e],u-1),o.indexOf("\n")>-1&&(o=n(t)?o.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+o.split("\n").map(function(t){return" "+t}).join("\n"))):o=p("[Circular]","special")),r===void 0){if("Array"===v&&e.match(/^\d+$/))return o;r=JSON.stringify(""+e),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=p(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=p(r,"string"))}return r+": "+o});c.pop();var E=0,k=w.reduce(function(t,e){return E++,e.indexOf("\n")>=0&&E++,t+e.length+1},0);return w=k>50?b[0]+(""===y?"":y+"\n ")+" "+w.join(",\n ")+" "+b[1]:b[0]+y+" "+w.join(", ")+" "+b[1]}var c=[],p=function(t,e){var r={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},n={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[e];return n?"["+r[n][0]+"m"+t+"["+r[n][1]+"m":t};return f||(p=function(t){return t}),h(t,u===void 0?2:u)},r.log=function(){},r.pump=null;var s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},a=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.hasOwnProperty.call(t,r)&&e.push(r);return e},u=Object.create||function(t,e){var r;if(null===t)r={__proto__:null};else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var n=function(){};n.prototype=t,r=new n,r.__proto__=t}return e!==void 0&&Object.defineProperties&&Object.defineProperties(r,e),r};r.inherits=function(t,e){t.super_=e,t.prototype=u(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};var f=/%[sdj%]/g;r.format=function(t){if("string"!=typeof t){for(var e=[],n=0;arguments.length>n;n++)e.push(r.inspect(arguments[n]));return e.join(" ")}for(var n=1,o=arguments,i=o.length,s=(t+"").replace(f,function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return o[n++]+"";case"%d":return Number(o[n++]);case"%j":return JSON.stringify(o[n++]);default:return t}}),a=o[n];i>n;a=o[++n])s+=null===a||"object"!=typeof a?" "+a:" "+r.inspect(a);return s}},{events:6}],13:[function(t,e){function r(t){for(var e=t.getAllResponseHeaders().split(/\r?\n/),r={},n=0;e.length>n;n++){var o=e[n];if(""!==o){var i=o.match(/^([^:]+):\s*(.*)/);if(i){var a=i[1].toLowerCase(),u=i[2];void 0!==r[a]?s(r[a])?r[a].push(u):r[a]=[r[a],u]:r[a]=u}else r[o]=!0}}return r}var n=t("stream"),o=e.exports=function(){this.offset=0,this.readable=!0};o.prototype=new n;var i={streaming:!0,status2:!0};o.prototype.getResponse=function(t){var e=(t.responseType+"").toLowerCase();return"blob"===e?t.responseBlob||t.response:"arraybuffer"===e?t.response:t.responseText},o.prototype.getHeader=function(t){return this.headers[t.toLowerCase()]},o.prototype.handle=function(t){if(2===t.readyState&&i.status2){try{this.statusCode=t.status,this.headers=r(t)}catch(e){i.status2=!1}i.status2&&this.emit("ready")}else if(i.streaming&&3===t.readyState){try{this.statusCode||(this.statusCode=t.status,this.headers=r(t),this.emit("ready"))}catch(e){}try{this._emitData(t)}catch(e){i.streaming=!1}}else 4===t.readyState&&(this.statusCode||(this.statusCode=t.status,this.emit("ready")),this._emitData(t),t.error?this.emit("error",this.getResponse(t)):this.emit("end"),this.emit("close"))},o.prototype._emitData=function(t){var e=this.getResponse(t);return(""+e).match(/ArrayBuffer/)?(this.emit("data",new Uint8Array(e,this.offset)),this.offset=e.byteLength,void 0):(e.length>this.offset&&(this.emit("data",e.slice(this.offset)),this.offset=e.length),void 0)};var s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{stream:11}],14:[function(t,e){(function(){function r(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}function n(t,e){return void 0===e?""+e:"number"!=typeof e||!isNaN(e)&&isFinite(e)?"function"==typeof e||e instanceof RegExp?""+e:e:""+e}function o(t,e){return"string"==typeof t?e>t.length?t:t.slice(0,e):t}function i(t,e,r,n,o){throw new y.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:o})}function s(t,e){t||i(t,!0,e,"==",y.ok)}function a(t,e){if(t===e)return!0;if(g.isBuffer(t)&&g.isBuffer(e)){if(t.length!=e.length)return!1;for(var r=0;t.length>r;r++)if(t[r]!==e[r])return!1;return!0}return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():"object"!=typeof t&&"object"!=typeof e?t==e:h(t,e)}function u(t){return null===t||void 0===t}function f(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function h(t,e){if(u(t)||u(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return f(e)?(t=d.call(t),e=d.call(e),a(t,e)):!1;try{var n,o,i=r(t),s=r(e)}catch(h){return!1}if(i.length!=s.length)return!1;for(i.sort(),s.sort(),o=i.length-1;o>=0;o--)if(i[o]!=s[o])return!1;for(o=i.length-1;o>=0;o--)if(n=i[o],!a(t[n],e[n]))return!1;return!0}function c(t,e){return t&&e?e instanceof RegExp?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function p(t,e,r,n){var o;"string"==typeof r&&(n=r,r=null);try{e()}catch(s){o=s}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!o&&i("Missing expected exception"+n),!t&&c(o,r)&&i("Got unwanted exception"+n),t&&o&&r&&!c(o,r)||!t&&o)throw o}var l=t("util"),g=t("buffer").Buffer,d=Array.prototype.slice,y=e.exports=s;y.AssertionError=function(t){this.name="AssertionError",this.message=t.message,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator;var e=t.stackStartFunction||i;Error.captureStackTrace&&Error.captureStackTrace(this,e)},l.inherits(y.AssertionError,Error),y.AssertionError.prototype.toString=function(){return this.message?[this.name+":",this.message].join(" "):[this.name+":",o(JSON.stringify(this.actual,n),128),this.operator,o(JSON.stringify(this.expected,n),128)].join(" ")},y.AssertionError.__proto__=Error.prototype,y.fail=i,y.ok=s,y.equal=function(t,e,r){t!=e&&i(t,e,r,"==",y.equal)},y.notEqual=function(t,e,r){t==e&&i(t,e,r,"!=",y.notEqual)},y.deepEqual=function(t,e,r){a(t,e)||i(t,e,r,"deepEqual",y.deepEqual)},y.notDeepEqual=function(t,e,r){a(t,e)&&i(t,e,r,"notDeepEqual",y.notDeepEqual)},y.strictEqual=function(t,e,r){t!==e&&i(t,e,r,"===",y.strictEqual)},y.notStrictEqual=function(t,e,r){t===e&&i(t,e,r,"!==",y.notStrictEqual)},y.throws=function(){p.apply(this,[!0].concat(d.call(arguments)))},y.doesNotThrow=function(){p.apply(this,[!1].concat(d.call(arguments)))},y.ifError=function(t){if(t)throw t}})()},{buffer:15,util:12}],16:[function(t,e,r){r.readIEEE754=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,f=u>>1,h=-7,c=r?0:o-1,p=r?1:-1,l=t[e+c];for(c+=p,i=l&(1<<-h)-1,l>>=-h,h+=a;h>0;i=256*i+t[e+c],c+=p,h-=8);for(s=i&(1<<-h)-1,i>>=-h,h+=n;h>0;s=256*s+t[e+c],c+=p,h-=8);if(0===i)i=1-f;else{if(i===u)return s?0/0:1/0*(l?-1:1);s+=Math.pow(2,n),i-=f}return(l?-1:1)*s*Math.pow(2,i-n)},r.writeIEEE754=function(t,e,r,n,o,i){var s,a,u,f=8*i-o-1,h=(1<<f)-1,c=h>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?i-1:0,g=n?-1:1,d=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+c>=1?p/u:p*Math.pow(2,1-c),e*u>=2&&(s++,u/=2),s+c>=h?(a=0,s=h):s+c>=1?(a=(e*u-1)*Math.pow(2,o),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,o),s=0));o>=8;t[r+l]=255&a,l+=g,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;t[r+l]=255&s,l+=g,s/=256,f-=8);t[r+l-g]|=128*d}},{}],10:[function(t,e){(function(){var r=t("stream"),n=t("./response"),o=t("concat-stream"),i=t("buffer"),s=e.exports=function(t,e){var r=this;r.writable=!0,r.xhr=t,r.body=o();var s=e.host+(e.port?":"+e.port:"")+(e.path||"/");if(t.open(e.method||"GET",(e.scheme||"http")+"://"+s,!0),e.headers)for(var f=a(e.headers),h=0;f.length>h;h++){var c=f[h];if(r.isSafeRequestHeader(c)){var p=e.headers[c];if(u(p))for(var l=0;p.length>l;l++)t.setRequestHeader(c,p[l]);else t.setRequestHeader(c,p)}}e.auth&&this.setHeader("Authorization","Basic "+new i(e.auth).toString("base64"));var g=new n;g.on("close",function(){r.emit("close")}),g.on("ready",function(){r.emit("response",g)}),t.onreadystatechange=function(){g.handle(t)}};s.prototype=new r,s.prototype.setHeader=function(t,e){if(u(e))for(var r=0;e.length>r;r++)this.xhr.setRequestHeader(t,e[r]);else this.xhr.setRequestHeader(t,e)},s.prototype.write=function(t){this.body.write(t)},s.prototype.destroy=function(){this.xhr.abort(),this.emit("close")},s.prototype.end=function(t){void 0!==t&&this.body.write(t),this.body.end(),this.xhr.send(this.body.getBody())},s.unsafeHeaders=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","content-transfer-encoding","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"],s.prototype.isSafeRequestHeader=function(t){return t?-1===f(s.unsafeHeaders,t.toLowerCase()):!1};var a=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},u=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},f=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;t.length>r;r++)if(t[r]===e)return r;return-1}})()},{stream:11,buffer:15,"./response":13,"concat-stream":17}],15:[function(t,e,r){(function(){function e(t,r,o){if(!(this instanceof e))return new e(t,r,o);this.parent=this,this.offset=0;var s;if("number"==typeof o)this.length=n(r),this.offset=o;else{switch(s=typeof t){case"number":this.length=n(t);break;case"string":this.length=e.byteLength(t,r);break;case"object":this.length=n(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(i(t))for(var a=0;this.length>a;a++)this[a]=t instanceof e?t.readUInt8(a):t[a];else if("string"==s)this.length=this.write(t,0,r);else if("number"===s)for(var a=0;this.length>a;a++)this[a]=0}}function n(t){return t=~~Math.ceil(+t),0>t?0:t}function o(t){return(Array.isArray||function(t){return"[object Array]"=={}.toString.apply(t)})(t)}function i(t){return o(t)||e.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function s(t){return 16>t?"0"+t.toString(16):t.toString(16)}function a(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),o=0;n.length>o;o++)e.push(parseInt(n[o],16));return e}function u(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function f(e){return t("base64-js").toByteArray(e)}function h(t,e,r,n){for(var o=0;n>o&&!(o+r>=e.length||o>=t.length);)e[o+r]=t[o],o++;return o}function c(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function p(t,e,r,n){var o=0;return n||(L.ok("boolean"==typeof r,"missing or invalid endian"),L.ok(void 0!==e&&null!==e,"missing offset"),L.ok(t.length>e+1,"Trying to read beyond buffer length")),e>=t.length?0:(r?(o=t[e]<<8,t.length>e+1&&(o|=t[e+1])):(o=t[e],t.length>e+1&&(o|=t[e+1]<<8)),o)}function l(t,e,r,n){var o=0;return n||(L.ok("boolean"==typeof r,"missing or invalid endian"),L.ok(void 0!==e&&null!==e,"missing offset"),L.ok(t.length>e+3,"Trying to read beyond buffer length")),e>=t.length?0:(r?(t.length>e+1&&(o=t[e+1]<<16),t.length>e+2&&(o|=t[e+2]<<8),t.length>e+3&&(o|=t[e+3]),o+=t[e]<<24>>>0):(t.length>e+2&&(o=t[e+2]<<16),t.length>e+1&&(o|=t[e+1]<<8),o|=t[e],t.length>e+3&&(o+=t[e+3]<<24>>>0)),o)}function g(t,e,r,n){var o,i;return n||(L.ok("boolean"==typeof r,"missing or invalid endian"),L.ok(void 0!==e&&null!==e,"missing offset"),L.ok(t.length>e+1,"Trying to read beyond buffer length")),i=p(t,e,r,n),o=32768&i,o?-1*(65535-i+1):i}function d(t,e,r,n){var o,i;return n||(L.ok("boolean"==typeof r,"missing or invalid endian"),L.ok(void 0!==e&&null!==e,"missing offset"),L.ok(t.length>e+3,"Trying to read beyond buffer length")),i=l(t,e,r,n),o=2147483648&i,o?-1*(4294967295-i+1):i}function y(e,r,n,o){return o||(L.ok("boolean"==typeof n,"missing or invalid endian"),L.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function v(e,r,n,o){return o||(L.ok("boolean"==typeof n,"missing or invalid endian"),L.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function b(t,e){L.ok("number"==typeof t,"cannot write a non-number as a number"),L.ok(t>=0,"specified a negative value for writing an unsigned value"),L.ok(e>=t,"value is larger than maximum value for type"),L.ok(Math.floor(t)===t,"value has a fractional component")}function m(t,e,r,n,o){o||(L.ok(void 0!==e&&null!==e,"missing value"),L.ok("boolean"==typeof n,"missing or invalid endian"),L.ok(void 0!==r&&null!==r,"missing offset"),L.ok(t.length>r+1,"trying to write beyond buffer length"),b(e,65535));for(var i=0;Math.min(t.length-r,2)>i;i++)t[r+i]=(e&255<<8*(n?1-i:i))>>>8*(n?1-i:i)}function w(t,e,r,n,o){o||(L.ok(void 0!==e&&null!==e,"missing value"),L.ok("boolean"==typeof n,"missing or invalid endian"),L.ok(void 0!==r&&null!==r,"missing offset"),L.ok(t.length>r+3,"trying to write beyond buffer length"),b(e,4294967295));for(var i=0;Math.min(t.length-r,4)>i;i++)t[r+i]=255&e>>>8*(n?3-i:i)}function E(t,e,r){L.ok("number"==typeof t,"cannot write a non-number as a number"),L.ok(e>=t,"value larger than maximum allowed value"),L.ok(t>=r,"value smaller than minimum allowed value"),L.ok(Math.floor(t)===t,"value has a fractional component")}function k(t,e,r){L.ok("number"==typeof t,"cannot write a non-number as a number"),L.ok(e>=t,"value larger than maximum allowed value"),L.ok(t>=r,"value smaller than minimum allowed value")}function _(t,e,r,n,o){o||(L.ok(void 0!==e&&null!==e,"missing value"),L.ok("boolean"==typeof n,"missing or invalid endian"),L.ok(void 0!==r&&null!==r,"missing offset"),L.ok(t.length>r+1,"Trying to write beyond buffer length"),E(e,32767,-32768)),e>=0?m(t,e,r,n,o):m(t,65535+e+1,r,n,o)}function I(t,e,r,n,o){o||(L.ok(void 0!==e&&null!==e,"missing value"),L.ok("boolean"==typeof n,"missing or invalid endian"),L.ok(void 0!==r&&null!==r,"missing offset"),L.ok(t.length>r+3,"Trying to write beyond buffer length"),E(e,2147483647,-2147483648)),e>=0?w(t,e,r,n,o):w(t,4294967295+e+1,r,n,o)}function x(e,r,n,o,i){i||(L.ok(void 0!==r&&null!==r,"missing value"),L.ok("boolean"==typeof o,"missing or invalid endian"),L.ok(void 0!==n&&null!==n,"missing offset"),L.ok(e.length>n+3,"Trying to write beyond buffer length"),k(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,o,23,4)}function S(e,r,n,o,i){i||(L.ok(void 0!==r&&null!==r,"missing value"),L.ok("boolean"==typeof o,"missing or invalid endian"),L.ok(void 0!==n&&null!==n,"missing offset"),L.ok(e.length>n+7,"Trying to write beyond buffer length"),k(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,o,52,8)}var L=t("assert");r.Buffer=e,r.SlowBuffer=e,e.poolSize=8192,r.INSPECT_MAX_BYTES=50,e.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this[t]},e.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this[t]=e},e.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return a(t).length;case"ascii":case"binary":return t.length;case"base64":return f(t).length;default:throw Error("Unknown encoding")}},e.prototype.utf8Write=function(t,r,n){return e._charsWritten=h(a(t),this,r,n)},e.prototype.asciiWrite=function(t,r,n){return e._charsWritten=h(u(t),this,r,n)},e.prototype.binaryWrite=e.prototype.asciiWrite,e.prototype.base64Write=function(t,r,n){return e._charsWritten=h(f(t),this,r,n)},e.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},e.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=c(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+c(r)},e.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},e.prototype.binarySlice=e.prototype.asciiSlice,e.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=s(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},e.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",o=t;e>o;o++)n+=s(this[o]);return n},e.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},e.prototype.hexWrite=function(t,r,n){r=+r||0;var o=this.length-r;n?(n=+n,n>o&&(n=o)):n=o;var i=t.length;if(i%2)throw Error("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;n>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[r+s]=a}return e._charsWritten=2*s,s},e.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var o=n;n=e,e=r,r=o}e=+e||0;var i=this.length-e;switch(r?(r=+r,r>i&&(r=i)):r=i,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},e.prototype.slice=function(t,r){if(void 0===r&&(r=this.length),r>this.length)throw Error("oob");if(t>r)throw Error("oob");return new e(this,r-t,+t)},e.prototype.copy=function(t,e,r,n){var o=this;if(r||(r=0),(void 0===n||isNaN(n))&&(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==o.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=o.length)throw Error("sourceStart out of bounds");if(0>n||n>o.length)throw Error("sourceEnd out of bounds");n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r);for(var i=[],s=r;n>s;s++)L.ok(this[s]!==void 0,"copying undefined buffer bytes!"),i.push(this[s]);for(var s=e;e+i.length>s;s++)t[s]=i[s-e]},e.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");for(var n=e;r>n;n++)this[n]=t},e.isBuffer=function(t){return t instanceof e||t instanceof e},e.concat=function(t,r){if(!o(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new e(0);if(1===t.length)return t[0];if("number"!=typeof r){r=0;for(var n=0;t.length>n;n++){var i=t[n];r+=i.length}}for(var s=new e(r),a=0,n=0;t.length>n;n++){var i=t[n];i.copy(s,a),a+=i.length}return s},e.prototype.readUInt8=function(t,e){var r=this;return e||(L.ok(void 0!==t&&null!==t,"missing offset"),L.ok(r.length>t,"Trying to read beyond buffer length")),t>=r.length?void 0:r[t]},e.prototype.readUInt16LE=function(t,e){return p(this,t,!1,e)},e.prototype.readUInt16BE=function(t,e){return p(this,t,!0,e)},e.prototype.readUInt32LE=function(t,e){return l(this,t,!1,e)},e.prototype.readUInt32BE=function(t,e){return l(this,t,!0,e)},e.prototype.readInt8=function(t,e){var r,n=this;return e||(L.ok(void 0!==t&&null!==t,"missing offset"),L.ok(n.length>t,"Trying to read beyond buffer length")),t>=n.length?void 0:(r=128&n[t],r?-1*(255-n[t]+1):n[t])},e.prototype.readInt16LE=function(t,e){return g(this,t,!1,e)},e.prototype.readInt16BE=function(t,e){return g(this,t,!0,e)},e.prototype.readInt32LE=function(t,e){return d(this,t,!1,e)},e.prototype.readInt32BE=function(t,e){return d(this,t,!0,e)},e.prototype.readFloatLE=function(t,e){return y(this,t,!1,e)},e.prototype.readFloatBE=function(t,e){return y(this,t,!0,e)},e.prototype.readDoubleLE=function(t,e){return v(this,t,!1,e)},e.prototype.readDoubleBE=function(t,e){return v(this,t,!0,e)},e.prototype.writeUInt8=function(t,e,r){var n=this;r||(L.ok(void 0!==t&&null!==t,"missing value"),L.ok(void 0!==e&&null!==e,"missing offset"),L.ok(n.length>e,"trying to write beyond buffer length"),b(t,255)),n.length>e&&(n[e]=t)},e.prototype.writeUInt16LE=function(t,e,r){m(this,t,e,!1,r)},e.prototype.writeUInt16BE=function(t,e,r){m(this,t,e,!0,r)},e.prototype.writeUInt32LE=function(t,e,r){w(this,t,e,!1,r)},e.prototype.writeUInt32BE=function(t,e,r){w(this,t,e,!0,r)},e.prototype.writeInt8=function(t,e,r){var n=this;r||(L.ok(void 0!==t&&null!==t,"missing value"),L.ok(void 0!==e&&null!==e,"missing offset"),L.ok(n.length>e,"Trying to write beyond buffer length"),E(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},e.prototype.writeInt16LE=function(t,e,r){_(this,t,e,!1,r)},e.prototype.writeInt16BE=function(t,e,r){_(this,t,e,!0,r)},e.prototype.writeInt32LE=function(t,e,r){I(this,t,e,!1,r)},e.prototype.writeInt32BE=function(t,e,r){I(this,t,e,!0,r)},e.prototype.writeFloatLE=function(t,e,r){x(this,t,e,!1,r)},e.prototype.writeFloatBE=function(t,e,r){x(this,t,e,!0,r)},e.prototype.writeDoubleLE=function(t,e,r){S(this,t,e,!1,r)},e.prototype.writeDoubleBE=function(t,e,r){S(this,t,e,!0,r)}})()},{assert:14,"./buffer_ieee754":16,"base64-js":18}],18:[function(t,e){(function(){"use strict";function t(t){var e,r,o,i,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],o=s>0?t.length-4:t.length,e=0,r=0;o>e;e+=4,r+=3)i=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&i)>>16),a.push((65280&i)>>8),a.push(255&i);return 2===s?(i=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&i)):1===s&&(i=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&i>>8),a.push(255&i)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,o,i,s=t.length%3,a="";for(r=0,i=t.length-s;i>r;r+=3)o=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(o);switch(s){case 1:o=t[t.length-1],a+=n[o>>2],a+=n[63&o<<4],a+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],a+=n[o>>10],a+=n[63&o>>4],a+=n[63&o<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}],17:[function(t,e){(function(r){function n(t){o.Stream.call(this),this.writable=!0,t&&(this.cb=t),this.body=[],this.cb&&this.on("error",t)}var o=t("stream"),i=t("util");i.inherits(n,o.Stream),n.prototype.write=function(t){this.body.push(t)},n.prototype.arrayConcat=function(t){return 0===t.length?[]:1===t.length?t[0]:t.reduce(function(t,e){return t.concat(e)})},n.prototype.isArray=function(t){var e=Array.isArray(t),r=(""+t).match(/Array/);return e||r},n.prototype.getBody=function(){return 0!==this.body.length?"string"==typeof this.body[0]?this.body.join(""):this.isArray(this.body[0])?this.arrayConcat(this.body):r!==void 0&&r.isBuffer(this.body[0])?r.concat(this.body):this.body:void 0},n.prototype.end=function(){this.cb&&this.cb(!1,this.getBody())},e.exports=function(t){return new n(t)},e.exports.ConcatStream=n})(t("__browserify_Buffer").Buffer)},{stream:11,util:12,__browserify_Buffer:7}]},{},[]),require=function(t,e,r){function n(r,i){if(!e[r]){if(!t[r]){var s="function"==typeof require&&require;if(!i&&s)return s(r,!0);if(o)return o(r,!0);throw Error("Cannot find module '"+r+"'")}var a=e[r]={exports:{}};t[r][0].call(a.exports,function(e){var o=t[r][1][e];return n(o?o:e)},a,a.exports)}return e[r].exports}for(var o="function"==typeof require&&require,i=0;r.length>i;i++)n(r[i]);return n}({step:[function(t,e){e.exports=t("jNr0VH")},{}],1:[function(t,e){var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){if(t.source===window&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.binding=function(){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw Error("process.chdir is not supported")}},{}],jNr0VH:[function(t,e){(function(t){function r(){function e(){if(n=r=0,0!==s.length){var t=s.shift();o=[];try{i=!0;var a=t.apply(e,arguments)}catch(u){e(u)}n>0&&0==r?e.apply(null,o):void 0!==a&&e(void 0,a),i=!1}else if(arguments[0])throw arguments[0]}var r,n,o,i,s=Array.prototype.slice.call(arguments);e.parallel=function(){var t=1+n++;return r++,function(){r--,arguments[0]&&(o[0]=arguments[0]),o[t]=arguments[1],i||0!==r||e.apply(null,o)}},e.group=function(){function r(){0===s&&n(u,a)}var n=e.parallel(),o=0,s=0,a=[],u=void 0;return t.nextTick(r),function(){var t=o++;return s++,function(){s--,arguments[0]&&(u=arguments[0]),a[t]=arguments[1],i||r()}}},e()}r.fn=function(){var t=Array.prototype.slice.call(arguments);return function(){var e=Array.prototype.slice.call(arguments),n=[function(){this.apply(null,e)}].concat(t);"function"==typeof e[e.length-1]&&n.push(e.pop()),r.apply(null,n)}},e!==void 0&&"exports"in e&&(e.exports=r)})(t("__browserify_process"))},{__browserify_process:1}]},{},[]),require=function(t,e,r){function n(r,i){if(!e[r]){if(!t[r]){var s="function"==typeof require&&require;if(!i&&s)return s(r,!0);if(o)return o(r,!0);throw Error("Cannot find module '"+r+"'")}var a=e[r]={exports:{}};t[r][0].call(a.exports,function(e){var o=t[r][1][e];return n(o?o:e)},a,a.exports)}return e[r].exports}for(var o="function"==typeof require&&require,i=0;r.length>i;i++)n(r[i]);return n}({1:[function(t,e){function r(){n.EventEmitter.call(this)}var n=t("events"),o=t("util");o.inherits(r,n.EventEmitter),e.exports=r,r.Stream=r,r.prototype.pipe=function(t,e){function r(e){t.writable&&!1===t.write(e)&&u.pause&&u.pause()}function n(){u.readable&&u.resume&&u.resume()}function o(){f||(f=!0,t._pipeCount--,a(),t._pipeCount>0||t.end())}function i(){f||(f=!0,t._pipeCount--,a(),t._pipeCount>0||t.destroy())}function s(t){if(a(),0===this.listeners("error").length)throw t}function a(){u.removeListener("data",r),t.removeListener("drain",n),u.removeListener("end",o),u.removeListener("close",i),u.removeListener("error",s),t.removeListener("error",s),u.removeListener("end",a),u.removeListener("close",a),t.removeListener("end",a),t.removeListener("close",a)}var u=this;u.on("data",r),t.on("drain",n),t._isStdio||e&&e.end===!1||(t._pipeCount=t._pipeCount||0,t._pipeCount++,u.on("end",o),u.on("close",i));var f=!1;return u.on("error",s),t.on("error",s),u.on("end",a),u.on("close",a),t.on("end",a),t.on("close",a),t.emit("pipe",u),t}},{events:2,util:3}],"event-stream":[function(t,e){e.exports=t("rTpl5f")},{}],4:[function(t,e){var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)
};if(e){var r=[];return window.addEventListener("message",function(t){if(t.source===window&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.binding=function(){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw Error("process.chdir is not supported")}},{}],rTpl5f:[function(t,e,r){(function(e){var n=t("stream").Stream,o=r,i=t("through"),s=t("from"),a=t("duplexer"),u=t("map-stream"),f=t("pause-stream"),h=t("split"),c=t("stream-combiner");o.Stream=n,o.through=i,o.from=s,o.duplex=a,o.map=u,o.pause=f,o.split=h,o.pipeline=o.connect=o.pipe=c,o.concat=o.merge=function(){var t=[].slice.call(arguments),e=new n,r=0;return e.writable=e.readable=!0,t.forEach(function(n){n.pipe(e,{end:!1});var o=!1;n.on("end",function(){o||(o=!0,r++,r==t.length&&e.emit("end"))})}),e.write=function(t){this.emit("data",t)},e.destroy=function(){merge.forEach(function(t){t.destroy&&t.destroy()})},e},o.writeArray=function(t){if("function"!=typeof t)throw Error("function writeArray (done): done must be function");var e=new n,r=[],o=!1;return e.write=function(t){r.push(t)},e.end=function(){o=!0,t(null,r)},e.writable=!0,e.readable=!1,e.destroy=function(){e.writable=e.readable=!1,o||t(Error("destroyed before end"),r)},e},o.readArray=function(t){var r=new n,o=0,i=!1,s=!1;if(r.readable=!0,r.writable=!1,!Array.isArray(t))throw Error("event-stream.read expects an array");return r.resume=function(){if(!s){i=!1;for(var e=t.length;e>o&&!i&&!s;)r.emit("data",t[o++]);o!=e||s||(s=!0,r.readable=!1,r.emit("end"))}},e.nextTick(r.resume),r.pause=function(){i=!0},r.destroy=function(){s=!0,r.emit("close")},r},o.readable=function(t,r){function o(n,h){n?(i.emit("error",n),r||i.emit("end")):arguments.length>1&&i.emit("data",h),e.nextTick(function(){if(!(u||a||f))try{f=!0,t.call(i,s++,function(){f=!1,o.apply(null,arguments)})}catch(e){i.emit("error",e)}})}var i=new n,s=0,a=!1,u=!1,f=!1;if(i.readable=!0,i.writable=!1,"function"!=typeof t)throw Error("event-stream.readable expects async function");return i.on("end",function(){u=!0}),i.resume=function(){a=!1,o()},e.nextTick(o),i.pause=function(){a=!0},i.destroy=function(){i.emit("end"),i.emit("close"),u=!0},i},o.mapSync=function(t){return o.through(function(e){var r=t(e);r!==void 0&&this.emit("data",r)})},o.log=function(t){return o.through(function(e){[].slice.call(arguments),t?console.error(t,e):console.error(e),this.emit("data",e)})},o.child=function(t){return o.duplex(t.stdin,t.stdout)},o.parse=function(){return o.through(function(t){var e;try{t&&(e=JSON.parse(""+t))}catch(r){return console.error(r,"attemping to parse:",t)}void 0!==e&&this.emit("data",e)})},o.stringify=function(){var e=t("buffer").Buffer;return o.mapSync(function(t){return JSON.stringify(e.isBuffer(t)?""+t:t)+"\n"})},o.replace=function(t,e){return o.pipeline(o.split(t),o.join(e))},o.join=function(t){if("function"==typeof t)return o.wait(t);var e=!0;return o.through(function(r){return e||this.emit("data",t),e=!1,this.emit("data",r),!0})},o.wait=function(t){var e="";return o.through(function(t){e+=t},function(){this.emit("data",e),this.emit("end"),t&&t(null,e)})},o.pipeable=function(){throw Error("[EVENT-STREAM] es.pipeable is deprecated")}})(t("__browserify_process"))},{buffer:5,stream:1,through:6,from:7,"pause-stream":8,"map-stream":9,split:10,duplexer:11,"stream-combiner":12,__browserify_process:4}],2:[function(t,e,r){(function(t){function e(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;t.length>r;r++)if(e===t[r])return r;return-1}t.EventEmitter||(t.EventEmitter=function(){});var n=r.EventEmitter=t.EventEmitter,o="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=10;n.prototype.setMaxListeners=function(t){this._events||(this._events={}),this._events.maxListeners=t},n.prototype.emit=function(t){if("error"===t&&(!this._events||!this._events.error||o(this._events.error)&&!this._events.error.length))throw arguments[1]instanceof Error?arguments[1]:Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;var e=this._events[t];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var r=Array.prototype.slice.call(arguments,1);e.apply(this,r)}return!0}if(o(e)){for(var r=Array.prototype.slice.call(arguments,1),n=e.slice(),i=0,s=n.length;s>i;i++)n[i].apply(this,r);return!0}return!1},n.prototype.addListener=function(t,e){if("function"!=typeof e)throw Error("addListener only takes instances of Function");if(this._events||(this._events={}),this.emit("newListener",t,e),this._events[t])if(o(this._events[t])){if(!this._events[t].warned){var r;r=void 0!==this._events.maxListeners?this._events.maxListeners:i,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace())}this._events[t].push(e)}else this._events[t]=[this._events[t],e];else this._events[t]=e;return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){var r=this;return r.on(t,function n(){r.removeListener(t,n),e.apply(this,arguments)}),this},n.prototype.removeListener=function(t,r){if("function"!=typeof r)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[t])return this;var n=this._events[t];if(o(n)){var i=e(n,r);if(0>i)return this;n.splice(i,1),0==n.length&&delete this._events[t]}else this._events[t]===r&&delete this._events[t];return this},n.prototype.removeAllListeners=function(t){return 0===arguments.length?(this._events={},this):(t&&this._events&&this._events[t]&&(this._events[t]=null),this)},n.prototype.listeners=function(t){return this._events||(this._events={}),this._events[t]||(this._events[t]=[]),o(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]}})(t("__browserify_process"))},{__browserify_process:4}],13:[function(t,e){(function(){function r(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}function n(t,e){return void 0===e?""+e:"number"!=typeof e||!isNaN(e)&&isFinite(e)?"function"==typeof e||e instanceof RegExp?""+e:e:""+e}function o(t,e){return"string"==typeof t?e>t.length?t:t.slice(0,e):t}function i(t,e,r,n,o){throw new y.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:o})}function s(t,e){t||i(t,!0,e,"==",y.ok)}function a(t,e){if(t===e)return!0;if(g.isBuffer(t)&&g.isBuffer(e)){if(t.length!=e.length)return!1;for(var r=0;t.length>r;r++)if(t[r]!==e[r])return!1;return!0}return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():"object"!=typeof t&&"object"!=typeof e?t==e:h(t,e)}function u(t){return null===t||void 0===t}function f(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function h(t,e){if(u(t)||u(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return f(e)?(t=d.call(t),e=d.call(e),a(t,e)):!1;try{var n,o,i=r(t),s=r(e)}catch(h){return!1}if(i.length!=s.length)return!1;for(i.sort(),s.sort(),o=i.length-1;o>=0;o--)if(i[o]!=s[o])return!1;for(o=i.length-1;o>=0;o--)if(n=i[o],!a(t[n],e[n]))return!1;return!0}function c(t,e){return t&&e?e instanceof RegExp?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function p(t,e,r,n){var o;"string"==typeof r&&(n=r,r=null);try{e()}catch(s){o=s}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!o&&i("Missing expected exception"+n),!t&&c(o,r)&&i("Got unwanted exception"+n),t&&o&&r&&!c(o,r)||!t&&o)throw o}var l=t("util"),g=t("buffer").Buffer,d=Array.prototype.slice,y=e.exports=s;y.AssertionError=function(t){this.name="AssertionError",this.message=t.message,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator;var e=t.stackStartFunction||i;Error.captureStackTrace&&Error.captureStackTrace(this,e)},l.inherits(y.AssertionError,Error),y.AssertionError.prototype.toString=function(){return this.message?[this.name+":",this.message].join(" "):[this.name+":",o(JSON.stringify(this.actual,n),128),this.operator,o(JSON.stringify(this.expected,n),128)].join(" ")},y.AssertionError.__proto__=Error.prototype,y.fail=i,y.ok=s,y.equal=function(t,e,r){t!=e&&i(t,e,r,"==",y.equal)},y.notEqual=function(t,e,r){t==e&&i(t,e,r,"!=",y.notEqual)},y.deepEqual=function(t,e,r){a(t,e)||i(t,e,r,"deepEqual",y.deepEqual)},y.notDeepEqual=function(t,e,r){a(t,e)&&i(t,e,r,"notDeepEqual",y.notDeepEqual)},y.strictEqual=function(t,e,r){t!==e&&i(t,e,r,"===",y.strictEqual)},y.notStrictEqual=function(t,e,r){t===e&&i(t,e,r,"!==",y.notStrictEqual)},y.throws=function(){p.apply(this,[!0].concat(d.call(arguments)))},y.doesNotThrow=function(){p.apply(this,[!1].concat(d.call(arguments)))},y.ifError=function(t){if(t)throw t}})()},{buffer:5,util:3}],3:[function(t,e,r){function n(t){return t instanceof Array||Array.isArray(t)||t&&t!==Object.prototype&&n(t.__proto__)}function o(t){return t instanceof RegExp||"object"==typeof t&&"[object RegExp]"===Object.prototype.toString.call(t)}function i(t){if(t instanceof Date)return!0;if("object"!=typeof t)return!1;var e=Date.prototype&&a(Date.prototype),r=t.__proto__&&a(t.__proto__);return JSON.stringify(r)===JSON.stringify(e)}t("events"),r.isArray=n,r.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},r.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},r.print=function(){},r.puts=function(){},r.debug=function(){},r.inspect=function(t,e,u,f){function h(t,u){if(t&&"function"==typeof t.inspect&&t!==r&&(!t.constructor||t.constructor.prototype!==t))return t.inspect(u);switch(typeof t){case"undefined":return p("undefined","undefined");case"string":var f="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return p(f,"string");case"number":return p(""+t,"number");case"boolean":return p(""+t,"boolean")}if(null===t)return p("null","null");var l=s(t),g=e?a(t):l;if("function"==typeof t&&0===g.length){if(o(t))return p(""+t,"regexp");var d=t.name?": "+t.name:"";return p("[Function"+d+"]","special")}if(i(t)&&0===g.length)return p(t.toUTCString(),"date");var y,v,b;if(n(t)?(v="Array",b=["[","]"]):(v="Object",b=["{","}"]),"function"==typeof t){var m=t.name?": "+t.name:"";y=o(t)?" "+t:" [Function"+m+"]"}else y="";if(i(t)&&(y=" "+t.toUTCString()),0===g.length)return b[0]+y+b[1];if(0>u)return o(t)?p(""+t,"regexp"):p("[Object]","special");c.push(t);var w=g.map(function(e){var r,o;if(t.__lookupGetter__&&(t.__lookupGetter__(e)?o=t.__lookupSetter__(e)?p("[Getter/Setter]","special"):p("[Getter]","special"):t.__lookupSetter__(e)&&(o=p("[Setter]","special"))),0>l.indexOf(e)&&(r="["+e+"]"),o||(0>c.indexOf(t[e])?(o=null===u?h(t[e]):h(t[e],u-1),o.indexOf("\n")>-1&&(o=n(t)?o.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+o.split("\n").map(function(t){return" "+t}).join("\n"))):o=p("[Circular]","special")),r===void 0){if("Array"===v&&e.match(/^\d+$/))return o;r=JSON.stringify(""+e),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=p(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=p(r,"string"))}return r+": "+o});c.pop();var E=0,k=w.reduce(function(t,e){return E++,e.indexOf("\n")>=0&&E++,t+e.length+1},0);return w=k>50?b[0]+(""===y?"":y+"\n ")+" "+w.join(",\n ")+" "+b[1]:b[0]+y+" "+w.join(", ")+" "+b[1]}var c=[],p=function(t,e){var r={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},n={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[e];return n?"["+r[n][0]+"m"+t+"["+r[n][1]+"m":t};return f||(p=function(t){return t}),h(t,u===void 0?2:u)},r.log=function(){},r.pump=null;var s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},a=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.hasOwnProperty.call(t,r)&&e.push(r);return e},u=Object.create||function(t,e){var r;if(null===t)r={__proto__:null};else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var n=function(){};n.prototype=t,r=new n,r.__proto__=t}return e!==void 0&&Object.defineProperties&&Object.defineProperties(r,e),r};r.inherits=function(t,e){t.super_=e,t.prototype=u(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};var f=/%[sdj%]/g;r.format=function(t){if("string"!=typeof t){for(var e=[],n=0;arguments.length>n;n++)e.push(r.inspect(arguments[n]));return e.join(" ")}for(var n=1,o=arguments,i=o.length,s=(t+"").replace(f,function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return o[n++]+"";case"%d":return Number(o[n++]);case"%j":return JSON.stringify(o[n++]);default:return t}}),a=o[n];i>n;a=o[++n])s+=null===a||"object"!=typeof a?" "+a:" "+r.inspect(a);return s}},{events:2}],6:[function(t,e,r){(function(n){function o(t,e,r){function o(){for(;f.length&&!c.paused;){var t=f.shift();if(null===t)return c.emit("end");c.emit("data",t)}}function s(){c.writable=!1,e.call(c),!c.readable&&c.autoDestroy&&c.destroy()}t=t||function(t){this.queue(t)},e=e||function(){this.queue(null)};var a=!1,u=!1,f=[],h=!1,c=new i;return c.readable=c.writable=!0,c.paused=!1,c.autoDestroy=!(r&&r.autoDestroy===!1),c.write=function(e){return t.call(this,e),!c.paused},c.queue=c.push=function(t){return h?c:(null==t&&(h=!0),f.push(t),o(),c)},c.on("end",function(){c.readable=!1,!c.writable&&c.autoDestroy&&n.nextTick(function(){c.destroy()})}),c.end=function(t){return a?void 0:(a=!0,arguments.length&&c.write(t),s(),c)},c.destroy=function(){return u?void 0:(u=!0,a=!0,f.length=0,c.writable=c.readable=!1,c.emit("close"),c)},c.pause=function(){return c.paused?void 0:(c.paused=!0,c)},c.resume=function(){return c.paused&&(c.paused=!1,c.emit("resume")),o(),c.paused||c.emit("drain"),c},c}var i=t("stream");r=e.exports=o,o.through=o})(t("__browserify_process"))},{stream:1,__browserify_process:4}],7:[function(t,e){(function(r){"use strict";var n=t("stream");e.exports=function o(t){function e(){if(i.started=!0,!i.ended)for(;!i.ended&&!i.paused&&t.call(i,s++,function(){i.ended||i.paused||e()}););}if(Array.isArray(t))return t=t.slice(),o(function(){return t.length?this.emit("data",t.shift()):this.emit("end"),!0});var i=new n,s=0;return i.ended=!1,i.started=!1,i.readable=!0,i.writable=!1,i.paused=!1,i.ended=!1,i.pause=function(){i.started=!0,i.paused=!0},i.resume=function(){i.started=!0,i.paused=!1,e()},i.on("end",function(){i.ended=!0,i.readable=!1,r.nextTick(i.destroy)}),i.destroy=function(){i.ended=!0,i.emit("close")},r.nextTick(function(){i.started||i.resume()}),i}})(t("__browserify_process"))},{stream:1,__browserify_process:4}],9:[function(t,e){(function(r){var n=t("stream").Stream;e.exports=function(t){function e(t){return a=!0,o.writable=!1,void 0!==t?o.write(t):(i==s&&(o.readable=!1,o.emit("end"),o.destroy()),void 0)}var o=new n,i=0,s=0,a=!1,u=!1,f=!1;return o.writable=!0,o.readable=!0,o.write=function(){function r(t){if(!f){c=!0,s++;var r=[].slice.call(arguments);if(t)return r.unshift("error"),c=!1,o.emit.apply(o,r);r.shift(),r.length&&(r.unshift("data"),n=o.emit.apply(o,r)),i==s&&(u&&(u=!1,o.emit("drain")),a&&e()),c=!1}}if(a)throw Error("map stream is not writable");i++;var n,h=[].slice.call(arguments),c=!1;h.push(r);try{var p=t.apply(null,h);return u=p===!1,!u}catch(l){if(c)throw l;return r(l),!u}},o.end=function(){a||e()},o.destroy=function(){a=f=!0,o.writable=o.readable=u=!1,r.nextTick(function(){o.emit("close")})},o.pause=function(){u=!0},o.resume=function(){u=!1},o}})(t("__browserify_process"))},{stream:1,__browserify_process:4}],11:[function(t,e){function r(t,e){function r(e){function r(){return t[e].apply(t,arguments)}p[e]=r}function u(t){function r(){p.emit(t);var r=e[t];return r?r.apply(e,arguments):(e.emit(t),void 0)}p[t]=r}function f(t){function r(){var e=a.call(arguments);e.unshift(t),p.emit.apply(p,e)}e.on(t,r)}function h(){if(!l){l=!0;var t=a.call(arguments);t.unshift("end"),p.emit.apply(p,t)}}function c(t){p.emit("error",t)}var p=new n,l=!1;return o.forEach(r),i.forEach(u),s.forEach(f),e.on("end",h),t.on("drain",function(){p.emit("drain")}),t.on("error",c),e.on("error",c),p.writable=t.writable,p.readable=e.readable,p}var n=t("stream"),o=["write","end","destroy"],i=["resume","pause"],s=["data","close"],a=Array.prototype.slice;e.exports=r},{stream:1}],14:[function(t,e,r){r.readIEEE754=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,f=u>>1,h=-7,c=r?0:o-1,p=r?1:-1,l=t[e+c];for(c+=p,i=l&(1<<-h)-1,l>>=-h,h+=a;h>0;i=256*i+t[e+c],c+=p,h-=8);for(s=i&(1<<-h)-1,i>>=-h,h+=n;h>0;s=256*s+t[e+c],c+=p,h-=8);if(0===i)i=1-f;else{if(i===u)return s?0/0:1/0*(l?-1:1);s+=Math.pow(2,n),i-=f}return(l?-1:1)*s*Math.pow(2,i-n)},r.writeIEEE754=function(t,e,r,n,o,i){var s,a,u,f=8*i-o-1,h=(1<<f)-1,c=h>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?i-1:0,g=n?-1:1,d=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+c>=1?p/u:p*Math.pow(2,1-c),e*u>=2&&(s++,u/=2),s+c>=h?(a=0,s=h):s+c>=1?(a=(e*u-1)*Math.pow(2,o),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,o),s=0));o>=8;t[r+l]=255&a,l+=g,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;t[r+l]=255&s,l+=g,s/=256,f-=8);t[r+l-g]|=128*d}},{}],5:[function(t,e,r){(function(){function e(t,r,o){if(!(this instanceof e))return new e(t,r,o);this.parent=this,this.offset=0;var s;if("number"==typeof o)this.length=n(r),this.offset=o;else{switch(s=typeof t){case"number":this.length=n(t);break;case"string":this.length=e.byteLength(t,r);break;case"object":this.length=n(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(i(t))for(var a=0;this.length>a;a++)this[a]=t instanceof e?t.readUInt8(a):t[a];else if("string"==s)this.length=this.write(t,0,r);else if("number"===s)for(var a=0;this.length>a;a++)this[a]=0}}function n(t){return t=~~Math.ceil(+t),0>t?0:t}function o(t){return(Array.isArray||function(t){return"[object Array]"=={}.toString.apply(t)})(t)}function i(t){return o(t)||e.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function s(t){return 16>t?"0"+t.toString(16):t.toString(16)}function a(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),o=0;n.length>o;o++)e.push(parseInt(n[o],16));return e}function u(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function f(e){return t("base64-js").toByteArray(e)}function h(t,e,r,n){for(var o=0;n>o&&!(o+r>=e.length||o>=t.length);)e[o+r]=t[o],o++;return o}function c(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function p(t,e,r,n){var o=0;return n||(L.ok("boolean"==typeof r,"missing or invalid endian"),L.ok(void 0!==e&&null!==e,"missing offset"),L.ok(t.length>e+1,"Trying to read beyond buffer length")),e>=t.length?0:(r?(o=t[e]<<8,t.length>e+1&&(o|=t[e+1])):(o=t[e],t.length>e+1&&(o|=t[e+1]<<8)),o)}function l(t,e,r,n){var o=0;return n||(L.ok("boolean"==typeof r,"missing or invalid endian"),L.ok(void 0!==e&&null!==e,"missing offset"),L.ok(t.length>e+3,"Trying to read beyond buffer length")),e>=t.length?0:(r?(t.length>e+1&&(o=t[e+1]<<16),t.length>e+2&&(o|=t[e+2]<<8),t.length>e+3&&(o|=t[e+3]),o+=t[e]<<24>>>0):(t.length>e+2&&(o=t[e+2]<<16),t.length>e+1&&(o|=t[e+1]<<8),o|=t[e],t.length>e+3&&(o+=t[e+3]<<24>>>0)),o)}function g(t,e,r,n){var o,i;return n||(L.ok("boolean"==typeof r,"missing or invalid endian"),L.ok(void 0!==e&&null!==e,"missing offset"),L.ok(t.length>e+1,"Trying to read beyond buffer length")),i=p(t,e,r,n),o=32768&i,o?-1*(65535-i+1):i}function d(t,e,r,n){var o,i;return n||(L.ok("boolean"==typeof r,"missing or invalid endian"),L.ok(void 0!==e&&null!==e,"missing offset"),L.ok(t.length>e+3,"Trying to read beyond buffer length")),i=l(t,e,r,n),o=2147483648&i,o?-1*(4294967295-i+1):i}function y(e,r,n,o){return o||(L.ok("boolean"==typeof n,"missing or invalid endian"),L.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function v(e,r,n,o){return o||(L.ok("boolean"==typeof n,"missing or invalid endian"),L.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function b(t,e){L.ok("number"==typeof t,"cannot write a non-number as a number"),L.ok(t>=0,"specified a negative value for writing an unsigned value"),L.ok(e>=t,"value is larger than maximum value for type"),L.ok(Math.floor(t)===t,"value has a fractional component")}function m(t,e,r,n,o){o||(L.ok(void 0!==e&&null!==e,"missing value"),L.ok("boolean"==typeof n,"missing or invalid endian"),L.ok(void 0!==r&&null!==r,"missing offset"),L.ok(t.length>r+1,"trying to write beyond buffer length"),b(e,65535));for(var i=0;Math.min(t.length-r,2)>i;i++)t[r+i]=(e&255<<8*(n?1-i:i))>>>8*(n?1-i:i)}function w(t,e,r,n,o){o||(L.ok(void 0!==e&&null!==e,"missing value"),L.ok("boolean"==typeof n,"missing or invalid endian"),L.ok(void 0!==r&&null!==r,"missing offset"),L.ok(t.length>r+3,"trying to write beyond buffer length"),b(e,4294967295));for(var i=0;Math.min(t.length-r,4)>i;i++)t[r+i]=255&e>>>8*(n?3-i:i)}function E(t,e,r){L.ok("number"==typeof t,"cannot write a non-number as a number"),L.ok(e>=t,"value larger than maximum allowed value"),L.ok(t>=r,"value smaller than minimum allowed value"),L.ok(Math.floor(t)===t,"value has a fractional component")}function k(t,e,r){L.ok("number"==typeof t,"cannot write a non-number as a number"),L.ok(e>=t,"value larger than maximum allowed value"),L.ok(t>=r,"value smaller than minimum allowed value")}function _(t,e,r,n,o){o||(L.ok(void 0!==e&&null!==e,"missing value"),L.ok("boolean"==typeof n,"missing or invalid endian"),L.ok(void 0!==r&&null!==r,"missing offset"),L.ok(t.length>r+1,"Trying to write beyond buffer length"),E(e,32767,-32768)),e>=0?m(t,e,r,n,o):m(t,65535+e+1,r,n,o)}function I(t,e,r,n,o){o||(L.ok(void 0!==e&&null!==e,"missing value"),L.ok("boolean"==typeof n,"missing or invalid endian"),L.ok(void 0!==r&&null!==r,"missing offset"),L.ok(t.length>r+3,"Trying to write beyond buffer length"),E(e,2147483647,-2147483648)),e>=0?w(t,e,r,n,o):w(t,4294967295+e+1,r,n,o)}function x(e,r,n,o,i){i||(L.ok(void 0!==r&&null!==r,"missing value"),L.ok("boolean"==typeof o,"missing or invalid endian"),L.ok(void 0!==n&&null!==n,"missing offset"),L.ok(e.length>n+3,"Trying to write beyond buffer length"),k(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,o,23,4)}function S(e,r,n,o,i){i||(L.ok(void 0!==r&&null!==r,"missing value"),L.ok("boolean"==typeof o,"missing or invalid endian"),L.ok(void 0!==n&&null!==n,"missing offset"),L.ok(e.length>n+7,"Trying to write beyond buffer length"),k(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,o,52,8)}var L=t("assert");r.Buffer=e,r.SlowBuffer=e,e.poolSize=8192,r.INSPECT_MAX_BYTES=50,e.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this[t]},e.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this[t]=e},e.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return a(t).length;case"ascii":case"binary":return t.length;case"base64":return f(t).length;default:throw Error("Unknown encoding")}},e.prototype.utf8Write=function(t,r,n){return e._charsWritten=h(a(t),this,r,n)},e.prototype.asciiWrite=function(t,r,n){return e._charsWritten=h(u(t),this,r,n)},e.prototype.binaryWrite=e.prototype.asciiWrite,e.prototype.base64Write=function(t,r,n){return e._charsWritten=h(f(t),this,r,n)},e.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},e.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=c(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+c(r)},e.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},e.prototype.binarySlice=e.prototype.asciiSlice,e.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=s(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},e.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",o=t;e>o;o++)n+=s(this[o]);return n},e.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},e.prototype.hexWrite=function(t,r,n){r=+r||0;var o=this.length-r;n?(n=+n,n>o&&(n=o)):n=o;var i=t.length;if(i%2)throw Error("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;n>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[r+s]=a}return e._charsWritten=2*s,s},e.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var o=n;n=e,e=r,r=o}e=+e||0;var i=this.length-e;switch(r?(r=+r,r>i&&(r=i)):r=i,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},e.prototype.slice=function(t,r){if(void 0===r&&(r=this.length),r>this.length)throw Error("oob");if(t>r)throw Error("oob");return new e(this,r-t,+t)},e.prototype.copy=function(t,e,r,n){var o=this;if(r||(r=0),(void 0===n||isNaN(n))&&(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==o.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=o.length)throw Error("sourceStart out of bounds");if(0>n||n>o.length)throw Error("sourceEnd out of bounds");n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r);for(var i=[],s=r;n>s;s++)L.ok(this[s]!==void 0,"copying undefined buffer bytes!"),i.push(this[s]);for(var s=e;e+i.length>s;s++)t[s]=i[s-e]},e.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");for(var n=e;r>n;n++)this[n]=t},e.isBuffer=function(t){return t instanceof e||t instanceof e},e.concat=function(t,r){if(!o(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new e(0);if(1===t.length)return t[0];if("number"!=typeof r){r=0;for(var n=0;t.length>n;n++){var i=t[n];r+=i.length}}for(var s=new e(r),a=0,n=0;t.length>n;n++){var i=t[n];i.copy(s,a),a+=i.length}return s},e.prototype.readUInt8=function(t,e){var r=this;return e||(L.ok(void 0!==t&&null!==t,"missing offset"),L.ok(r.length>t,"Trying to read beyond buffer length")),t>=r.length?void 0:r[t]},e.prototype.readUInt16LE=function(t,e){return p(this,t,!1,e)},e.prototype.readUInt16BE=function(t,e){return p(this,t,!0,e)},e.prototype.readUInt32LE=function(t,e){return l(this,t,!1,e)},e.prototype.readUInt32BE=function(t,e){return l(this,t,!0,e)},e.prototype.readInt8=function(t,e){var r,n=this;return e||(L.ok(void 0!==t&&null!==t,"missing offset"),L.ok(n.length>t,"Trying to read beyond buffer length")),t>=n.length?void 0:(r=128&n[t],r?-1*(255-n[t]+1):n[t])},e.prototype.readInt16LE=function(t,e){return g(this,t,!1,e)},e.prototype.readInt16BE=function(t,e){return g(this,t,!0,e)},e.prototype.readInt32LE=function(t,e){return d(this,t,!1,e)},e.prototype.readInt32BE=function(t,e){return d(this,t,!0,e)},e.prototype.readFloatLE=function(t,e){return y(this,t,!1,e)},e.prototype.readFloatBE=function(t,e){return y(this,t,!0,e)},e.prototype.readDoubleLE=function(t,e){return v(this,t,!1,e)},e.prototype.readDoubleBE=function(t,e){return v(this,t,!0,e)},e.prototype.writeUInt8=function(t,e,r){var n=this;r||(L.ok(void 0!==t&&null!==t,"missing value"),L.ok(void 0!==e&&null!==e,"missing offset"),L.ok(n.length>e,"trying to write beyond buffer length"),b(t,255)),n.length>e&&(n[e]=t)},e.prototype.writeUInt16LE=function(t,e,r){m(this,t,e,!1,r)},e.prototype.writeUInt16BE=function(t,e,r){m(this,t,e,!0,r)},e.prototype.writeUInt32LE=function(t,e,r){w(this,t,e,!1,r)},e.prototype.writeUInt32BE=function(t,e,r){w(this,t,e,!0,r)},e.prototype.writeInt8=function(t,e,r){var n=this;r||(L.ok(void 0!==t&&null!==t,"missing value"),L.ok(void 0!==e&&null!==e,"missing offset"),L.ok(n.length>e,"Trying to write beyond buffer length"),E(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},e.prototype.writeInt16LE=function(t,e,r){_(this,t,e,!1,r)},e.prototype.writeInt16BE=function(t,e,r){_(this,t,e,!0,r)},e.prototype.writeInt32LE=function(t,e,r){I(this,t,e,!1,r)},e.prototype.writeInt32BE=function(t,e,r){I(this,t,e,!0,r)},e.prototype.writeFloatLE=function(t,e,r){x(this,t,e,!1,r)},e.prototype.writeFloatBE=function(t,e,r){x(this,t,e,!0,r)},e.prototype.writeDoubleLE=function(t,e,r){S(this,t,e,!1,r)},e.prototype.writeDoubleBE=function(t,e,r){S(this,t,e,!0,r)}})()},{assert:13,"./buffer_ieee754":14,"base64-js":15}],16:[function(t,e){t=function(t,e,r,n){function o(n){if(!r[n]){if(!e[n]){if(t)return t(n);throw Error("Cannot find module '"+n+"'")}var i=r[n]={exports:{}};e[n][0](function(t){var r=e[n][1][t];return o(r?r:t)},i,i.exports)}return r[n].exports}for(var i=0;n.length>i;i++)o(n[i]);return o}(t!==void 0&&t,{1:[function(t,e){function r(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}function n(t,e){return void 0===e?""+e:"number"!=typeof e||!isNaN(e)&&isFinite(e)?"function"==typeof e||e instanceof RegExp?""+e:e:""+e}function o(t,e){return"string"==typeof t?e>t.length?t:t.slice(0,e):t}function i(t,e,r,n,o){throw new y.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:o})}function s(t,e){t||i(t,!0,e,"==",y.ok)}function a(t,e){if(t===e)return!0;if(g.isBuffer(t)&&g.isBuffer(e)){if(t.length!=e.length)return!1;for(var r=0;t.length>r;r++)if(t[r]!==e[r])return!1;return!0}return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():"object"!=typeof t&&"object"!=typeof e?t==e:h(t,e)}function u(t){return null===t||void 0===t}function f(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function h(t,e){if(u(t)||u(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return f(e)?(t=d.call(t),e=d.call(e),a(t,e)):!1;try{var n,o,i=r(t),s=r(e)}catch(h){return!1}if(i.length!=s.length)return!1;for(i.sort(),s.sort(),o=i.length-1;o>=0;o--)if(i[o]!=s[o])return!1;for(o=i.length-1;o>=0;o--)if(n=i[o],!a(t[n],e[n]))return!1;return!0}function c(t,e){return t&&e?e instanceof RegExp?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function p(t,e,r,n){var o;"string"==typeof r&&(n=r,r=null);try{e()}catch(s){o=s}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!o&&i("Missing expected exception"+n),!t&&c(o,r)&&i("Got unwanted exception"+n),t&&o&&r&&!c(o,r)||!t&&o)throw o}var l=t("util"),g=t("buffer").Buffer,d=Array.prototype.slice,y=e.exports=s;
y.AssertionError=function(t){this.name="AssertionError",this.message=t.message,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator;var e=t.stackStartFunction||i;Error.captureStackTrace&&Error.captureStackTrace(this,e)},l.inherits(y.AssertionError,Error),y.AssertionError.prototype.toString=function(){return this.message?[this.name+":",this.message].join(" "):[this.name+":",o(JSON.stringify(this.actual,n),128),this.operator,o(JSON.stringify(this.expected,n),128)].join(" ")},y.AssertionError.__proto__=Error.prototype,y.fail=i,y.ok=s,y.equal=function(t,e,r){t!=e&&i(t,e,r,"==",y.equal)},y.notEqual=function(t,e,r){t==e&&i(t,e,r,"!=",y.notEqual)},y.deepEqual=function(t,e,r){a(t,e)||i(t,e,r,"deepEqual",y.deepEqual)},y.notDeepEqual=function(t,e,r){a(t,e)&&i(t,e,r,"notDeepEqual",y.notDeepEqual)},y.strictEqual=function(t,e,r){t!==e&&i(t,e,r,"===",y.strictEqual)},y.notStrictEqual=function(t,e,r){t===e&&i(t,e,r,"!==",y.notStrictEqual)},y.throws=function(){p.apply(this,[!0].concat(d.call(arguments)))},y.doesNotThrow=function(){p.apply(this,[!1].concat(d.call(arguments)))},y.ifError=function(t){if(t)throw t}},{util:2,buffer:3}],2:[function(t,e,r){function n(t){return t instanceof Array||Array.isArray(t)||t&&t!==Object.prototype&&n(t.__proto__)}function o(t){return t instanceof RegExp||"object"==typeof t&&"[object RegExp]"===Object.prototype.toString.call(t)}function i(t){if(t instanceof Date)return!0;if("object"!=typeof t)return!1;var e=Date.prototype&&a(Date.prototype),r=t.__proto__&&a(t.__proto__);return JSON.stringify(r)===JSON.stringify(e)}t("events"),r.isArray=n,r.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},r.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},r.print=function(){},r.puts=function(){},r.debug=function(){},r.inspect=function(t,e,u,f){function h(t,u){if(t&&"function"==typeof t.inspect&&t!==r&&(!t.constructor||t.constructor.prototype!==t))return t.inspect(u);switch(typeof t){case"undefined":return p("undefined","undefined");case"string":var f="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return p(f,"string");case"number":return p(""+t,"number");case"boolean":return p(""+t,"boolean")}if(null===t)return p("null","null");var l=s(t),g=e?a(t):l;if("function"==typeof t&&0===g.length){if(o(t))return p(""+t,"regexp");var d=t.name?": "+t.name:"";return p("[Function"+d+"]","special")}if(i(t)&&0===g.length)return p(t.toUTCString(),"date");var y,v,b;if(n(t)?(v="Array",b=["[","]"]):(v="Object",b=["{","}"]),"function"==typeof t){var m=t.name?": "+t.name:"";y=o(t)?" "+t:" [Function"+m+"]"}else y="";if(i(t)&&(y=" "+t.toUTCString()),0===g.length)return b[0]+y+b[1];if(0>u)return o(t)?p(""+t,"regexp"):p("[Object]","special");c.push(t);var w=g.map(function(e){var r,o;if(t.__lookupGetter__&&(t.__lookupGetter__(e)?o=t.__lookupSetter__(e)?p("[Getter/Setter]","special"):p("[Getter]","special"):t.__lookupSetter__(e)&&(o=p("[Setter]","special"))),0>l.indexOf(e)&&(r="["+e+"]"),o||(0>c.indexOf(t[e])?(o=null===u?h(t[e]):h(t[e],u-1),o.indexOf("\n")>-1&&(o=n(t)?o.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+o.split("\n").map(function(t){return" "+t}).join("\n"))):o=p("[Circular]","special")),r===void 0){if("Array"===v&&e.match(/^\d+$/))return o;r=JSON.stringify(""+e),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=p(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=p(r,"string"))}return r+": "+o});c.pop();var E=0,k=w.reduce(function(t,e){return E++,e.indexOf("\n")>=0&&E++,t+e.length+1},0);return w=k>50?b[0]+(""===y?"":y+"\n ")+" "+w.join(",\n ")+" "+b[1]:b[0]+y+" "+w.join(", ")+" "+b[1]}var c=[],p=function(t,e){var r={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},n={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[e];return n?"["+r[n][0]+"m"+t+"["+r[n][1]+"m":t};return f||(p=function(t){return t}),h(t,u===void 0?2:u)},r.log=function(){},r.pump=null;var s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},a=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.hasOwnProperty.call(t,r)&&e.push(r);return e},u=Object.create||function(t,e){var r;if(null===t)r={__proto__:null};else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var n=function(){};n.prototype=t,r=new n,r.__proto__=t}return e!==void 0&&Object.defineProperties&&Object.defineProperties(r,e),r};r.inherits=function(t,e){t.super_=e,t.prototype=u(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};var f=/%[sdj%]/g;r.format=function(t){if("string"!=typeof t){for(var e=[],n=0;arguments.length>n;n++)e.push(r.inspect(arguments[n]));return e.join(" ")}for(var n=1,o=arguments,i=o.length,s=(t+"").replace(f,function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return o[n++]+"";case"%d":return Number(o[n++]);case"%j":return JSON.stringify(o[n++]);default:return t}}),a=o[n];i>n;a=o[++n])s+=null===a||"object"!=typeof a?" "+a:" "+r.inspect(a);return s}},{events:4}],5:[function(t,e,r){r.readIEEE754=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,f=u>>1,h=-7,c=r?0:o-1,p=r?1:-1,l=t[e+c];for(c+=p,i=l&(1<<-h)-1,l>>=-h,h+=a;h>0;i=256*i+t[e+c],c+=p,h-=8);for(s=i&(1<<-h)-1,i>>=-h,h+=n;h>0;s=256*s+t[e+c],c+=p,h-=8);if(0===i)i=1-f;else{if(i===u)return s?0/0:1/0*(l?-1:1);s+=Math.pow(2,n),i-=f}return(l?-1:1)*s*Math.pow(2,i-n)},r.writeIEEE754=function(t,e,r,n,o,i){var s,a,u,f=8*i-o-1,h=(1<<f)-1,c=h>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?i-1:0,g=n?-1:1,d=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+c>=1?p/u:p*Math.pow(2,1-c),e*u>=2&&(s++,u/=2),s+c>=h?(a=0,s=h):s+c>=1?(a=(e*u-1)*Math.pow(2,o),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,o),s=0));o>=8;t[r+l]=255&a,l+=g,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;t[r+l]=255&s,l+=g,s/=256,f-=8);t[r+l-g]|=128*d}},{}],6:[function(t,e){var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){if(t.source===window&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.binding=function(){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw Error("process.chdir is not supported")}},{}],4:[function(t,e,r){(function(t){function e(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;t.length>r;r++)if(e===t[r])return r;return-1}t.EventEmitter||(t.EventEmitter=function(){});var n=r.EventEmitter=t.EventEmitter,o="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=10;n.prototype.setMaxListeners=function(t){this._events||(this._events={}),this._events.maxListeners=t},n.prototype.emit=function(t){if("error"===t&&(!this._events||!this._events.error||o(this._events.error)&&!this._events.error.length))throw arguments[1]instanceof Error?arguments[1]:Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;var e=this._events[t];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var r=Array.prototype.slice.call(arguments,1);e.apply(this,r)}return!0}if(o(e)){for(var r=Array.prototype.slice.call(arguments,1),n=e.slice(),i=0,s=n.length;s>i;i++)n[i].apply(this,r);return!0}return!1},n.prototype.addListener=function(t,e){if("function"!=typeof e)throw Error("addListener only takes instances of Function");if(this._events||(this._events={}),this.emit("newListener",t,e),this._events[t])if(o(this._events[t])){if(!this._events[t].warned){var r;r=void 0!==this._events.maxListeners?this._events.maxListeners:i,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace())}this._events[t].push(e)}else this._events[t]=[this._events[t],e];else this._events[t]=e;return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){var r=this;return r.on(t,function n(){r.removeListener(t,n),e.apply(this,arguments)}),this},n.prototype.removeListener=function(t,r){if("function"!=typeof r)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[t])return this;var n=this._events[t];if(o(n)){var i=e(n,r);if(0>i)return this;n.splice(i,1),0==n.length&&delete this._events[t]}else this._events[t]===r&&delete this._events[t];return this},n.prototype.removeAllListeners=function(t){return 0===arguments.length?(this._events={},this):(t&&this._events&&this._events[t]&&(this._events[t]=null),this)},n.prototype.listeners=function(t){return this._events||(this._events={}),this._events[t]||(this._events[t]=[]),o(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]}})(t("__browserify_process"))},{__browserify_process:6}],"buffer-browserify":[function(t,e){e.exports=t("q9TxCC")},{}],q9TxCC:[function(t,e,r){function n(t){this.length=t}function o(t){return 16>t?"0"+t.toString(16):t.toString(16)}function i(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),o=0;n.length>o;o++)e.push(parseInt(n[o],16));return e}function s(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function a(e){return t("base64-js").toByteArray(e)}function u(t,e,r,n){for(var o=0;n>o&&!(o+r>=e.length||o>=t.length);)e[o+r]=t[o],o++;return o}function f(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function h(t){return t=~~Math.ceil(+t),0>t?0:t}function c(t,e,r){if(!(this instanceof c))return new c(t,e,r);var o;if("number"==typeof r)this.length=h(e),this.parent=t,this.offset=r;else{switch(o=typeof t){case"number":this.length=h(t);break;case"string":this.length=c.byteLength(t,e);break;case"object":this.length=h(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(this.length>c.poolSize?(this.parent=new n(this.length),this.offset=0):((!j||j.length-j.used<this.length)&&l(),this.parent=j,this.offset=j.used,j.used+=this.length),p(t))for(var i=0;this.length>i;i++)this.parent[i+this.offset]=t instanceof c?t.readUInt8(i):t[i];else"string"==o&&(this.length=this.write(t,0,e))}}function p(t){return Array.isArray(t)||c.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function l(){j=new n(c.poolSize),j.used=0}function g(t,e,r,n){var o=0;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+1,"Trying to read beyond buffer length")),e>=t.length?0:(r?(o=t.parent[t.offset+e]<<8,t.length>e+1&&(o|=t.parent[t.offset+e+1])):(o=t.parent[t.offset+e],t.length>e+1&&(o|=t.parent[t.offset+e+1]<<8)),o)}function d(t,e,r,n){var o=0;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+3,"Trying to read beyond buffer length")),e>=t.length?0:(r?(t.length>e+1&&(o=t.parent[t.offset+e+1]<<16),t.length>e+2&&(o|=t.parent[t.offset+e+2]<<8),t.length>e+3&&(o|=t.parent[t.offset+e+3]),o+=t.parent[t.offset+e]<<24>>>0):(t.length>e+2&&(o=t.parent[t.offset+e+2]<<16),t.length>e+1&&(o|=t.parent[t.offset+e+1]<<8),o|=t.parent[t.offset+e],t.length>e+3&&(o+=t.parent[t.offset+e+3]<<24>>>0)),o)}function y(t,e,r,n){var o,i;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+1,"Trying to read beyond buffer length")),i=g(t,e,r,n),o=32768&i,o?-1*(65535-i+1):i}function v(t,e,r,n){var o,i;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+3,"Trying to read beyond buffer length")),i=d(t,e,r,n),o=2147483648&i,o?-1*(4294967295-i+1):i}function b(e,r,n,o){return o||(A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function m(e,r,n,o){return o||(A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function w(t,e){A.ok("number"==typeof t,"cannot write a non-number as a number"),A.ok(t>=0,"specified a negative value for writing an unsigned value"),A.ok(e>=t,"value is larger than maximum value for type"),A.ok(Math.floor(t)===t,"value has a fractional component")}function E(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+1,"trying to write beyond buffer length"),w(e,65535));for(var i=0;Math.min(t.length-r,2)>i;i++)t.parent[t.offset+r+i]=(e&255<<8*(n?1-i:i))>>>8*(n?1-i:i)}function k(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+3,"trying to write beyond buffer length"),w(e,4294967295));for(var i=0;Math.min(t.length-r,4)>i;i++)t.parent[t.offset+r+i]=255&e>>>8*(n?3-i:i)}function _(t,e,r){A.ok("number"==typeof t,"cannot write a non-number as a number"),A.ok(e>=t,"value larger than maximum allowed value"),A.ok(t>=r,"value smaller than minimum allowed value"),A.ok(Math.floor(t)===t,"value has a fractional component")}function I(t,e,r){A.ok("number"==typeof t,"cannot write a non-number as a number"),A.ok(e>=t,"value larger than maximum allowed value"),A.ok(t>=r,"value smaller than minimum allowed value")}function x(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+1,"Trying to write beyond buffer length"),_(e,32767,-32768)),e>=0?E(t,e,r,n,o):E(t,65535+e+1,r,n,o)}function S(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+3,"Trying to write beyond buffer length"),_(e,2147483647,-2147483648)),e>=0?k(t,e,r,n,o):k(t,4294967295+e+1,r,n,o)}function L(e,r,n,o,i){i||(A.ok(void 0!==r&&null!==r,"missing value"),A.ok("boolean"==typeof o,"missing or invalid endian"),A.ok(void 0!==n&&null!==n,"missing offset"),A.ok(e.length>n+3,"Trying to write beyond buffer length"),I(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,o,23,4)}function B(e,r,n,o,i){i||(A.ok(void 0!==r&&null!==r,"missing value"),A.ok("boolean"==typeof o,"missing or invalid endian"),A.ok(void 0!==n&&null!==n,"missing offset"),A.ok(e.length>n+7,"Trying to write beyond buffer length"),I(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,o,52,8)}var A=t("assert");r.INSPECT_MAX_BYTES=50,n.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return i(t).length;case"ascii":case"binary":return t.length;case"base64":return a(t).length;default:throw Error("Unknown encoding")}},n.prototype.utf8Write=function(t,e,r){return n._charsWritten=u(i(t),this,e,r)},n.prototype.asciiWrite=function(t,e,r){return n._charsWritten=u(s(t),this,e,r)},n.prototype.binaryWrite=n.prototype.asciiWrite,n.prototype.base64Write=function(t,e,r){return n._charsWritten=u(a(t),this,e,r)},n.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},n.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=f(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+f(r)},n.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},n.prototype.binarySlice=n.prototype.asciiSlice,n.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=o(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<SlowBuffer "+t.join(" ")+">"},n.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",i=t;e>i;i++)n+=o(this[i]);return n},n.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},n.prototype.hexWrite=function(t,e,r){e=+e||0;var o=this.length-e;r?(r=+r,r>o&&(r=o)):r=o;var i=t.length;if(i%2)throw Error("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;r>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[e+s]=a}return n._charsWritten=2*s,s},n.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var o=n;n=e,e=r,r=o}e=+e||0;var i=this.length-e;switch(r?(r=+r,r>i&&(r=i)):r=i,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},n.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new c(this,e-t,+t)},n.prototype.copy=function(t,e,r,n){for(var o=[],i=r;n>i;i++)A.ok(this[i]!==void 0,"copying undefined buffer bytes!"),o.push(this[i]);for(var i=e;e+o.length>i;i++)t[i]=o[i-e]},n.prototype.fill=function(t,e,r){if(r>this.length)throw Error("oob");if(e>r)throw Error("oob");for(var n=e;r>n;n++)this[n]=t},r.SlowBuffer=n,r.Buffer=c,c.poolSize=8192;var j;c.isBuffer=function(t){return t instanceof c||t instanceof n},c.concat=function(t,e){if(!Array.isArray(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new c(0);if(1===t.length)return t[0];if("number"!=typeof e){e=0;for(var r=0;t.length>r;r++){var n=t[r];e+=n.length}}for(var o=new c(e),i=0,r=0;t.length>r;r++){var n=t[r];n.copy(o,i),i+=n.length}return o},c.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=o(this.parent[n+this.offset]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},c.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]},c.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]=e},c.prototype.write=function(t,e,r,o){if(isFinite(e))isFinite(r)||(o=r,r=void 0);else{var i=o;o=e,e=r,r=i}e=+e||0;var s=this.length-e;r?(r=+r,r>s&&(r=s)):r=s,o=((o||"utf8")+"").toLowerCase();var a;switch(o){case"hex":a=this.parent.hexWrite(t,this.offset+e,r);break;case"utf8":case"utf-8":a=this.parent.utf8Write(t,this.offset+e,r);break;case"ascii":a=this.parent.asciiWrite(t,this.offset+e,r);break;case"binary":a=this.parent.binaryWrite(t,this.offset+e,r);break;case"base64":a=this.parent.base64Write(t,this.offset+e,r);break;case"ucs2":case"ucs-2":a=this.parent.ucs2Write(t,this.offset+e,r);break;default:throw Error("Unknown encoding")}return c._charsWritten=n._charsWritten,a},c.prototype.toString=function(t,e,r){switch(t=((t||"utf8")+"").toLowerCase(),e===void 0||0>e?e=0:e>this.length&&(e=this.length),r===void 0||r>this.length?r=this.length:0>r&&(r=0),e+=this.offset,r+=this.offset,t){case"hex":return this.parent.hexSlice(e,r);case"utf8":case"utf-8":return this.parent.utf8Slice(e,r);case"ascii":return this.parent.asciiSlice(e,r);case"binary":return this.parent.binarySlice(e,r);case"base64":return this.parent.base64Slice(e,r);case"ucs2":case"ucs-2":return this.parent.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},c.byteLength=n.byteLength,c.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");return this.parent.fill(t,e+this.offset,r+this.offset)},c.prototype.copy=function(t,e,r,n){var o=this;if(r||(r=0),n||(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==o.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=o.length)throw Error("sourceStart out of bounds");if(0>n||n>o.length)throw Error("sourceEnd out of bounds");return n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r),this.parent.copy(t.parent,e+t.offset,r+this.offset,n+this.offset)},c.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new c(this.parent,e-t,+t+this.offset)},c.prototype.utf8Slice=function(t,e){return this.toString("utf8",t,e)},c.prototype.binarySlice=function(t,e){return this.toString("binary",t,e)},c.prototype.asciiSlice=function(t,e){return this.toString("ascii",t,e)},c.prototype.utf8Write=function(t,e){return this.write(t,e,"utf8")},c.prototype.binaryWrite=function(t,e){return this.write(t,e,"binary")},c.prototype.asciiWrite=function(t,e){return this.write(t,e,"ascii")},c.prototype.readUInt8=function(t,e){var r=this;return e||(A.ok(void 0!==t&&null!==t,"missing offset"),A.ok(r.length>t,"Trying to read beyond buffer length")),t>=r.length?void 0:r.parent[r.offset+t]},c.prototype.readUInt16LE=function(t,e){return g(this,t,!1,e)},c.prototype.readUInt16BE=function(t,e){return g(this,t,!0,e)},c.prototype.readUInt32LE=function(t,e){return d(this,t,!1,e)},c.prototype.readUInt32BE=function(t,e){return d(this,t,!0,e)},c.prototype.readInt8=function(t,e){var r,n=this;return e||(A.ok(void 0!==t&&null!==t,"missing offset"),A.ok(n.length>t,"Trying to read beyond buffer length")),t>=n.length?void 0:(r=128&n.parent[n.offset+t],r?-1*(255-n.parent[n.offset+t]+1):n.parent[n.offset+t])},c.prototype.readInt16LE=function(t,e){return y(this,t,!1,e)},c.prototype.readInt16BE=function(t,e){return y(this,t,!0,e)},c.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},c.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},c.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},c.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},c.prototype.readDoubleLE=function(t,e){return m(this,t,!1,e)},c.prototype.readDoubleBE=function(t,e){return m(this,t,!0,e)},c.prototype.writeUInt8=function(t,e,r){var n=this;r||(A.ok(void 0!==t&&null!==t,"missing value"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(n.length>e,"trying to write beyond buffer length"),w(t,255)),n.length>e&&(n.parent[n.offset+e]=t)},c.prototype.writeUInt16LE=function(t,e,r){E(this,t,e,!1,r)},c.prototype.writeUInt16BE=function(t,e,r){E(this,t,e,!0,r)},c.prototype.writeUInt32LE=function(t,e,r){k(this,t,e,!1,r)},c.prototype.writeUInt32BE=function(t,e,r){k(this,t,e,!0,r)},c.prototype.writeInt8=function(t,e,r){var n=this;r||(A.ok(void 0!==t&&null!==t,"missing value"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(n.length>e,"Trying to write beyond buffer length"),_(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},c.prototype.writeInt16LE=function(t,e,r){x(this,t,e,!1,r)},c.prototype.writeInt16BE=function(t,e,r){x(this,t,e,!0,r)},c.prototype.writeInt32LE=function(t,e,r){S(this,t,e,!1,r)},c.prototype.writeInt32BE=function(t,e,r){S(this,t,e,!0,r)},c.prototype.writeFloatLE=function(t,e,r){L(this,t,e,!1,r)},c.prototype.writeFloatBE=function(t,e,r){L(this,t,e,!0,r)},c.prototype.writeDoubleLE=function(t,e,r){B(this,t,e,!1,r)},c.prototype.writeDoubleBE=function(t,e,r){B(this,t,e,!0,r)},n.prototype.readUInt8=c.prototype.readUInt8,n.prototype.readUInt16LE=c.prototype.readUInt16LE,n.prototype.readUInt16BE=c.prototype.readUInt16BE,n.prototype.readUInt32LE=c.prototype.readUInt32LE,n.prototype.readUInt32BE=c.prototype.readUInt32BE,n.prototype.readInt8=c.prototype.readInt8,n.prototype.readInt16LE=c.prototype.readInt16LE,n.prototype.readInt16BE=c.prototype.readInt16BE,n.prototype.readInt32LE=c.prototype.readInt32LE,n.prototype.readInt32BE=c.prototype.readInt32BE,n.prototype.readFloatLE=c.prototype.readFloatLE,n.prototype.readFloatBE=c.prototype.readFloatBE,n.prototype.readDoubleLE=c.prototype.readDoubleLE,n.prototype.readDoubleBE=c.prototype.readDoubleBE,n.prototype.writeUInt8=c.prototype.writeUInt8,n.prototype.writeUInt16LE=c.prototype.writeUInt16LE,n.prototype.writeUInt16BE=c.prototype.writeUInt16BE,n.prototype.writeUInt32LE=c.prototype.writeUInt32LE,n.prototype.writeUInt32BE=c.prototype.writeUInt32BE,n.prototype.writeInt8=c.prototype.writeInt8,n.prototype.writeInt16LE=c.prototype.writeInt16LE,n.prototype.writeInt16BE=c.prototype.writeInt16BE,n.prototype.writeInt32LE=c.prototype.writeInt32LE,n.prototype.writeInt32BE=c.prototype.writeInt32BE,n.prototype.writeFloatLE=c.prototype.writeFloatLE,n.prototype.writeFloatBE=c.prototype.writeFloatBE,n.prototype.writeDoubleLE=c.prototype.writeDoubleLE,n.prototype.writeDoubleBE=c.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":5,"base64-js":7}],7:[function(t,e){(function(){"use strict";function t(t){var e,r,o,i,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],o=s>0?t.length-4:t.length,e=0,r=0;o>e;e+=4,r+=3)i=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&i)>>16),a.push((65280&i)>>8),a.push(255&i);return 2===s?(i=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&i)):1===s&&(i=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&i>>8),a.push(255&i)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,o,i,s=t.length%3,a="";for(r=0,i=t.length-s;i>r;r+=3)o=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(o);switch(s){case 1:o=t[t.length-1],a+=n[o>>2],a+=n[63&o<<4],a+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],a+=n[o>>10],a+=n[63&o>>4],a+=n[63&o<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}],8:[function(t,e,r){r.readIEEE754=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,f=u>>1,h=-7,c=r?0:o-1,p=r?1:-1,l=t[e+c];for(c+=p,i=l&(1<<-h)-1,l>>=-h,h+=a;h>0;i=256*i+t[e+c],c+=p,h-=8);for(s=i&(1<<-h)-1,i>>=-h,h+=n;h>0;s=256*s+t[e+c],c+=p,h-=8);if(0===i)i=1-f;else{if(i===u)return s?0/0:1/0*(l?-1:1);s+=Math.pow(2,n),i-=f}return(l?-1:1)*s*Math.pow(2,i-n)},r.writeIEEE754=function(t,e,r,n,o,i){var s,a,u,f=8*i-o-1,h=(1<<f)-1,c=h>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?i-1:0,g=n?-1:1,d=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+c>=1?p/u:p*Math.pow(2,1-c),e*u>=2&&(s++,u/=2),s+c>=h?(a=0,s=h):s+c>=1?(a=(e*u-1)*Math.pow(2,o),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,o),s=0));o>=8;t[r+l]=255&a,l+=g,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;t[r+l]=255&s,l+=g,s/=256,f-=8);t[r+l-g]|=128*d}},{}],3:[function(t,e,r){function n(t){this.length=t}function o(t){return 16>t?"0"+t.toString(16):t.toString(16)}function i(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),o=0;n.length>o;o++)e.push(parseInt(n[o],16));return e}function s(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function a(e){return t("base64-js").toByteArray(e)}function u(t,e,r,n){for(var o=0;n>o&&!(o+r>=e.length||o>=t.length);)e[o+r]=t[o],o++;return o}function f(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function h(t){return t=~~Math.ceil(+t),0>t?0:t}function c(t,e,r){if(!(this instanceof c))return new c(t,e,r);var o;if("number"==typeof r)this.length=h(e),this.parent=t,this.offset=r;else{switch(o=typeof t){case"number":this.length=h(t);break;case"string":this.length=c.byteLength(t,e);break;case"object":this.length=h(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(this.length>c.poolSize?(this.parent=new n(this.length),this.offset=0):((!j||j.length-j.used<this.length)&&l(),this.parent=j,this.offset=j.used,j.used+=this.length),p(t))for(var i=0;this.length>i;i++)this.parent[i+this.offset]=t[i];else"string"==o&&(this.length=this.write(t,0,e))}}function p(t){return Array.isArray(t)||c.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function l(){j=new n(c.poolSize),j.used=0}function g(t,e,r,n){var o=0;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+1,"Trying to read beyond buffer length")),r?(o=t.parent[t.offset+e]<<8,o|=t.parent[t.offset+e+1]):(o=t.parent[t.offset+e],o|=t.parent[t.offset+e+1]<<8),o}function d(t,e,r,n){var o=0;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+3,"Trying to read beyond buffer length")),r?(o=t.parent[t.offset+e+1]<<16,o|=t.parent[t.offset+e+2]<<8,o|=t.parent[t.offset+e+3],o+=t.parent[t.offset+e]<<24>>>0):(o=t.parent[t.offset+e+2]<<16,o|=t.parent[t.offset+e+1]<<8,o|=t.parent[t.offset+e],o+=t.parent[t.offset+e+3]<<24>>>0),o}function y(t,e,r,n){var o,i;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+1,"Trying to read beyond buffer length")),i=g(t,e,r,n),o=32768&i,o?-1*(65535-i+1):i}function v(t,e,r,n){var o,i;return n||(A.ok("boolean"==typeof r,"missing or invalid endian"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(t.length>e+3,"Trying to read beyond buffer length")),i=d(t,e,r,n),o=2147483648&i,o?-1*(4294967295-i+1):i}function b(e,r,n,o){return o||(A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function m(e,r,n,o){return o||(A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function w(t,e){A.ok("number"==typeof t,"cannot write a non-number as a number"),A.ok(t>=0,"specified a negative value for writing an unsigned value"),A.ok(e>=t,"value is larger than maximum value for type"),A.ok(Math.floor(t)===t,"value has a fractional component")}function E(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+1,"trying to write beyond buffer length"),w(e,65535)),n?(t.parent[t.offset+r]=(65280&e)>>>8,t.parent[t.offset+r+1]=255&e):(t.parent[t.offset+r+1]=(65280&e)>>>8,t.parent[t.offset+r]=255&e)}function k(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+3,"trying to write beyond buffer length"),w(e,4294967295)),n?(t.parent[t.offset+r]=255&e>>>24,t.parent[t.offset+r+1]=255&e>>>16,t.parent[t.offset+r+2]=255&e>>>8,t.parent[t.offset+r+3]=255&e):(t.parent[t.offset+r+3]=255&e>>>24,t.parent[t.offset+r+2]=255&e>>>16,t.parent[t.offset+r+1]=255&e>>>8,t.parent[t.offset+r]=255&e)
}function _(t,e,r){A.ok("number"==typeof t,"cannot write a non-number as a number"),A.ok(e>=t,"value larger than maximum allowed value"),A.ok(t>=r,"value smaller than minimum allowed value"),A.ok(Math.floor(t)===t,"value has a fractional component")}function I(t,e,r){A.ok("number"==typeof t,"cannot write a non-number as a number"),A.ok(e>=t,"value larger than maximum allowed value"),A.ok(t>=r,"value smaller than minimum allowed value")}function x(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+1,"Trying to write beyond buffer length"),_(e,32767,-32768)),e>=0?E(t,e,r,n,o):E(t,65535+e+1,r,n,o)}function S(t,e,r,n,o){o||(A.ok(void 0!==e&&null!==e,"missing value"),A.ok("boolean"==typeof n,"missing or invalid endian"),A.ok(void 0!==r&&null!==r,"missing offset"),A.ok(t.length>r+3,"Trying to write beyond buffer length"),_(e,2147483647,-2147483648)),e>=0?k(t,e,r,n,o):k(t,4294967295+e+1,r,n,o)}function L(e,r,n,o,i){i||(A.ok(void 0!==r&&null!==r,"missing value"),A.ok("boolean"==typeof o,"missing or invalid endian"),A.ok(void 0!==n&&null!==n,"missing offset"),A.ok(e.length>n+3,"Trying to write beyond buffer length"),I(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,o,23,4)}function B(e,r,n,o,i){i||(A.ok(void 0!==r&&null!==r,"missing value"),A.ok("boolean"==typeof o,"missing or invalid endian"),A.ok(void 0!==n&&null!==n,"missing offset"),A.ok(e.length>n+7,"Trying to write beyond buffer length"),I(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,o,52,8)}var A=t("assert");r.INSPECT_MAX_BYTES=50,n.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return i(t).length;case"ascii":return t.length;case"base64":return a(t).length;default:throw Error("Unknown encoding")}},n.prototype.utf8Write=function(t,e,r){return n._charsWritten=u(i(t),this,e,r)},n.prototype.asciiWrite=function(t,e,r){return n._charsWritten=u(s(t),this,e,r)},n.prototype.base64Write=function(t,e,r){return n._charsWritten=u(a(t),this,e,r)},n.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},n.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=f(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+f(r)},n.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},n.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=o(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<SlowBuffer "+t.join(" ")+">"},n.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",i=t;e>i;i++)n+=o(this[i]);return n},n.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},n.prototype.hexWrite=function(t,e,r){e=+e||0;var o=this.length-e;r?(r=+r,r>o&&(r=o)):r=o;var i=t.length;if(i%2)throw Error("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;r>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[e+s]=a}return n._charsWritten=2*s,s},n.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var o=n;n=e,e=r,r=o}e=+e||0;var i=this.length-e;switch(r?(r=+r,r>i&&(r=i)):r=i,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},n.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new c(this,e-t,+t)},n.prototype.copy=function(t,e,r,n){for(var o=[],i=r;n>i;i++)A.ok(this[i]!==void 0,"copying undefined buffer bytes!"),o.push(this[i]);for(var i=e;e+o.length>i;i++)t[i]=o[i-e]},r.SlowBuffer=n,r.Buffer=c,c.poolSize=8192;var j;c.isBuffer=function(t){return t instanceof c||t instanceof n},c.concat=function(t,e){if(!Array.isArray(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new c(0);if(1===t.length)return t[0];if("number"!=typeof e){e=0;for(var r=0;t.length>r;r++){var n=t[r];e+=n.length}}for(var o=new c(e),i=0,r=0;t.length>r;r++){var n=t[r];n.copy(o,i),i+=n.length}return o},c.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=o(this.parent[n+this.offset]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},c.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]},c.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]=e},c.prototype.write=function(t,e,r,o){if(isFinite(e))isFinite(r)||(o=r,r=void 0);else{var i=o;o=e,e=r,r=i}e=+e||0;var s=this.length-e;r?(r=+r,r>s&&(r=s)):r=s,o=((o||"utf8")+"").toLowerCase();var a;switch(o){case"hex":a=this.parent.hexWrite(t,this.offset+e,r);break;case"utf8":case"utf-8":a=this.parent.utf8Write(t,this.offset+e,r);break;case"ascii":a=this.parent.asciiWrite(t,this.offset+e,r);break;case"binary":a=this.parent.binaryWrite(t,this.offset+e,r);break;case"base64":a=this.parent.base64Write(t,this.offset+e,r);break;case"ucs2":case"ucs-2":a=this.parent.ucs2Write(t,this.offset+e,r);break;default:throw Error("Unknown encoding")}return c._charsWritten=n._charsWritten,a},c.prototype.toString=function(t,e,r){switch(t=((t||"utf8")+"").toLowerCase(),e===void 0||0>e?e=0:e>this.length&&(e=this.length),r===void 0||r>this.length?r=this.length:0>r&&(r=0),e+=this.offset,r+=this.offset,t){case"hex":return this.parent.hexSlice(e,r);case"utf8":case"utf-8":return this.parent.utf8Slice(e,r);case"ascii":return this.parent.asciiSlice(e,r);case"binary":return this.parent.binarySlice(e,r);case"base64":return this.parent.base64Slice(e,r);case"ucs2":case"ucs-2":return this.parent.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},c.byteLength=n.byteLength,c.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");return this.parent.fill(t,e+this.offset,r+this.offset)},c.prototype.copy=function(t,e,r,n){var o=this;if(r||(r=0),n||(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==o.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=o.length)throw Error("sourceStart out of bounds");if(0>n||n>o.length)throw Error("sourceEnd out of bounds");return n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r),this.parent.copy(t.parent,e+t.offset,r+this.offset,n+this.offset)},c.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new c(this.parent,e-t,+t+this.offset)},c.prototype.utf8Slice=function(t,e){return this.toString("utf8",t,e)},c.prototype.binarySlice=function(t,e){return this.toString("binary",t,e)},c.prototype.asciiSlice=function(t,e){return this.toString("ascii",t,e)},c.prototype.utf8Write=function(t,e){return this.write(t,e,"utf8")},c.prototype.binaryWrite=function(t,e){return this.write(t,e,"binary")},c.prototype.asciiWrite=function(t,e){return this.write(t,e,"ascii")},c.prototype.readUInt8=function(t,e){var r=this;return e||(A.ok(void 0!==t&&null!==t,"missing offset"),A.ok(r.length>t,"Trying to read beyond buffer length")),r.parent[r.offset+t]},c.prototype.readUInt16LE=function(t,e){return g(this,t,!1,e)},c.prototype.readUInt16BE=function(t,e){return g(this,t,!0,e)},c.prototype.readUInt32LE=function(t,e){return d(this,t,!1,e)},c.prototype.readUInt32BE=function(t,e){return d(this,t,!0,e)},c.prototype.readInt8=function(t,e){var r,n=this;return e||(A.ok(void 0!==t&&null!==t,"missing offset"),A.ok(n.length>t,"Trying to read beyond buffer length")),r=128&n.parent[n.offset+t],r?-1*(255-n.parent[n.offset+t]+1):n.parent[n.offset+t]},c.prototype.readInt16LE=function(t,e){return y(this,t,!1,e)},c.prototype.readInt16BE=function(t,e){return y(this,t,!0,e)},c.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},c.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},c.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},c.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},c.prototype.readDoubleLE=function(t,e){return m(this,t,!1,e)},c.prototype.readDoubleBE=function(t,e){return m(this,t,!0,e)},c.prototype.writeUInt8=function(t,e,r){var n=this;r||(A.ok(void 0!==t&&null!==t,"missing value"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(n.length>e,"trying to write beyond buffer length"),w(t,255)),n.parent[n.offset+e]=t},c.prototype.writeUInt16LE=function(t,e,r){E(this,t,e,!1,r)},c.prototype.writeUInt16BE=function(t,e,r){E(this,t,e,!0,r)},c.prototype.writeUInt32LE=function(t,e,r){k(this,t,e,!1,r)},c.prototype.writeUInt32BE=function(t,e,r){k(this,t,e,!0,r)},c.prototype.writeInt8=function(t,e,r){var n=this;r||(A.ok(void 0!==t&&null!==t,"missing value"),A.ok(void 0!==e&&null!==e,"missing offset"),A.ok(n.length>e,"Trying to write beyond buffer length"),_(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},c.prototype.writeInt16LE=function(t,e,r){x(this,t,e,!1,r)},c.prototype.writeInt16BE=function(t,e,r){x(this,t,e,!0,r)},c.prototype.writeInt32LE=function(t,e,r){S(this,t,e,!1,r)},c.prototype.writeInt32BE=function(t,e,r){S(this,t,e,!0,r)},c.prototype.writeFloatLE=function(t,e,r){L(this,t,e,!1,r)},c.prototype.writeFloatBE=function(t,e,r){L(this,t,e,!0,r)},c.prototype.writeDoubleLE=function(t,e,r){B(this,t,e,!1,r)},c.prototype.writeDoubleBE=function(t,e,r){B(this,t,e,!0,r)},n.prototype.readUInt8=c.prototype.readUInt8,n.prototype.readUInt16LE=c.prototype.readUInt16LE,n.prototype.readUInt16BE=c.prototype.readUInt16BE,n.prototype.readUInt32LE=c.prototype.readUInt32LE,n.prototype.readUInt32BE=c.prototype.readUInt32BE,n.prototype.readInt8=c.prototype.readInt8,n.prototype.readInt16LE=c.prototype.readInt16LE,n.prototype.readInt16BE=c.prototype.readInt16BE,n.prototype.readInt32LE=c.prototype.readInt32LE,n.prototype.readInt32BE=c.prototype.readInt32BE,n.prototype.readFloatLE=c.prototype.readFloatLE,n.prototype.readFloatBE=c.prototype.readFloatBE,n.prototype.readDoubleLE=c.prototype.readDoubleLE,n.prototype.readDoubleBE=c.prototype.readDoubleBE,n.prototype.writeUInt8=c.prototype.writeUInt8,n.prototype.writeUInt16LE=c.prototype.writeUInt16LE,n.prototype.writeUInt16BE=c.prototype.writeUInt16BE,n.prototype.writeUInt32LE=c.prototype.writeUInt32LE,n.prototype.writeUInt32BE=c.prototype.writeUInt32BE,n.prototype.writeInt8=c.prototype.writeInt8,n.prototype.writeInt16LE=c.prototype.writeInt16LE,n.prototype.writeInt16BE=c.prototype.writeInt16BE,n.prototype.writeInt32LE=c.prototype.writeInt32LE,n.prototype.writeInt32BE=c.prototype.writeInt32BE,n.prototype.writeFloatLE=c.prototype.writeFloatLE,n.prototype.writeFloatBE=c.prototype.writeFloatBE,n.prototype.writeDoubleLE=c.prototype.writeDoubleLE,n.prototype.writeDoubleBE=c.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":8,"base64-js":9}],9:[function(t,e){(function(){"use strict";function t(t){var e,r,o,i,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],o=s>0?t.length-4:t.length,e=0,r=0;o>e;e+=4,r+=3)i=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&i)>>16),a.push((65280&i)>>8),a.push(255&i);return 2===s?(i=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&i)):1===s&&(i=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&i>>8),a.push(255&i)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,o,i,s=t.length%3,a="";for(r=0,i=t.length-s;i>r;r+=3)o=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(o);switch(s){case 1:o=t[t.length-1],a+=n[o>>2],a+=n[63&o<<4],a+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],a+=n[o>>10],a+=n[63&o>>4],a+=n[63&o<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}]},{},[]),e.exports=t("buffer-browserify")},{}],17:[function(t,e,r){(function(t){function e(t){return t.toString(this.encoding)}function n(t){var e=this.charReceived=t.length%2;return this.charLength=e?2:0,e}function o(t){var e=this.charReceived=t.length%3;return this.charLength=e?3:0,e}var i=r.StringDecoder=function(r){switch(this.encoding=(r||"utf8").toLowerCase().replace(/[-_]/,""),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=n;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=o;break;default:return this.write=e,void 0}this.charBuffer=new t(6),this.charReceived=0,this.charLength=0};i.prototype.write=function(t){for(var e="",r=0;this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,r,n),this.charReceived+=n-r,r=n,this.charReceived<this.charLength)return"";e=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var o=e.charCodeAt(e.length-1);if(!(o>=55296&&56319>=o)){if(this.charReceived=this.charLength=0,n==t.length)return e;t=t.slice(n,t.length);break}this.charLength+=this.surrogateSize,e=""}var i=this.detectIncompleteChar(t),s=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-i,s),this.charReceived=i,s-=i),e+=t.toString(this.encoding,0,s);var s=e.length-1,o=e.charCodeAt(s);if(o>=55296&&56319>=o){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),this.charBuffer.write(e.charAt(e.length-1),this.encoding),e.substring(0,s)}return e},i.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&6==r>>5){this.charLength=2;break}if(2>=e&&14==r>>4){this.charLength=3;break}if(3>=e&&30==r>>3){this.charLength=4;break}}return e},i.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,o=this.encoding;e+=n.slice(0,r).toString(o)}return e}})(t("__browserify_Buffer").Buffer)},{__browserify_Buffer:16}],15:[function(t,e){(function(){"use strict";function t(t){var e,r,o,i,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],o=s>0?t.length-4:t.length,e=0,r=0;o>e;e+=4,r+=3)i=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&i)>>16),a.push((65280&i)>>8),a.push(255&i);return 2===s?(i=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&i)):1===s&&(i=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&i>>8),a.push(255&i)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,o,i,s=t.length%3,a="";for(r=0,i=t.length-s;i>r;r+=3)o=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(o);switch(s){case 1:o=t[t.length-1],a+=n[o>>2],a+=n[63&o<<4],a+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],a+=n[o>>10],a+=n[63&o>>4],a+=n[63&o<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}],12:[function(t,e){var r=t("duplexer");e.exports=function(){function t(e){2>e.length||(e[0].pipe(e[1]),t(e.slice(1)))}function e(){var t=[].slice.call(arguments);t.unshift("error"),s.emit.apply(s,t)}var n=[].slice.call(arguments),o=n[0],i=n[n.length-1],s=r(o,i);if(1==n.length)return n[0];if(!n.length)throw Error("connect called with empty args");t(n);for(var a=1;n.length-1>a;a++)n[a].on("error",e);return s}},{duplexer:18}],8:[function(t,e){e.exports=t("through")},{through:6}],10:[function(t,e){function r(t,e){function r(t,r){if(e){try{r=e(r)}catch(n){return t.emit("error",n)}r!==void 0&&t.queue(r)}else t.queue(r)}function i(e,n){var o=(a+n).split(t);a=o.pop();for(var i=0;o.length>i;i++){var s=o[i];r(e,s)}}var s=new o,a="";return"function"==typeof t&&(e=t,t=null),t||(t=/\r?\n/),n(function(t){i(this,s.write(t))},function(){s.end&&i(this,s.end()),null!=a&&r(this,a),this.queue(null)})}var n=t("through"),o=t("string_decoder").StringDecoder;e.exports=r},{string_decoder:17,through:6}],18:[function(t,e){function r(t,e){function r(){return t.writable}function u(){return e.readable}function f(e){function r(){return t[e].apply(t,arguments)}g[e]=r}function h(t){function r(){g.emit(t);var r=e[t];return r?r.apply(e,arguments):(e.emit(t),void 0)}g[t]=r}function c(t){function r(){var e=a.call(arguments);e.unshift(t),g.emit.apply(g,e)}e.on(t,r)}function p(){if(!d){d=!0;var t=a.call(arguments);t.unshift("end"),g.emit.apply(g,t)}}function l(t){g.emit("error",t)}var g=new n,d=!1;return Object.defineProperties(g,{writable:{get:r},readable:{get:u}}),o.forEach(f),i.forEach(h),s.forEach(c),e.on("end",p),t.on("error",l),e.on("error",l),g}var n=t("stream"),o=["write","end","destroy"],i=["resume","pause"],s=["data","close"],a=Array.prototype.slice;e.exports=r},{stream:1}]},{},[]);var h=require("hyperquest"),step=require("step"),es=require("event-stream");step(function(){h.get("/",this.parallel()),h.get("/",this.parallel()),h.get("/",this.parallel())},function(){var t=Array.prototype.slice.call(arguments,1);t.forEach(function(t){t.pipe(es.join(function(t,e){log("err: ",t),log("text: ",e)}))})});
<style type='text/css'>html, body { margin: 0; padding: 0; border: 0; }
body, html { height: 100%; width: 100%; }</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment