From 7e9bcdcba0717efec289150b83e236b05de0eb0d Mon Sep 17 00:00:00 2001 From: Evan Wallace Date: Sat, 26 Apr 2014 12:43:52 -0700 Subject: [PATCH] update build, dependencies, and version number for npm --- README.md | 50 ++++----- browser-source-map-support.js | 198 ++++++++++++++-------------------- browser-test/script.js | 6 +- browser-test/script.map | 2 +- build.js | 2 +- package.json | 10 +- 6 files changed, 118 insertions(+), 150 deletions(-) diff --git a/README.md b/README.md index 8c0b022..feaa5e3 100644 --- a/README.md +++ b/README.md @@ -84,16 +84,17 @@ Run compiled.js using node (notice how the stack trace uses original.js instead $ node compiled.js original.js:1 - throw new Error("test"); // This is the original code + throw new Error('test'); // This is the original code ^ Error: test at Object. (original.js:1:7) - at Module._compile (module.js:449:26) - at Object.Module._extensions..js (module.js:467:10) + at Module._compile (module.js:456:26) + at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) - at Module.runMain (module.js:492:10) - at process.startup.processNextTick.process._tickCallback (node.js:244:9) + at Function.Module.runMain (module.js:497:10) + at startup (node.js:119:16) + at node.js:901:3 #### TypeScript Demo @@ -113,19 +114,20 @@ Compile and run the file using the TypeScript compiler from the terminal: $ node_modules/typescript/bin/tsc -sourcemap demo.ts $ node demo.js - demo.ts:6 + demo.ts:5 bar() { throw new Error('this is a demo'); } - ^ + ^ Error: this is a demo - at Foo.bar (demo.ts:6:16) - at new Foo (demo.ts:5:23) - at Object. (demo.ts:8) - at Module._compile (module.js:449:26) - at Object.Module._extensions..js (module.js:467:10) + at Foo.bar (demo.ts:5:17) + at new Foo (demo.ts:4:24) + at Object. (demo.ts:7:1) + at Module._compile (module.js:456:26) + at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) - at Module.runMain (module.js:492:10) - at process.startup.processNextTick.process._tickCallback (node.js:244:9) + at Function.Module.runMain (module.js:497:10) + at startup (node.js:119:16) + at node.js:901:3 #### CoffeeScript Demo @@ -143,20 +145,20 @@ Compile and run the file using the CoffeeScript compiler from the terminal: $ node_modules/coffee-script/bin/coffee --map --compile demo.coffee $ node demo.js - demo.coffee:4 + demo.coffee:3 bar = -> throw new Error 'this is a demo' - ^ + ^ Error: this is a demo - at bar (demo.coffee:4:21) - at foo (demo.coffee:5:3) - at Object. (demo.coffee:6) - at Object. (demo.coffee:2) - at Module._compile (module.js:449:26) - at Object.Module._extensions..js (module.js:467:10) + at bar (demo.coffee:3:22) + at foo (demo.coffee:4:3) + at Object. (demo.coffee:5:1) + at Object. (demo.coffee:1:1) + at Module._compile (module.js:456:26) + at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) - at Module.runMain (module.js:492:10) - at process.startup.processNextTick.process._tickCallback (node.js:244:9) + at Function.Module.runMain (module.js:497:10) + at startup (node.js:119:16) ## License diff --git a/browser-source-map-support.js b/browser-source-map-support.js index 0afdb8e..984543e 100644 --- a/browser-source-map-support.js +++ b/browser-source-map-support.js @@ -2,118 +2,86 @@ * Support for source maps in V8 stack traces * https://github.com/evanw/node-source-map-support */ -(this.define||function(M,N){this.sourceMapSupport=N()})("browser-source-map-support",function(M){(function k(y,g,v){function C(b,m){if(!g[b]){if(!y[b]){var f="function"==typeof require&&require;if(!m&&f)return f(b,!0);if(E)return E(b,!0);throw Error("Cannot find module '"+b+"'");}f=g[b]={exports:{}};y[b][0].call(f.exports,function(e){var a=y[b][1][e];return C(a?a:e)},f,f.exports,k,y,g,v)}return g[b].exports}for(var E="function"==typeof require&&require,p=0;ph;++h)a.hasOwnProperty(h)&&(r? -e=b(e,a[h],h,a):(e=a[h],r=!0));return e};"b"!=="ab".substr(-1)?g.substr=function(a,b,d){0>b&&(b=a.length+b);return a.substr(b,d)}:g.substr=function(a,b,d){return a.substr(b,d)};g.trim=function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")};g.bind=function(){var a=Array.prototype.slice.call(arguments),b=a.shift();if(b.bind)return b.bind.apply(b,a);var d=a.shift();return function(){b.apply(d,a.concat([Array.prototype.slice.call(arguments)]))}};g.create="function"===typeof Object.create?Object.create: -C;var a="function"===typeof Object.keys?Object.keys:p,d="function"===typeof Object.getOwnPropertyNames?Object.getOwnPropertyNames:b;if(Error().hasOwnProperty("description")){var n=function(a,b){"[object Error]"===f.call(a)&&(b=g.filter(b,function(a){return"description"!==a&&"number"!==a&&"message"!==a}));return b};g.keys=function(b){return n(b,a(b))};g.getOwnPropertyNames=function(a){return n(a,d(a))}}else g.keys=a,g.getOwnPropertyNames=d;if("function"===typeof Object.getOwnPropertyDescriptor)try{Object.getOwnPropertyDescriptor({a:1}, -"a"),g.getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor}catch(l){g.getOwnPropertyDescriptor=function(a,b){try{return Object.getOwnPropertyDescriptor(a,b)}catch(d){return m(a,b)}}}else g.getOwnPropertyDescriptor=m},{}],3:[function(k,y,g){},{}],4:[function(k,y,g){function v(b,f){for(var e=0,a=b.length-1;0<=a;a--){var d=b[a];"."===d?b.splice(a,1):".."===d?(b.splice(a,1),e++):e&&(b.splice(a,1),e--)}if(f)for(;e--;e)b.unshift("..");return b}var C=k("__browserify_process"),E=k("util"),p=k("_shims"), -b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;g.resolve=function(){for(var b="",f=!1,e=arguments.length-1;-1<=e&&!f;e--){var a=0<=e?arguments[e]:C.cwd();if(!E.isString(a))throw new TypeError("Arguments to path.resolve must be strings");a&&(b=a+"/"+b,f="/"===a.charAt(0))}b=v(p.filter(b.split("/"),function(a){return!!a}),!f).join("/");return(f?"/":"")+b||"."};g.normalize=function(b){var f=g.isAbsolute(b),e="/"===p.substr(b,-1);(b=v(p.filter(b.split("/"),function(a){return!!a}),!f).join("/"))|| -f||(b=".");b&&e&&(b+="/");return(f?"/":"")+b};g.isAbsolute=function(b){return"/"===b.charAt(0)};g.join=function(){var b=Array.prototype.slice.call(arguments,0);return g.normalize(p.filter(b,function(b,e){if(!E.isString(b))throw new TypeError("Arguments to path.join must be strings");return b}).join("/"))};g.relative=function(b,f){function e(a){for(var b=0;bd?[]:a.slice(b,d-b+1)}b=g.resolve(b).substr(1);f=g.resolve(f).substr(1); -for(var a=e(b.split("/")),d=e(f.split("/")),n=Math.min(a.length,d.length),l=n,w=0;wn)return A(l)?t.stylize(RegExp.prototype.toString.call(l), -"regexp"):t.stylize("[Object]","special");t.seen.push(l);s=x?f(t,l,n,z,s):s.map(function(c){return e(t,l,n,z,c,x)});t.seen.pop();return a(s,q,B)}function m(c,a){if(u(a))return c.stylize("undefined","undefined");if(w(a)){var b="'"+JSON.stringify(a).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return c.stylize(b,"string")}if(l(a))return c.stylize(""+a,"number");if(n(a))return c.stylize(""+a,"boolean");if(null===a)return c.stylize("null","null")}function f(c,a,b,d,h){for(var z=[], -x=0,B=a.length;xD.indexOf(c.seen,a.value)?(B=null===d? -b(c,a.value,null):b(c,a.value,d-1),-1c?"0"+c.toString(10):c.toString(10)}function G(){var c=new Date,a=[t(c.getHours()),t(c.getMinutes()),t(c.getSeconds())].join(":");return[c.getDate(),H[c.getMonth()],a].join(" ")}var D=k("_shims"),I=/%[sdj%]/g;g.format=function(c){if(!w(c)){for(var a=[],b=0;b=h)return z;switch(z){case "%s":return String(d[b++]);case "%d":return Number(d[b++]);case "%j":try{return JSON.stringify(d[b++])}catch(c){return"[Circular]"}default:return z}}),z=d[b];b>1,w=-7;a=f?0:a-1;var u=f?1:-1,g=b[m+a];a+=u;f=g&(1<<-w)-1;g>>=-w;for(w+=d;0>=-w;for(w+=e;0>1,g=23===a?Math.pow(2,-24)- -Math.pow(2,-77):0;d=e?d-1:0;var q=e?-1:1,r=0>m||0===m&&0>1/m?1:0;m=Math.abs(m);isNaN(m)||Infinity===m?(m=isNaN(m)?1:0,e=w):(e=Math.floor(Math.log(m)/Math.LN2),1>m*(n=Math.pow(2,-e))&&(e--,n*=2),m=1<=e+u?m+g/n:m+g*Math.pow(2,1-u),2<=m*n&&(e++,n/=2),e+u>=w?(m=0,e=w):1<=e+u?(m=(m*n-1)*Math.pow(2,a),e+=u):(m=m*Math.pow(2,u-1)*Math.pow(2,a),e=0));for(;8<=a;b[f+d]=m&255,d+=q,m/=256,a-=8);e=e<=a)return a;if(0<=c)return c;c+=a;return 0<=c?c:0}function f(c){c=~~Math.ceil(+c);return 0>c?0:c}function e(c){return(Array.isArray||function(c){return"[object Array]"=={}.toString.apply(c)})(c)} -function a(c){return 16>c?"0"+c.toString(16):c.toString(16)}function d(c){for(var a=[],b=0;b=c.charCodeAt(b))a.push(c.charCodeAt(b));else for(var d=encodeURIComponent(c.charAt(b)).substr(1).split("%"),h=0;h=a.length||h>=c.length);)a[h+b]=c[h],h++;return h}function w(c){try{return decodeURIComponent(c)}catch(a){return String.fromCharCode(65533)}} -function u(c,a,b,d){var h=0;d||(s.ok("boolean"===typeof b,"missing or invalid endian"),s.ok(void 0!==a&&null!==a,"missing offset"),s.ok(a+1=c.length)return 0;b?(h=c[a]<<8,a+1=c.length)return 0; -b?(a+1>>0):(a+2>>0));return h}function q(c,a,b,d){d||(s.ok("boolean"===typeof b,"missing or invalid endian"),s.ok(void 0!==a&&null!==a,"missing offset"),s.ok(a+1>>8*(d?1-h:h)}function D(c,a,b,d,h){h||(s.ok(void 0!==a&&null!==a,"missing value"),s.ok("boolean"===typeof d,"missing or invalid endian"),s.ok(void 0!==b&&null!==b,"missing offset"),s.ok(b+3>>8*(d?3-h:h)&255}function y(c,a,b){s.ok("number"==typeof c,"cannot write a non-number as a number");s.ok(c<=a,"value larger than maximum allowed value"); -s.ok(c>=b,"value smaller than minimum allowed value");s.ok(Math.floor(c)===c,"value has a fractional component")}function H(c,a,b){s.ok("number"==typeof c,"cannot write a non-number as a number");s.ok(c<=a,"value larger than maximum allowed value");s.ok(c>=b,"value smaller than minimum allowed value")}function J(c,a,b,d,h){h||(s.ok(void 0!==a&&null!==a,"missing value"),s.ok("boolean"===typeof d,"missing or invalid endian"),s.ok(void 0!==b&&null!==b,"missing offset"),s.ok(b+1c||c>=this.length)throw Error("oob");return this[c]};b.prototype.set=function(c,a){if(0>c||c>=this.length)throw Error("oob");return this[c]=a};b.byteLength=function(c,a){switch(a||"utf8"){case "hex":return c.length/2;case "utf8":case "utf-8":return d(c).length;case "ascii":case "binary":return c.length;case "base64":return n(c).length;default:throw Error("Unknown encoding");}};b.prototype.utf8Write= -function(c,a,h){return b._charsWritten=l(d(c),this,a,h)};b.prototype.asciiWrite=function(c,a,d){for(var h=b,e=[],r=0;r=c[d]?(a+=w(b)+String.fromCharCode(c[d]),b=""):b+="%"+c[d].toString(16),d++;return a+w(b)};b.prototype.asciiSlice=function(){for(var c=Array.prototype.slice.apply(this,arguments),a="",b=0;b"};b.prototype.hexSlice= -function(c,b){var d=this.length;if(!c||0>c)c=0;if(!b||0>b||b>d)b=d;for(var d="",h=c;hh&&(d=h)):d=h;h=c.length;if(h%2)throw Error("Invalid hex string");d>h/2&&(d=h/2);for(h=0;hh&&(b=h)):b=h;d=String(d|| -"utf8").toLowerCase();switch(d){case "hex":return this.hexWrite(c,a,b);case "utf8":case "utf-8":return this.utf8Write(c,a,b);case "ascii":return this.asciiWrite(c,a,b);case "binary":return this.binaryWrite(c,a,b);case "base64":return this.base64Write(c,a,b);case "ucs2":case "ucs-2":return this.ucs2Write(c,a,b);default:throw Error("Unknown encoding");}};b.prototype.slice=function(c,a){var d=this.length;c=m(c,d,0);a=m(a,d,d);return new b(this,a-c,+c)};b.prototype.copy=function(c,a,b,d){b||(b=0);if(void 0=== -d||isNaN(d))d=this.length;a||(a=0);if(da||a>=c.length)throw Error("targetStart out of bounds");if(0>b||b>=this.length)throw Error("sourceStart out of bounds");if(0>d||d>this.length)throw Error("sourceEnd out of bounds");d>this.length&&(d=this.length);c.length-aa||a>=this.length)throw Error("start out of bounds");if(0>b||b>this.length)throw Error("end out of bounds");for(;a=this.length))return this[c]};b.prototype.readUInt16LE=function(c,a){return u(this,c,!1,a)};b.prototype.readUInt16BE=function(c,a){return u(this,c,!0,a)};b.prototype.readUInt32LE=function(c,a){return A(this,c,!1,a)};b.prototype.readUInt32BE=function(c,a){return A(this,c,!0,a)};b.prototype.readInt8=function(c,a){var b;a||(s.ok(void 0!==c&&null!==c,"missing offset"),s.ok(c=this.length))return(b=this[c]&128)?-1*(255-this[c]+1):this[c]};b.prototype.readInt16LE=function(c,a){return q(this,c,!1,a)};b.prototype.readInt16BE=function(c,a){return q(this,c,!0,a)};b.prototype.readInt32LE=function(c,a){return r(this,c,!1,a)};b.prototype.readInt32BE=function(c,a){return r(this,c,!0,a)};b.prototype.readFloatLE=function(c,a){return h(this,c,!1,a)};b.prototype.readFloatBE=function(c,a){return h(this,c,!0,a)};b.prototype.readDoubleLE=function(a,b){return c(this,a,!1,b)};b.prototype.readDoubleBE= -function(a,b){return c(this,a,!0,b)};b.prototype.writeUInt8=function(c,a,b){b||(s.ok(void 0!==c&&null!==c,"missing value"),s.ok(void 0!==a&&null!==a,"missing offset"),s.ok(a>16),n.push((a&65280)>>8),n.push(a&255);2===d?(a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[f])<< -2|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[f+1])>>4,n.push(a&255)):1===d&&(a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[f])<<10|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[f+1])<<4|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[f+2])>>2,n.push(a>>8&255),n.push(a&255));return n};k.exports.fromByteArray=function(b){var f,e=b.length%3,a="",d,n;f=0;for(n=b.length-e;f>18&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d>>12&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d>>6&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d&63];switch(e){case 1:d=b[b.length-1];a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d>>2];a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d<< -4&63];a+="==";break;case 2:d=(b[b.length-2]<<8)+b[b.length-1],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d>>10],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d>>4&63],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d<<2&63],a+="="}return a}})()},{}],5:[function(g,k,p){function b(a){return"[object Array]"===n.call(a)}function m(a,b){var c;if(null===a)c={__proto__:null};else{if("object"!==typeof a)throw new TypeError("typeof prototype["+ -typeof a+"] != 'object'");c=function(){};c.prototype=a;c=new c;c.__proto__=a}"undefined"!==typeof b&&Object.defineProperties&&Object.defineProperties(c,b);return c}function f(a){return"object"!=typeof a&&"function"!=typeof a||null===a}function e(a){if(f(a))throw new TypeError("Object.keys called on a non-object");var b=[],c;for(c in a)l.call(a,c)&&b.push(c);return b}function a(a){if(f(a))throw new TypeError("Object.getOwnPropertyNames called on a non-object");var b=e(a);p.isArray(a)&&-1===p.indexOf(a, -"length")&&b.push("length");return b}function d(a,b){return{value:a[b]}}var n=Object.prototype.toString,l=Object.prototype.hasOwnProperty;p.isArray="function"===typeof Array.isArray?Array.isArray:b;p.indexOf=function(a,b){if(a.indexOf)return a.indexOf(b);for(var c=0;cl;++l)a.hasOwnProperty(l)&&(e?d=b(d,a[l],l,a):(d=a[l],e=!0));return d};"b"!=="ab".substr(-1)?p.substr=function(a,b,c){0>b&&(b=a.length+b);return a.substr(b,c)}:p.substr=function(a,b,c){return a.substr(b,c)};p.trim=function(a){return a.trim? -a.trim():a.replace(/^\s+|\s+$/g,"")};p.bind=function(){var a=Array.prototype.slice.call(arguments),b=a.shift();if(b.bind)return b.bind.apply(b,a);var c=a.shift();return function(){b.apply(c,a.concat([Array.prototype.slice.call(arguments)]))}};p.create="function"===typeof Object.create?Object.create:m;var w="function"===typeof Object.keys?Object.keys:e,u="function"===typeof Object.getOwnPropertyNames?Object.getOwnPropertyNames:a;if(Error().hasOwnProperty("description")){var A=function(a,b){"[object Error]"=== -n.call(a)&&(b=p.filter(b,function(c){return"description"!==c&&"number"!==c&&"message"!==c}));return b};p.keys=function(a){return A(a,w(a))};p.getOwnPropertyNames=function(a){return A(a,u(a))}}else p.keys=w,p.getOwnPropertyNames=u;if("function"===typeof Object.getOwnPropertyDescriptor)try{Object.getOwnPropertyDescriptor({a:1},"a"),p.getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor}catch(q){p.getOwnPropertyDescriptor=function(a,b){try{return Object.getOwnPropertyDescriptor(a,b)}catch(c){return d(a, -b)}}}else p.getOwnPropertyDescriptor=d},{}],6:[function(g,k,p){function b(a,c){return u.isUndefined(c)?""+c:u.isNumber(c)&&(isNaN(c)||!isFinite(c))||u.isFunction(c)||u.isRegExp(c)?c.toString():c}function m(a,c){return u.isString(a)?a.lengthf)return c(h)?b.stylize(RegExp.prototype.toString.call(h),"regexp"):b.stylize("[Object]","special");b.seen.push(h);t=g?n(b,h,f,m,t):t.map(function(a){return l(b,h,f,m,a,g)});b.seen.pop();return w(t,q,k)}function d(a,c){if(h(c))return a.stylize("undefined","undefined");if(r(c)){var b="'"+JSON.stringify(c).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(b,"string")}if(q(c))return a.stylize(""+c,"number");if(A(c))return a.stylize(""+c,"boolean");if(null=== -c)return a.stylize("null","null")}function n(a,c,b,d,e){for(var h=[],f=0,q=c.length;fF.indexOf(c.seen,b.value)?(n=null===d?a(c,b.value,null):a(c,b.value,d-1),-1a?"0"+a.toString(10):a.toString(10)}function J(){var a=new Date,c=[H(a.getHours()),H(a.getMinutes()),H(a.getSeconds())].join(":");return[a.getDate(),L[a.getMonth()],c].join(" ")}var F=g("_shims"),K=/%[sdj%]/g; -p.format=function(a){if(!r(a)){for(var c=[],d=0;d=h)return a;switch(a){case "%s":return String(e[d++]);case "%d":return Number(e[d++]);case "%j":try{return JSON.stringify(e[d++])}catch(c){return"[Circular]"}default:return a}}),l=e[d];dg?(-g<<1)+1:(g<<1)+0;do g=e&31,e>>>=5,0=e)throw Error("Expected more digits in base 64 VLQ value.");l=b.decode(g.charAt(f++));n=!!(l&32);l&=31;a+=l<>1;return{value:1===(a&1)?-e:e,rest:g.slice(f)}}})}, -{"./base64":11,amdefine:17}],11:[function(k,y,g){if("function"!==typeof v)var v=k("amdefine")(y,k);v(function(g,k,p){var b={},m={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(f,e){b[f]=e;m[e]=f});k.encode=function(b){if(b in m)return m[b];throw new TypeError("Must be between 0 and 63: "+b);};k.decode=function(f){if(f in b)return b[f];throw new TypeError("Not a valid base 64 digit: "+f);}})},{amdefine:17}],12:[function(k,y,g){if("function"!==typeof v)var v= -k("amdefine")(y,k);v(function(g,k,p){function b(g,f,e,a,d){var n=Math.floor((f-g)/2)+g,l=d(e,a[n]);return 0===l?a[n]:0g?null:a[g]}k.search=function(g,f,e){return 0b.source)return 1;if(a.source=a[e])throw new TypeError("Line must be greater than or equal to 1, got "+ -a[e]);if(0>a[g])throw new TypeError("Column must be greater than or equal to 0, got "+a[g]);return f.search(a,b,m)};b.prototype.originalPositionFor=function(a){a={generatedLine:m.getArg(a,"line"),generatedColumn:m.getArg(a,"column")};if(a=this._findMapping(a,this._generatedMappings,"generatedLine","generatedColumn",this._compareGeneratedPositions)){var b=m.getArg(a,"source",null);b&&this.sourceRoot&&(b=m.join(this.sourceRoot,b));return{source:b,line:m.getArg(a,"originalLine",null),column:m.getArg(a, -"originalColumn",null),name:m.getArg(a,"name",null)}}return{source:null,line:null,column:null,name:null}};b.prototype.sourceContentFor=function(a){if(!this.sourcesContent)return null;this.sourceRoot&&(a=m.relative(this.sourceRoot,a));if(this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var b;if(this.sourceRoot&&(b=m.urlParse(this.sourceRoot))){var e=a.replace(/^file:\/\//,"");if("file"==b.scheme&&this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];if((!b.path|| -"/"==b.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}throw Error('"'+a+'" is not in the SourceMap.');};b.prototype.generatedPositionFor=function(a){a={source:m.getArg(a,"source"),originalLine:m.getArg(a,"line"),originalColumn:m.getArg(a,"column")};this.sourceRoot&&(a.source=m.relative(this.sourceRoot,a.source));return(a=this._findMapping(a,this._originalMappings,"originalLine","originalColumn",this._compareOriginalPositions))?{line:m.getArg(a,"generatedLine", -null),column:m.getArg(a,"generatedColumn",null)}:{line:null,column:null}};b.GENERATED_ORDER=1;b.ORIGINAL_ORDER=2;b.prototype.eachMapping=function(a,e,l){e=e||null;switch(l||b.GENERATED_ORDER){case b.GENERATED_ORDER:l=this._generatedMappings;break;case b.ORIGINAL_ORDER:l=this._originalMappings;break;default:throw Error("Unknown order of iteration.");}var f=this.sourceRoot;l.map(function(a){var b=a.source;b&&f&&(b=m.join(f,b));return{source:b,generatedLine:a.generatedLine,generatedColumn:a.generatedColumn, -originalLine:a.originalLine,originalColumn:a.originalColumn,name:a.name}}).forEach(a,e)};k.SourceMapConsumer=b})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(k,y,g){if("function"!==typeof v)var v=k("amdefine")(y,k);v(function(g,k,p){function b(a){this._file=d.getArg(a,"file");this._sourceRoot=d.getArg(a,"sourceRoot",null);this._sources=new n;this._names=new n;this._mappings=[];this._sourcesContents=null}function m(a,b){var d=(a&&a.line)-(b&&b.line); -return d?d:(a&&a.column)-(b&&b.column)}function f(a,b){a=a||"";b=b||"";return(a>b)-(a=a))return b?(b=f[n],n+1=a)){var d;b?(n+2>>0)): +(n+1>>0);return d}}function h(f,n,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1=f.length))return f=u(f,n,b,!0),f&32768?-1*(65535-f+1):f}function c(f,n,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3= +f.length))return f=A(f,n,b,!0),f&2147483648?-1*(4294967295-f+1):f}function g(f,n,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(n+3=l))for(d=0,l=Math.min(l-b,2);d>>8*(a?d:1-d)}function b(f,n,b,a,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==b&&null!==b,"missing offset"),q(b+3=l))for(d=0,l=Math.min(l-b,4);d>> +8*(a?d:3-d)&255}function d(f,n,b,d,l){l||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof d,"missing or invalid endian"),q(void 0!==b&&null!==b,"missing offset"),q(b+1=f.length||(0<=n?a(f,n,b,d,l):a(f,65535+n+1,b,d,l))}function y(f,n,a,d,l){l||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof d,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3=f.length||(0<=n?b(f,n,a,d,l):b(f,4294967295+n+1,a,d,l))}function C(f,b,a,d,l){l||(q(void 0!==b&&null!==b,"missing value"),q("boolean"===typeof d,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3=f.length||F.write(f,b,a,d,23,4)}function z(f,b,a,d,l){l||(q(void 0!==b&&null!==b,"missing value"),q("boolean"===typeof d,"missing or invalid endian"), +q(void 0!==a&&null!==a,"missing offset"),q(a+7=f.length||F.write(f,b,a,d,52,8)}function B(f,b,a){if("number"!==typeof f)return a;f=~~f;if(f>=b)return b;if(0<=f)return f;f+=b;return 0<=f?f:0}function v(f){f=~~Math.ceil(+f);return 0>f?0:f}function x(f){return(Array.isArray||function(f){return"[object Array]"===Object.prototype.toString.call(f)})(f)}function D(f){return 16>f?"0"+f.toString(16):f.toString(16)} +function l(f){for(var b=[],a=0;a=d)b.push(f.charCodeAt(a));else{var l=a;55296<=d&&57343>=d&&a++;d=encodeURIComponent(f.slice(l,a+1)).substr(1).split("%");for(l=0;l=b.length||l>=f.length);l++)b[l+a]=f[l];return l}function M(f){try{return decodeURIComponent(f)}catch(b){return String.fromCharCode(65533)}} +function I(f,b){q("number"===typeof f,"cannot write a non-number as a number");q(0<=f,"specified a negative value for writing an unsigned value");q(f<=b,"value is larger than maximum value for type");q(Math.floor(f)===f,"value has a fractional component")}function J(f,b,a){q("number"===typeof f,"cannot write a non-number as a number");q(f<=b,"value larger than maximum allowed value");q(f>=a,"value smaller than minimum allowed value");q(Math.floor(f)===f,"value has a fractional component")}function L(f, +b,a){q("number"===typeof f,"cannot write a non-number as a number");q(f<=b,"value larger than maximum allowed value");q(f>=a,"value smaller than minimum allowed value")}function q(f,b){if(!f)throw Error(b||"Failed assertion");}var G=k("base64-js"),F=k("ieee754");p.Buffer=e;p.SlowBuffer=e;p.INSPECT_MAX_BYTES=50;e.poolSize=8192;e._useTypedArrays=function(){try{var f=new ArrayBuffer(0),b=new Uint8Array(f);b.foo=function(){return 42};return 42===b.foo()&&"function"===typeof b.subarray}catch(a){return!1}}(); +e.isEncoding=function(f){switch(String(f).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "raw":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;default:return!1}};e.isBuffer=function(f){return!(null===f||void 0===f||!f._isBuffer)};e.byteLength=function(f,b){var a;f+="";switch(b||"utf8"){case "hex":a=f.length/2;break;case "utf8":case "utf-8":a=l(f).length;break;case "ascii":case "binary":case "raw":a=f.length;break;case "base64":a=G.toByteArray(f).length; +break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":a=2*f.length;break;default:throw Error("Unknown encoding");}return a};e.concat=function(f,b){q(x(f),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array.");if(0===f.length)return new e(0);if(1===f.length)return f[0];var a;if("number"!==typeof b)for(a=b=0;ac&&(a=c)):a=c;d=String(d||"utf8").toLowerCase();switch(d){case "hex":b=Number(b)||0;d=this.length-b;a?(a=Number(a),a>d&&(a=d)):a=d;d=f.length;q(0===d%2,"Invalid hex string");a>d/2&&(a=d/2);for(d=0;d>8,g%=256,m.push(g),m.push(c);f=d._charsWritten=E(m,this,b,a);break;default:throw Error("Unknown encoding");}return f};e.prototype.toString=function(f,b,a){f=String(f||"utf8").toLowerCase();b=Number(b)||0;a=void 0!==a?Number(a):a=this.length;if(a=== +b)return"";switch(f){case "hex":f=b;b=this.length;if(!f||0>f)f=0;if(!a||0>a||a>b)a=b;for(b="";f=this[d]?(f+=M(b)+String.fromCharCode(this[d]),b=""):b+="%"+this[d].toString(16);a=f+M(b);break;case "ascii":a=r(this,b,a);break;case "binary":a=r(this,b,a);break;case "base64":f=b;a=0===f&&a===this.length?G.fromByteArray(this):G.fromByteArray(this.slice(f,a));break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":a= +this.slice(b,a);f="";for(b=0;b=d,"sourceEnd < sourceStart"),q(0<=b&&bthis.length&&(l=this.length),a.length-bl||!e._useTypedArrays)for(var c=0;c=this.length))return this[b]};e.prototype.readUInt16LE=function(b,a){return u(this,b,!0,a)};e.prototype.readUInt16BE=function(b,a){return u(this,b,!1,a)};e.prototype.readUInt32LE=function(b,a){return A(this, +b,!0,a)};e.prototype.readUInt32BE=function(b,a){return A(this,b,!1,a)};e.prototype.readInt8=function(b,a){a||(q(void 0!==b&&null!==b,"missing offset"),q(b=this.length))return this[b]&128?-1*(255-this[b]+1):this[b]};e.prototype.readInt16LE=function(b,a){return h(this,b,!0,a)};e.prototype.readInt16BE=function(b,a){return h(this,b,!1,a)};e.prototype.readInt32LE=function(b,a){return c(this,b,!0,a)};e.prototype.readInt32BE=function(b,a){return c(this, +b,!1,a)};e.prototype.readFloatLE=function(b,a){return g(this,b,!0,a)};e.prototype.readFloatBE=function(b,a){return g(this,b,!1,a)};e.prototype.readDoubleLE=function(b,a){return m(this,b,!0,a)};e.prototype.readDoubleBE=function(b,a){return m(this,b,!1,a)};e.prototype.writeUInt8=function(b,a,d){d||(q(void 0!==b&&null!==b,"missing value"),q(void 0!==a&&null!==a,"missing offset"),q(a=this.length||(this[a]=b)};e.prototype.writeUInt16LE=function(b, +d,l){a(this,b,d,!0,l)};e.prototype.writeUInt16BE=function(b,d,l){a(this,b,d,!1,l)};e.prototype.writeUInt32LE=function(a,d,l){b(this,a,d,!0,l)};e.prototype.writeUInt32BE=function(a,d,l){b(this,a,d,!1,l)};e.prototype.writeInt8=function(b,a,d){d||(q(void 0!==b&&null!==b,"missing value"),q(void 0!==a&&null!==a,"missing offset"),q(a=this.length||(0<=b?this.writeUInt8(b,a,d):this.writeUInt8(255+b+1,a,d))};e.prototype.writeInt16LE=function(b, +a,l){d(this,b,a,!0,l)};e.prototype.writeInt16BE=function(b,a,l){d(this,b,a,!1,l)};e.prototype.writeInt32LE=function(b,a,d){y(this,b,a,!0,d)};e.prototype.writeInt32BE=function(b,a,d){y(this,b,a,!1,d)};e.prototype.writeFloatLE=function(b,a,d){C(this,b,a,!0,d)};e.prototype.writeFloatBE=function(b,a,d){C(this,b,a,!1,d)};e.prototype.writeDoubleLE=function(b,a,d){z(this,b,a,!0,d)};e.prototype.writeDoubleBE=function(b,a,d){z(this,b,a,!1,d)};e.prototype.fill=function(b,a,d){b||(b=0);a||(a=0);d||(d=this.length); +"string"===typeof b&&(b=b.charCodeAt(0));q("number"===typeof b&&!isNaN(b),"value is not a number");q(d>=a,"end < start");if(d!==a&&0!==this.length)for(q(0<=a&&a"};e.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(e._useTypedArrays)return(new e(this)).buffer; +for(var b=new Uint8Array(this.length),a=0,d=b.length;a>16),b((g&65280)>>8),b(g&255);2===m?(g=r(a.charAt(d))<<2|r(a.charAt(d+1))>>4,b(g&255)): +1===m&&(g=r(a.charAt(d))<<10|r(a.charAt(d+1))<<4|r(a.charAt(d+2))>>2,b(g>>8&255),b(g&255));return h};s.exports.fromByteArray=function(a){var b,d=a.length%3,c="",g,m;b=0;for(m=a.length-d;b>18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g& +63),c+=g;switch(d){case 1:g=a[a.length-1];c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>2);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g<<4&63);c+="==";break;case 2:g=(a[a.length-2]<<8)+a[a.length-1],c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>10),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>4&63),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g<< +2&63),c+="="}return c}})()},{}],5:[function(k,s,p){p.read=function(e,r,u,k,h){var c;c=8*h-k-1;var g=(1<>1,a=-7;h=u?h-1:0;var b=u?-1:1,d=e[r+h];h+=b;u=d&(1<<-a)-1;d>>=-a;for(a+=c;0>=-a;for(a+=k;0>1,d=23===h?Math.pow(2,-24)-Math.pow(2,-77):0; +c=k?0:c-1;var y=k?1:-1,C=0>r||0===r&&0>1/r?1:0;r=Math.abs(r);isNaN(r)||Infinity===r?(r=isNaN(r)?1:0,k=a):(k=Math.floor(Math.log(r)/Math.LN2),1>r*(g=Math.pow(2,-k))&&(k--,g*=2),r=1<=k+b?r+d/g:r+d*Math.pow(2,1-b),2<=r*g&&(k++,g/=2),k+b>=a?(r=0,k=a):1<=k+b?(r=(r*g-1)*Math.pow(2,h),k+=b):(r=r*Math.pow(2,b-1)*Math.pow(2,h),k=0));for(;8<=h;e[u+c]=r&255,c+=y,r/=256,h-=8);k=k<d?[]:b.slice(a,d-a+1)}c=p.resolve(c).substr(1);g=p.resolve(g).substr(1); +for(var a=m(c.split("/")),b=m(g.split("/")),d=Math.min(a.length,b.length),e=d,h=0;hg&&(g=c.length+g);return c.substr(g,m)}}).call(this,k("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6}],8:[function(k,s,p){p.SourceMapGenerator=k("./source-map/source-map-generator").SourceMapGenerator;p.SourceMapConsumer=k("./source-map/source-map-consumer").SourceMapConsumer; +p.SourceNode=k("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":13,"./source-map/source-map-generator":14,"./source-map/source-node":15}],9:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(){this._array=[];this._set={}}var c=e("./util");h.fromArray=function(c,m){for(var a=new h,b=0,d=c.length;bc?(-c<<1)+1:(c<<1)+0;do c=m&31,m>>>=5,0=m)throw Error("Expected more digits in base 64 VLQ value.");e=h.decode(c.charAt(g++));d=!!(e&32);e&=31;a+=e<>1;return{value:1===(a&1)?-m:m,rest:c.slice(g)}}})},{"./base64":11,amdefine:17}],11:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s, +k);e(function(e,k,p){var h={},c={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(g,e){h[g]=e;c[e]=g});k.encode=function(g){if(g in c)return c[g];throw new TypeError("Must be between 0 and 63: "+g);};k.decode=function(c){if(c in h)return h[c];throw new TypeError("Not a valid base 64 digit: "+c);}})},{amdefine:17}],12:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(c,g,e,a,b){var d=Math.floor((g-c)/2)+c, +k=b(e,a[d],!0);return 0===k?a[d]:0c?null:a[c]}k.search=function(c,g,e){return 0=b[c])throw new TypeError("Line must be greater than or equal to 1, got "+b[c]);if(0>b[e])throw new TypeError("Column must be greater than or equal to 0, got "+b[e]);return g.search(b,a,h)};h.prototype.originalPositionFor=function(b){b={generatedLine:c.getArg(b,"line"),generatedColumn:c.getArg(b,"column")};if(b=this._findMapping(b,this._generatedMappings,"generatedLine","generatedColumn",c.compareByGeneratedPositions)){var a=c.getArg(b,"source",null); +a&&this.sourceRoot&&(a=c.join(this.sourceRoot,a));return{source:a,line:c.getArg(b,"originalLine",null),column:c.getArg(b,"originalColumn",null),name:c.getArg(b,"name",null)}}return{source:null,line:null,column:null,name:null}};h.prototype.sourceContentFor=function(b){if(!this.sourcesContent)return null;this.sourceRoot&&(b=c.relative(this.sourceRoot,b));if(this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];var a;if(this.sourceRoot&&(a=c.urlParse(this.sourceRoot))){var e=b.replace(/^file:\/\//, +"");if("file"==a.scheme&&this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];if((!a.path||"/"==a.path)&&this._sources.has("/"+b))return this.sourcesContent[this._sources.indexOf("/"+b)]}throw Error('"'+b+'" is not in the SourceMap.');};h.prototype.generatedPositionFor=function(b){b={source:c.getArg(b,"source"),originalLine:c.getArg(b,"line"),originalColumn:c.getArg(b,"column")};this.sourceRoot&&(b.source=c.relative(this.sourceRoot,b.source));return(b=this._findMapping(b,this._originalMappings, +"originalLine","originalColumn",c.compareByOriginalPositions))?{line:c.getArg(b,"generatedLine",null),column:c.getArg(b,"generatedColumn",null)}:{line:null,column:null}};h.GENERATED_ORDER=1;h.ORIGINAL_ORDER=2;h.prototype.eachMapping=function(b,a,e){a=a||null;switch(e||h.GENERATED_ORDER){case h.GENERATED_ORDER:e=this._generatedMappings;break;case h.ORIGINAL_ORDER:e=this._originalMappings;break;default:throw Error("Unknown order of iteration.");}var g=this.sourceRoot;e.map(function(b){var a=b.source; +a&&g&&(a=c.join(g,a));return{source:a,generatedLine:b.generatedLine,generatedColumn:b.generatedColumn,originalLine:b.originalLine,originalColumn:b.originalColumn,name:b.name}}).forEach(b,a)};k.SourceMapConsumer=h})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(a){this._file=g.getArg(a,"file");this._sourceRoot=g.getArg(a,"sourceRoot",null);this._sources=new m;this._names= +new m;this._mappings=[];this._sourcesContents=null}var c=e("./base64-vlq"),g=e("./util"),m=e("./array-set").ArraySet;h.prototype._version=3;h.fromSourceMap=function(a){var b=a.sourceRoot,d=new h({file:a.file,sourceRoot:b});a.eachMapping(function(a){var c={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source&&(c.source=a.source,b&&(c.source=g.relative(b,c.source)),c.original={line:a.originalLine,column:a.originalColumn},a.name&&(c.name=a.name));d.addMapping(c)});a.sources.forEach(function(b){var c= +a.sourceContentFor(b);c&&d.setSourceContent(b,c)});return d};h.prototype.addMapping=function(a){var b=g.getArg(a,"generated"),d=g.getArg(a,"original",null),c=g.getArg(a,"source",null);a=g.getArg(a,"name",null);this._validateMapping(b,d,c,a);c&&!this._sources.has(c)&&this._sources.add(c);a&&!this._names.has(a)&&this._names.add(a);this._mappings.push({generatedLine:b.line,generatedColumn:b.column,originalLine:null!=d&&d.line,originalColumn:null!=d&&d.column,source:c,name:a})};h.prototype.setSourceContent= +function(a,b){var d=a;this._sourceRoot&&(d=g.relative(this._sourceRoot,d));null!==b?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[g.toSetString(d)]=b):(delete this._sourcesContents[g.toSetString(d)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};h.prototype.applySourceMap=function(a,b){b||(b=a.file);var d=this._sourceRoot;d&&(b=g.relative(d,b));var c=new m,e=new m;this._mappings.forEach(function(h){if(h.source===b&&h.originalLine){var m=a.originalPositionFor({line:h.originalLine, +column:h.originalColumn});null!==m.source&&(h.source=d?g.relative(d,m.source):m.source,h.originalLine=m.line,h.originalColumn=m.column,null!==m.name&&null!==h.name&&(h.name=m.name))}(m=h.source)&&!c.has(m)&&c.add(m);(h=h.name)&&!e.has(h)&&e.add(h)},this);this._sources=c;this._names=e;a.sources.forEach(function(b){var c=a.sourceContentFor(b);c&&(d&&(b=g.relative(d,b)),this.setSourceContent(b,c))},this)};h.prototype._validateMapping=function(a,b,d,c){if(!(a&&"line"in a&&"column"in a&&0e)-(c