view on requirebin
Created
October 23, 2013 17:48
-
-
Save refset/7123335 to your computer and use it in GitHub Desktop.
requirebin sketch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var proquint = require('proquint')// require something | |
var Buffer = require('buffer-browserify').Buffer | |
var s = "brfxxccxxmnpcccclllmmnprxvclmnckssqlbb11116" | |
var id = proquint.encode(Buffer(s+(s.length%2?" ":""),"utf-8")); | |
alert(s + "\n\n...is more pronouncible, in proquint form, as:\n\n" +id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}({proquint:[function(t,e){e.exports=t("L3DgK+")},{}],1:[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 d.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:o})}function s(t,e){t||i(t,!0,e,"==",d.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:l(t,e)}function u(t){return null===t||void 0===t}function f(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function l(t,e){if(u(t)||u(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return f(e)?(t=y.call(t),e=y.call(e),a(t,e)):!1;try{var n,o,i=r(t),s=r(e)}catch(l){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 h(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&&h(o,r)&&i("Got unwanted exception"+n),t&&o&&r&&!h(o,r)||!t&&o)throw o}var c=t("util"),g=t("buffer").Buffer,y=Array.prototype.slice,d=e.exports=s;d.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)},c.inherits(d.AssertionError,Error),d.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(" ")},d.AssertionError.__proto__=Error.prototype,d.fail=i,d.ok=s,d.equal=function(t,e,r){t!=e&&i(t,e,r,"==",d.equal)},d.notEqual=function(t,e,r){t==e&&i(t,e,r,"!=",d.notEqual)},d.deepEqual=function(t,e,r){a(t,e)||i(t,e,r,"deepEqual",d.deepEqual)},d.notDeepEqual=function(t,e,r){a(t,e)&&i(t,e,r,"notDeepEqual",d.notDeepEqual)},d.strictEqual=function(t,e,r){t!==e&&i(t,e,r,"===",d.strictEqual)},d.notStrictEqual=function(t,e,r){t===e&&i(t,e,r,"!==",d.notStrictEqual)},d.throws=function(){p.apply(this,[!0].concat(y.call(arguments)))},d.doesNotThrow=function(){p.apply(this,[!1].concat(y.call(arguments)))},d.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 l(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 c=s(t),g=e?a(t):c;if("function"==typeof t&&0===g.length){if(o(t))return p(""+t,"regexp");var y=t.name?": "+t.name:"";return p("[Function"+y+"]","special")}if(i(t)&&0===g.length)return p(t.toUTCString(),"date");var d,v,b;if(n(t)?(v="Array",b=["[","]"]):(v="Object",b=["{","}"]),"function"==typeof t){var w=t.name?": "+t.name:"";d=o(t)?" "+t:" [Function"+w+"]"}else d="";if(i(t)&&(d=" "+t.toUTCString()),0===g.length)return b[0]+d+b[1];if(0>u)return o(t)?p(""+t,"regexp"):p("[Object]","special");h.push(t);var m=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>c.indexOf(e)&&(r="["+e+"]"),o||(0>h.indexOf(t[e])?(o=null===u?l(t[e]):l(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});h.pop();var E=0,k=m.reduce(function(t,e){return E++,e.indexOf("\n")>=0&&E++,t+e.length+1},0);return m=k>50?b[0]+(""===d?"":d+"\n ")+" "+m.join(",\n ")+" "+b[1]:b[0]+d+" "+m.join(", ")+" "+b[1]}var h=[],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}),l(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,l=-7,h=r?0:o-1,p=r?1:-1,c=t[e+h];for(h+=p,i=c&(1<<-l)-1,c>>=-l,l+=a;l>0;i=256*i+t[e+h],h+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+h],h+=p,l-=8);if(0===i)i=1-f;else{if(i===u)return s?0/0:1/0*(c?-1:1);s+=Math.pow(2,n),i-=f}return(c?-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,l=(1<<f)-1,h=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,c=n?i-1:0,g=n?-1:1,y=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=l):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+h>=1?p/u:p*Math.pow(2,1-h),e*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*u-1)*Math.pow(2,o),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;t[r+c]=255&a,c+=g,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;t[r+c]=255&s,c+=g,s/=256,f-=8);t[r+c-g]|=128*y}},{}],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 l(t){return t=~~Math.ceil(+t),0>t?0:t}function h(t,e,r){if(!(this instanceof h))return new h(t,e,r);var o;if("number"==typeof r)this.length=l(e),this.parent=t,this.offset=r;else{switch(o=typeof t){case"number":this.length=l(t);break;case"string":this.length=h.byteLength(t,e);break;case"object":this.length=l(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(this.length>h.poolSize?(this.parent=new n(this.length),this.offset=0):((!A||A.length-A.used<this.length)&&c(),this.parent=A,this.offset=A.used,A.used+=this.length),p(t))for(var i=0;this.length>i;i++)this.parent[i+this.offset]=t instanceof h?t.readUInt8(i):t[i];else"string"==o&&(this.length=this.write(t,0,e))}}function p(t){return Array.isArray(t)||h.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function c(){A=new n(h.poolSize),A.used=0}function g(t,e,r,n){var o=0;return n||(U.ok("boolean"==typeof r,"missing or invalid endian"),U.ok(void 0!==e&&null!==e,"missing offset"),U.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 y(t,e,r,n){var o=0;return n||(U.ok("boolean"==typeof r,"missing or invalid endian"),U.ok(void 0!==e&&null!==e,"missing offset"),U.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 d(t,e,r,n){var o,i;return n||(U.ok("boolean"==typeof r,"missing or invalid endian"),U.ok(void 0!==e&&null!==e,"missing offset"),U.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||(U.ok("boolean"==typeof r,"missing or invalid endian"),U.ok(void 0!==e&&null!==e,"missing offset"),U.ok(t.length>e+3,"Trying to read beyond buffer length")),i=y(t,e,r,n),o=2147483648&i,o?-1*(4294967295-i+1):i}function b(e,r,n,o){return o||(U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function w(e,r,n,o){return o||(U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function m(t,e){U.ok("number"==typeof t,"cannot write a non-number as a number"),U.ok(t>=0,"specified a negative value for writing an unsigned value"),U.ok(e>=t,"value is larger than maximum value for type"),U.ok(Math.floor(t)===t,"value has a fractional component")}function E(t,e,r,n,o){o||(U.ok(void 0!==e&&null!==e,"missing value"),U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(void 0!==r&&null!==r,"missing offset"),U.ok(t.length>r+1,"trying to write beyond buffer length"),m(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||(U.ok(void 0!==e&&null!==e,"missing value"),U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(void 0!==r&&null!==r,"missing offset"),U.ok(t.length>r+3,"trying to write beyond buffer length"),m(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){U.ok("number"==typeof t,"cannot write a non-number as a number"),U.ok(e>=t,"value larger than maximum allowed value"),U.ok(t>=r,"value smaller than minimum allowed value"),U.ok(Math.floor(t)===t,"value has a fractional component")}function I(t,e,r){U.ok("number"==typeof t,"cannot write a non-number as a number"),U.ok(e>=t,"value larger than maximum allowed value"),U.ok(t>=r,"value smaller than minimum allowed value")}function S(t,e,r,n,o){o||(U.ok(void 0!==e&&null!==e,"missing value"),U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(void 0!==r&&null!==r,"missing offset"),U.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 x(t,e,r,n,o){o||(U.ok(void 0!==e&&null!==e,"missing value"),U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(void 0!==r&&null!==r,"missing offset"),U.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||(U.ok(void 0!==r&&null!==r,"missing value"),U.ok("boolean"==typeof o,"missing or invalid endian"),U.ok(void 0!==n&&null!==n,"missing offset"),U.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||(U.ok(void 0!==r&&null!==r,"missing value"),U.ok("boolean"==typeof o,"missing or invalid endian"),U.ok(void 0!==n&&null!==n,"missing offset"),U.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 U=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 h(this,e-t,+t)},n.prototype.copy=function(t,e,r,n){for(var o=[],i=r;n>i;i++)U.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=h,h.poolSize=8192;var A;h.isBuffer=function(t){return t instanceof h||t instanceof n},h.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 h(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 h(e),i=0,r=0;t.length>r;r++){var n=t[r];n.copy(o,i),i+=n.length}return o},h.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(" ")+">"},h.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]},h.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]=e},h.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 h._charsWritten=n._charsWritten,a},h.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")}},h.byteLength=n.byteLength,h.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)},h.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)},h.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 h(this.parent,e-t,+t+this.offset)},h.prototype.utf8Slice=function(t,e){return this.toString("utf8",t,e)},h.prototype.binarySlice=function(t,e){return this.toString("binary",t,e)},h.prototype.asciiSlice=function(t,e){return this.toString("ascii",t,e)},h.prototype.utf8Write=function(t,e){return this.write(t,e,"utf8")},h.prototype.binaryWrite=function(t,e){return this.write(t,e,"binary")},h.prototype.asciiWrite=function(t,e){return this.write(t,e,"ascii")},h.prototype.readUInt8=function(t,e){var r=this;return e||(U.ok(void 0!==t&&null!==t,"missing offset"),U.ok(r.length>t,"Trying to read beyond buffer length")),t>=r.length?void 0:r.parent[r.offset+t]},h.prototype.readUInt16LE=function(t,e){return g(this,t,!1,e)},h.prototype.readUInt16BE=function(t,e){return g(this,t,!0,e)},h.prototype.readUInt32LE=function(t,e){return y(this,t,!1,e)},h.prototype.readUInt32BE=function(t,e){return y(this,t,!0,e)},h.prototype.readInt8=function(t,e){var r,n=this;return e||(U.ok(void 0!==t&&null!==t,"missing offset"),U.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])},h.prototype.readInt16LE=function(t,e){return d(this,t,!1,e)},h.prototype.readInt16BE=function(t,e){return d(this,t,!0,e)},h.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},h.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},h.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},h.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},h.prototype.readDoubleLE=function(t,e){return w(this,t,!1,e)},h.prototype.readDoubleBE=function(t,e){return w(this,t,!0,e)},h.prototype.writeUInt8=function(t,e,r){var n=this;r||(U.ok(void 0!==t&&null!==t,"missing value"),U.ok(void 0!==e&&null!==e,"missing offset"),U.ok(n.length>e,"trying to write beyond buffer length"),m(t,255)),n.length>e&&(n.parent[n.offset+e]=t)},h.prototype.writeUInt16LE=function(t,e,r){E(this,t,e,!1,r)},h.prototype.writeUInt16BE=function(t,e,r){E(this,t,e,!0,r)},h.prototype.writeUInt32LE=function(t,e,r){k(this,t,e,!1,r)},h.prototype.writeUInt32BE=function(t,e,r){k(this,t,e,!0,r)},h.prototype.writeInt8=function(t,e,r){var n=this;r||(U.ok(void 0!==t&&null!==t,"missing value"),U.ok(void 0!==e&&null!==e,"missing offset"),U.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)},h.prototype.writeInt16LE=function(t,e,r){S(this,t,e,!1,r)},h.prototype.writeInt16BE=function(t,e,r){S(this,t,e,!0,r)},h.prototype.writeInt32LE=function(t,e,r){x(this,t,e,!1,r)},h.prototype.writeInt32BE=function(t,e,r){x(this,t,e,!0,r)},h.prototype.writeFloatLE=function(t,e,r){L(this,t,e,!1,r)},h.prototype.writeFloatBE=function(t,e,r){L(this,t,e,!0,r)},h.prototype.writeDoubleLE=function(t,e,r){B(this,t,e,!1,r)},h.prototype.writeDoubleBE=function(t,e,r){B(this,t,e,!0,r)},n.prototype.readUInt8=h.prototype.readUInt8,n.prototype.readUInt16LE=h.prototype.readUInt16LE,n.prototype.readUInt16BE=h.prototype.readUInt16BE,n.prototype.readUInt32LE=h.prototype.readUInt32LE,n.prototype.readUInt32BE=h.prototype.readUInt32BE,n.prototype.readInt8=h.prototype.readInt8,n.prototype.readInt16LE=h.prototype.readInt16LE,n.prototype.readInt16BE=h.prototype.readInt16BE,n.prototype.readInt32LE=h.prototype.readInt32LE,n.prototype.readInt32BE=h.prototype.readInt32BE,n.prototype.readFloatLE=h.prototype.readFloatLE,n.prototype.readFloatBE=h.prototype.readFloatBE,n.prototype.readDoubleLE=h.prototype.readDoubleLE,n.prototype.readDoubleBE=h.prototype.readDoubleBE,n.prototype.writeUInt8=h.prototype.writeUInt8,n.prototype.writeUInt16LE=h.prototype.writeUInt16LE,n.prototype.writeUInt16BE=h.prototype.writeUInt16BE,n.prototype.writeUInt32LE=h.prototype.writeUInt32LE,n.prototype.writeUInt32BE=h.prototype.writeUInt32BE,n.prototype.writeInt8=h.prototype.writeInt8,n.prototype.writeInt16LE=h.prototype.writeInt16LE,n.prototype.writeInt16BE=h.prototype.writeInt16BE,n.prototype.writeInt32LE=h.prototype.writeInt32LE,n.prototype.writeInt32BE=h.prototype.writeInt32BE,n.prototype.writeFloatLE=h.prototype.writeFloatLE,n.prototype.writeFloatBE=h.prototype.writeFloatBE,n.prototype.writeDoubleLE=h.prototype.writeDoubleLE,n.prototype.writeDoubleBE=h.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,l=-7,h=r?0:o-1,p=r?1:-1,c=t[e+h];for(h+=p,i=c&(1<<-l)-1,c>>=-l,l+=a;l>0;i=256*i+t[e+h],h+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+h],h+=p,l-=8);if(0===i)i=1-f;else{if(i===u)return s?0/0:1/0*(c?-1:1);s+=Math.pow(2,n),i-=f}return(c?-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,l=(1<<f)-1,h=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,c=n?i-1:0,g=n?-1:1,y=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=l):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+h>=1?p/u:p*Math.pow(2,1-h),e*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*u-1)*Math.pow(2,o),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;t[r+c]=255&a,c+=g,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;t[r+c]=255&s,c+=g,s/=256,f-=8);t[r+c-g]|=128*y}},{}],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 l(t){return t=~~Math.ceil(+t),0>t?0:t}function h(t,e,r){if(!(this instanceof h))return new h(t,e,r);var o;if("number"==typeof r)this.length=l(e),this.parent=t,this.offset=r;else{switch(o=typeof t){case"number":this.length=l(t);break;case"string":this.length=h.byteLength(t,e);break;case"object":this.length=l(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(this.length>h.poolSize?(this.parent=new n(this.length),this.offset=0):((!A||A.length-A.used<this.length)&&c(),this.parent=A,this.offset=A.used,A.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)||h.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function c(){A=new n(h.poolSize),A.used=0 | |
}function g(t,e,r,n){var o=0;return n||(U.ok("boolean"==typeof r,"missing or invalid endian"),U.ok(void 0!==e&&null!==e,"missing offset"),U.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 y(t,e,r,n){var o=0;return n||(U.ok("boolean"==typeof r,"missing or invalid endian"),U.ok(void 0!==e&&null!==e,"missing offset"),U.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 d(t,e,r,n){var o,i;return n||(U.ok("boolean"==typeof r,"missing or invalid endian"),U.ok(void 0!==e&&null!==e,"missing offset"),U.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||(U.ok("boolean"==typeof r,"missing or invalid endian"),U.ok(void 0!==e&&null!==e,"missing offset"),U.ok(t.length>e+3,"Trying to read beyond buffer length")),i=y(t,e,r,n),o=2147483648&i,o?-1*(4294967295-i+1):i}function b(e,r,n,o){return o||(U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function w(e,r,n,o){return o||(U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function m(t,e){U.ok("number"==typeof t,"cannot write a non-number as a number"),U.ok(t>=0,"specified a negative value for writing an unsigned value"),U.ok(e>=t,"value is larger than maximum value for type"),U.ok(Math.floor(t)===t,"value has a fractional component")}function E(t,e,r,n,o){o||(U.ok(void 0!==e&&null!==e,"missing value"),U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(void 0!==r&&null!==r,"missing offset"),U.ok(t.length>r+1,"trying to write beyond buffer length"),m(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||(U.ok(void 0!==e&&null!==e,"missing value"),U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(void 0!==r&&null!==r,"missing offset"),U.ok(t.length>r+3,"trying to write beyond buffer length"),m(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){U.ok("number"==typeof t,"cannot write a non-number as a number"),U.ok(e>=t,"value larger than maximum allowed value"),U.ok(t>=r,"value smaller than minimum allowed value"),U.ok(Math.floor(t)===t,"value has a fractional component")}function I(t,e,r){U.ok("number"==typeof t,"cannot write a non-number as a number"),U.ok(e>=t,"value larger than maximum allowed value"),U.ok(t>=r,"value smaller than minimum allowed value")}function S(t,e,r,n,o){o||(U.ok(void 0!==e&&null!==e,"missing value"),U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(void 0!==r&&null!==r,"missing offset"),U.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 x(t,e,r,n,o){o||(U.ok(void 0!==e&&null!==e,"missing value"),U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(void 0!==r&&null!==r,"missing offset"),U.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||(U.ok(void 0!==r&&null!==r,"missing value"),U.ok("boolean"==typeof o,"missing or invalid endian"),U.ok(void 0!==n&&null!==n,"missing offset"),U.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||(U.ok(void 0!==r&&null!==r,"missing value"),U.ok("boolean"==typeof o,"missing or invalid endian"),U.ok(void 0!==n&&null!==n,"missing offset"),U.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 U=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 h(this,e-t,+t)},n.prototype.copy=function(t,e,r,n){for(var o=[],i=r;n>i;i++)U.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=h,h.poolSize=8192;var A;h.isBuffer=function(t){return t instanceof h||t instanceof n},h.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 h(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 h(e),i=0,r=0;t.length>r;r++){var n=t[r];n.copy(o,i),i+=n.length}return o},h.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(" ")+">"},h.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]},h.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]=e},h.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 h._charsWritten=n._charsWritten,a},h.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")}},h.byteLength=n.byteLength,h.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)},h.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)},h.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 h(this.parent,e-t,+t+this.offset)},h.prototype.utf8Slice=function(t,e){return this.toString("utf8",t,e)},h.prototype.binarySlice=function(t,e){return this.toString("binary",t,e)},h.prototype.asciiSlice=function(t,e){return this.toString("ascii",t,e)},h.prototype.utf8Write=function(t,e){return this.write(t,e,"utf8")},h.prototype.binaryWrite=function(t,e){return this.write(t,e,"binary")},h.prototype.asciiWrite=function(t,e){return this.write(t,e,"ascii")},h.prototype.readUInt8=function(t,e){var r=this;return e||(U.ok(void 0!==t&&null!==t,"missing offset"),U.ok(r.length>t,"Trying to read beyond buffer length")),r.parent[r.offset+t]},h.prototype.readUInt16LE=function(t,e){return g(this,t,!1,e)},h.prototype.readUInt16BE=function(t,e){return g(this,t,!0,e)},h.prototype.readUInt32LE=function(t,e){return y(this,t,!1,e)},h.prototype.readUInt32BE=function(t,e){return y(this,t,!0,e)},h.prototype.readInt8=function(t,e){var r,n=this;return e||(U.ok(void 0!==t&&null!==t,"missing offset"),U.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]},h.prototype.readInt16LE=function(t,e){return d(this,t,!1,e)},h.prototype.readInt16BE=function(t,e){return d(this,t,!0,e)},h.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},h.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},h.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},h.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},h.prototype.readDoubleLE=function(t,e){return w(this,t,!1,e)},h.prototype.readDoubleBE=function(t,e){return w(this,t,!0,e)},h.prototype.writeUInt8=function(t,e,r){var n=this;r||(U.ok(void 0!==t&&null!==t,"missing value"),U.ok(void 0!==e&&null!==e,"missing offset"),U.ok(n.length>e,"trying to write beyond buffer length"),m(t,255)),n.parent[n.offset+e]=t},h.prototype.writeUInt16LE=function(t,e,r){E(this,t,e,!1,r)},h.prototype.writeUInt16BE=function(t,e,r){E(this,t,e,!0,r)},h.prototype.writeUInt32LE=function(t,e,r){k(this,t,e,!1,r)},h.prototype.writeUInt32BE=function(t,e,r){k(this,t,e,!0,r)},h.prototype.writeInt8=function(t,e,r){var n=this;r||(U.ok(void 0!==t&&null!==t,"missing value"),U.ok(void 0!==e&&null!==e,"missing offset"),U.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)},h.prototype.writeInt16LE=function(t,e,r){S(this,t,e,!1,r)},h.prototype.writeInt16BE=function(t,e,r){S(this,t,e,!0,r)},h.prototype.writeInt32LE=function(t,e,r){x(this,t,e,!1,r)},h.prototype.writeInt32BE=function(t,e,r){x(this,t,e,!0,r)},h.prototype.writeFloatLE=function(t,e,r){L(this,t,e,!1,r)},h.prototype.writeFloatBE=function(t,e,r){L(this,t,e,!0,r)},h.prototype.writeDoubleLE=function(t,e,r){B(this,t,e,!1,r)},h.prototype.writeDoubleBE=function(t,e,r){B(this,t,e,!0,r)},n.prototype.readUInt8=h.prototype.readUInt8,n.prototype.readUInt16LE=h.prototype.readUInt16LE,n.prototype.readUInt16BE=h.prototype.readUInt16BE,n.prototype.readUInt32LE=h.prototype.readUInt32LE,n.prototype.readUInt32BE=h.prototype.readUInt32BE,n.prototype.readInt8=h.prototype.readInt8,n.prototype.readInt16LE=h.prototype.readInt16LE,n.prototype.readInt16BE=h.prototype.readInt16BE,n.prototype.readInt32LE=h.prototype.readInt32LE,n.prototype.readInt32BE=h.prototype.readInt32BE,n.prototype.readFloatLE=h.prototype.readFloatLE,n.prototype.readFloatBE=h.prototype.readFloatBE,n.prototype.readDoubleLE=h.prototype.readDoubleLE,n.prototype.readDoubleBE=h.prototype.readDoubleBE,n.prototype.writeUInt8=h.prototype.writeUInt8,n.prototype.writeUInt16LE=h.prototype.writeUInt16LE,n.prototype.writeUInt16BE=h.prototype.writeUInt16BE,n.prototype.writeUInt32LE=h.prototype.writeUInt32LE,n.prototype.writeUInt32BE=h.prototype.writeUInt32BE,n.prototype.writeInt8=h.prototype.writeInt8,n.prototype.writeInt16LE=h.prototype.writeInt16LE,n.prototype.writeInt16BE=h.prototype.writeInt16BE,n.prototype.writeInt32LE=h.prototype.writeInt32LE,n.prototype.writeInt32BE=h.prototype.writeInt32BE,n.prototype.writeFloatLE=h.prototype.writeFloatLE,n.prototype.writeFloatBE=h.prototype.writeFloatBE,n.prototype.writeDoubleLE=h.prototype.writeDoubleLE,n.prototype.writeDoubleBE=h.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")},{}],"L3DgK+":[function(t,e,r){(function(t){var e="bdfghjklmnprstvz".split(""),n="aiou".split("");r.encode=function(t){for(var r=[],o=0;t.length/2>o;++o){var i=t.readUInt16BE(2*o),s=15&i,a=3&i>>4,u=15&i>>6,f=3&i>>10,l=15&i>>12;r.push([e[s],n[a],e[u],n[f],e[l]].join(""))}return r.join("-")},r.decode=function(r){for(var o=r.split("-"),i=new t(2*o.length),s=0;o.length>s;++s){var a=e.indexOf(o[s][0]),u=n.indexOf(o[s][1]),f=e.indexOf(o[s][2]),l=n.indexOf(o[s][3]),h=e.indexOf(o[s][4]);i.writeUInt16BE(a+(u<<4)+(f<<6)+(l<<10)+(h<<12),2*s)}return i}})(t("__browserify_Buffer").Buffer)},{__browserify_Buffer: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,r){r.readIEEE754=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,f=u>>1,l=-7,h=r?0:o-1,p=r?1:-1,c=t[e+h];for(h+=p,i=c&(1<<-l)-1,c>>=-l,l+=a;l>0;i=256*i+t[e+h],h+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+h],h+=p,l-=8);if(0===i)i=1-f;else{if(i===u)return s?0/0:1/0*(c?-1:1);s+=Math.pow(2,n),i-=f}return(c?-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,l=(1<<f)-1,h=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,c=n?i-1:0,g=n?-1:1,y=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=l):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+h>=1?p/u:p*Math.pow(2,1-h),e*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*u-1)*Math.pow(2,o),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;t[r+c]=255&a,c+=g,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;t[r+c]=255&s,c+=g,s/=256,f-=8);t[r+c-g]|=128*y}},{}],"buffer-browserify":[function(t,e){e.exports=t("SIPJlA")},{}],SIPJlA:[function(t,e,r){(function(){function e(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function n(r,o,s){if(U||(U=t("assert")),!(this instanceof n))return new n(r,o,s);if(this.parent=this,this.offset=0,"base64"==o&&"string"==typeof r)for(r=e(r);0!=r.length%4;)r+="=";var u;if("number"==typeof s){this.length=i(o);for(var f=0;this.length>f;f++)this[f]=r.get(f+s)}else{switch(u=typeof r){case"number":this.length=i(r);break;case"string":this.length=n.byteLength(r,o);break;case"object":this.length=i(r.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(a(r))for(var f=0;this.length>f;f++)this[f]=r instanceof n?r.readUInt8(f):r[f];else if("string"==u)this.length=this.write(r,0,o);else if("number"===u)for(var f=0;this.length>f;f++)this[f]=0}}function o(t,e,r){return"number"!=typeof t?r:(t=~~t,t>=e?e:t>=0?t:(t+=e,t>=0?t:0))}function i(t){return t=~~Math.ceil(+t),0>t?0:t}function s(t){return(Array.isArray||function(t){return"[object Array]"=={}.toString.apply(t)})(t)}function a(t){return s(t)||n.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function u(t){return 16>t?"0"+t.toString(16):t.toString(16)}function f(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 l(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function h(e){return t("base64-js").toByteArray(e)}function p(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 g(t,e,r,n){var o=0;return n||(U.ok("boolean"==typeof r,"missing or invalid endian"),U.ok(void 0!==e&&null!==e,"missing offset"),U.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 y(t,e,r,n){var o=0;return n||(U.ok("boolean"==typeof r,"missing or invalid endian"),U.ok(void 0!==e&&null!==e,"missing offset"),U.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 d(t,e,r,n){var o,i;return n||(U.ok("boolean"==typeof r,"missing or invalid endian"),U.ok(void 0!==e&&null!==e,"missing offset"),U.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||(U.ok("boolean"==typeof r,"missing or invalid endian"),U.ok(void 0!==e&&null!==e,"missing offset"),U.ok(t.length>e+3,"Trying to read beyond buffer length")),i=y(t,e,r,n),o=2147483648&i,o?-1*(4294967295-i+1):i}function b(e,r,n,o){return o||(U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function w(e,r,n,o){return o||(U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function m(t,e){U.ok("number"==typeof t,"cannot write a non-number as a number"),U.ok(t>=0,"specified a negative value for writing an unsigned value"),U.ok(e>=t,"value is larger than maximum value for type"),U.ok(Math.floor(t)===t,"value has a fractional component")}function E(t,e,r,n,o){o||(U.ok(void 0!==e&&null!==e,"missing value"),U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(void 0!==r&&null!==r,"missing offset"),U.ok(t.length>r+1,"trying to write beyond buffer length"),m(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 k(t,e,r,n,o){o||(U.ok(void 0!==e&&null!==e,"missing value"),U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(void 0!==r&&null!==r,"missing offset"),U.ok(t.length>r+3,"trying to write beyond buffer length"),m(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 _(t,e,r){U.ok("number"==typeof t,"cannot write a non-number as a number"),U.ok(e>=t,"value larger than maximum allowed value"),U.ok(t>=r,"value smaller than minimum allowed value"),U.ok(Math.floor(t)===t,"value has a fractional component")}function I(t,e,r){U.ok("number"==typeof t,"cannot write a non-number as a number"),U.ok(e>=t,"value larger than maximum allowed value"),U.ok(t>=r,"value smaller than minimum allowed value")}function S(t,e,r,n,o){o||(U.ok(void 0!==e&&null!==e,"missing value"),U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(void 0!==r&&null!==r,"missing offset"),U.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 x(t,e,r,n,o){o||(U.ok(void 0!==e&&null!==e,"missing value"),U.ok("boolean"==typeof n,"missing or invalid endian"),U.ok(void 0!==r&&null!==r,"missing offset"),U.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||(U.ok(void 0!==r&&null!==r,"missing value"),U.ok("boolean"==typeof o,"missing or invalid endian"),U.ok(void 0!==n&&null!==n,"missing offset"),U.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||(U.ok(void 0!==r&&null!==r,"missing value"),U.ok("boolean"==typeof o,"missing or invalid endian"),U.ok(void 0!==n&&null!==n,"missing offset"),U.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 U;r.Buffer=n,r.SlowBuffer=n,n.poolSize=8192,r.INSPECT_MAX_BYTES=50,n.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this[t]},n.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this[t]=e},n.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return f(t).length;case"ascii":case"binary":return t.length;case"base64":return h(t).length;default:throw Error("Unknown encoding")}},n.prototype.utf8Write=function(t,e,r){return n._charsWritten=p(f(t),this,e,r)},n.prototype.asciiWrite=function(t,e,r){return n._charsWritten=p(l(t),this,e,r)},n.prototype.binaryWrite=n.prototype.asciiWrite,n.prototype.base64Write=function(t,e,r){return n._charsWritten=p(h(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+=c(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+c(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]=u(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+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="",o=t;e>o;o++)n+=u(this[o]);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){var r=this.length;return t=o(t,r,0),e=o(e,r,r),new n(this,e-t,+t)},n.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++)U.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]},n.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},n.isBuffer=function(t){return t instanceof n||t instanceof n},n.concat=function(t,e){if(!s(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new n(0);if(1===t.length)return t[0];if("number"!=typeof e){e=0;for(var r=0;t.length>r;r++){var o=t[r];e+=o.length}}for(var i=new n(e),a=0,r=0;t.length>r;r++){var o=t[r];o.copy(i,a),a+=o.length}return i},n.isEncoding=function(t){switch((t+"").toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},n.prototype.readUInt8=function(t,e){var r=this;return e||(U.ok(void 0!==t&&null!==t,"missing offset"),U.ok(r.length>t,"Trying to read beyond buffer length")),t>=r.length?void 0:r[t]},n.prototype.readUInt16LE=function(t,e){return g(this,t,!1,e)},n.prototype.readUInt16BE=function(t,e){return g(this,t,!0,e)},n.prototype.readUInt32LE=function(t,e){return y(this,t,!1,e)},n.prototype.readUInt32BE=function(t,e){return y(this,t,!0,e)},n.prototype.readInt8=function(t,e){var r,n=this;return e||(U.ok(void 0!==t&&null!==t,"missing offset"),U.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])},n.prototype.readInt16LE=function(t,e){return d(this,t,!1,e)},n.prototype.readInt16BE=function(t,e){return d(this,t,!0,e)},n.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},n.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},n.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},n.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},n.prototype.readDoubleLE=function(t,e){return w(this,t,!1,e)},n.prototype.readDoubleBE=function(t,e){return w(this,t,!0,e)},n.prototype.writeUInt8=function(t,e,r){var n=this;r||(U.ok(void 0!==t&&null!==t,"missing value"),U.ok(void 0!==e&&null!==e,"missing offset"),U.ok(n.length>e,"trying to write beyond buffer length"),m(t,255)),n.length>e&&(n[e]=t)},n.prototype.writeUInt16LE=function(t,e,r){E(this,t,e,!1,r)},n.prototype.writeUInt16BE=function(t,e,r){E(this,t,e,!0,r)},n.prototype.writeUInt32LE=function(t,e,r){k(this,t,e,!1,r)},n.prototype.writeUInt32BE=function(t,e,r){k(this,t,e,!0,r)},n.prototype.writeInt8=function(t,e,r){var n=this;r||(U.ok(void 0!==t&&null!==t,"missing value"),U.ok(void 0!==e&&null!==e,"missing offset"),U.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)},n.prototype.writeInt16LE=function(t,e,r){S(this,t,e,!1,r)},n.prototype.writeInt16BE=function(t,e,r){S(this,t,e,!0,r)},n.prototype.writeInt32LE=function(t,e,r){x(this,t,e,!1,r)},n.prototype.writeInt32BE=function(t,e,r){x(this,t,e,!0,r)},n.prototype.writeFloatLE=function(t,e,r){L(this,t,e,!1,r)},n.prototype.writeFloatBE=function(t,e,r){L(this,t,e,!0,r)},n.prototype.writeDoubleLE=function(t,e,r){B(this,t,e,!1,r)},n.prototype.writeDoubleBE=function(t,e,r){B(this,t,e,!0,r)}})()},{assert:2,"./buffer_ieee754":1,"base64-js":3}],2:[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 d.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:o})}function s(t,e){t||i(t,!0,e,"==",d.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:l(t,e)}function u(t){return null===t||void 0===t}function f(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function l(t,e){if(u(t)||u(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return f(e)?(t=y.call(t),e=y.call(e),a(t,e)):!1;try{var n,o,i=r(t),s=r(e)}catch(l){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 h(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&&h(o,r)&&i("Got unwanted exception"+n),t&&o&&r&&!h(o,r)||!t&&o)throw o}var c=t("util"),g=t("buffer").Buffer,y=Array.prototype.slice,d=e.exports=s;d.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)},c.inherits(d.AssertionError,Error),d.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(" ")},d.AssertionError.__proto__=Error.prototype,d.fail=i,d.ok=s,d.equal=function(t,e,r){t!=e&&i(t,e,r,"==",d.equal)},d.notEqual=function(t,e,r){t==e&&i(t,e,r,"!=",d.notEqual)},d.deepEqual=function(t,e,r){a(t,e)||i(t,e,r,"deepEqual",d.deepEqual)},d.notDeepEqual=function(t,e,r){a(t,e)&&i(t,e,r,"notDeepEqual",d.notDeepEqual)},d.strictEqual=function(t,e,r){t!==e&&i(t,e,r,"===",d.strictEqual)},d.notStrictEqual=function(t,e,r){t===e&&i(t,e,r,"!==",d.notStrictEqual)},d.throws=function(){p.apply(this,[!0].concat(y.call(arguments)))},d.doesNotThrow=function(){p.apply(this,[!1].concat(y.call(arguments)))},d.ifError=function(t){if(t)throw t}})()},{util:4,buffer:5}],4:[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 l(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 c=s(t),g=e?a(t):c;if("function"==typeof t&&0===g.length){if(o(t))return p(""+t,"regexp");var y=t.name?": "+t.name:"";return p("[Function"+y+"]","special")}if(i(t)&&0===g.length)return p(t.toUTCString(),"date");var d,v,b;if(n(t)?(v="Array",b=["[","]"]):(v="Object",b=["{","}"]),"function"==typeof t){var w=t.name?": "+t.name:"";d=o(t)?" "+t:" [Function"+w+"]"}else d="";if(i(t)&&(d=" "+t.toUTCString()),0===g.length)return b[0]+d+b[1];if(0>u)return o(t)?p(""+t,"regexp"):p("[Object]","special");h.push(t);var m=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>c.indexOf(e)&&(r="["+e+"]"),o||(0>h.indexOf(t[e])?(o=null===u?l(t[e]):l(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});h.pop();var E=0,k=m.reduce(function(t,e){return E++,e.indexOf("\n")>=0&&E++,t+e.length+1},0);return m=k>50?b[0]+(""===d?"":d+"\n ")+" "+m.join(",\n ")+" "+b[1]:b[0]+d+" "+m.join(", ")+" "+b[1]}var h=[],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}),l(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}],3:[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})()},{}],7:[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:7}],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,l=-7,h=r?0:o-1,p=r?1:-1,c=t[e+h];for(h+=p,i=c&(1<<-l)-1,c>>=-l,l+=a;l>0;i=256*i+t[e+h],h+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+h],h+=p,l-=8);if(0===i)i=1-f;else{if(i===u)return s?0/0:1/0*(c?-1:1);s+=Math.pow(2,n),i-=f}return(c?-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,l=(1<<f)-1,h=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,c=n?i-1:0,g=n?-1:1,y=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=l):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+h>=1?p/u:p*Math.pow(2,1-h),e*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*u-1)*Math.pow(2,o),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;t[r+c]=255&a,c+=g,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;t[r+c]=255&s,c+=g,s/=256,f-=8);t[r+c-g]|=128*y}},{}],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 l(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 h(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 c(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 y(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=c(t,e,r,n),o=2147483648&i,o?-1*(4294967295-i+1):i}function d(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 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+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 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+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?w(t,e,r,n,o):w(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?m(t,e,r,n,o):m(t,4294967295+e+1,r,n,o)}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+3,"Trying to write beyond buffer length"),k(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,o,23,4)}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+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=l(a(t),this,r,n)},e.prototype.asciiWrite=function(t,r,n){return e._charsWritten=l(u(t),this,r,n)},e.prototype.binaryWrite=e.prototype.asciiWrite,e.prototype.base64Write=function(t,r,n){return e._charsWritten=l(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+=h(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+h(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 c(this,t,!1,e)},e.prototype.readUInt32BE=function(t,e){return c(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 y(this,t,!1,e)},e.prototype.readInt32BE=function(t,e){return y(this,t,!0,e)},e.prototype.readFloatLE=function(t,e){return d(this,t,!1,e)},e.prototype.readFloatBE=function(t,e){return d(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){w(this,t,e,!1,r)},e.prototype.writeUInt16BE=function(t,e,r){w(this,t,e,!0,r)},e.prototype.writeUInt32LE=function(t,e,r){m(this,t,e,!1,r)},e.prototype.writeUInt32BE=function(t,e,r){m(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){S(this,t,e,!1,r)},e.prototype.writeFloatBE=function(t,e,r){S(this,t,e,!0,r)},e.prototype.writeDoubleLE=function(t,e,r){x(this,t,e,!1,r)},e.prototype.writeDoubleBE=function(t,e,r){x(this,t,e,!0,r)}})()},{assert:2,"./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})()},{}]},{},[]);var proquint=require("proquint"),Buffer=require("buffer-browserify").Buffer,s="brfxxccxxmnpcccclllmmnprxvclmnckssqlbb11116",id=proquint.encode(Buffer(s+(s.length%2?" ":""),"utf-8"));alert(s+"\n\n...is more pronouncible, in proquint form, as:\n\n"+id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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