-
Notifications
You must be signed in to change notification settings - Fork 20
/
eventsource.min.js
1 lines (1 loc) · 97.5 KB
/
eventsource.min.js
1
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function e(){return t.default}:function e(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=21)}([function(module,exports){var g;g=function(){return this}();try{g=g||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(t,e){var r,n,i,o=t.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(n){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(t){r=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var f=[],h=!1,l=-1;function c(){h&&i&&(h=!1,i.length?f=i.concat(f):l=-1,f.length&&$())}function $(){if(!h){var t=u(c);h=!0;for(var e=f.length;e;){for(i=f,f=[];++l<e;)i&&i[l].run();l=-1,e=f.length}i=null,h=!1,function t(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(r){try{return n.call(null,e)}catch(i){return n.call(this,e)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}o.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];f.push(new p(t,e)),1!==f.length||h||u($)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=d,o.addListener=d,o.once=d,o.off=d,o.removeListener=d,o.removeAllListeners=d,o.emit=d,o.prependListener=d,o.prependOnceListener=d,o.listeners=function(t){return[]},o.binding=function(t){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e){"function"==typeof Object.create?t.exports=function t(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function t(e,r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}},function(t,e,r){"use strict";(function(t){var n=r(23),i=r(24),o=r(10);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,r);if("number"==typeof t){if("string"==typeof e)throw Error("If encoding is specified then the first argument must be a string");return l(this,t)}return f(this,t,e,r)}function f(t,e,r,n){if("number"==typeof e)throw TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function t(e,r,n,i){if(r.byteLength,n<0||r.byteLength<n)throw RangeError("'offset' is out of bounds");if(r.byteLength<n+(i||0))throw RangeError("'length' is out of bounds");return r=void 0===n&&void 0===i?new Uint8Array(r):void 0===i?new Uint8Array(r,n):new Uint8Array(r,n,i),u.TYPED_ARRAY_SUPPORT?(e=r).__proto__=u.prototype:e=c(e,r),e}(t,e,r,n):"string"==typeof e?function t(e,r,n){if(("string"!=typeof n||""===n)&&(n="utf8"),!u.isEncoding(n))throw TypeError('"encoding" must be a valid string encoding');var i=0|p(r,n),o=(e=a(e,i)).write(r,n);return o!==i&&(e=e.slice(0,o)),e}(t,e,r):function t(e,r){if(u.isBuffer(r)){var n=0|$(r.length);return 0===(e=a(e,n)).length||r.copy(e,0,0,n),e}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||function(t){return t!=t}(r.length)?a(e,0):c(e,r);if("Buffer"===r.type&&o(r.data))return c(e,r.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function h(t){if("number"!=typeof t)throw TypeError('"size" argument must be a number');if(t<0)throw RangeError('"size" argument must not be negative')}function l(t,e){if(h(e),t=a(t,e<0?0:0|$(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function c(t,e){var r=e.length<0?0:0|$(e.length);t=a(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function $(t){if(t>=s())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(t).length;default:if(n)return j(t).length;e=(""+e).toLowerCase(),n=!0}}function d(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,r);case"utf8":case"utf-8":return E(this,e,r);case"ascii":return T(this,e,r);case"latin1":case"binary":return R(this,e,r);case"base64":return C(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,r);default:if(n)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),isNaN(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e)return(e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,u/=2,r/=2}function f(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var h=-1;for(o=r;o<a;o++)if(f(t,o)===f(e,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===u)return h*s}else -1!==h&&(o-=o-h),h=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var l=!0,c=0;c<u;c++)if(f(t,o+c)!==f(e,c)){l=!1;break}if(l)return o}return -1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))break;t[r+s]=a}return s}function _(t,e,r,n){return q(j(e,t.length-r),t,r,n)}function b(t,e,r,n){return q(function t(e){for(var r=[],n=0;n<e.length;++n)r.push(255&e.charCodeAt(n));return r}(e),t,r,n)}function w(t,e,r,n){return b(t,e,r,n)}function x(t,e,r,n){return q(U(e),t,r,n)}function S(t,e,r,n){return q(function t(e,r){for(var n,i,o,s=[],a=0;a<e.length&&!((r-=2)<0);++a)i=(n=e.charCodeAt(a))>>8,o=n%256,s.push(o),s.push(i);return s}(e,t.length-r),t,r,n)}function C(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function E(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,u,f=t[i],h=null,l=f>239?4:f>223?3:f>191?2:1;if(i+l<=r)switch(l){case 1:f<128&&(h=f);break;case 2:(192&(o=t[i+1]))==128&&(u=(31&f)<<6|63&o)>127&&(h=u);break;case 3:o=t[i+1],s=t[i+2],(192&o)==128&&(192&s)==128&&(u=(15&f)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(h=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(u=(15&f)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(h=u)}null===h?(h=65533,l=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=l}return function t(e){var r=e.length;if(r<=4096)return String.fromCharCode.apply(String,e);for(var n="",i=0;i<r;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(n)}function T(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function R(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function k(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=N(t[o]);return i}function P(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function A(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function F(t,e,r,n,i,o){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function L(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}function O(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>(n?i:3-i)*8&255}function I(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function M(t,e,r,n,o){return o||I(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,o){return o||I(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.Buffer=u,e.SlowBuffer=function t(e){return+e!=e&&(e=0),u.alloc(+e)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function t(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(r){return!1}}(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return f(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){var n,i,o;return n=t,i=e,o=r,(h(n),n<=0)?a(null,n):void 0!==i?"string"==typeof o?a(null,n).fill(i,o):a(null,n).fill(i):a(null,n)},u.allocUnsafe=function(t){return l(null,t)},u.allocUnsafeSlow=function(t){return l(null,t)},u.isBuffer=function t(e){return!!(null!=e&&e._isBuffer)},u.compare=function t(e,r){if(!u.isBuffer(e)||!u.isBuffer(r))throw TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,i=r.length,o=0,s=Math.min(n,i);o<s;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0},u.isEncoding=function t(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function t(e,r){if(!o(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);if(void 0===r)for(n=0,r=0;n<e.length;++n)r+=e[n].length;var n,i=u.allocUnsafe(r),s=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(i,s),s+=a.length}return i},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function t(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)g(this,r,r+1);return this},u.prototype.swap32=function t(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)g(this,r,r+3),g(this,r+1,r+2);return this},u.prototype.swap64=function t(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)g(this,r,r+7),g(this,r+1,r+6),g(this,r+2,r+5),g(this,r+3,r+4);return this},u.prototype.toString=function t(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):d.apply(this,arguments)},u.prototype.equals=function t(e){if(!u.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function t(){var r="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(r=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(r+=" ... ")),"<Buffer "+r+">"},u.prototype.compare=function t(e,r,n,i,o){if(!u.isBuffer(e))throw TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return -1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var s=o-i,a=n-r,f=Math.min(s,a),h=this.slice(i,o),l=e.slice(r,n),c=0;c<f;++c)if(h[c]!==l[c]){s=h[c],a=l[c];break}return s<a?-1:a<s?1:0},u.prototype.includes=function t(e,r,n){return -1!==this.indexOf(e,r,n)},u.prototype.indexOf=function t(e,r,n){return y(this,e,r,n,!0)},u.prototype.lastIndexOf=function t(e,r,n){return y(this,e,r,n,!1)},u.prototype.write=function t(e,r,n,i){if(void 0===r)i="utf8",n=this.length,r=0;else if(void 0===n&&"string"==typeof r)i=r,n=this.length,r=0;else if(isFinite(r))r|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,s,a,u,f=this.length-r;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var h=!1;;)switch(i){case"hex":return m(this,e,r,n);case"utf8":case"utf-8":return _(this,e,r,n);case"ascii":return b(this,e,r,n);case"latin1":case"binary":return o=this,s=e,a=r,b(o,s,a,u=n);case"base64":return x(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,r,n);default:if(h)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),h=!0}},u.prototype.toJSON=function t(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function t(e,r){var n,i=this.length;if(e=~~e,r=void 0===r?i:~~r,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),r<0?(r+=i)<0&&(r=0):r>i&&(r=i),r<e&&(r=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,r)).__proto__=u.prototype;else{var o=r-e;n=new u(o,void 0);for(var s=0;s<o;++s)n[s]=this[s+e]}return n},u.prototype.readUIntLE=function t(e,r,n){e|=0,r|=0,n||A(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return i},u.prototype.readUIntBE=function t(e,r,n){e|=0,r|=0,n||A(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i},u.prototype.readUInt8=function t(e,r){return r||A(e,1,this.length),this[e]},u.prototype.readUInt16LE=function t(e,r){return r||A(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function t(e,r){return r||A(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function t(e,r){return r||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function t(e,r){return r||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function t(e,r,n){e|=0,r|=0,n||A(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*r)),i},u.prototype.readIntBE=function t(e,r,n){e|=0,r|=0,n||A(e,r,this.length);for(var i=r,o=1,s=this[e+--i];i>0&&(o*=256);)s+=this[e+--i]*o;return s>=(o*=128)&&(s-=Math.pow(2,8*r)),s},u.prototype.readInt8=function t(e,r){return(r||A(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function t(e,r){r||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function t(e,r){r||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function t(e,r){return r||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function t(e,r){return r||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function t(e,r){return r||A(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function t(e,r){return r||A(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function t(e,r){return r||A(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function t(e,r){return r||A(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function t(e,r,n,i){if(e=+e,r|=0,n|=0,!i){var o=Math.pow(2,8*n)-1;F(this,e,r,n,o,0)}var s=1,a=0;for(this[r]=255&e;++a<n&&(s*=256);)this[r+a]=e/s&255;return r+n},u.prototype.writeUIntBE=function t(e,r,n,i){if(e=+e,r|=0,n|=0,!i){var o=Math.pow(2,8*n)-1;F(this,e,r,n,o,0)}var s=n-1,a=1;for(this[r+s]=255&e;--s>=0&&(a*=256);)this[r+s]=e/a&255;return r+n},u.prototype.writeUInt8=function t(e,r,n){return e=+e,r|=0,n||F(this,e,r,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=255&e,r+1},u.prototype.writeUInt16LE=function t(e,r,n){return e=+e,r|=0,n||F(this,e,r,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):L(this,e,r,!0),r+2},u.prototype.writeUInt16BE=function t(e,r,n){return e=+e,r|=0,n||F(this,e,r,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):L(this,e,r,!1),r+2},u.prototype.writeUInt32LE=function t(e,r,n){return e=+e,r|=0,n||F(this,e,r,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=255&e):O(this,e,r,!0),r+4},u.prototype.writeUInt32BE=function t(e,r,n){return e=+e,r|=0,n||F(this,e,r,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):O(this,e,r,!1),r+4},u.prototype.writeIntLE=function t(e,r,n,i){if(e=+e,r|=0,!i){var o=Math.pow(2,8*n-1);F(this,e,r,n,o-1,-o)}var s=0,a=1,u=0;for(this[r]=255&e;++s<n&&(a*=256);)e<0&&0===u&&0!==this[r+s-1]&&(u=1),this[r+s]=(e/a>>0)-u&255;return r+n},u.prototype.writeIntBE=function t(e,r,n,i){if(e=+e,r|=0,!i){var o=Math.pow(2,8*n-1);F(this,e,r,n,o-1,-o)}var s=n-1,a=1,u=0;for(this[r+s]=255&e;--s>=0&&(a*=256);)e<0&&0===u&&0!==this[r+s+1]&&(u=1),this[r+s]=(e/a>>0)-u&255;return r+n},u.prototype.writeInt8=function t(e,r,n){return e=+e,r|=0,n||F(this,e,r,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[r]=255&e,r+1},u.prototype.writeInt16LE=function t(e,r,n){return e=+e,r|=0,n||F(this,e,r,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):L(this,e,r,!0),r+2},u.prototype.writeInt16BE=function t(e,r,n){return e=+e,r|=0,n||F(this,e,r,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):L(this,e,r,!1),r+2},u.prototype.writeInt32LE=function t(e,r,n){return e=+e,r|=0,n||F(this,e,r,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):O(this,e,r,!0),r+4},u.prototype.writeInt32BE=function t(e,r,n){return e=+e,r|=0,n||F(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):O(this,e,r,!1),r+4},u.prototype.writeFloatLE=function t(e,r,n){return M(this,e,r,!0,n)},u.prototype.writeFloatBE=function t(e,r,n){return M(this,e,r,!1,n)},u.prototype.writeDoubleLE=function t(e,r,n){return D(this,e,r,!0,n)},u.prototype.writeDoubleBE=function t(e,r,n){return D(this,e,r,!1,n)},u.prototype.copy=function t(e,r,n,i){if(n||(n=0),i||0===i||(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||0===e.length||0===this.length)return 0;if(r<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("sourceStart out of bounds");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o,s=i-n;if(this===e&&n<r&&r<i)for(o=s-1;o>=0;--o)e[o+r]=this[o+n];else if(s<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)e[o+r]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+s),r);return s},u.prototype.fill=function t(e,r,n,i){if("string"==typeof e){if("string"==typeof r?(i=r,r=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var o,s=e.charCodeAt(0);s<256&&(e=s)}if(void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!u.isEncoding(i))throw TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(r<0||this.length<r||this.length<n)throw RangeError("Out of range index");if(n<=r)return this;if(r>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=r;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:j(new u(e,i).toString()),f=a.length;for(o=0;o<n-r;++o)this[o+r]=a[o%f]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function N(t){return t<16?"0"+t.toString(16):t.toString(16)}function j(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function U(t){return n.toByteArray(function t(e){var r;if((e=(r=e,r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function Y(t){return t!=t}}).call(e,r(0))},function(t,e,r){"use strict";var n=r(6),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=l;var o=Object.create(r(5));o.inherits=r(2);var s=r(15),a=r(18);o.inherits(l,s);for(var u=i(a.prototype),f=0;f<u.length;f++){var h=u[f];l.prototype[h]||(l.prototype[h]=a.prototype[h])}function l(t){if(!(this instanceof l))return new l(t);s.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||n.nextTick($,this)}function $(t){t.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),l.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},function(t,e,r){(function(t){function r(t){return Object.prototype.toString.call(t)}e.isArray=function t(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},e.isBoolean=function t(e){return"boolean"==typeof e},e.isNull=function t(e){return null===e},e.isNullOrUndefined=function t(e){return null==e},e.isNumber=function t(e){return"number"==typeof e},e.isString=function t(e){return"string"==typeof e},e.isSymbol=function t(e){return"symbol"==typeof e},e.isUndefined=function t(e){return void 0===e},e.isRegExp=function t(e){return"[object RegExp]"===r(e)},e.isObject=function t(e){return"object"==typeof e&&null!==e},e.isDate=function t(e){return"[object Date]"===r(e)},e.isError=function t(e){return"[object Error]"===r(e)||e instanceof Error},e.isFunction=function t(e){return"function"==typeof e},e.isPrimitive=function t(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},e.isBuffer=t.isBuffer}).call(e,r(3).Buffer)},function(t,e,r){"use strict";(function(e){void 0!==e&&e.version&&0!==e.version.indexOf("v0.")&&(0!==e.version.indexOf("v1.")||0===e.version.indexOf("v1.8."))?t.exports=e:t.exports={nextTick:function t(r,n,i,o){if("function"!=typeof r)throw TypeError('"callback" argument must be a function');var s,a,u=arguments.length;switch(u){case 0:case 1:return e.nextTick(r);case 2:return e.nextTick(function t(){r.call(null,n)});case 3:return e.nextTick(function t(){r.call(null,n,i)});case 4:return e.nextTick(function t(){r.call(null,n,i,o)});default:for(s=Array(u-1),a=0;a<s.length;)s[a++]=arguments[a];return e.nextTick(function t(){r.apply(null,s)})}}}}).call(e,r(1))},function(t,e,r){var n=r(3),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),o(i,s),s.from=function(t,e,r){if("number"==typeof t)throw TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";var n=r(25),i=r(27);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=v,e.resolve=function t(e,r){return v(e,!1,!0).resolve(r)},e.resolveObject=function t(e,r){return e?v(e,!1,!0).resolveObject(r):r},e.format=function t(e){return(i.isString(e)&&(e=v(e)),e instanceof o)?e.format():o.prototype.format.call(e)},e.Url=o;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "])),h=["%","/","?",";","#"].concat(f),l=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,$=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},d={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(28);function v(t,e,r){if(t&&i.isObject(t)&&t instanceof o)return t;var n=new o;return n.parse(t,e,r),n}o.prototype.parse=function(t,e,r){if(!i.isString(t))throw TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),a=-1!==o&&o<t.indexOf("#")?"?":"#",v=t.split(a);v[0]=v[0].replace(/\\/g,"/");var m=t=v.join(a);if(m=m.trim(),!r&&1===t.split("#").length){var _=u.exec(m);if(_)return this.path=m,this.href=m,this.pathname=_[1],_[2]?(this.search=_[2],e?this.query=y.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var b=s.exec(m);if(b){var w=(b=b[0]).toLowerCase();this.protocol=w,m=m.substr(b.length)}if(r||b||m.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===m.substr(0,2);x&&!(b&&d[b])&&(m=m.substr(2),this.slashes=!0)}if(!d[b]&&(x||b&&!g[b])){for(var S,C,E=-1,T=0;T<l.length;T++){var R=m.indexOf(l[T]);-1!==R&&(-1===E||R<E)&&(E=R)}-1!==(C=-1===E?m.lastIndexOf("@"):m.lastIndexOf("@",E))&&(S=m.slice(0,C),m=m.slice(C+1),this.auth=decodeURIComponent(S)),E=-1;for(var T=0;T<h.length;T++){var R=m.indexOf(h[T]);-1!==R&&(-1===E||R<E)&&(E=R)}-1===E&&(E=m.length),this.host=m.slice(0,E),m=m.slice(E),this.parseHost(),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k)for(var P=this.hostname.split(/\./),T=0,A=P.length;T<A;T++){var F=P[T];if(F&&!F.match(c)){for(var L="",O=0,I=F.length;O<I;O++)F.charCodeAt(O)>127?L+="x":L+=F[O];if(!L.match(c)){var M=P.slice(0,T),D=P.slice(T+1),B=F.match($);B&&(M.push(B[1]),D.unshift(B[2])),D.length&&(m="/"+D.join(".")+m),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),k||(this.hostname=n.toASCII(this.hostname));var N=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+N,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!p[w])for(var T=0,A=f.length;T<A;T++){var U=f[T];if(-1!==m.indexOf(U)){var q=encodeURIComponent(U);q===U&&(q=escape(U)),m=m.split(U).join(q)}}var Y=m.indexOf("#");-1!==Y&&(this.hash=m.substr(Y),m=m.slice(0,Y));var H=m.indexOf("?");if(-1!==H?(this.search=m.substr(H),this.query=m.substr(H+1),e&&(this.query=y.parse(this.query)),m=m.slice(0,H)):e&&(this.search="",this.query={}),m&&(this.pathname=m),g[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var N=this.pathname||"",z=this.search||"";this.path=N+z}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,s="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(s=y.stringify(this.query));var a=this.search||s&&"?"+s||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),e+o+(r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(a=a.replace("#","%23"))+n},o.prototype.resolve=function(t){return this.resolveObject(v(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(i.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var r=new o,n=Object.keys(this),s=0;s<n.length;s++){var a=n[s];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),f=0;f<u.length;f++){var h=u[f];"protocol"!==h&&(r[h]=t[h])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!g[t.protocol]){for(var l=Object.keys(t),c=0;c<l.length;c++){var $=l[c];r[$]=t[$]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||d[t.protocol])r.pathname=t.pathname;else{for(var p=(t.pathname||"").split("/");p.length&&!(t.host=p.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var y=r.pathname||"",v=r.search||"";r.path=y+v}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),_=t.host||t.pathname&&"/"===t.pathname.charAt(0),b=_||m||r.host&&t.pathname,w=b,x=r.pathname&&r.pathname.split("/")||[],p=t.pathname&&t.pathname.split("/")||[],S=r.protocol&&!g[r.protocol];if(S&&(r.hostname="",r.port=null,r.host&&(""===x[0]?x[0]=r.host:x.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),b=b&&(""===p[0]||""===x[0])),_)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,x=p;else if(p.length)x||(x=[]),x.pop(),x=x.concat(p),r.search=t.search,r.query=t.query;else if(!i.isNullOrUndefined(t.search)){if(S){r.hostname=r.host=x.shift();var C=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");C&&(r.auth=C.shift(),r.host=r.hostname=C.shift())}return r.search=t.search,r.query=t.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=x.slice(-1)[0],T=(r.host||t.host||x.length>1)&&("."===E||".."===E)||""===E,R=0,k=x.length;k>=0;k--)"."===(E=x[k])?x.splice(k,1):".."===E?(x.splice(k,1),R++):R&&(x.splice(k,1),R--);if(!b&&!w)for(;R--;R)x.unshift("..");b&&""!==x[0]&&(!x[0]||"/"!==x[0].charAt(0))&&x.unshift(""),T&&"/"!==x.join("/").substr(-1)&&x.push("");var P=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(S){r.hostname=r.host=P?"":x.length?x.shift():"";var C=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");C&&(r.auth=C.shift(),r.host=r.hostname=C.shift())}return(b=b||r.host&&x.length)&&!P&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function t(e,r,n){return Function.prototype.apply.call(e,r,n)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function t(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function t(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function t(e){return e!=e};function a(){a.init.call(this)}t.exports=a,t.exports.once=function t(e,r){return new Promise(function(t,n){var i,o,s;function a(t){e.removeListener(r,u),n(t)}function u(){"function"==typeof e.removeListener&&e.removeListener("error",a),t([].slice.call(arguments))}y(e,r,u,{once:!0}),"error"!==r&&(i=e,o=a,s={once:!0},"function"==typeof i.on&&y(i,"error",o,s))})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var u=10;function f(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function h(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){if(f(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),void 0===s)s=o[e]=r,++t._eventsCount;else if("function"==typeof s?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=h(t))>0&&s.length>i&&!s.warned){s.warned=!0;var i,o,s,a,u=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return t}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function $(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function p(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function t(e){for(var r=Array(e.length),n=0;n<r.length;++n)r[n]=e[n].listener||e[n];return r}(i):g(i,i.length)}function d(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(t,e){for(var r=Array(e),n=0;n<e;++n)r[n]=t[n];return r}function y(t,e,r,n){if("function"==typeof t.on)n.once?t.once(e,r):t.on(e,r);else if("function"==typeof t.addEventListener)t.addEventListener(e,function i(o){n.once&&t.removeEventListener(e,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t||t<0||s(t))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");u=t}}),a.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function t(e){if("number"!=typeof e||e<0||s(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function t(){return h(this)},a.prototype.emit=function t(e){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i="error"===e,s=this._events;if(void 0!==s)i=i&&void 0===s.error;else if(!i)return!1;if(i){if(r.length>0&&(a=r[0]),a instanceof Error)throw a;var a,u=Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var f=s[e];if(void 0===f)return!1;if("function"==typeof f)o(f,this,r);else for(var h=f.length,l=g(f,h),n=0;n<h;++n)o(l[n],this,r);return!0},a.prototype.addListener=function t(e,r){return l(this,e,r,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function t(e,r){return l(this,e,r,!0)},a.prototype.once=function t(e,r){return f(r),this.on(e,$(this,e,r)),this},a.prototype.prependOnceListener=function t(e,r){return f(r),this.prependListener(e,$(this,e,r)),this},a.prototype.removeListener=function t(e,r){var n,i,o,s,a;if(f(r),void 0===(i=this._events)||void 0===(n=i[e]))return this;if(n===r||n.listener===r)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||r));else if("function"!=typeof n){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===r||n[s].listener===r){a=n[s].listener,o=s;break}if(o<0)return this;0===o?n.shift():function t(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}(n,o),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||r)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function t(e){var r,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,s=Object.keys(n);for(i=0;i<s.length;++i)"removeListener"!==(o=s[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(r=n[e]))this.removeListener(e,r);else if(void 0!==r)for(i=r.length-1;i>=0;i--)this.removeListener(e,r[i]);return this},a.prototype.listeners=function t(e){return p(this,e,!0)},a.prototype.rawListeners=function t(e){return p(this,e,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},a.prototype.listenerCount=d,a.prototype.eventNames=function t(){return this._eventsCount>0?n(this._events):[]}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){(function(t){var n=r(32),i=r(13),o=r(41),s=r(42),a=r(8),u=e;u.request=function(e,r){e="string"==typeof e?a.parse(e):o(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",s=e.protocol||i,u=e.hostname||e.host,f=e.port,h=e.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),e.url=(u?s+"//"+u:"")+(f?":"+f:"")+h,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var l=new n(e);return r&&l.on("response",r),l},u.get=function t(e,r){var n=u.request(e,r);return n.end(),n},u.ClientRequest=n,u.IncomingMessage=i.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=s,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(e,r(0))},function(t,e,r){(function(t){e.fetch=u(t.fetch)&&u(t.ReadableStream),e.writableStream=u(t.WritableStream),e.abortController=u(t.AbortController),e.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),e.blobConstructor=!0}catch(r){}function n(){if(void 0!==o)return o;if(t.XMLHttpRequest){o=new t.XMLHttpRequest;try{o.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(e){o=null}}else o=null;return o}function i(t){var e=n();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(r){}return!1}var o,s=void 0!==t.ArrayBuffer,a=s&&u(t.ArrayBuffer.prototype.slice);function u(t){return"function"==typeof t}e.arraybuffer=e.fetch||s&&i("arraybuffer"),e.msstream=!e.fetch&&a&&i("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&s&&i("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||!!n()&&u(n().overrideMimeType),e.vbArray=u(t.VBArray),o=null}).call(e,r(0))},function(t,e,r){(function(t,n,i){var o=r(12),s=r(2),a=r(14),u=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=e.IncomingMessage=function(e,r,s,u){var f=this;if(a.Readable.call(f),f._mode=s,f.headers={},f.rawHeaders=[],f.trailers={},f.rawTrailers=[],f.on("end",function(){t.nextTick(function(){f.emit("close")})}),"fetch"===s){if(f._fetchResponse=r,f.url=r.url,f.statusCode=r.status,f.statusMessage=r.statusText,r.headers.forEach(function(t,e){f.headers[e.toLowerCase()]=t,f.rawHeaders.push(e,t)}),o.writableStream){var h=new WritableStream({write:function(t){return new Promise(function(e,r){f._destroyed?r():f.push(new n(t))?e():f._resumeFetch=e})},close:function(){i.clearTimeout(u),f._destroyed||f.push(null)},abort:function(t){f._destroyed||f.emit("error",t)}});try{r.body.pipeTo(h).catch(function(t){i.clearTimeout(u),f._destroyed||f.emit("error",t)});return}catch(l){}}var c=r.body.getReader();!function t(){c.read().then(function(e){if(!f._destroyed){if(e.done){i.clearTimeout(u),f.push(null);return}f.push(new n(e.value)),t()}}).catch(function(t){i.clearTimeout(u),f._destroyed||f.emit("error",t)})}()}else if(f._xhr=e,f._pos=0,f.url=e.responseURL,f.statusCode=e.status,f.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var r=e[1].toLowerCase();"set-cookie"===r?(void 0===f.headers[r]&&(f.headers[r]=[]),f.headers[r].push(e[2])):void 0!==f.headers[r]?f.headers[r]+=", "+e[2]:f.headers[r]=e[2],f.rawHeaders.push(e[1],e[2])}}),f._charset="x-user-defined",!o.overrideMimeType){var $=f.rawHeaders["mime-type"];if($){var p=$.match(/;\s*charset=([^;])(;|$)/);p&&(f._charset=p[1].toLowerCase())}f._charset||(f._charset="utf-8")}};s(f,a.Readable),f.prototype._read=function(){var t=this,e=t._resumeFetch;e&&(t._resumeFetch=null,e())},f.prototype._onXHRProgress=function(){var t=this,e=t._xhr,r=null;switch(t._mode){case"text:vbarray":if(e.readyState!==u.DONE)break;try{r=new i.VBArray(e.responseBody).toArray()}catch(o){}if(null!==r){t.push(new n(r));break}case"text":try{r=e.responseText}catch(s){t._mode="text:vbarray";break}if(r.length>t._pos){var a=r.substr(t._pos);if("x-user-defined"===t._charset){for(var f=new n(a.length),h=0;h<a.length;h++)f[h]=255&a.charCodeAt(h);t.push(f)}else t.push(a,t._charset);t._pos=r.length}break;case"arraybuffer":if(e.readyState!==u.DONE||!e.response)break;r=e.response,t.push(new n(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=e.response,e.readyState!==u.LOADING||!r)break;t.push(new n(new Uint8Array(r)));break;case"ms-stream":if(r=e.response,e.readyState!==u.LOADING)break;var l=new i.MSStreamReader;l.onprogress=function(){l.result.byteLength>t._pos&&(t.push(new n(new Uint8Array(l.result.slice(t._pos)))),t._pos=l.result.byteLength)},l.onload=function(){t.push(null)},l.readAsArrayBuffer(r)}t._xhr.readyState===u.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(e,r(1),r(3).Buffer,r(0))},function(t,e,r){(e=t.exports=r(15)).Stream=e,e.Readable=e,e.Writable=r(18),e.Duplex=r(4),e.Transform=r(20),e.PassThrough=r(39)},function(t,e,r){"use strict";(function(e,n){var i,o,s=r(6);t.exports=m;var a=r(10);m.ReadableState=v,r(9).EventEmitter;var u=function(t,e){return t.listeners(e).length},f=r(16),h=r(7).Buffer,l=e.Uint8Array||function(){},c=Object.create(r(5));c.inherits=r(2);var $=r(33),p=void 0;p=$&&$.debuglog?$.debuglog("stream"):function(){};var d=r(34),g=r(17);c.inherits(m,f);var y=["error","close","destroy","pause","resume"];function v(t,e){i=i||r(4),t=t||{};var n=e instanceof i;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var s=t.highWaterMark,a=t.readableHighWaterMark,u=this.objectMode?16:16384;s||0===s?this.highWaterMark=s:n&&(a||0===a)?this.highWaterMark=a:this.highWaterMark=u,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(o||(o=r(19).StringDecoder),this.decoder=new o(t.encoding),this.encoding=t.encoding)}function m(t){if(i=i||r(4),!(this instanceof m))return new m(t);this._readableState=new v(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),f.call(this)}function _(t,e,r,n,i){var o,s,a,u,f,c,$,p=t._readableState;if(null===e)p.reading=!1,function t(e,r){if(!r.ended){if(r.decoder){var n=r.decoder.end();n&&n.length&&(r.buffer.push(n),r.length+=r.objectMode?1:n.length)}r.ended=!0,x(e)}}(t,p);else{if(i||($=(o=p,s=e,u=s,!h.isBuffer(u)&&!(u instanceof l)&&"string"!=typeof s&&void 0!==s&&!o.objectMode&&(a=TypeError("Invalid non-string/buffer chunk")),a)),$)t.emit("error",$);else p.objectMode||e&&e.length>0?("string"!=typeof e&&!p.objectMode&&Object.getPrototypeOf(e)!==h.prototype&&(e=(c=e,h.from(c))),n?p.endEmitted?t.emit("error",Error("stream.unshift() after end event")):b(t,p,e,!0):p.ended?t.emit("error",Error("stream.push() after EOF")):(p.reading=!1,p.decoder&&!r?(e=p.decoder.write(e),p.objectMode||0!==e.length?b(t,p,e,!1):C(t,p)):b(t,p,e,!1))):n||(p.reading=!1)}return f=p,!f.ended&&(f.needReadable||f.length<f.highWaterMark||0===f.length)}function b(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&x(t)),C(t,e)}function w(t,e){if(t<=0||0===e.length&&e.ended)return 0;if(e.objectMode)return 1;if(t!=t)return e.flowing&&e.length?e.buffer.head.data.length:e.length;if(t>e.highWaterMark){var r;e.highWaterMark=((r=t)>=8388608?r=8388608:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0)}function x(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(p("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?s.nextTick(S,t):S(t))}function S(t){p("emit readable"),t.emit("readable"),k(t)}function C(t,e){e.readingMore||(e.readingMore=!0,s.nextTick(E,t,e))}function E(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(p("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function T(t){p("readable nexttick read 0"),t.read(0)}function R(t,e){e.reading||(p("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),k(t),e.flowing&&!e.reading&&t.read(0)}function k(t){var e=t._readableState;for(p("flow",e.flowing);e.flowing&&null!==t.read(););}function P(t,e){var r,n,i,o,s;return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=(n=t,i=e.buffer,o=e.decoder,n<i.head.data.length?(s=i.head.data.slice(0,n),i.head.data=i.head.data.slice(n)):s=n===i.head.data.length?i.shift():o?function t(e,r){var n=r.head,i=1,o=n.data;for(e-=o.length;n=n.next;){var s=n.data,a=e>s.length?s.length:e;if(a===s.length?o+=s:o+=s.slice(0,e),0==(e-=a)){a===s.length?(++i,n.next?r.head=n.next:r.head=r.tail=null):(r.head=n,n.data=s.slice(a));break}++i}return r.length-=i,o}(n,i):function t(e,r){var n=h.allocUnsafe(e),i=r.head,o=1;for(i.data.copy(n),e-=i.data.length;i=i.next;){var s=i.data,a=e>s.length?s.length:e;if(s.copy(n,n.length-e,0,a),0==(e-=a)){a===s.length?(++o,i.next?r.head=i.next:r.head=r.tail=null):(r.head=i,i.data=s.slice(a));break}++o}return r.length-=o,n}(n,i),s),r)}function A(t){var e=t._readableState;if(e.length>0)throw Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,s.nextTick(F,e,t))}function F(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function L(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return -1}Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),m.prototype.destroy=g.destroy,m.prototype._undestroy=g.undestroy,m.prototype._destroy=function(t,e){this.push(null),e(t)},m.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=h.from(t,e),e=""),r=!0),_(this,t,e,!1,r)},m.prototype.unshift=function(t){return _(this,t,null,!0,!1)},m.prototype.isPaused=function(){return!1===this._readableState.flowing},m.prototype.setEncoding=function(t){return o||(o=r(19).StringDecoder),this._readableState.decoder=new o(t),this._readableState.encoding=t,this},m.prototype.read=function(t){p("read",t),t=parseInt(t,10);var e,r=this._readableState,n=t;if(0!==t&&(r.emittedReadable=!1),0===t&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return p("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?A(this):x(this),null;if(0===(t=w(t,r))&&r.ended)return 0===r.length&&A(this),null;var i=r.needReadable;return p("need readable",i),(0===r.length||r.length-t<r.highWaterMark)&&p("length less than watermark",i=!0),r.ended||r.reading?p("reading or ended",i=!1):i&&(p("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(t=w(n,r))),null===(e=t>0?P(t,r):null)?(r.needReadable=!0,t=0):r.length-=t,0===r.length&&(r.ended||(r.needReadable=!0),n!==t&&r.ended&&A(this)),null!==e&&this.emit("data",e),e},m.prototype._read=function(t){this.emit("error",Error("_read() is not implemented"))},m.prototype.pipe=function(t,e){var r,i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,e);var f=e&&!1===e.end||t===n.stdout||t===n.stderr?_:l;function h(e,r){p("onunpipe"),e===i&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),t.removeListener("close",v),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",y),t.removeListener("unpipe",h),i.removeListener("end",l),i.removeListener("end",_),i.removeListener("data",g),$=!0,o.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&c())}function l(){p("onend"),t.end()}o.endEmitted?s.nextTick(f):i.once("end",f),t.on("unpipe",h);var c=(r=i,function(){var t=r._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&u(r,"data")&&(t.flowing=!0,k(r))});t.on("drain",c);var $=!1,d=!1;function g(e){p("ondata"),d=!1,!1!==t.write(e)||d||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==L(o.pipes,t))&&!$&&(p("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,d=!0),i.pause())}function y(e){p("onerror",e),_(),t.removeListener("error",y),0===u(t,"error")&&t.emit("error",e)}function v(){t.removeListener("finish",m),_()}function m(){p("onfinish"),t.removeListener("close",v),_()}function _(){p("unpipe"),i.unpipe(t)}return i.on("data",g),function t(e,r,n){if("function"==typeof e.prependListener)return e.prependListener(r,n);e._events&&e._events[r]?a(e._events[r])?e._events[r].unshift(n):e._events[r]=[n,e._events[r]]:e.on(r,n)}(t,"error",y),t.once("close",v),t.once("finish",m),t.emit("pipe",i),o.flowing||(p("pipe resume"),i.resume()),t},m.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var s=L(e.pipes,t);return -1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},m.prototype.on=function(t,e){var r=f.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&x(this):s.nextTick(T,this))}return r},m.prototype.addListener=m.prototype.on,m.prototype.resume=function(){var t,e,r=this._readableState;return r.flowing||(p("resume"),r.flowing=!0,t=this,(e=r).resumeScheduled||(e.resumeScheduled=!0,s.nextTick(R,t,e))),this},m.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},m.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",function(){if(p("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){if(p("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))}),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<y.length;o++)t.on(y[o],this.emit.bind(this,y[o]));return this._read=function(e){p("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(m.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),m._fromList=P}).call(e,r(0),r(1))},function(t,e,r){t.exports=r(9).EventEmitter},function(t,e,r){"use strict";var n=r(6);function i(t,e){t.emit("error",e)}t.exports={destroy:function t(e,r){var o=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(r?r(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(t){!r&&t?(n.nextTick(i,o,t),o._writableState&&(o._writableState.errorEmitted=!0)):r&&r(t)}),this)},undestroy:function t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,r){"use strict";(function(e,n,i){var o,s,a=r(6);function u(t,e,r){this.chunk=t,this.encoding=e,this.callback=r,this.next=null}function f(t){var e=this;this.next=null,this.entry=null,this.finish=function(){(function t(e,r,n){var i=e.entry;for(e.entry=null;i;){var o=i.callback;r.pendingcb--,o(void 0),i=i.next}r.corkedRequestsFree?r.corkedRequestsFree.next=e:r.corkedRequestsFree=e})(e,t)}}t.exports=m;var h=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?n:a.nextTick;m.WritableState=v;var l=Object.create(r(5));l.inherits=r(2);var c={deprecate:r(38)},$=r(16),p=r(7).Buffer,d=i.Uint8Array||function(){},g=r(17);function y(){}function v(t,e){o=o||r(4),t=t||{};var n=e instanceof o;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,s=t.writableHighWaterMark,u=this.objectMode?16:16384;i||0===i?this.highWaterMark=i:n&&(s||0===s)?this.highWaterMark=s:this.highWaterMark=u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===t.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){(function t(e,r){var n,i,o,s,u,f,l=e._writableState,c=l.sync,$=l.writecb;if((f=l).writing=!1,f.writecb=null,f.length-=f.writelen,f.writelen=0,r)n=e,i=l,o=c,s=r,u=$,--i.pendingcb,o?(a.nextTick(u,s),a.nextTick(C,n,i),n._writableState.errorEmitted=!0,n.emit("error",s)):(u(s),n._writableState.errorEmitted=!0,n.emit("error",s),C(n,i));else{var p=x(l);p||l.corked||l.bufferProcessing||!l.bufferedRequest||w(e,l),c?h(b,e,l,p,$):b(e,l,p,$)}})(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new f(this)}function m(t){if(o=o||r(4),!s.call(m,this)&&!(this instanceof o))return new m(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),$.call(this)}function _(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function b(t,e,r,n){var i,o;r||(i=t,o=e,0===o.length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),e.pendingcb--,n(),C(t,e)}function w(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=Array(e.bufferedRequestCount),i=e.corkedRequestsFree;i.entry=r;for(var o=0,s=!0;r;)n[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;n.allBuffers=s,_(t,e,!0,e.length,n,"",i.finish),e.pendingcb++,e.lastBufferedRequest=null,i.next?(e.corkedRequestsFree=i.next,i.next=null):e.corkedRequestsFree=new f(e),e.bufferedRequestCount=0}else{for(;r;){var a=r.chunk,u=r.encoding,h=r.callback,l=e.objectMode?1:a.length;if(_(t,e,!1,l,a,u,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function S(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),C(t,e)})}function C(t,e){var r,n,i=x(e);return i&&(r=t,(n=e).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,a.nextTick(S,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),i}l.inherits(m,$),v.prototype.getBuffer=function t(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r},function(){try{Object.defineProperty(v.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!s.call(this,t)||this===m&&t&&t._writableState instanceof v}})):s=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,r){var n,i,o,s,u,f,h,l,c,$,g,v=this._writableState,m=!1,b=!v.objectMode&&(g=t,p.isBuffer(g)||g instanceof d);return b&&!p.isBuffer(t)&&(t=(n=t,p.from(n))),("function"==typeof e&&(r=e,e=null),b?e="buffer":e||(e=v.defaultEncoding),"function"!=typeof r&&(r=y),v.ended)?(i=this,o=r,s=Error("write after end"),i.emit("error",s),a.nextTick(o,s)):(b||(u=this,f=v,h=t,l=r,c=!0,$=!1,null===h?$=TypeError("May not write null values to stream"):"string"==typeof h||void 0===h||f.objectMode||($=TypeError("Invalid non-string/buffer chunk")),$&&(u.emit("error",$),a.nextTick(l,$),c=!1),c))&&(v.pendingcb++,m=function t(e,r,n,i,o,s){if(!n){var a,u,f,h=(a=r,u=i,f=o,a.objectMode||!1===a.decodeStrings||"string"!=typeof u||(u=p.from(u,f)),u);i!==h&&(n=!0,o="buffer",i=h)}var l=r.objectMode?1:i.length;r.length+=l;var c=r.length<r.highWaterMark;if(c||(r.needDrain=!0),r.writing||r.corked){var $=r.lastBufferedRequest;r.lastBufferedRequest={chunk:i,encoding:o,isBuf:n,callback:s,next:null},$?$.next=r.lastBufferedRequest:r.bufferedRequest=r.lastBufferedRequest,r.bufferedRequestCount+=1}else _(e,r,!1,l,i,o,s);return c}(this,v,b,t,e,r)),m},m.prototype.cork=function(){var t=this._writableState;t.corked++},m.prototype.uncork=function(){var t=this._writableState;!t.corked||(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},m.prototype.setDefaultEncoding=function t(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,r){r(Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,r){var n,i,o,s=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),s.corked&&(s.corked=1,this.uncork()),s.ending||s.finished||(n=this,i=s,o=r,i.ending=!0,C(n,i),o&&(i.finished?a.nextTick(o):n.once("finish",o)),i.ended=!0,n.writable=!1)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=g.destroy,m.prototype._undestroy=g.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,r(1),r(36).setImmediate,r(0))},function(t,e,r){"use strict";var n=r(7).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&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}};function o(t){var e;switch(this.encoding=function t(e){var r=function t(e){var r;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}(e);if("string"!=typeof r&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return r||e}(t),this.encoding){case"utf16le":this.text=u,this.end=f,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=h,this.end=l,e=3;break;default:this.write=c,this.end=$;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function t(e,r,n){if((192&r[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&r.length>1){if((192&r[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&r.length>2&&(192&r[2])!=128)return e.lastNeed=2,"�"}}(this,t,e);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length)}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function h(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function c(t){return t.toString(this.encoding)}function $(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){var e,r;if(0===t.length)return"";if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function t(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"�":r},o.prototype.text=function t(e,r){var n=function t(e,r,n){var i=r.length-1;if(i<n)return 0;var o=s(r[i]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--i<n||-2===o?0:(o=s(r[i]))>=0?(o>0&&(e.lastNeed=o-2),o):--i<n||-2===o?0:(o=s(r[i]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",r,i)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,r){"use strict";t.exports=s;var n=r(4),i=Object.create(r(5));function o(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(t){if(!(this instanceof s))return new s(t);n.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",a)}function a(){var t=this;"function"==typeof this._flush?this._flush(function(e,r){u(t,e,r)}):u(this,null,null)}function u(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw Error("Calling transform done when still transforming");return t.push(null)}i.inherits=r(2),i.inherits(s,n),s.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},s.prototype._transform=function(t,e,r){throw Error("_transform() is not implemented")},s.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},s.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,function(t){e(t),r.emit("close")})}},function(t,e,r){var n=r(22);"object"==typeof window?(window.EventSourcePolyfill=n,window.EventSource||(window.EventSource=n),t.exports=window.EventSource):t.exports=n},function(t,e,r){(function(e,n){var i=r(8).parse,o=r(9),s=r(31),a=r(11),u=r(43),f=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","servername","checkServerIdentity"],h=[239,187,191],l=/^(cookie|authorization)$/i;function c(t,r){var o,u=c.CONNECTING,d=r&&r.headers,g=!1;Object.defineProperty(this,"readyState",{get:function(){return u}}),Object.defineProperty(this,"url",{get:function(){return t}});var y=this;function v(e){u!==c.CLOSED&&(u=c.CONNECTING,C("error",new $("error",{message:e})),x&&(t=x,x=null,g=!1),setTimeout(function(){u===c.CONNECTING&&!y.connectionInProgress&&(y.connectionInProgress=!0,S())},y.reconnectInterval))}y.reconnectInterval=1e3,y.connectionInProgress=!1;var m="";d&&d["Last-Event-ID"]&&(m=d["Last-Event-ID"],delete d["Last-Event-ID"]);var _=!1,b="",w="",x=null;function S(){var p=i(t),b="https:"===p.protocol;if(p.headers={"Cache-Control":"no-cache",Accept:"text/event-stream"},m&&(p.headers["Last-Event-ID"]=m),d){var w=g?function t(e){var r={};for(var n in e)!l.test(n)&&(r[n]=e[n]);return r}(d):d;for(var T in w){var R=w[T];R&&(p.headers[T]=R)}}if(p.rejectUnauthorized=!(r&&!r.rejectUnauthorized),r&&void 0!==r.createConnection&&(p.createConnection=r.createConnection),r&&r.proxy){var k=i(r.proxy);b="https:"===k.protocol,p.protocol=b?"https:":"http:",p.path=t,p.headers.Host=p.host,p.hostname=k.hostname,p.host=k.host,p.port=k.port}if(r&&r.https){for(var P in r.https)if(-1!==f.indexOf(P)){var A=r.https[P];void 0!==A&&(p[P]=A)}}r&&void 0!==r.withCredentials&&(p.withCredentials=r.withCredentials),(o=(b?s:a).request(p,function(r){if(y.connectionInProgress=!1,500===r.statusCode||502===r.statusCode||503===r.statusCode||504===r.statusCode){C("error",new $("error",{status:r.statusCode,message:r.statusMessage})),v();return}if(301===r.statusCode||302===r.statusCode||307===r.statusCode){var i,o,s=r.headers.location;if(!s){C("error",new $("error",{status:r.statusCode,message:r.statusMessage}));return}var a=new URL(t).origin,f=new URL(s).origin;g=a!==f,307===r.statusCode&&(x=t),t=s,e.nextTick(S);return}if(200!==r.statusCode)return C("error",new $("error",{status:r.statusCode,message:r.statusMessage})),y.close();u=c.OPEN,r.on("close",function(){r.removeAllListeners("close"),r.removeAllListeners("end"),v()}),r.on("end",function(){r.removeAllListeners("close"),r.removeAllListeners("end"),v()}),C("open",new $("open"));var l=0,p=-1,d=0,m=0;r.on("data",function(t){if(i)t.length>i.length-m&&((d=2*i.length+t.length)>262144&&(d=i.length+t.length+262144),o=n.alloc(d),i.copy(o,0,0,m),i=o),t.copy(i,m),m+=t.length;else{var e;e=i=t,h.every(function(t,r){return e[r]===t})&&(i=i.slice(h.length)),m=i.length}for(var r=0,s=m;r<s;){_&&(10===i[r]&&++r,_=!1);for(var a,u=-1,f=p,c=l;u<0&&c<s;++c)58===(a=i[c])?f<0&&(f=c-r):13===a?(_=!0,u=c-r):10===a&&(u=c-r);if(u<0){l=s-r,p=f;break}l=0,p=-1,E(i,r,f,u),r+=u+1}r===s?(i=void 0,m=0):r>0&&(m=(i=i.slice(r,m)).length)})})).on("error",function(t){y.connectionInProgress=!1,v(t.message)}),o.setNoDelay&&o.setNoDelay(!0),o.end()}function C(){y.listeners(arguments[0]).length>0&&y.emit.apply(y,arguments)}function E(e,r,n,i){if(0===i){if(b.length>0){var o=w||"message";C(o,new p(o,{data:b.slice(0,-1),lastEventId:m,origin:new URL(t).origin})),b=""}w=void 0}else if(n>0){var s=n<0,a=0,u=e.slice(r,r+(s?i:n)).toString();a=s?i:32!==e[r+n+1]?n+1:n+2,r+=a;var f=i-a,h=e.slice(r,r+f).toString();if("data"===u)b+=h+"\n";else if("event"===u)w=h;else if("id"===u)m=h;else if("retry"===u){var l=parseInt(h,10);Number.isNaN(l)||(y.reconnectInterval=l)}}}S(),this._close=function(){u!==c.CLOSED&&(u=c.CLOSED,o.abort&&o.abort(),o.xhr&&o.xhr.abort&&o.xhr.abort())}}function $(t,e){if(Object.defineProperty(this,"type",{writable:!1,value:t,enumerable:!0}),e)for(var r in e)e.hasOwnProperty(r)&&Object.defineProperty(this,r,{writable:!1,value:e[r],enumerable:!0})}function p(t,e){for(var r in Object.defineProperty(this,"type",{writable:!1,value:t,enumerable:!0}),e)e.hasOwnProperty(r)&&Object.defineProperty(this,r,{writable:!1,value:e[r],enumerable:!0})}t.exports=c,u.inherits(c,o.EventEmitter),c.prototype.constructor=c,["open","error","message"].forEach(function(t){Object.defineProperty(c.prototype,"on"+t,{get:function e(){var r=this.listeners(t)[0];return r?r._listener?r._listener:r:void 0},set:function e(r){this.removeAllListeners(t),this.addEventListener(t,r)}})}),Object.defineProperty(c,"CONNECTING",{enumerable:!0,value:0}),Object.defineProperty(c,"OPEN",{enumerable:!0,value:1}),Object.defineProperty(c,"CLOSED",{enumerable:!0,value:2}),c.prototype.CONNECTING=0,c.prototype.OPEN=1,c.prototype.CLOSED=2,c.prototype.close=function(){this._close()},c.prototype.addEventListener=function t(e,r){"function"==typeof r&&(r._listener=r,this.on(e,r))},c.prototype.dispatchEvent=function t(e){if(!e.type)throw Error("UNSPECIFIED_EVENT_TYPE_ERR");this.emit(e.type,e.detail)},c.prototype.removeEventListener=function t(e,r){"function"==typeof r&&(r._listener=void 0,this.removeListener(e,r))}}).call(e,r(1),r(3).Buffer)},function(t,e,r){"use strict";e.byteLength=function t(e){var r=f(e),n=r[0],i=r[1];return(n+i)*3/4-i},e.toByteArray=function t(e){var r,n,s,a,u,h=f(e),l=h[0],c=h[1],$=new o((a=l,u=c,(a+u)*3/4-u)),p=0,d=c>0?l-4:l;for(n=0;n<d;n+=4)r=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],$[p++]=r>>16&255,$[p++]=r>>8&255,$[p++]=255&r;return 2===c&&(r=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,$[p++]=255&r),1===c&&(r=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,$[p++]=r>>8&255,$[p++]=255&r),$},e.fromByteArray=function t(e){for(var r,i=e.length,o=i%3,s=[],a=0,u=i-o;a<u;a+=16383)s.push(l(e,a,a+16383>u?u:a+16383));return 1===o?s.push(n[(r=e[i-1])>>2]+n[r<<4&63]+"=="):2===o&&s.push(n[(r=(e[i-2]<<8)+e[i-1])>>10]+n[r>>4&63]+n[r<<2&63]+"="),s.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function f(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function h(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function l(t,e,r){for(var n,i=[],o=e;o<r;o+=3)i.push(h(n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2])));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,h=-7,l=r?i-1:0,c=r?-1:1,$=t[e+l];for(l+=c,o=$&(1<<-h)-1,$>>=-h,h+=a;h>0;o=256*o+t[e+l],l+=c,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=256*s+t[e+l],l+=c,h-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:($?-1:1)*(1/0);s+=Math.pow(2,n),o-=f}return($?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,h=(1<<f)-1,l=h>>1,c=23===i?5960464477539062e-23:0,$=n?0:o-1,p=n?1:-1,d=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+l>=1?e+=c/u:e+=c*Math.pow(2,1-l),e*u>=2&&(s++,u/=2),s+l>=h?(a=0,s=h):s+l>=1?(a=(e*u-1)*Math.pow(2,i),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[r+$]=255&a,$+=p,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+$]=255&s,$+=p,s/=256,f-=8);t[r+$-p]|=128*d}},function(t,e,r){(function(t,n){var i; /*! https://mths.be/punycode v1.4.1 by @mathias */ !function(o){"object"==typeof e&&e&&!e.nodeType,"object"==typeof t&&t&&!t.nodeType;var s="object"==typeof n&&n;(s.global===s||s.window===s||s.self===s)&&(o=s);var a,u=/^xn--/,f=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,$=String.fromCharCode;function p(t){throw RangeError(l[t])}function d(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function g(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+d((t=t.replace(h,".")).split("."),e).join(".")}function y(t){for(var e,r,n=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?(64512&(r=t.charCodeAt(i++)))==56320?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--):n.push(e);return n}function v(t){return d(t,function(t){var e="";return t>65535&&(t-=65536,e+=$(t>>>10&1023|55296),t=56320|1023&t),e+=$(t)}).join("")}function m(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36}function _(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function b(t,e,r){var n=0;for(t=r?c(t/700):t>>1,t+=c(t/e);t>455;n+=36)t=c(t/35);return c(n+36*t/(t+38))}function w(t){var e,r,n,i,o,s,a,u,f,h,l=[],$=t.length,d=0,g=128,y=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&p("not-basic"),l.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<$;){for(o=d,s=1,a=36;i>=$&&p("invalid-input"),((u=m(t.charCodeAt(i++)))>=36||u>c((2147483647-d)/s))&&p("overflow"),d+=u*s,!(u<(f=a<=y?1:a>=y+26?26:a-y));a+=36)s>c(2147483647/(h=36-f))&&p("overflow"),s*=h;y=b(d-o,e=l.length+1,0==o),c(d/e)>2147483647-g&&p("overflow"),g+=c(d/e),d%=e,l.splice(d++,0,g)}return v(l)}function x(t){var e,r,n,i,o,s,a,u,f,h,l,d,g,v,m,w=[];for(s=0,d=(t=y(t)).length,e=128,r=0,o=72;s<d;++s)(l=t[s])<128&&w.push($(l));for(n=i=w.length,i&&w.push("-");n<d;){for(a=2147483647,s=0;s<d;++s)(l=t[s])>=e&&l<a&&(a=l);for(a-e>c((2147483647-r)/(g=n+1))&&p("overflow"),r+=(a-e)*g,e=a,s=0;s<d;++s)if((l=t[s])<e&&++r>2147483647&&p("overflow"),l==e){for(u=r,f=36;!(u<(h=f<=o?1:f>=o+26?26:f-o));f+=36)m=u-h,v=36-h,w.push($(_(h+m%v,0))),u=c(m/v);w.push($(_(u,0))),o=b(r,g,n==i),r=0,++n}++r,++e}return w.join("")}a={version:"1.4.1",ucs2:{decode:y,encode:v},decode:w,encode:x,toASCII:function t(e){return g(e,function(t){return f.test(t)?"xn--"+x(t):t})},toUnicode:function t(e){return g(e,function(t){return u.test(t)?w(t.slice(4).toLowerCase()):t})}},void 0!==(i=(function(){return a}).call(e,r,e,t))&&(t.exports=i)}(this)}).call(e,r(26)(t),r(0))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,r){"use strict";e.decode=e.parse=r(29),e.encode=e.stringify=r(30)},function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,o){e=e||"&",r=r||"=";var s={};if("string"!=typeof t||0===t.length)return s;var a=/\+/g;t=t.split(e);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=t.length;u>0&&f>u&&(f=u);for(var h=0;h<f;++h){var l,c,$,p,d=t[h].replace(a,"%20"),g=d.indexOf(r);g>=0?(l=d.substr(0,g),c=d.substr(g+1)):(l=d,c=""),$=decodeURIComponent(l),p=decodeURIComponent(c),n(s,$)?i(s[$])?s[$].push(p):s[$]=[s[$],p]:s[$]=p}return s};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,a){return(e=e||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t)?o(s(t),function(s){var a=encodeURIComponent(n(s))+r;return i(t[s])?o(t[s],function(t){return a+encodeURIComponent(n(t))}).join(e):a+encodeURIComponent(n(t[s]))}).join(e):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var s=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},function(t,e,r){var n=r(11),i=r(8),o=t.exports;for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);function a(t){if("string"==typeof t&&(t=i.parse(t)),t.protocol||(t.protocol="https:"),"https:"!==t.protocol)throw Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}o.request=function(t,e){return t=a(t),n.request.call(this,t,e)},o.get=function(t,e){return t=a(t),n.get.call(this,t,e)}},function(t,e,r){(function(e,n,i){var o=r(12),s=r(2),a=r(13),u=r(14),f=r(40),h=a.IncomingMessage,l=a.readyStates,c=t.exports=function(t){var r,n=this;u.Writable.call(n),n._opts=t,n._body=[],n._headers={},t.auth&&n.setHeader("Authorization","Basic "+new e(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){n.setHeader(e,t.headers[e])});var i=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!o.abortController)i=!1,r=!0;else if("prefer-streaming"===t.mode)r=!1;else if("allow-wrong-content-type"===t.mode)r=!o.overrideMimeType;else if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw Error("Invalid value for opts.mode");else r=!0;n._mode=function t(e,r){if(o.fetch&&r)return"fetch";if(o.mozchunkedarraybuffer)return"moz-chunked-arraybuffer";if(o.msstream)return"ms-stream";if(o.arraybuffer&&e)return"arraybuffer";if(o.vbArray&&e)return"text:vbarray";else return"text"}(r,i),n._fetchTimer=null,n.on("finish",function(){n._onFinish()})};s(c,u.Writable),c.prototype.setHeader=function(t,e){var r=this,n=t.toLowerCase();-1===$.indexOf(n)&&(r._headers[n]={name:t,value:e})},c.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},c.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},c.prototype._onFinish=function(){var t=this;if(!t._destroyed){var r=t._opts,s=t._headers,a=null;"GET"!==r.method&&"HEAD"!==r.method&&(a=o.arraybuffer?f(e.concat(t._body)):o.blobConstructor?new n.Blob(t._body.map(function(t){return f(t)}),{type:(s["content-type"]||{}).value||""}):e.concat(t._body).toString());var u=[];if(Object.keys(s).forEach(function(t){var e=s[t].name,r=s[t].value;Array.isArray(r)?r.forEach(function(t){u.push([e,t])}):u.push([e,r])}),"fetch"===t._mode){var h=null;if(o.abortController){var c=new AbortController;h=c.signal,t._fetchAbortController=c,"requestTimeout"in r&&0!==r.requestTimeout&&(t._fetchTimer=n.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},r.requestTimeout))}n.fetch(t._opts.url,{method:t._opts.method,headers:u,body:a||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:h}).then(function(e){t._fetchResponse=e,t._connect()},function(e){n.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)})}else{var $=t._xhr=new n.XMLHttpRequest;try{$.open(t._opts.method,t._opts.url,!0)}catch(p){i.nextTick(function(){t.emit("error",p)});return}"responseType"in $&&($.responseType=t._mode.split(":")[0]),"withCredentials"in $&&($.withCredentials=!!r.withCredentials),"text"===t._mode&&"overrideMimeType"in $&&$.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&($.timeout=r.requestTimeout,$.ontimeout=function(){t.emit("requestTimeout")}),u.forEach(function(t){$.setRequestHeader(t[0],t[1])}),t._response=null,$.onreadystatechange=function(){switch($.readyState){case l.LOADING:case l.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&($.onprogress=function(){t._onXHRProgress()}),$.onerror=function(){t._destroyed||t.emit("error",Error("XHR error"))};try{$.send(a)}catch(d){i.nextTick(function(){t.emit("error",d)});return}}}},c.prototype._onXHRProgress=function(){(function t(e){try{var r=e.status;return null!==r&&0!==r}catch(n){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},c.prototype._connect=function(){var t=this;t._destroyed||(t._response=new h(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},c.prototype._write=function(t,e,r){this._body.push(t),r()},c.prototype.abort=c.prototype.destroy=function(){var t=this;t._destroyed=!0,n.clearTimeout(t._fetchTimer),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort()},c.prototype.end=function(t,e,r){"function"==typeof t&&(r=t,t=void 0),u.Writable.prototype.end.call(this,t,e,r)},c.prototype.flushHeaders=function(){},c.prototype.setTimeout=function(){},c.prototype.setNoDelay=function(){},c.prototype.setSocketKeepAlive=function(){};var $=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(e,r(3).Buffer,r(0),r(1))},function(t,e){},function(t,e,r){"use strict";var n=r(7).Buffer,i=r(35);function o(t,e,r){t.copy(e,r)}t.exports=function(){function t(){(function t(e,r){if(!(e instanceof r))throw TypeError("Cannot call a class as a function")})(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function t(e){var r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length},t.prototype.unshift=function t(e){var r={data:e,next:this.head};0===this.length&&(this.tail=r),this.head=r,++this.length},t.prototype.shift=function t(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},t.prototype.clear=function t(){this.head=this.tail=null,this.length=0},t.prototype.join=function t(e){if(0===this.length)return"";for(var r=this.head,n=""+r.data;r=r.next;)n+=e+r.data;return n},t.prototype.concat=function t(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var r=n.allocUnsafe(e>>>0),i=this.head,s=0;i;)o(i.data,r,s),s+=i.data.length,i=i.next;return r},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,r){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function e(){t._onTimeout&&t._onTimeout()},e))},r(37),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,r(0))},function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var n,i,o,s,a,u=1,f={},h=!1,l=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);(c=c&&c.setTimeout?c:t,"[object process]"===({}).toString.call(t.process))?a=function(t){e.nextTick(function(){p(t)})}:function e(){if(t.postMessage&&!t.importScripts){var r=!0,n=t.onmessage;return t.onmessage=function(){r=!1},t.postMessage("","*"),t.onmessage=n,r}}()?(n="setImmediate$"+Math.random()+"$",i=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(n)&&p(+e.data.slice(n.length))},t.addEventListener?t.addEventListener("message",i,!1):t.attachEvent("onmessage",i),a=function(e){t.postMessage(n+e,"*")}):t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},a=function(t){o.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(s=l.documentElement,a=function(t){var e=l.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,s.removeChild(e),e=null},s.appendChild(e)}):a=function(t){setTimeout(p,0,t)},c.setImmediate=function t(e){"function"!=typeof e&&(e=Function(""+e));for(var r=Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];var i={callback:e,args:r};return f[u]=i,a(u),u++},c.clearImmediate=$}function $(t){delete f[t]}function p(t){if(h)setTimeout(p,0,t);else{var e=f[t];if(e){h=!0;try{!function t(e){var r=e.callback,n=e.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(void 0,n)}}(e)}finally{$(t),h=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,r(0),r(1))},function(t,e,r){(function(e){t.exports=function t(e,n){if(r("noDeprecation"))return e;var i=!1;return function t(){if(!i){if(r("throwDeprecation"))throw Error(n);r("traceDeprecation")?console.trace(n):console.warn(n),i=!0}return e.apply(this,arguments)}};function r(t){try{if(!e.localStorage)return!1}catch(r){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}}).call(e,r(0))},function(t,e,r){"use strict";t.exports=o;var n=r(20),i=Object.create(r(5));function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=r(2),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){var n=r(3).Buffer;t.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(n.isBuffer(t)){for(var e=new Uint8Array(t.length),r=t.length,i=0;i<r;i++)e[i]=t[i];return e.buffer}throw Error("Argument must be a Buffer")}},function(t,e){t.exports=function t(){for(var e={},n=0;n<arguments.length;n++){var i=arguments[n];for(var o in i)r.call(i,o)&&(e[o]=i[o])}return e};var r=Object.prototype.hasOwnProperty},function(t,e){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(t,e,r){(function(t){var n,i=Object.getOwnPropertyDescriptors||function t(e){for(var r=Object.keys(e),n={},i=0;i<r.length;i++)n[r[i]]=Object.getOwnPropertyDescriptor(e,r[i]);return n},o=/%[sdj%]/g;e.format=function(t){if(!y(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(a(arguments[r]));return e.join(" ")}for(var r=1,n=arguments,i=n.length,s=String(t).replace(o,function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return t}}),u=n[r];r<i;u=n[++r])d(u)||!_(u)?s+=" "+u:s+=" "+a(u);return s},e.deprecate=function(r,n){if(void 0!==t&&!0===t.noDeprecation)return r;if(void 0===t)return function(){return e.deprecate(r,n).apply(this,arguments)};var i=!1;return function e(){if(!i){if(t.throwDeprecation)throw Error(n);t.traceDeprecation?console.trace(n):console.error(n),i=!0}return r.apply(this,arguments)}};var s={};function a(t,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&e._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),h(n,t,n.depth)}function u(t,e){var r=a.styles[e];return r?"\x1b["+a.colors[r][0]+"m"+t+"\x1b["+a.colors[r][1]+"m":t}function f(t,e){return t}function h(t,r,n){if(t.customInspect&&r&&x(r.inspect)&&r.inspect!==e.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o,s,a,u,f=r.inspect(n,t);return y(f)||(f=h(t,f,n)),f}var _=function t(e,r){if(v(r))return e.stylize("undefined","undefined");if(y(r)){var n="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(r)?e.stylize(""+r,"number"):p(r)?e.stylize(""+r,"boolean"):d(r)?e.stylize("null","null"):void 0}(t,r);if(_)return _;var S,C,E=Object.keys(r),R=(S=E,C={},S.forEach(function(t,e){C[t]=!0}),C);if(t.showHidden&&(E=Object.getOwnPropertyNames(r)),w(r)&&(E.indexOf("message")>=0||E.indexOf("description")>=0))return l(r);if(0===E.length){if(x(r)){var k=r.name?": "+r.name:"";return t.stylize("[Function"+k+"]","special")}if(m(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(b(r))return t.stylize(Date.prototype.toString.call(r),"date");if(w(r))return l(r)}var P="",A=!1,F=["{","}"];if($(r)&&(A=!0,F=["[","]"]),x(r)&&(P=" [Function"+(r.name?": "+r.name:"")+"]"),m(r)&&(P=" "+RegExp.prototype.toString.call(r)),b(r)&&(P=" "+Date.prototype.toUTCString.call(r)),w(r)&&(P=" "+l(r)),0===E.length&&(!A||0==r.length))return F[0]+P+F[1];if(n<0)return m(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special");return t.seen.push(r),u=A?function t(e,r,n,i,o){for(var s=[],a=0,u=r.length;a<u;++a)T(r,String(a))?s.push(c(e,r,n,i,String(a),!0)):s.push("");return o.forEach(function(t){t.match(/^\d+$/)||s.push(c(e,r,n,i,t,!0))}),s}(t,r,n,R,E):E.map(function(e){return c(t,r,n,R,e,A)}),t.seen.pop(),i=u,o=P,s=F,a=0,i.reduce(function(t,e){return a++,e.indexOf("\n")>=0&&a++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?s[0]+(""===o?"":o+"\n ")+" "+i.join(",\n ")+" "+s[1]:s[0]+o+" "+i.join(", ")+" "+s[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function c(t,e,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),T(n,i)||(s="["+i+"]"),!a&&(0>t.seen.indexOf(u.value)?(a=d(r)?h(t,u.value,null):h(t,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n")):a=t.stylize("[Circular]","special")),v(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function $(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function d(t){return null===t}function g(t){return"number"==typeof t}function y(t){return"string"==typeof t}function v(t){return void 0===t}function m(t){return _(t)&&"[object RegExp]"===S(t)}function _(t){return"object"==typeof t&&null!==t}function b(t){return _(t)&&"[object Date]"===S(t)}function w(t){return _(t)&&("[object Error]"===S(t)||t instanceof Error)}function x(t){return"function"==typeof t}function S(t){return Object.prototype.toString.call(t)}function C(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(v(n)&&(n=t.env.NODE_DEBUG||""),!s[r=r.toUpperCase()]){if(RegExp("\\b"+r+"\\b","i").test(n)){var i=t.pid;s[r]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",r,i,t)}}else s[r]=function(){}}return s[r]},e.inspect=a,a.colors={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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=$,e.isBoolean=p,e.isNull=d,e.isNullOrUndefined=function t(e){return null==e},e.isNumber=g,e.isString=y,e.isSymbol=function t(e){return"symbol"==typeof e},e.isUndefined=v,e.isRegExp=m,e.isObject=_,e.isDate=b,e.isError=w,e.isFunction=x,e.isPrimitive=function t(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},e.isBuffer=r(44);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[C((t=new Date).getHours()),C(t.getMinutes()),C(t.getSeconds())].join(":"),[t.getDate(),E[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(2),e._extend=function(t,e){if(!e||!_(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function k(t,e){if(!t){var r=Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function t(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(R&&e[R]){var r=e[R];if("function"!=typeof r)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,R,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(s){r(s)}return n}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),R&&Object.defineProperty(r,R,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,i(e))},e.promisify.custom=R,e.callbackify=function e(r){if("function"!=typeof r)throw TypeError('The "original" argument must be of type Function');function n(){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n]);var i=e.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};r.apply(this,e).then(function(e){t.nextTick(s,null,e)},function(e){t.nextTick(k,e,s)})}return Object.setPrototypeOf(n,Object.getPrototypeOf(r)),Object.defineProperties(n,i(r)),n}}).call(e,r(1))},function(t,e){t.exports=function t(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}}]);