node-source-map-support/browser-source-map-support.js

90 lines
42 KiB
JavaScript

/*
* Support for source maps in V8 stack traces
* https://github.com/evanw/node-source-map-support
*/
(this.define||function(J,N){this.sourceMapSupport=N()})("browser-source-map-support",function(J){(function h(r,m,e){function p(g,d){if(!m[g]){if(!r[g]){var k="function"==typeof require&&require;if(!d&&k)return k(g,!0);if(u)return u(g,!0);throw Error("Cannot find module '"+g+"'");}k=m[g]={exports:{}};r[g][0].call(k.exports,function(d){var c=r[g][1][d];return p(c?c:d)},k,k.exports,h,r,m,e)}return m[g].exports}for(var u="function"==typeof require&&require,z=0;z<e.length;z++)p(e[z]);return p})({1:[function(h,
r,m){J=h("./source-map-support")},{"./source-map-support":18}],2:[function(h,r,m){},{}],3:[function(h,r,m){function e(f,n,w){if(!(this instanceof e))return new e(f,n,w);var a=typeof f;if("base64"===n&&"string"===a)for(f=f.trim?f.trim():f.replace(/^\s+|\s+$/g,"");0!==f.length%4;)f+="=";var b;if("number"===a)b=v(f);else if("string"===a)b=e.byteLength(f,n);else if("object"===a)b=v(f.length);else throw Error("First argument needs to be a number, array or string.");var c;e._useTypedArrays?c=e._augment(new Uint8Array(b)):
(c=this,c.length=b,c._isBuffer=!0);if(e._useTypedArrays&&"number"===typeof f.byteLength)c._set(f);else{var d=f;if(x(d)||e.isBuffer(d)||d&&"object"===typeof d&&"number"===typeof d.length)for(n=0;n<b;n++)e.isBuffer(f)?c[n]=f.readUInt8(n):c[n]=f[n];else if("string"===a)c.write(f,0,n);else if("number"===a&&!e._useTypedArrays&&!w)for(n=0;n<b;n++)c[n]=0}return c}function p(f,n,w){var a="";for(w=Math.min(f.length,w);n<w;n++)a+=String.fromCharCode(f[n]);return a}function u(f,n,w,a){a||(q("boolean"===typeof w,
"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1<f.length,"Trying to read beyond buffer length"));a=f.length;if(!(n>=a))return w?(w=f[n],n+1<a&&(w|=f[n+1]<<8)):(w=f[n]<<8,n+1<a&&(w|=f[n+1])),w}function z(f,n,a,c){c||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3<f.length,"Trying to read beyond buffer length"));c=f.length;if(!(n>=c)){var b;a?(n+2<c&&(b=f[n+2]<<16),n+1<c&&(b|=f[n+1]<<8),b|=f[n],n+3<c&&(b+=f[n+3]<<24>>>0)):
(n+1<c&&(b=f[n+1]<<16),n+2<c&&(b|=f[n+2]<<8),n+3<c&&(b|=f[n+3]),b+=f[n]<<24>>>0);return b}}function g(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1<f.length,"Trying to read beyond buffer length"));if(!(n>=f.length))return f=u(f,n,a,!0),f&32768?-1*(65535-f+1):f}function d(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3<f.length,"Trying to read beyond buffer length"));if(!(n>=
f.length))return f=z(f,n,a,!0),f&2147483648?-1*(4294967295-f+1):f}function k(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(n+3<f.length,"Trying to read beyond buffer length"));return H.read(f,n,a,23,4)}function l(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(n+7<f.length,"Trying to read beyond buffer length"));return H.read(f,n,a,52,8)}function c(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==
a&&null!==a,"missing offset"),q(a+1<f.length,"trying to write beyond buffer length"),K(n,65535));var d=f.length;if(!(a>=d))for(c=0,d=Math.min(d-a,2);c<d;c++)f[a+c]=(n&255<<8*(b?c:1-c))>>>8*(b?c:1-c)}function a(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<f.length,"trying to write beyond buffer length"),K(n,4294967295));var d=f.length;if(!(a>=d))for(c=0,d=Math.min(d-a,4);c<d;c++)f[a+c]=n>>>
8*(b?c:3-c)&255}function b(f,n,a,b,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+1<f.length,"Trying to write beyond buffer length"),L(n,32767,-32768));a>=f.length||(0<=n?c(f,n,a,b,d):c(f,65535+n+1,a,b,d))}function y(f,n,b,c,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof c,"missing or invalid endian"),q(void 0!==b&&null!==b,"missing offset"),q(b+3<f.length,"Trying to write beyond buffer length"),
L(n,2147483647,-2147483648));b>=f.length||(0<=n?a(f,n,b,c,d):a(f,4294967295+n+1,b,c,d))}function B(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<f.length,"Trying to write beyond buffer length"),M(n,3.4028234663852886E38,-3.4028234663852886E38));a>=f.length||H.write(f,n,a,b,23,4)}function A(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),
q(void 0!==a&&null!==a,"missing offset"),q(a+7<f.length,"Trying to write beyond buffer length"),M(n,1.7976931348623157E308,-1.7976931348623157E308));a>=f.length||H.write(f,n,a,b,52,8)}function C(f,a,b){if("number"!==typeof f)return b;f=~~f;if(f>=a)return a;if(0<=f)return f;f+=a;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 G(f){return 16>f?"0"+f.toString(16):f.toString(16)}
function s(f){for(var a=[],b=0;b<f.length;b++){var c=f.charCodeAt(b);if(127>=c)a.push(f.charCodeAt(b));else{var d=b;55296<=c&&57343>=c&&b++;c=encodeURIComponent(f.slice(d,b+1)).substr(1).split("%");for(d=0;d<c.length;d++)a.push(parseInt(c[d],16))}}return a}function D(f){for(var a=[],b=0;b<f.length;b++)a.push(f.charCodeAt(b)&255);return a}function E(f,a,b,c){for(var d=0;d<c&&!(d+b>=a.length||d>=f.length);d++)a[d+b]=f[d];return d}function F(f){try{return decodeURIComponent(f)}catch(a){return String.fromCharCode(65533)}}
function K(f,a){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<=a,"value is larger than maximum value for type");q(Math.floor(f)===f,"value has a fractional component")}function L(f,a,b){q("number"===typeof f,"cannot write a non-number as a number");q(f<=a,"value larger than maximum allowed value");q(f>=b,"value smaller than minimum allowed value");q(Math.floor(f)===f,"value has a fractional component")}function M(f,
a,b){q("number"===typeof f,"cannot write a non-number as a number");q(f<=a,"value larger than maximum allowed value");q(f>=b,"value smaller than minimum allowed value")}function q(f,a){if(!f)throw Error(a||"Failed assertion");}var I=h("base64-js"),H=h("ieee754");m.Buffer=e;m.SlowBuffer=e;m.INSPECT_MAX_BYTES=50;e.poolSize=8192;e._useTypedArrays=function(){try{var f=new ArrayBuffer(0),a=new Uint8Array(f);a.foo=function(){return 42};return 42===a.foo()&&"function"===typeof a.subarray}catch(b){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,a){var b;f+="";switch(a||"utf8"){case "hex":b=f.length/2;break;case "utf8":case "utf-8":b=s(f).length;break;case "ascii":case "binary":case "raw":b=f.length;break;case "base64":b=I.toByteArray(f).length;
break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=2*f.length;break;default:throw Error("Unknown encoding");}return b};e.concat=function(f,a){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 b;if("number"!==typeof a)for(b=a=0;b<f.length;b++)a+=f[b].length;var c=new e(a),d=0;for(b=0;b<f.length;b++){var k=f[b];k.copy(c,d);d+=k.length}return c};e.prototype.write=function(f,a,b,c){if(isFinite(a))isFinite(b)||
(c=b,b=void 0);else{var d=c;c=a;a=b;b=d}a=Number(a)||0;d=this.length-a;b?(b=Number(b),b>d&&(b=d)):b=d;c=String(c||"utf8").toLowerCase();switch(c){case "hex":a=Number(a)||0;c=this.length-a;b?(b=Number(b),b>c&&(b=c)):b=c;c=f.length;q(0===c%2,"Invalid hex string");b>c/2&&(b=c/2);for(c=0;c<b;c++)d=parseInt(f.substr(2*c,2),16),q(!isNaN(d),"Invalid hex string"),this[a+c]=d;e._charsWritten=2*c;f=c;break;case "utf8":case "utf-8":f=e._charsWritten=E(s(f),this,a,b);break;case "ascii":f=e._charsWritten=E(D(f),
this,a,b);break;case "binary":f=e._charsWritten=E(D(f),this,a,b);break;case "base64":f=e._charsWritten=E(I.toByteArray(f),this,a,b);break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":for(var k,d=[],l=0;l<f.length;l++)k=f.charCodeAt(l),c=k>>8,k%=256,d.push(k),d.push(c);f=e._charsWritten=E(d,this,a,b);break;default:throw Error("Unknown encoding");}return f};e.prototype.toString=function(f,a,b){f=String(f||"utf8").toLowerCase();a=Number(a)||0;b=void 0!==b?Number(b):b=this.length;if(b===a)return"";
switch(f){case "hex":f=a;a=this.length;if(!f||0>f)f=0;if(!b||0>b||b>a)b=a;for(a="";f<b;f++)a+=G(this[f]);b=a;break;case "utf8":case "utf-8":var c=a;a=f="";for(b=Math.min(this.length,b);c<b;c++)127>=this[c]?(f+=F(a)+String.fromCharCode(this[c]),a=""):a+="%"+this[c].toString(16);b=f+F(a);break;case "ascii":b=p(this,a,b);break;case "binary":b=p(this,a,b);break;case "base64":f=a;b=0===f&&b===this.length?I.fromByteArray(this):I.fromByteArray(this.slice(f,b));break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=
this.slice(a,b);f="";for(a=0;a<b.length;a+=2)f+=String.fromCharCode(b[a]+256*b[a+1]);b=f;break;default:throw Error("Unknown encoding");}return b};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};e.prototype.copy=function(a,b,c,d){c||(c=0);d||0===d||(d=this.length);b||(b=0);if(d!==c&&0!==a.length&&0!==this.length)if(q(d>=c,"sourceEnd < sourceStart"),q(0<=b&&b<a.length,"targetStart out of bounds"),q(0<=c&&c<this.length,"sourceStart out of bounds"),
q(0<=d&&d<=this.length,"sourceEnd out of bounds"),d>this.length&&(d=this.length),a.length-b<d-c&&(d=a.length-b+c),d-=c,100>d||!e._useTypedArrays)for(var k=0;k<d;k++)a[k+b]=this[k+c];else a._set(this.subarray(c,c+d),b)};e.prototype.slice=function(a,b){var c=this.length;a=C(a,c,0);b=C(b,c,c);if(e._useTypedArrays)return e._augment(this.subarray(a,b));for(var c=b-a,d=new e(c,void 0,!0),k=0;k<c;k++)d[k]=this[k+a];return d};e.prototype.get=function(a){console.log(".get() is deprecated. Access using array indexes instead.");
return this.readUInt8(a)};e.prototype.set=function(a,b){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(a,b)};e.prototype.readUInt8=function(a,b){b||(q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this[a]};e.prototype.readUInt16LE=function(a,b){return u(this,a,!0,b)};e.prototype.readUInt16BE=function(a,b){return u(this,a,!1,b)};e.prototype.readUInt32LE=function(a,b){return z(this,
a,!0,b)};e.prototype.readUInt32BE=function(a,b){return z(this,a,!1,b)};e.prototype.readInt8=function(a,b){b||(q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this[a]&128?-1*(255-this[a]+1):this[a]};e.prototype.readInt16LE=function(a,b){return g(this,a,!0,b)};e.prototype.readInt16BE=function(a,b){return g(this,a,!1,b)};e.prototype.readInt32LE=function(a,b){return d(this,a,!0,b)};e.prototype.readInt32BE=function(a,b){return d(this,
a,!1,b)};e.prototype.readFloatLE=function(a,b){return k(this,a,!0,b)};e.prototype.readFloatBE=function(a,b){return k(this,a,!1,b)};e.prototype.readDoubleLE=function(a,b){return l(this,a,!0,b)};e.prototype.readDoubleBE=function(a,b){return l(this,a,!1,b)};e.prototype.writeUInt8=function(a,b,c){c||(q(void 0!==a&&null!==a,"missing value"),q(void 0!==b&&null!==b,"missing offset"),q(b<this.length,"trying to write beyond buffer length"),K(a,255));b>=this.length||(this[b]=a)};e.prototype.writeUInt16LE=function(a,
b,d){c(this,a,b,!0,d)};e.prototype.writeUInt16BE=function(a,b,d){c(this,a,b,!1,d)};e.prototype.writeUInt32LE=function(b,c,d){a(this,b,c,!0,d)};e.prototype.writeUInt32BE=function(b,c,d){a(this,b,c,!1,d)};e.prototype.writeInt8=function(a,b,c){c||(q(void 0!==a&&null!==a,"missing value"),q(void 0!==b&&null!==b,"missing offset"),q(b<this.length,"Trying to write beyond buffer length"),L(a,127,-128));b>=this.length||(0<=a?this.writeUInt8(a,b,c):this.writeUInt8(255+a+1,b,c))};e.prototype.writeInt16LE=function(a,
c,d){b(this,a,c,!0,d)};e.prototype.writeInt16BE=function(a,c,d){b(this,a,c,!1,d)};e.prototype.writeInt32LE=function(a,b,c){y(this,a,b,!0,c)};e.prototype.writeInt32BE=function(a,b,c){y(this,a,b,!1,c)};e.prototype.writeFloatLE=function(a,b,c){B(this,a,b,!0,c)};e.prototype.writeFloatBE=function(a,b,c){B(this,a,b,!1,c)};e.prototype.writeDoubleLE=function(a,b,c){A(this,a,b,!0,c)};e.prototype.writeDoubleBE=function(a,b,c){A(this,a,b,!1,c)};e.prototype.fill=function(a,b,c){a||(a=0);b||(b=0);c||(c=this.length);
"string"===typeof a&&(a=a.charCodeAt(0));q("number"===typeof a&&!isNaN(a),"value is not a number");q(c>=b,"end < start");if(c!==b&&0!==this.length)for(q(0<=b&&b<this.length,"start out of bounds"),q(0<=c&&c<=this.length,"end out of bounds");b<c;b++)this[b]=a};e.prototype.inspect=function(){for(var a=[],b=this.length,c=0;c<b;c++)if(a[c]=G(this[c]),c===m.INSPECT_MAX_BYTES){a[c+1]="...";break}return"<Buffer "+a.join(" ")+">"};e.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(e._useTypedArrays)return(new e(this)).buffer;
for(var a=new Uint8Array(this.length),b=0,c=a.length;b<c;b+=1)a[b]=this[b];return a.buffer}throw Error("Buffer.toArrayBuffer not supported in this browser");};var t=e.prototype;e._augment=function(a){a._isBuffer=!0;a._get=a.get;a._set=a.set;a.get=t.get;a.set=t.set;a.write=t.write;a.toString=t.toString;a.toLocaleString=t.toString;a.toJSON=t.toJSON;a.copy=t.copy;a.slice=t.slice;a.readUInt8=t.readUInt8;a.readUInt16LE=t.readUInt16LE;a.readUInt16BE=t.readUInt16BE;a.readUInt32LE=t.readUInt32LE;a.readUInt32BE=
t.readUInt32BE;a.readInt8=t.readInt8;a.readInt16LE=t.readInt16LE;a.readInt16BE=t.readInt16BE;a.readInt32LE=t.readInt32LE;a.readInt32BE=t.readInt32BE;a.readFloatLE=t.readFloatLE;a.readFloatBE=t.readFloatBE;a.readDoubleLE=t.readDoubleLE;a.readDoubleBE=t.readDoubleBE;a.writeUInt8=t.writeUInt8;a.writeUInt16LE=t.writeUInt16LE;a.writeUInt16BE=t.writeUInt16BE;a.writeUInt32LE=t.writeUInt32LE;a.writeUInt32BE=t.writeUInt32BE;a.writeInt8=t.writeInt8;a.writeInt16LE=t.writeInt16LE;a.writeInt16BE=t.writeInt16BE;
a.writeInt32LE=t.writeInt32LE;a.writeInt32BE=t.writeInt32BE;a.writeFloatLE=t.writeFloatLE;a.writeFloatBE=t.writeFloatBE;a.writeDoubleLE=t.writeDoubleLE;a.writeDoubleBE=t.writeDoubleBE;a.fill=t.fill;a.inspect=t.inspect;a.toArrayBuffer=t.toArrayBuffer;return a}},{"base64-js":4,ieee754:5}],4:[function(h,r,m){(function(e){function p(e){e=e.charCodeAt(0);if(43===e)return 62;if(47===e)return 63;if(48>e)return-1;if(58>e)return e-48+52;if(91>e)return e-65;if(123>e)return e-97+26}var u="undefined"!==typeof Uint8Array?
Uint8Array:Array;e.toByteArray=function(e){function g(c){a[b++]=c}var d,k,l,c,a;if(0<e.length%4)throw Error("Invalid string. Length must be a multiple of 4");d=e.length;c="="===e.charAt(d-2)?2:"="===e.charAt(d-1)?1:0;a=new u(3*e.length/4-c);k=0<c?e.length-4:e.length;var b=0;for(d=0;d<k;d+=4)l=p(e.charAt(d))<<18|p(e.charAt(d+1))<<12|p(e.charAt(d+2))<<6|p(e.charAt(d+3)),g((l&16711680)>>16),g((l&65280)>>8),g(l&255);2===c?(l=p(e.charAt(d))<<2|p(e.charAt(d+1))>>4,g(l&255)):1===c&&(l=p(e.charAt(d))<<10|
p(e.charAt(d+1))<<4|p(e.charAt(d+2))>>2,g(l>>8&255),g(l&255));return a};e.fromByteArray=function(e){var g,d=e.length%3,k="",l,c;g=0;for(c=e.length-d;g<c;g+=3)l=(e[g]<<16)+(e[g+1]<<8)+e[g+2],l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l&
63),k+=l;switch(d){case 1:l=e[e.length-1];k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>2);k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l<<4&63);k+="==";break;case 2:l=(e[e.length-2]<<8)+e[e.length-1],k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>10),k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>4&63),k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l<<
2&63),k+="="}return k}})("undefined"===typeof m?this.base64js={}:m)},{}],5:[function(h,r,m){m.read=function(e,p,u,h,g){var d;d=8*g-h-1;var k=(1<<d)-1,l=k>>1,c=-7;g=u?g-1:0;var a=u?-1:1,b=e[p+g];g+=a;u=b&(1<<-c)-1;b>>=-c;for(c+=d;0<c;u=256*u+e[p+g],g+=a,c-=8);d=u&(1<<-c)-1;u>>=-c;for(c+=h;0<c;d=256*d+e[p+g],g+=a,c-=8);if(0===u)u=1-l;else{if(u===k)return d?NaN:Infinity*(b?-1:1);d+=Math.pow(2,h);u-=l}return(b?-1:1)*d*Math.pow(2,u-h)};m.write=function(e,p,u,h,g,d){var k,l=8*d-g-1,c=(1<<l)-1,a=c>>1,b=
23===g?Math.pow(2,-24)-Math.pow(2,-77):0;d=h?0:d-1;var y=h?1:-1,B=0>p||0===p&&0>1/p?1:0;p=Math.abs(p);isNaN(p)||Infinity===p?(p=isNaN(p)?1:0,h=c):(h=Math.floor(Math.log(p)/Math.LN2),1>p*(k=Math.pow(2,-h))&&(h--,k*=2),p=1<=h+a?p+b/k:p+b*Math.pow(2,1-a),2<=p*k&&(h++,k/=2),h+a>=c?(p=0,h=c):1<=h+a?(p=(p*k-1)*Math.pow(2,g),h+=a):(p=p*Math.pow(2,a-1)*Math.pow(2,g),h=0));for(;8<=g;e[u+d]=p&255,d+=y,p/=256,g-=8);h=h<<g|p;for(l+=g;0<l;e[u+d]=h&255,d+=y,h/=256,l-=8);e[u+d-y]|=128*B}},{}],6:[function(h,r,m){function e(){}
h=r.exports={};h.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(e){return window.setImmediate(e)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var e=[];window.addEventListener("message",function(h){var m=h.source;m!==window&&null!==m||"process-tick"!==h.data||(h.stopPropagation(),0<e.length&&e.shift()())},!0);return function(h){e.push(h);window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}();h.title="browser";
h.browser=!0;h.env={};h.argv=[];h.on=e;h.once=e;h.off=e;h.emit=e;h.binding=function(e){throw Error("process.binding is not supported");};h.cwd=function(){return"/"};h.chdir=function(e){throw Error("process.chdir is not supported");}},{}],7:[function(h,r,m){(function(e){function h(d,k){for(var e=0,c=d.length-1;0<=c;c--){var a=d[c];"."===a?d.splice(c,1):".."===a?(d.splice(c,1),e++):e&&(d.splice(c,1),e--)}if(k)for(;e--;e)d.unshift("..");return d}function u(d,k){if(d.filter)return d.filter(k);for(var e=
[],c=0;c<d.length;c++)k(d[c],c,d)&&e.push(d[c]);return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;m.resolve=function(){for(var d="",k=!1,l=arguments.length-1;-1<=l&&!k;l--){var c=0<=l?arguments[l]:e.cwd();if("string"!==typeof c)throw new TypeError("Arguments to path.resolve must be strings");c&&(d=c+"/"+d,k="/"===c.charAt(0))}d=h(u(d.split("/"),function(a){return!!a}),!k).join("/");return(k?"/":"")+d||"."};m.normalize=function(d){var e=m.isAbsolute(d),l="/"===g(d,-1);
(d=h(u(d.split("/"),function(c){return!!c}),!e).join("/"))||e||(d=".");d&&l&&(d+="/");return(e?"/":"")+d};m.isAbsolute=function(d){return"/"===d.charAt(0)};m.join=function(){var d=Array.prototype.slice.call(arguments,0);return m.normalize(u(d,function(d,e){if("string"!==typeof d)throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))};m.relative=function(d,e){function l(a){for(var b=0;b<a.length&&""===a[b];b++);for(var c=a.length-1;0<=c&&""===a[c];c--);return b>c?[]:a.slice(b,
c-b+1)}d=m.resolve(d).substr(1);e=m.resolve(e).substr(1);for(var c=l(d.split("/")),a=l(e.split("/")),b=Math.min(c.length,a.length),g=b,h=0;h<b;h++)if(c[h]!==a[h]){g=h;break}b=[];for(h=g;h<c.length;h++)b.push("..");b=b.concat(a.slice(g));return b.join("/")};m.sep="/";m.delimiter=":";m.dirname=function(d){var e=r.exec(d).slice(1);d=e[0];e=e[1];if(!d&&!e)return".";e&&(e=e.substr(0,e.length-1));return d+e};m.basename=function(d,e){var l=r.exec(d).slice(1)[2];e&&l.substr(-1*e.length)===e&&(l=l.substr(0,
l.length-e.length));return l};m.extname=function(d){return r.exec(d).slice(1)[3]};var g="b"==="ab".substr(-1)?function(d,e,l){return d.substr(e,l)}:function(d,e,l){0>e&&(e=d.length+e);return d.substr(e,l)}}).call(this,h("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(h,r,m){m.SourceMapGenerator=h("./source-map/source-map-generator").SourceMapGenerator;
m.SourceMapConsumer=h("./source-map/source-map-consumer").SourceMapConsumer;m.SourceNode=h("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":13,"./source-map/source-map-generator":14,"./source-map/source-node":15}],9:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(){this._array=[];this._set={}}var d=e("./util");g.fromArray=function(d,e){for(var c=new g,a=0,b=d.length;a<b;a++)c.add(d[a],e);return c};g.prototype.add=function(e,
l){var c=this.has(e),a=this._array.length;c&&!l||this._array.push(e);c||(this._set[d.toSetString(e)]=a)};g.prototype.has=function(e){return Object.prototype.hasOwnProperty.call(this._set,d.toSetString(e))};g.prototype.indexOf=function(e){if(this.has(e))return this._set[d.toSetString(e)];throw Error('"'+e+'" is not in the set.');};g.prototype.at=function(d){if(0<=d&&d<this._array.length)return this._array[d];throw Error("No element indexed by "+d);};g.prototype.toArray=function(){return this._array.slice()};
h.ArraySet=g})},{"./util":16,amdefine:17}],10:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){var g=e("./base64");h.encode=function(d){var e="",l=0>d?(-d<<1)+1:(d<<1)+0;do d=l&31,l>>>=5,0<l&&(d|=32),e+=g.encode(d);while(0<l);return e};h.decode=function(d){var e=0,l=d.length,c=0,a=0,b,h;do{if(e>=l)throw Error("Expected more digits in base 64 VLQ value.");h=g.decode(d.charAt(e++));b=!!(h&32);h&=31;c+=h<<a;a+=5}while(b);l=c>>1;return{value:1===(c&1)?-l:l,rest:d.slice(e)}}})},
{"./base64":11,amdefine:17}],11:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){var g={},d={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(e,l){g[e]=l;d[l]=e});h.encode=function(e){if(e in d)return d[e];throw new TypeError("Must be between 0 and 63: "+e);};h.decode=function(d){if(d in g)return g[d];throw new TypeError("Not a valid base 64 digit: "+d);}})},{amdefine:17}],12:[function(h,r,m){if("function"!==typeof e)var e=
h("amdefine")(r,h);e(function(e,h,m){function g(d,e,l,c,a){var b=Math.floor((e-d)/2)+d,h=a(l,c[b],!0);return 0===h?c[b]:0<h?1<e-b?g(b,e,l,c,a):c[b]:1<b-d?g(d,b,l,c,a):0>d?null:c[d]}h.search=function(d,e,l){return 0<e.length?g(-1,e.length,d,e,l):null}})},{amdefine:17}],13:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(a){var b=a;"string"===typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));a=d.getArg(b,"version");var c=d.getArg(b,"sources"),e=d.getArg(b,
"names",[]),g=d.getArg(b,"sourceRoot",null),h=d.getArg(b,"sourcesContent",null),k=d.getArg(b,"mappings"),b=d.getArg(b,"file",null);if(a!=this._version)throw Error("Unsupported version: "+a);this._names=l.fromArray(e,!0);this._sources=l.fromArray(c,!0);this.sourceRoot=g;this.sourcesContent=h;this._mappings=k;this.file=b}var d=e("./util"),k=e("./binary-search"),l=e("./array-set").ArraySet,c=e("./base64-vlq");g.fromSourceMap=function(a){var b=Object.create(g.prototype);b._names=l.fromArray(a._names.toArray(),
!0);b._sources=l.fromArray(a._sources.toArray(),!0);b.sourceRoot=a._sourceRoot;b.sourcesContent=a._generateSourcesContent(b._sources.toArray(),b.sourceRoot);b.file=a._file;b.__generatedMappings=a._mappings.slice().sort(d.compareByGeneratedPositions);b.__originalMappings=a._mappings.slice().sort(d.compareByOriginalPositions);return b};g.prototype._version=3;Object.defineProperty(g.prototype,"sources",{get:function(){return this._sources.toArray().map(function(a){return this.sourceRoot?d.join(this.sourceRoot,
a):a},this)}});g.prototype.__generatedMappings=null;Object.defineProperty(g.prototype,"_generatedMappings",{get:function(){this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot));return this.__generatedMappings}});g.prototype.__originalMappings=null;Object.defineProperty(g.prototype,"_originalMappings",{get:function(){this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,
this.sourceRoot));return this.__originalMappings}});g.prototype._parseMappings=function(a,b){for(var e=1,g=0,l=0,h=0,k=0,x=0,m=/^[,;]/,s=a,p;0<s.length;)if(";"===s.charAt(0))e++,s=s.slice(1),g=0;else if(","===s.charAt(0))s=s.slice(1);else{p={};p.generatedLine=e;s=c.decode(s);p.generatedColumn=g+s.value;g=p.generatedColumn;s=s.rest;if(0<s.length&&!m.test(s.charAt(0))){s=c.decode(s);p.source=this._sources.at(k+s.value);k+=s.value;s=s.rest;if(0===s.length||m.test(s.charAt(0)))throw Error("Found a source, but no line and column");
s=c.decode(s);p.originalLine=l+s.value;l=p.originalLine;p.originalLine+=1;s=s.rest;if(0===s.length||m.test(s.charAt(0)))throw Error("Found a source and line, but no column");s=c.decode(s);p.originalColumn=h+s.value;h=p.originalColumn;s=s.rest;0<s.length&&!m.test(s.charAt(0))&&(s=c.decode(s),p.name=this._names.at(x+s.value),x+=s.value,s=s.rest)}this.__generatedMappings.push(p);"number"===typeof p.originalLine&&this.__originalMappings.push(p)}this.__generatedMappings.sort(d.compareByGeneratedPositions);
this.__originalMappings.sort(d.compareByOriginalPositions)};g.prototype._findMapping=function(a,b,c,d,e){if(0>=a[c])throw new TypeError("Line must be greater than or equal to 1, got "+a[c]);if(0>a[d])throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return k.search(a,b,e)};g.prototype.originalPositionFor=function(a){a={generatedLine:d.getArg(a,"line"),generatedColumn:d.getArg(a,"column")};if(a=this._findMapping(a,this._generatedMappings,"generatedLine","generatedColumn",
d.compareByGeneratedPositions)){var b=d.getArg(a,"source",null);b&&this.sourceRoot&&(b=d.join(this.sourceRoot,b));return{source:b,line:d.getArg(a,"originalLine",null),column:d.getArg(a,"originalColumn",null),name:d.getArg(a,"name",null)}}return{source:null,line:null,column:null,name:null}};g.prototype.sourceContentFor=function(a){if(!this.sourcesContent)return null;this.sourceRoot&&(a=d.relative(this.sourceRoot,a));if(this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var b;
if(this.sourceRoot&&(b=d.urlParse(this.sourceRoot))){var c=a.replace(/^file:\/\//,"");if("file"==b.scheme&&this._sources.has(c))return this.sourcesContent[this._sources.indexOf(c)];if((!b.path||"/"==b.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}throw Error('"'+a+'" is not in the SourceMap.');};g.prototype.generatedPositionFor=function(a){a={source:d.getArg(a,"source"),originalLine:d.getArg(a,"line"),originalColumn:d.getArg(a,"column")};this.sourceRoot&&
(a.source=d.relative(this.sourceRoot,a.source));return(a=this._findMapping(a,this._originalMappings,"originalLine","originalColumn",d.compareByOriginalPositions))?{line:d.getArg(a,"generatedLine",null),column:d.getArg(a,"generatedColumn",null)}:{line:null,column:null}};g.GENERATED_ORDER=1;g.ORIGINAL_ORDER=2;g.prototype.eachMapping=function(a,b,c){b=b||null;switch(c||g.GENERATED_ORDER){case g.GENERATED_ORDER:c=this._generatedMappings;break;case g.ORIGINAL_ORDER:c=this._originalMappings;break;default:throw Error("Unknown order of iteration.");
}var e=this.sourceRoot;c.map(function(a){var b=a.source;b&&e&&(b=d.join(e,b));return{source:b,generatedLine:a.generatedLine,generatedColumn:a.generatedColumn,originalLine:a.originalLine,originalColumn:a.originalColumn,name:a.name}}).forEach(a,b)};h.SourceMapConsumer=g})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(c){this._file=k.getArg(c,"file");this._sourceRoot=
k.getArg(c,"sourceRoot",null);this._sources=new l;this._names=new l;this._mappings=[];this._sourcesContents=null}var d=e("./base64-vlq"),k=e("./util"),l=e("./array-set").ArraySet;g.prototype._version=3;g.fromSourceMap=function(c){var a=c.sourceRoot,b=new g({file:c.file,sourceRoot:a});c.eachMapping(function(c){var d={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source&&(d.source=c.source,a&&(d.source=k.relative(a,d.source)),d.original={line:c.originalLine,column:c.originalColumn},c.name&&
(d.name=c.name));b.addMapping(d)});c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&b.setSourceContent(a,d)});return b};g.prototype.addMapping=function(c){var a=k.getArg(c,"generated"),b=k.getArg(c,"original",null),d=k.getArg(c,"source",null);c=k.getArg(c,"name",null);this._validateMapping(a,b,d,c);d&&!this._sources.has(d)&&this._sources.add(d);c&&!this._names.has(c)&&this._names.add(c);this._mappings.push({generatedLine:a.line,generatedColumn:a.column,originalLine:null!=b&&b.line,originalColumn:null!=
b&&b.column,source:d,name:c})};g.prototype.setSourceContent=function(c,a){var b=c;this._sourceRoot&&(b=k.relative(this._sourceRoot,b));null!==a?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[k.toSetString(b)]=a):(delete this._sourcesContents[k.toSetString(b)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};g.prototype.applySourceMap=function(c,a){a||(a=c.file);var b=this._sourceRoot;b&&(a=k.relative(b,a));var d=new l,e=new l;this._mappings.forEach(function(g){if(g.source===
a&&g.originalLine){var l=c.originalPositionFor({line:g.originalLine,column:g.originalColumn});null!==l.source&&(g.source=b?k.relative(b,l.source):l.source,g.originalLine=l.line,g.originalColumn=l.column,null!==l.name&&null!==g.name&&(g.name=l.name))}(l=g.source)&&!d.has(l)&&d.add(l);(g=g.name)&&!e.has(g)&&e.add(g)},this);this._sources=d;this._names=e;c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&(b&&(a=k.relative(b,a)),this.setSourceContent(a,d))},this)};g.prototype._validateMapping=
function(c,a,b,d){if(!(c&&"line"in c&&"column"in c&&0<c.line&&0<=c.column&&!a&&!b&&!d||c&&"line"in c&&"column"in c&&a&&"line"in a&&"column"in a&&0<c.line&&0<=c.column&&0<a.line&&0<=a.column&&b))throw Error("Invalid mapping: "+JSON.stringify({generated:c,source:b,original:a,name:d}));};g.prototype._serializeMappings=function(){var c=0,a=1,b=0,e=0,g=0,l=0,h="",v;this._mappings.sort(k.compareByGeneratedPositions);for(var x=0,p=this._mappings.length;x<p;x++){v=this._mappings[x];if(v.generatedLine!==a)for(c=
0;v.generatedLine!==a;)h+=";",a++;else if(0<x){if(!k.compareByGeneratedPositions(v,this._mappings[x-1]))continue;h+=","}h+=d.encode(v.generatedColumn-c);c=v.generatedColumn;v.source&&(h+=d.encode(this._sources.indexOf(v.source)-l),l=this._sources.indexOf(v.source),h+=d.encode(v.originalLine-1-e),e=v.originalLine-1,h+=d.encode(v.originalColumn-b),b=v.originalColumn,v.name&&(h+=d.encode(this._names.indexOf(v.name)-g),g=this._names.indexOf(v.name)))}return h};g.prototype._generateSourcesContent=function(c,
a){return c.map(function(b){if(!this._sourcesContents)return null;a&&(b=k.relative(a,b));b=k.toSetString(b);return Object.prototype.hasOwnProperty.call(this._sourcesContents,b)?this._sourcesContents[b]:null},this)};g.prototype.toJSON=function(){var c={version:this._version,file:this._file,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};this._sourceRoot&&(c.sourceRoot=this._sourceRoot);this._sourcesContents&&(c.sourcesContent=this._generateSourcesContent(c.sources,
c.sourceRoot));return c};g.prototype.toString=function(){return JSON.stringify(this)};h.SourceMapGenerator=g})},{"./array-set":9,"./base64-vlq":10,"./util":16,amdefine:17}],15:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(d,c,a,b,e){this.children=[];this.sourceContents={};this.line=void 0===d?null:d;this.column=void 0===c?null:c;this.source=void 0===a?null:a;this.name=void 0===e?null:e;null!=b&&this.add(b)}var d=e("./source-map-generator").SourceMapGenerator,
k=e("./util");g.fromStringWithSourceMap=function(d,c){function a(a,c){null===a||void 0===a.source?b.add(c):b.add(new g(a.originalLine,a.originalColumn,a.source,c,a.name))}var b=new g,e=d.split("\n"),h=1,k=0,p=null;c.eachMapping(function(c){if(null===p){for(;h<c.generatedLine;)b.add(e.shift()+"\n"),h++;if(k<c.generatedColumn){var d=e[0];b.add(d.substr(0,c.generatedColumn));e[0]=d.substr(c.generatedColumn);k=c.generatedColumn}}else{if(h<c.generatedLine){var g="";do g+=e.shift()+"\n",h++,k=0;while(h<
c.generatedLine);k<c.generatedColumn&&(d=e[0],g+=d.substr(0,c.generatedColumn),e[0]=d.substr(c.generatedColumn),k=c.generatedColumn)}else d=e[0],g=d.substr(0,c.generatedColumn-k),e[0]=d.substr(c.generatedColumn-k),k=c.generatedColumn;a(p,g)}p=c},this);a(p,e.join("\n"));c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&b.setSourceContent(a,d)});return b};g.prototype.add=function(d){if(Array.isArray(d))d.forEach(function(c){this.add(c)},this);else if(d instanceof g||"string"===typeof d)d&&
this.children.push(d);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};g.prototype.prepend=function(d){if(Array.isArray(d))for(var c=d.length-1;0<=c;c--)this.prepend(d[c]);else if(d instanceof g||"string"===typeof d)this.children.unshift(d);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};g.prototype.walk=function(d){for(var c,a=0,b=this.children.length;a<b;a++)c=
this.children[a],c instanceof g?c.walk(d):""!==c&&d(c,{source:this.source,line:this.line,column:this.column,name:this.name})};g.prototype.join=function(d){var c,a,b=this.children.length;if(0<b){c=[];for(a=0;a<b-1;a++)c.push(this.children[a]),c.push(d);c.push(this.children[a]);this.children=c}return this};g.prototype.replaceRight=function(d,c){var a=this.children[this.children.length-1];a instanceof g?a.replaceRight(d,c):"string"===typeof a?this.children[this.children.length-1]=a.replace(d,c):this.children.push("".replace(d,
c));return this};g.prototype.setSourceContent=function(d,c){this.sourceContents[k.toSetString(d)]=c};g.prototype.walkSourceContents=function(d){for(var c=0,a=this.children.length;c<a;c++)this.children[c]instanceof g&&this.children[c].walkSourceContents(d);for(var b=Object.keys(this.sourceContents),c=0,a=b.length;c<a;c++)d(k.fromSetString(b[c]),this.sourceContents[b[c]])};g.prototype.toString=function(){var d="";this.walk(function(c){d+=c});return d};g.prototype.toStringWithSourceMap=function(e){var c=
"",a=1,b=0,g=new d(e),h=!1,k=null,p=null,v=null,m=null;this.walk(function(d,e){c+=d;null!==e.source&&null!==e.line&&null!==e.column?(k===e.source&&p===e.line&&v===e.column&&m===e.name||g.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:a,column:b},name:e.name}),k=e.source,p=e.line,v=e.column,m=e.name,h=!0):h&&(g.addMapping({generated:{line:a,column:b}}),k=null,h=!1);d.split("").forEach(function(c){"\n"===c?(a++,b=0):b++})});this.walkSourceContents(function(a,b){g.setSourceContent(a,
b)});return{code:c,map:g}};h.SourceNode=g})},{"./source-map-generator":14,"./util":16,amdefine:17}],16:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(a){return(a=a.match(l))?{scheme:a[1],auth:a[3],host:a[4],port:a[6],path:a[7]}:null}function d(a){var b=a.scheme+"://";a.auth&&(b+=a.auth+"@");a.host&&(b+=a.host);a.port&&(b+=":"+a.port);a.path&&(b+=a.path);return b}function k(a,b){var c=a||"",d=b||"";return(c>d)-(c<d)}h.getArg=function(a,b,c){if(b in a)return a[b];
if(3===arguments.length)return c;throw Error('"'+b+'" is a required argument.');};var l=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/,c=/^data:.+\,.+/;h.urlParse=g;h.urlGenerate=d;h.join=function(a,b){var e;return b.match(l)||b.match(c)?b:"/"===b.charAt(0)&&(e=g(a))?(e.path=b,d(e)):a.replace(/\/$/,"")+"/"+b};h.toSetString=function(a){return"$"+a};h.fromSetString=function(a){return a.substr(1)};h.relative=function(a,b){a=a.replace(/\/$/,"");var c=g(a);return"/"==b.charAt(0)&&c&&"/"==c.path?
b.slice(1):0===b.indexOf(a+"/")?b.substr(a.length+1):b};h.compareByOriginalPositions=function(a,b,c){var d;return(d=k(a.source,b.source))||(d=a.originalLine-b.originalLine)||(d=a.originalColumn-b.originalColumn)||c||(d=k(a.name,b.name))?d:(d=a.generatedLine-b.generatedLine)?d:a.generatedColumn-b.generatedColumn};h.compareByGeneratedPositions=function(a,b,c){var d;return(d=a.generatedLine-b.generatedLine)||(d=a.generatedColumn-b.generatedColumn)||c||(d=k(a.source,b.source))||(d=a.originalLine-b.originalLine)?
d:(d=a.originalColumn-b.originalColumn)?d:k(a.name,b.name)}})},{amdefine:17}],17:[function(h,r,m){(function(e,p){r.exports=function(m,r){function g(a,b){var c;if(a&&"."===a.charAt(0)&&b){c=b.split("/");c=c.slice(0,c.length-1);var d=c=c.concat(a.split("/")),e,g;for(e=0;d[e];e+=1)if(g=d[e],"."===g)d.splice(e,1),e-=1;else if(".."===g)if(1!==e||".."!==d[2]&&".."!==d[0])0<e&&(d.splice(e-1,2),e-=2);else break;a=c.join("/")}return a}function d(a){return function(b){return g(b,a)}}function k(a){function c(d){b[a]=
d}c.fromText=function(a,b){throw Error("amdefine does not implement load.fromText");};return c}function l(a,c,d){var e,g,h;if(a)g=b[a]={},h={id:a,uri:p,exports:g},e=A(r,g,h,a);else{if(y)throw Error("amdefine with no module ID cannot be called more than once per file.");y=!0;g=m.exports;h=m;e=A(r,g,h,m.id)}c&&(c=c.map(function(a){return e(a)}));c="function"===typeof d?d.apply(h.exports,c):d;void 0!==c&&(h.exports=c,a&&(b[a]=h.exports))}function c(b,c,d){Array.isArray(b)?(d=c,c=b,b=void 0):"string"!==
typeof b&&(d=b,b=c=void 0);c&&!Array.isArray(c)&&(d=c,c=void 0);c||(c=["require","exports","module"]);b?a[b]=[b,c,d]:l(b,c,d)}var a={},b={},y=!1,B=h("path"),A,C;A=function(a,b,c,d){function h(g,k){if("string"===typeof g)return C(a,b,c,g,d);g=g.map(function(e){return C(a,b,c,e,d)});e.nextTick(function(){k.apply(null,g)})}h.toUrl=function(a){return 0===a.indexOf(".")?g(a,B.dirname(c.filename)):a};return h};r=r||function(){return m.require.apply(m,arguments)};C=function(c,e,h,m,p){var r=m.indexOf("!"),
F=m;if(-1===r){m=g(m,p);if("require"===m)return A(c,e,h,p);if("exports"===m)return e;if("module"===m)return h;if(b.hasOwnProperty(m))return b[m];if(a[m])return l.apply(null,a[m]),b[m];if(c)return c(F);throw Error("No module with ID: "+m);}F=m.substring(0,r);m=m.substring(r+1,m.length);r=C(c,e,h,F,p);m=r.normalize?r.normalize(m,d(p)):g(m,p);b[m]||r.load(m,A(c,e,h,p),k(m),{});return b[m]};c.require=function(c){if(b[c])return b[c];if(a[c])return l.apply(null,a[c]),b[c]};c.amd={};return c}}).call(this,
h("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"/node_modules/source-map/node_modules/amdefine/amdefine.js")},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,path:7}],18:[function(h,r,m){(function(e,p){function r(){return"undefined"!==typeof window}function z(a){if(a in D)return D[a];try{if(r()){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);var c=4===b.readyState?b.responseText:null}else c=
x.readFileSync(a,"utf8")}catch(d){c=null}return D[a]=c}function g(a,b){if(!a)return b;var c=v.dirname(a),d=/^\w+:\/\/[^\/]*/.exec(c),d=d?d[0]:"";return d+v.resolve(c.slice(d.length),b)}function d(a){var b;a:{if(r()&&(b=new XMLHttpRequest,b.open("GET",a,!1),b.send(null),b=b.getResponseHeader("SourceMap")||b.getResponseHeader("X-SourceMap")))break a;b=z(a);b=(b=/\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(b))?b[1]:null}if(!b)return null;"data:application/json;base64,"==b.slice(0,29).toLowerCase()?(a=
(new p(b.slice(29),"base64")).toString(),b=null):(b=g(a,b),a=z(b,"utf8"));return a?{url:b,map:a}:null}function k(a){var b=E[a.source];if(!b){var c=d(a.source);c&&(b=E[a.source]={url:c.url,map:new C(c.map)},b.map.sourcesContent&&b.map.sources.forEach(function(a,c){var d=b.map.sourcesContent[c];if(d){var e=g(b.url,a);D[e]=d}}))}return b&&(c=b.map.originalPositionFor(a),null!==c.source)?(c.source=g(b.url,c.source),c):a}function l(a){var b=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(a);return b?(a=
k({source:b[2],line:b[3],column:b[4]-1}),"eval at "+b[1]+" ("+a.source+":"+a.line+":"+(a.column+1)+")"):(b=/^eval at ([^(]+) \((.+)\)$/.exec(a))?"eval at "+b[1]+" ("+l(b[2])+")":a}function c(){var a,b="";this.isNative()?b="native":(a=this.getScriptNameOrSourceURL(),!a&&this.isEval()&&(b=this.getEvalOrigin(),b+=", "),b=a?b+a:b+"<anonymous>",a=this.getLineNumber(),null!=a&&(b+=":"+a,(a=this.getColumnNumber())&&(b+=":"+a)));a="";var c=this.getFunctionName(),d=!0,e=this.isConstructor();if(this.isToplevel()||
e)e?a+="new "+(c||"<anonymous>"):c?a+=c:(a+=b,d=!1);else{var e=this.getTypeName(),g=this.getMethodName();c?(e&&0!=c.indexOf(e)&&(a+=e+"."),a+=c,g&&c.indexOf("."+g)!=c.length-g.length-1&&(a+=" [as "+g+"]")):a+=e+"."+(g||"<anonymous>")}d&&(a+=" ("+b+")");return a}function a(a){var b={};Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(function(c){b[c]=/^(?:is|get)/.test(c)?function(){return a[c].call(a)}:a[c]});b.toString=c;return b}function b(b){var c=b.getFileName()||b.getScriptNameOrSourceURL();
if(c){var d=k({source:c,line:b.getLineNumber(),column:b.getColumnNumber()-1});b=a(b);b.getFileName=function(){return d.source};b.getLineNumber=function(){return d.line};b.getColumnNumber=function(){return d.column+1};b.getScriptNameOrSourceURL=function(){return d.source};return b}var e=b.isEval()&&b.getEvalOrigin();e&&(e=l(e),b=a(b),b.getEvalOrigin=function(){return e});return b}function y(a,c){s&&(D={},E={});return a+c.map(function(a){return"\n at "+b(a)}).join("")}function B(a){var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);
if(b){a=b[1];var c=+b[2],b=+b[3],d=D[a];!d&&x.existsSync(a)&&(d=x.readFileSync(a,"utf8"));if(d&&(d=d.split(/(?:\r\n|\r|\n)/)[c-1]))return"\n"+a+":"+c+"\n"+d+"\n"+Array(b).join(" ")+"^"}return null}function A(a){if(a&&a.stack){var b=B(a);null!==b&&console.log(b);console.log(a.stack)}else console.log("Uncaught exception:",a);e.exit(1)}var C=h("source-map").SourceMapConsumer,v=h("path"),x=h("fs"),G=!1,s=!1,D={},E={};m.wrapCallSite=b;m.getErrorSource=B;m.mapSourcePosition=k;m.retrieveSourceMap=d;m.install=
function(a){if(!G){G=!0;Error.prepareStackTrace=y;a=a||{};var b="handleUncaughtExceptions"in a?a.handleUncaughtExceptions:!0;s="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1;a.retrieveFile&&(z=a.retrieveFile);a.retrieveSourceMap&&(d=a.retrieveSourceMap);if(b&&!r())e.on("uncaughtException",A)}}}).call(this,h("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),h("buffer").Buffer)},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,
buffer:3,fs:2,path:7,"source-map":8}]},{},[1]);return J});