@grapecity/spread-sheets-pdf
Version:
SpreadJS PDF export plugin
10 lines • 2.03 MB
JavaScript
/*!
*
* SpreadJS Library 18.1.4
*
* Copyright(c) of respective holders. All rights reserved.
*
* Licensed under the SpreadJS Commercial License.
*
*/
!function(n){"object"==typeof module&&"object"==typeof module.exports?(require("@grapecity/spread-sheets-print"),module.exports=n(require("@grapecity/spread-sheets"))):"function"==typeof define&&define.amd?define(["@grapecity/spread-sheets","@grapecity/spread-sheets-print"],n):"object"==typeof exports?(require("@grapecity/spread-sheets-print"),exports.Spread=n(require("@grapecity/spread-sheets"))):n(GC)}(function(e){function r(n){var e,e,e=a[n];return void 0!==e||(e=a[n]={exports:{}},t[n].call(e.exports,e,e.exports,r)),e.exports}var t,a,n;t={"./dist/plugins/exportPDF/lib/blob-stream.js":function(n){var e,r;e=function(){var n,e,r;return function a(c,i,o){var u,n;function s(r,n){var e,t,t;if(!i[r]){if(!c[r]){if(e=void 0,u)return u(r,!0);throw(t=new Error("Cannot find module '"+r+"'")).code="MODULE_NOT_FOUND",t}t=i[r]={exports:{}},c[r][0].call(t.exports,function(n){var e=c[r][1][n];return s(e||n)},t,t.exports,a,c,i,o)}return i[r].exports}for(u=void 0,n=0;n<o.length;n++)s(o[n]);return s}({1:[function(n,u,e){!function(n){var a,e,r,t;function c(n){for(var e,r,t,a,e=0;e<n.length;e++)(r=n[e]).buffer instanceof ArrayBuffer&&(t=r.buffer,r.byteLength!==t.byteLength&&((a=new Uint8Array(r.byteLength)).set(new Uint8Array(t,r.byteOffset,r.byteLength)),t=a.buffer),n[e]=t)}function i(n,e){var r,t;for(e=e||{},r=new a,c(n),t=0;t<n.length;t++)r.append(n[t]);return e.type?r.getBlob(e.type):r.getBlob()}function o(n,e){return c(n),new Blob(n,e||{})}a=n.BlobBuilder||n.WebKitBlobBuilder||n.MSBlobBuilder||n.MozBlobBuilder,e=function(){try{var n;return 2===new Blob(["hi"]).size}catch(n){return!1}}(),r=e&&function(){try{var n;return 2===new Blob([new Uint8Array([1,2])]).size}catch(n){return!1}}(),t=a&&a.prototype.append&&a.prototype.getBlob,u.exports=e?r?n.Blob:o:t?i:void 0}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(i,o,n){!function(n){var e,r,t,a;function c(){if(!(this instanceof c))return new c;e.call(this),this.Id=[],this.n_=null,this.length=0}e=i("stream").Writable,r=i("util"),t=i("blob"),a=n.URL||n.webkitURL||n.mozURL,r.inherits(c,e),c.prototype._write=function(n,e,r){n instanceof Uint8Array||(n=new Uint8Array(n)),this.length+=n.length,this.Id.push(n),r()},c.prototype.toBlob=function(n){return n=n||"application/octet-stream",this.n_||(this.n_=new t(this.Id,{type:n}),this.Id=[]),this.n_.type!==n&&(this.n_=new t([this.n_],{type:n})),this.n_},c.prototype.toBlobURL=function(n){return a.createObjectURL(this.toBlob(n))},o.exports=c}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{blob:1,stream:22,util:25}],3:[function(n,S,r){var t,c,o,u,e,a;function s(n,e,r){var t,a,c,i;if(!(this instanceof s))return new s(n,e,r);if("number"==(t=typeof n))a=0<n?n>>>0:0;else if("string"==t)"base64"===e&&(n=O(n)),a=s.byteLength(n,e);else{if("object"!=t||null===n)throw new TypeError("must start with number, buffer, array or string");a=0<+(n="Buffer"===n.type&&o(n.data)?n.data:n).length?Math.floor(+n.length):0}if(this.length>u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");if(s.TYPED_ARRAY_SUPPORT?c=s.Zen(new Uint8Array(a)):((c=this).length=a,c.bin=!0),s.TYPED_ARRAY_SUPPORT&&"number"==typeof n.byteLength)c.Ydn(n);else if(k(n))if(s.isBuffer(n))for(i=0;i<a;i++)c[i]=n.readUInt8(i);else for(i=0;i<a;i++)c[i]=(n[i]%256+256)%256;else if("string"==t)c.write(n,0,e);else if("number"==t&&!s.TYPED_ARRAY_SUPPORT&&!r)for(i=0;i<a;i++)c[i]=0;return c}function i(n,e,r,t){var a,a,c,i;if(r=Number(r)||0,a=n.length-r,(!t||a<(t=Number(t)))&&(t=a),(a=e.length)%2!=0)throw new Error("Invalid hex string");for(a/2<t&&(t=a/2),c=0;c<t;c++){if(i=parseInt(e.substr(2*c,2),16),isNaN(i))throw new Error("Invalid hex string");n[r+c]=i}return c}function X(n,e,r,t){var a;return Y(T(e),n,r,t)}function P(n,e,r,t){var a;return Y(E(e),n,r,t)}function K(n,e,r,t){return P(n,e,r,t)}function l(n,e,r,t){var a;return Y(U(e),n,r,t)}function m(n,e,r,t){var a;return Y(V(e),n,r,t)}function f(n,e,r){return 0===e&&r===n.length?t.fromByteArray(n):t.fromByteArray(n.slice(e,r))}function d(n,e,r){var t,a,c,t="",a="";for(r=Math.min(n.length,r),c=e;c<r;c++)n[c]<=127?(t+=R(a)+String.fromCharCode(n[c]),a=""):a+="%"+n[c].toString(16);return t+R(a)}function h(n,e,r){var t,a,t="";for(r=Math.min(n.length,r),a=e;a<r;a++)t+=String.fromCharCode(n[a]);return t}function g(n,e,r){return h(n,e,r)}function A(n,e,r){var t,a,c,t=n.length;for((!r||r<0||t<r)&&(r=t),a="",c=e=!e||e<0?0:e;c<r;c++)a+=x(n[c]);return a}function v(n,e,r){for(var t,a,c,t=n.slice(e,r),a="",c=0;c<t.length;c+=2)a+=String.fromCharCode(t[c]+256*t[c+1]);return a}function C(n,e,r){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(r<n+e)throw new RangeError("Trying to access beyond buffer length")}function W(n,e,r,t,a,c){if(!s.isBuffer(n))throw new TypeError("buffer must be a Buffer instance");if(a<e||e<c)throw new TypeError("value is out of bounds");if(r+t>n.length)throw new TypeError("index out of range")}function b(n,e,r,t){e<0&&(e=65535+e+1);for(var a=0,c=Math.min(n.length-r,2);a<c;a++)n[r+a]=(e&255<<8*(t?a:1-a))>>>8*(t?a:1-a)}function y(n,e,r,t){e<0&&(e=4294967295+e+1);for(var a=0,c=Math.min(n.length-r,4);a<c;a++)n[r+a]=e>>>8*(t?a:3-a)&255}function N(n,e,r,t,a,c){if(a<e||e<c)throw new TypeError("value is out of bounds");if(r+t>n.length)throw new TypeError("index out of range")}function B(n,e,r,t,a){return a||N(n,e,r,4,34028234663852886e22,-34028234663852886e22),c.write(n,e,r,t,23,4),r+4}function p(n,e,r,t,a){return a||N(n,e,r,8,17976931348623157e292,-17976931348623157e292),c.write(n,e,r,t,52,8),r+8}function O(n){for(n=w(n).replace(a,"");n.length%4!=0;)n+="=";return n}function w(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function k(n){return o(n)||s.isBuffer(n)||n&&"object"==typeof n&&"number"==typeof n.length}function x(n){return n<16?"0"+n.toString(16):n.toString(16)}function T(n){for(var e,r,t,a,c,i,e=[],r=0;r<n.length;r++)if((t=n.charCodeAt(r))<=127)e.push(t);else for(a=r,55296<=t&&t<=57343&&r++,c=encodeURIComponent(n.slice(a,r+1)).substr(1).split("%"),i=0;i<c.length;i++)e.push(parseInt(c[i],16));return e}function E(n){for(var e,r,e=[],r=0;r<n.length;r++)e.push(255&n.charCodeAt(r));return e}function V(n){for(var e,r,t,a,c,a=[],c=0;c<n.length;c++)r=(e=n.charCodeAt(c))>>8,a.push(t=e%256),a.push(r);return a}function U(n){return t.toByteArray(n)}function Y(n,e,r,t){for(var a=0;a<t&&!(a+r>=e.length||a>=n.length);a++)e[a+r]=n[a];return a}function R(n){try{return decodeURIComponent(n)}catch(n){return String.fromCharCode(65533)}}t=n("base64-js"),c=n("ieee754"),o=n("is-array"),r.Buffer=s,r.SlowBuffer=s,r.INSPECT_MAX_BYTES=50,s.poolSize=8192,u=1073741823,s.TYPED_ARRAY_SUPPORT=function(){var n,e;try{return n=new ArrayBuffer(0),(e=new Uint8Array(n)).foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(n){return!1}}(),s.isBuffer=function(n){return!(null==n||!n.bin)},s.compare=function(n,e){var r,t,a,c;if(!s.isBuffer(n)||!s.isBuffer(e))throw new TypeError("Arguments must be Buffers");for(r=n.length,t=e.length,a=0,c=Math.min(r,t);a<c&&n[a]===e[a];a++);return a!==c&&(r=n[a],t=e[a]),r<t?-1:t<r?1:0},s.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(n,e){var r,t,a,c;if(!o(n))throw new TypeError("Usage: Buffer.concat(list[, length])");if(0===n.length)return new s(0);if(1===n.length)return n[0];if(void 0===e)for(r=e=0;r<n.length;r++)e+=n[r].length;for(t=new s(e),r=a=0;r<n.length;r++)(c=n[r]).copy(t,a),a+=c.length;return t},s.byteLength=function(n,e){var r;switch(n+="",e||"utf8"){case"ascii":case"binary":case"raw":r=n.length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*n.length;break;case"hex":r=n.length>>>1;break;case"utf8":case"utf-8":r=T(n).length;break;case"base64":r=U(n).length;break;default:r=n.length}return r},s.prototype.length=void 0,s.prototype.parent=void 0,s.prototype.toString=function(n,e,r){var t=!1;if(n=n||"utf8",(r=(r=void 0===r||r===1/0?this.length:r>>>0)>this.length?this.length:r)<=(e=(e>>>=0)<0?0:e))return"";for(;;)switch(n){case"hex":return A(this,e,r);case"utf8":case"utf-8":return d(this,e,r);case"ascii":return h(this,e,r);case"binary":return g(this,e,r);case"base64":return f(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,r);default:if(t)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),t=!0}},s.prototype.equals=function(n){if(s.isBuffer(n))return 0===s.compare(this,n);throw new TypeError("Argument must be a Buffer")},s.prototype.inspect=function(){var n,e,n="",e=r.INSPECT_MAX_BYTES;return 0<this.length&&(n=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e)&&(n+=" ... "),"<Buffer "+n+">"},s.prototype.compare=function(n){if(s.isBuffer(n))return s.compare(this,n);throw new TypeError("Argument must be a Buffer")},s.prototype.get=function(n){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(n)},s.prototype.set=function(n,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(n,e)},s.prototype.write=function(n,e,r,t){var a,a,c;switch(isFinite(e)?isFinite(r)||(t=r,r=void 0):(a=t,t=e,e=r,r=a),e=Number(e)||0,a=this.length-e,(!r||a<(r=Number(r)))&&(r=a),t=String(t||"utf8").toLowerCase()){case"hex":c=i(this,n,e,r);break;case"utf8":case"utf-8":c=X(this,n,e,r);break;case"ascii":c=P(this,n,e,r);break;case"binary":c=K(this,n,e,r);break;case"base64":c=l(this,n,e,r);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":c=m(this,n,e,r);break;default:throw new TypeError("Unknown encoding: "+t)}return c},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(n,e){var r,t,a,c,r=this.length;if((n=~~n)<0?(n+=r)<0&&(n=0):r<n&&(n=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),e<n&&(e=n),s.TYPED_ARRAY_SUPPORT)return s.Zen(this.subarray(n,e));for(a=new s(t=e-n,void 0,!0),c=0;c<t;c++)a[c]=this[c+n];return a},s.prototype.readUInt8=function(n,e){return e||C(n,1,this.length),this[n]},s.prototype.readUInt16LE=function(n,e){return e||C(n,2,this.length),this[n]|this[n+1]<<8},s.prototype.readUInt16BE=function(n,e){return e||C(n,2,this.length),this[n]<<8|this[n+1]},s.prototype.readUInt32LE=function(n,e){return e||C(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},s.prototype.readUInt32BE=function(n,e){return e||C(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},s.prototype.readInt8=function(n,e){return e||C(n,1,this.length),128&this[n]?-1*(255-this[n]+1):this[n]},s.prototype.readInt16LE=function(n,e){e||C(n,2,this.length);var e=this[n]|this[n+1]<<8;return 32768&e?4294901760|e:e},s.prototype.readInt16BE=function(n,e){e||C(n,2,this.length);var e=this[n+1]|this[n]<<8;return 32768&e?4294901760|e:e},s.prototype.readInt32LE=function(n,e){return e||C(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},s.prototype.readInt32BE=function(n,e){return e||C(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},s.prototype.readFloatLE=function(n,e){return e||C(n,4,this.length),c.read(this,n,!0,23,4)},s.prototype.readFloatBE=function(n,e){return e||C(n,4,this.length),c.read(this,n,!1,23,4)},s.prototype.readDoubleLE=function(n,e){return e||C(n,8,this.length),c.read(this,n,!0,52,8)},s.prototype.readDoubleBE=function(n,e){return e||C(n,8,this.length),c.read(this,n,!1,52,8)},s.prototype.writeUInt8=function(n,e,r){return n=+n,e>>>=0,r||W(this,n,e,1,255,0),s.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[e]=n,e+1},s.prototype.writeUInt16LE=function(n,e,r){return n=+n,e>>>=0,r||W(this,n,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=n,this[e+1]=n>>>8):b(this,n,e,!0),e+2},s.prototype.writeUInt16BE=function(n,e,r){return n=+n,e>>>=0,r||W(this,n,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=n):b(this,n,e,!1),e+2},s.prototype.writeUInt32LE=function(n,e,r){return n=+n,e>>>=0,r||W(this,n,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e+3]=n>>>24,this[e+2]=n>>>16,this[e+1]=n>>>8,this[e]=n):y(this,n,e,!0),e+4},s.prototype.writeUInt32BE=function(n,e,r){return n=+n,e>>>=0,r||W(this,n,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=n):y(this,n,e,!1),e+4},s.prototype.writeInt8=function(n,e,r){return n=+n,e>>>=0,r||W(this,n,e,1,127,-128),s.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[e]=n=n<0?255+n+1:n,e+1},s.prototype.writeInt16LE=function(n,e,r){return n=+n,e>>>=0,r||W(this,n,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=n,this[e+1]=n>>>8):b(this,n,e,!0),e+2},s.prototype.writeInt16BE=function(n,e,r){return n=+n,e>>>=0,r||W(this,n,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=n):b(this,n,e,!1),e+2},s.prototype.writeInt32LE=function(n,e,r){return n=+n,e>>>=0,r||W(this,n,e,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[e]=n,this[e+1]=n>>>8,this[e+2]=n>>>16,this[e+3]=n>>>24):y(this,n,e,!0),e+4},s.prototype.writeInt32BE=function(n,e,r){return n=+n,e>>>=0,r||W(this,n,e,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),s.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=n):y(this,n,e,!1),e+4},s.prototype.writeFloatLE=function(n,e,r){return B(this,n,e,!0,r)},s.prototype.writeFloatBE=function(n,e,r){return B(this,n,e,!1,r)},s.prototype.writeDoubleLE=function(n,e,r){return p(this,n,e,!0,r)},s.prototype.writeDoubleBE=function(n,e,r){return p(this,n,e,!1,r)},s.prototype.copy=function(n,e,r,t){var a,c,i,a=this;if(e=e||0,(t=t||0===t?t:this.length)!==(r=r||0)&&0!==n.length&&0!==a.length){if(t<r)throw new TypeError("sourceEnd < sourceStart");if(e<0||e>=n.length)throw new TypeError("targetStart out of bounds");if(r<0||r>=a.length)throw new TypeError("sourceStart out of bounds");if(t<0||t>a.length)throw new TypeError("sourceEnd out of bounds");if(t>this.length&&(t=this.length),(c=(t=n.length-e<t-r?n.length-e+r:t)-r)<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i<c;i++)n[i+e]=this[i+r];else n.Ydn(this.subarray(r,r+c),e)}},s.prototype.fill=function(n,e,r){var t,a,c;if(n=n||0,(r=r||this.length)<(e=e||0))throw new TypeError("end < start");if(r!==e&&0!==this.length){if(e<0||e>=this.length)throw new TypeError("start out of bounds");if(r<0||r>this.length)throw new TypeError("end out of bounds");if("number"==typeof n)for(t=e;t<r;t++)this[t]=n;else for(c=(a=T(n.toString())).length,t=e;t<r;t++)this[t]=a[t%c];return this}},s.prototype.toArrayBuffer=function(){var n,e,r;if("undefined"==typeof Uint8Array)throw new TypeError("Buffer.toArrayBuffer not supported in this browser");if(s.TYPED_ARRAY_SUPPORT)return new s(this).buffer;for(e=0,r=(n=new Uint8Array(this.length)).length;e<r;e+=1)n[e]=this[e];return n.buffer},e=s.prototype,s.Zen=function(n){return n.constructor=s,n.bin=!0,n.ev=n.get,n.Ydn=n.set,n.get=e.get,n.set=e.set,n.write=e.write,n.toString=e.toString,n.toLocaleString=e.toString,n.toJSON=e.toJSON,n.equals=e.equals,n.compare=e.compare,n.copy=e.copy,n.slice=e.slice,n.readUInt8=e.readUInt8,n.readUInt16LE=e.readUInt16LE,n.readUInt16BE=e.readUInt16BE,n.readUInt32LE=e.readUInt32LE,n.readUInt32BE=e.readUInt32BE,n.readInt8=e.readInt8,n.readInt16LE=e.readInt16LE,n.readInt16BE=e.readInt16BE,n.readInt32LE=e.readInt32LE,n.readInt32BE=e.readInt32BE,n.readFloatLE=e.readFloatLE,n.readFloatBE=e.readFloatBE,n.readDoubleLE=e.readDoubleLE,n.readDoubleBE=e.readDoubleBE,n.writeUInt8=e.writeUInt8,n.writeUInt16LE=e.writeUInt16LE,n.writeUInt16BE=e.writeUInt16BE,n.writeUInt32LE=e.writeUInt32LE,n.writeUInt32BE=e.writeUInt32BE,n.writeInt8=e.writeInt8,n.writeInt16LE=e.writeInt16LE,n.writeInt16BE=e.writeInt16BE,n.writeInt32LE=e.writeInt32LE,n.writeInt32BE=e.writeInt32BE,n.writeFloatLE=e.writeFloatLE,n.writeFloatBE=e.writeFloatBE,n.writeDoubleLE=e.writeDoubleLE,n.writeDoubleBE=e.writeDoubleBE,n.fill=e.fill,n.inspect=e.inspect,n.toArrayBuffer=e.toArrayBuffer,n},a=/[^+\/0-9A-z]/g},{"base64-js":4,ieee754:5,"is-array":6}],4:[function(n,e,r){var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(n){"use strict";var s,e,r,t,a,c;function X(n){var n=n.charCodeAt(0);return n===e?62:n===r?63:n<t?-1:n<t+10?n-t+26+26:n<c+26?n-c:n<a+26?n-a+26:void 0}function i(n){var e,r,t,a,c,i,c,o;if(0<n.length%4)throw new Error("Invalid string. Length must be a multiple of 4");function u(n){i[o++]=n}for(c=n.length,c="="===n.charAt(c-2)?2:"="===n.charAt(c-1)?1:0,i=new s(3*n.length/4-c),t=0<c?n.length-4:n.length,r=e=o=0;e<t;e+=4,r+=3)u((16711680&(a=X(n.charAt(e))<<18|X(n.charAt(e+1))<<12|X(n.charAt(e+2))<<6|X(n.charAt(e+3))))>>16),u((65280&a)>>8),u(255&a);return 2==c?u(255&(a=X(n.charAt(e))<<2|X(n.charAt(e+1))>>4)):1==c&&(u((a=X(n.charAt(e))<<10|X(n.charAt(e+1))<<4|X(n.charAt(e+2))>>2)>>8&255),u(255&a)),i}function o(n){var e,r=n.length%3,t="",a,c;function i(n){return u.charAt(n)}function o(n){return i(n>>18&63)+i(n>>12&63)+i(n>>6&63)+i(63&n)}for(e=0,c=n.length-r;e<c;e+=3)t+=o(a=(n[e]<<16)+(n[e+1]<<8)+n[e+2]);switch(r){case 1:t=(t+=i((a=n[n.length-1])>>2))+i(a<<4&63)+"==";break;case 2:t=(t=(t+=i((a=(n[n.length-2]<<8)+n[n.length-1])>>10))+i(a>>4&63))+i(a<<2&63)+"="}return t}s="undefined"!=typeof Uint8Array?Uint8Array:Array,e="+".charCodeAt(0),r="/".charCodeAt(0),t="0".charCodeAt(0),a="a".charCodeAt(0),c="A".charCodeAt(0),n.toByteArray=i,n.fromByteArray=o}(void 0===r?this.base64js={}:r)},{}],5:[function(n,e,r){r.read=function(n,e,r,t,a){var c,i,o=8*a-t-1,u=(1<<o)-1,s=u>>1,X=-7,P=r?a-1:0,K=r?-1:1,a=n[e+P];for(P+=K,c=a&(1<<-X)-1,a>>=-X,X+=o;0<X;c=256*c+n[e+P],P+=K,X-=8);for(i=c&(1<<-X)-1,c>>=-X,X+=t;0<X;i=256*i+n[e+P],P+=K,X-=8);if(0===c)c=1-s;else{if(c===u)return i?NaN:1/0*(a?-1:1);i+=Math.pow(2,t),c-=s}return(a?-1:1)*i*Math.pow(2,c-t)},r.write=function(n,e,r,t,a,c){var i,o,t,u=8*c-a-1,s=(1<<u)-1,X=s>>1,P=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,K=t?0:c-1,l=t?1:-1,c=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,i=s):(i=Math.floor(Math.log(e)/Math.LN2),e*(t=Math.pow(2,-i))<1&&(i--,t*=2),2<=(e+=1<=i+X?P/t:P*Math.pow(2,1-X))*t&&(i++,t/=2),s<=i+X?(o=0,i=s):1<=i+X?(o=(e*t-1)*Math.pow(2,a),i+=X):(o=e*Math.pow(2,X-1)*Math.pow(2,a),i=0));8<=a;n[r+K]=255&o,K+=l,o/=256,a-=8);for(i=i<<a|o,u+=a;0<u;n[r+K]=255&i,K+=l,i/=256,u-=8);n[r+K-l]|=128*c}},{}],6:[function(n,e,r){var t,a,t=Array.isArray,a=Object.prototype.toString;e.exports=t||function(n){return!!n&&"[object Array]"==a.call(n)}},{}],7:[function(n,e,r){function t(){this._events=this._events||{},this.Min=this.Min||void 0}function o(n){return"function"==typeof n}function a(n){return"number"==typeof n}function u(n){return"object"==typeof n&&null!==n}function s(n){return void 0===n}((e.exports=t).EventEmitter=t).prototype._events=void 0,t.prototype.Min=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(n){if(!a(n)||n<0||isNaN(n))throw TypeError("n must be a positive number");return this.Min=n,this},t.prototype.emit=function(n){var e,r,t,a,c,i;if(this._events||(this._events={}),"error"===n&&(!this._events.error||u(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;throw TypeError('Uncaught, unspecified "error" event.')}if(s(r=this._events[n]))return!1;if(o(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(t=arguments.length,a=new Array(t-1),c=1;c<t;c++)a[c-1]=arguments[c];r.apply(this,a)}else if(u(r)){for(t=arguments.length,a=new Array(t-1),c=1;c<t;c++)a[c-1]=arguments[c];for(t=(i=r.slice()).length,c=0;c<t;c++)i[c].apply(this,a)}return!0},t.prototype.on=t.prototype.addListener=function(n,e){var e;if(o(e))return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,o(e.listener)?e.listener:e),this._events[n]?u(this._events[n])?this._events[n].push(e):this._events[n]=[this._events[n],e]:this._events[n]=e,u(this._events[n])&&!this._events[n].warned&&(e=s(this.Min)?t.defaultMaxListeners:this.Min)&&0<e&&this._events[n].length>e&&(this._events[n].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),"function"==typeof console.trace)&&console.trace(),this;throw TypeError("listener must be a function")},t.prototype.once=function(n,e){var r;if(o(e))return r=!1,t.listener=e,this.on(n,t),this;throw TypeError("listener must be a function");function t(){this.removeListener(n,t),r||(r=!0,e.apply(this,arguments))}},t.prototype.removeListener=function(n,e){var r,t,a,c;if(!o(e))throw TypeError("listener must be a function");if(this._events&&this._events[n])if(a=(r=this._events[n]).length,t=-1,r===e||o(r.listener)&&r.listener===e)delete this._events[n],this._events.removeListener&&this.emit("removeListener",n,e);else if(u(r)){for(c=a;0<c--;)if(r[c]===e||r[c].listener&&r[c].listener===e){t=c;break}if(t<0)return this;1===r.length?(r.length=0,delete this._events[n]):r.splice(t,1),this._events.removeListener&&this.emit("removeListener",n,e)}return this},t.prototype.removeAllListeners=function(n){var e,r;if(this._events)if(this._events.removeListener)if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);this.removeAllListeners("removeListener"),this._events={}}else{if(o(r=this._events[n]))this.removeListener(n,r);else for(;r.length;)this.removeListener(n,r[r.length-1]);delete this._events[n]}else 0===arguments.length?this._events={}:this._events[n]&&delete this._events[n];return this},t.prototype.listeners=function(n){var n,n=this._events&&this._events[n]?o(this._events[n])?[this._events[n]]:this._events[n].slice():[];return n},t.listenerCount=function(n,e){var n,n=n._events&&n._events[e]?o(n._events[e])?1:n._events[e].length:0;return n}},{}],8:[function(n,e,r){"function"==typeof Object.create?e.exports=function n(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function n(e,r){e.super_=r;var t=function(){};t.prototype=r.prototype,e.prototype=new t,e.prototype.constructor=e}},{}],9:[function(n,e,r){e.exports=Array.isArray||function(n){return"[object Array]"==Object.prototype.toString.call(n)}},{}],10:[function(n,e,r){var e=e.exports={},t,a,c,i,o,u;function s(){}e.nextTick=(t="undefined"!=typeof window&&window.setImmediate,a="undefined"!=typeof window&&window.MutationObserver,c="undefined"!=typeof window&&window.postMessage&&window.addEventListener,t?function(n){return window.setImmediate(n)}:(i=[],a?(o=document.createElement("div"),(u=new MutationObserver(function(){var n=i.slice();i.length=0,n.forEach(function(n){n()})})).observe(o,{attributes:!0}),function n(e){i.length||o.setAttribute("yes","no"),i.push(e)}):c?(window.addEventListener("message",function(n){var e,r,e=n.source;e!==window&&null!==e||"process-tick"!==n.data||(n.stopPropagation(),0<i.length&&(r=i.shift())())},!0),function n(e){i.push(e),window.postMessage("process-tick","*")}):function n(e){setTimeout(e,0)})),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=s,e.addListener=s,e.once=s,e.off=s,e.removeListener=s,e.removeAllListeners=s,e.emit=s,e.binding=function(n){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(n){throw new Error("process.chdir is not supported")}},{}],11:[function(n,e,r){e.exports=n("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":12}],12:[function(u,s,n){!function(n){var e,r,t,a;function c(n){if(!(this instanceof c))return new c(n);t.call(this,n),a.call(this,n),n&&!1===n.readable&&(this.readable=!1),n&&!1===n.writable&&(this.writable=!1),this.allowHalfOpen=!0,n&&!1===n.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this.n0e.ended||n.nextTick(this.end.bind(this))}function o(n,e){for(var r=0,t=n.length;r<t;r++)e(n[r],r)}s.exports=c,e=Object.keys||function(n){var e,r,e=[];for(r in n)e.push(r);return e},(r=u("core-util-is")).inherits=u("inherits"),t=u("./_stream_readable"),a=u("./_stream_writable"),r.inherits(c,t),o(e(a.prototype),function(n){c.prototype[n]||(c.prototype[n]=a.prototype[n])})}.call(this,u("_process"))},{"./_stream_readable":14,"./_stream_writable":16,_process:10,"core-util-is":17,inherits:8}],13:[function(n,e,r){var t,e;function a(n){if(!(this instanceof a))return new a(n);t.call(this,n)}e.exports=a,t=n("./_stream_transform"),(e=n("core-util-is")).inherits=n("inherits"),e.inherits(a,t),a.prototype._transform=function(n,e,r){r(null,n)}},{"./_stream_transform":15,"core-util-is":17,inherits:8}],14:[function(O,w,n){!function(l){var m,P,f,c,n,t,r;function e(n,e){var r=(n=n||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!n.objectMode,this.defaultEncoding=n.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,n.encoding&&(t=t||O("string_decoder/").StringDecoder,this.decoder=new t(n.encoding),this.encoding=n.encoding)}function a(n){if(!(this instanceof a))return new a(n);this.e0e=new e(n,this),this.readable=!0,c.call(this)}function i(n,e,r,t,a){var c,i,c=X(e,r);return c?n.emit("error",c):null==r?(e.reading=!1,e.ended||K(n,e)):e.objectMode||r&&0<r.length?e.ended&&!a?(i=new Error("stream.push() after EOF"),n.emit("error",i)):e.endEmitted&&a?(i=new Error("stream.unshift() after end event"),n.emit("error",i)):(!e.decoder||a||t||(r=e.decoder.write(r)),e.length+=e.objectMode?1:r.length,a?e.buffer.unshift(r):(e.reading=!1,e.buffer.push(r)),e.needReadable&&d(n),g(n,e)):a||(e.reading=!1),o(e)}function o(n){return!n.ended&&(n.needReadable||n.length<n.highWaterMark||0===n.length)}function u(n){if(r<=n)n=r;else{n--;for(var e=1;e<32;e<<=1)n|=n>>e;n++}return n}function s(n,e){return 0===e.length&&e.ended?0:e.objectMode?0===n?0:1:null===n||isNaN(n)?(e.flowing&&e.buffer.length?e.buffer[0]:e).length:n<=0?0:(n>e.highWaterMark&&(e.highWaterMark=u(n)),n>e.length?e.ended?e.length:(e.needReadable=!0,0):n)}function X(n,e){var r=null;return r=P.isBuffer(e)||"string"==typeof e||null==e||n.objectMode?r:new TypeError("Invalid non-string/buffer chunk")}function K(n,e){var r;e.decoder&&!e.ended&&(r=e.decoder.end())&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length),e.ended=!0,(0<e.length?d:N)(n)}function d(n){var e=n.e0e;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?l.nextTick(function(){h(n)}):h(n))}function h(n){n.emit("readable")}function g(n,e){e.readingMore||(e.readingMore=!0,l.nextTick(function(){A(n,e)}))}function A(n,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(n.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function v(r){return function(){var n,e,n=this,e=r.e0e;e.awaitDrain--,0===e.awaitDrain&&C(r)}}function C(n){var a,c;function e(n,e,r){var t;!1===n.write(c)&&a.awaitDrain++}for((a=n.e0e).awaitDrain=0;a.pipesCount&&null!==(c=n.read());)if(1===a.pipesCount?e(a.pipes,0,null):B(a.pipes,e),n.emit("data",c),0<a.awaitDrain)return;0===a.pipesCount?(a.flowing=!1,0<f.listenerCount(n,"data")&&b(n)):a.ranOut=!0}function W(){this.e0e.ranOut&&(this.e0e.ranOut=!1,C(this))}function b(e,n){var r,t,a,r;if(e.e0e.flowing)throw new Error("Cannot switch to old mode now.");t=n||!1,a=!1,e.readable=!0,e.pipe=c.prototype.pipe,e.on=e.addListener=c.prototype.on,e.on("readable",function(){var n;for(a=!0;!t&&null!==(n=e.read());)e.emit("data",n);null===n&&(a=!1,e.e0e.needReadable=!0)}),e.pause=function(){t=!0,this.emit("pause")},e.resume=function(){t=!1,a?l.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function y(n,e){var r,t,a,e,c,i,o,u,s,X,r=e.buffer,t=e.length,a=!!e.decoder,e=!!e.objectMode;if(0===r.length)return null;if(0===t)c=null;else if(e)c=r.shift();else if(!n||t<=n)c=a?r.join(""):P.concat(r,t),r.length=0;else if(n<r[0].length)c=(i=r[0]).slice(0,n),r[0]=i.slice(n);else if(n===r[0].length)c=r.shift();else for(c=a?"":new P(n),u=o=0,s=r.length;u<s&&o<n;u++)i=r[0],X=Math.min(n-o,i.length),a?c+=i.slice(0,X):i.copy(c,o,0,X),X<i.length?r[0]=i.slice(X):r.shift(),o+=X;return c}function N(n){var e=n.e0e;if(0<e.length)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,l.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,n.readable=!1,n.emit("end"))}))}function B(n,e){for(var r=0,t=n.length;r<t;r++)e(n[r],r)}function p(n,e){for(var r=0,t=n.length;r<t;r++)if(n[r]===e)return r;return-1}w.exports=a,m=O("isarray"),P=O("buffer").Buffer,a.ReadableState=e,(f=O("events").EventEmitter).listenerCount||(f.listenerCount=function(n,e){return n.listeners(e).length}),c=O("stream"),(n=O("core-util-is")).inherits=O("inherits"),n.inherits(a,c),a.prototype.push=function(n,e){var r=this.e0e;return"string"!=typeof n||r.objectMode||(e=e||r.defaultEncoding)!==r.encoding&&(n=new P(n,e),e=""),i(this,r,n,e,!1)},a.prototype.unshift=function(n){var e;return i(this,this.e0e,n,"",!0)},a.prototype.setEncoding=function(n){t=t||O("string_decoder/").StringDecoder,this.e0e.decoder=new t(n),this.e0e.encoding=n},r=8388608,a.prototype.read=function(n){var e,r,t,a,e=this.e0e;return e.calledRead=!0,("number"!=typeof(r=n)||0<n)&&(e.emittedReadable=!1),0===n&&e.needReadable&&(e.length>=e.highWaterMark||e.ended)?(d(this),null):(0===(n=s(n,e))&&e.ended?(t=null,0<e.length&&e.decoder&&(t=y(n,e),e.length-=t.length),0===e.length&&N(this)):(a=e.needReadable,e.length-n<=e.highWaterMark&&(a=!0),(a=e.ended||e.reading?!1:a)&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),null===(t=0<(n=a&&!e.reading?s(r,e):n)?y(n,e):null)&&(e.needReadable=!0,n=0),e.length-=n,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&N(this)),t)},a.prototype._read=function(n){this.emit("error",new Error("not implemented"))},a.prototype.pipe=function(e,n){var r,t,a,n,c,r=this,t=this.e0e;switch(t.pipesCount){case 0:t.pipes=e;break;case 1:t.pipes=[t.pipes,e];break;default:t.pipes.push(e)}function i(n){n===r&&u()}function o(){e.end()}function u(){e.removeListener("close",X),e.removeListener("finish",P),e.removeListener("drain",c),e.removeListener("error",s),e.removeListener("unpipe",i),r.removeListener("end",o),r.removeListener("end",u),e.n0e&&!e.n0e.needDrain||c()}function s(n){K(),e.removeListener("error",s),0===f.listenerCount(e,"error")&&e.emit("error",n)}function X(){e.removeListener("finish",P),K()}function P(){e.removeListener("close",X),K()}function K(){r.unpipe(e)}return t.pipesCount+=1,n=(a=(!n||!1!==n.end)&&e!==l.stdout&&e!==l.stderr)?o:u,t.endEmitted?l.nextTick(n):r.once("end",n),e.on("unpipe",i),c=v(r),e.on("drain",c),e._events&&e._events.error?m(e._events.error)?e._events.error.unshift(s):e._events.error=[s,e._events.error]:e.on("error",s),e.once("close",X),e.once("finish",P),e.emit("pipe",r),t.flowing||(this.on("readable",W),t.flowing=!0,l.nextTick(function(){C(r)})),e},a.prototype.unpipe=function(n){var e,r,t,a,e=this.e0e;if(0!==e.pipesCount)if(1===e.pipesCount)n&&n!==e.pipes||(n=n||e.pipes,e.pipes=null,e.pipesCount=0,this.removeListener("readable",W),e.flowing=!1,n&&n.emit("unpipe",this));else if(n)-1!==(a=p(e.pipes,n))&&(e.pipes.splice(a,1),--e.pipesCount,1===e.pipesCount&&(e.pipes=e.pipes[0]),n.emit("unpipe",this));else for(r=e.pipes,t=e.pipesCount,e.pipes=null,e.pipesCount=0,this.removeListener("readable",W),e.flowing=!1,a=0;a<t;a++)r[a].emit("unpipe",this);return this},a.prototype.addListener=a.prototype.on=function(n,e){var e,n,e=c.prototype.on.call(this,n,e);return"data"!==n||this.e0e.flowing||b(this),"readable"===n&&this.readable&&!(n=this.e0e).readableListening&&(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&d(this,n):this.read(0)),e},a.prototype.resume=function(){b(this),this.read(0),this.emit("resume")},a.prototype.pause=function(){b(this,!0),this.emit("pause")},a.prototype.wrap=function(r){var t,a,c,n,e,t=this.e0e,a=!1,c=this;for(n in r.on("end",function(){var n;t.decoder&&!t.ended&&(n=t.decoder.end())&&n.length&&c.push(n),c.push(null)}),r.on("data",function(n){var e;t.decoder&&(n=t.decoder.write(n)),t.objectMode&&null==n||(t.objectMode||n&&n.length)&&!c.push(n)&&(a=!0,r.pause())}),r)"function"==typeof r[n]&&void 0===this[n]&&(this[n]=function(n){return function(){return r[n].apply(r,arguments)}}(n));return B(e=["error","close","destroy","pause","resume"],function(n){r.on(n,c.emit.bind(c,n))}),c._read=function(n){a&&(a=!1,r.resume())},c},a.r0e=y}.call(this,O("_process"))},{_process:10,buffer:3,"core-util-is":17,events:7,inherits:8,isarray:9,stream:22,"string_decoder/":23}],15:[function(n,e,r){var t,e;function a(n,r){this.afterTransform=function(n,e){return c(r,n,e)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function c(n,e,r){var t,a,t,t=n.t0e;if(t.transforming=!1,!(a=t.writecb))return n.emit("error",new Error("no writecb in Transform class"));t.writechunk=null,(t.writecb=null)!=r&&n.push(r),a&&a(e),(t=n.e0e).reading=!1,(t.needReadable||t.length<t.highWaterMark)&&n._read(t.highWaterMark)}function i(n){var e,r;if(!(this instanceof i))return new i(n);t.call(this,n),e=this.t0e=new a(n,this),(r=this).e0e.needReadable=!0,this.e0e.sync=!1,this.once("finish",function(){"function"==typeof this.a0e?this.a0e(function(n){o(r,n)}):o(r)})}function o(n,e){var e,r,t;if(e)return n.emit("error",e);if(e=n.n0e,r=n.e0e,t=n.t0e,e.length)throw new Error("calling transform done when ws.length != 0");if(t.transforming)throw new Error("calling transform done when still transforming");n.push(null)}e.exports=i,t=n("./_stream_duplex"),(e=n("core-util-is")).inherits=n("inherits"),e.inherits(i,t),i.prototype.push=function(n,e){return this.t0e.needTransform=!1,t.prototype.push.call(this,n,e)},i.prototype._transform=function(n,e,r){throw new Error("not implemented")},i.prototype._write=function(n,e,r){var t,r,t=this.t0e;t.writecb=r,t.writechunk=n,t.writeencoding=e,!t.transforming&&(r=this.e0e,t.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)},i.prototype._read=function(n){var e=this.t0e;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0}},{"./_stream_duplex":12,"core-util-is":17,inherits:8}],16:[function(W,e,n){!function(i){var o,n,r;function u(n,e,r){this.chunk=n,this.encoding=e,this.callback=r}function t(n,e){var r,r,r=(n=n||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!n.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,r=(this.finished=!1)===n.decodeStrings,this.decodeStrings=!r,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){f(e,n)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function a(n){var e=W("./_stream_duplex");if(!(this instanceof a||this instanceof e))return new a(n);this.n0e=new t(n,this),this.writable=!0,r.call(this)}function c(n,e,r){var t=new Error("write after end");n.emit("error",t),i.nextTick(function(){r(t)})}function s(n,e,r,t){var a,c,a=!0;return o.isBuffer(r)||"string"==typeof r||null==r||e.objectMode||(c=new TypeError("Invalid non-string/buffer chunk"),n.emit("error",c),i.nextTick(function(){t(c)}),a=!1),a}function X(n,e,r){return e=n.objectMode||!1===n.decodeStrings||"string"!=typeof e?e:new o(e,r)}function P(n,e,r,t,a){var c,i;return r=X(e,r,t),o.isBuffer(r)&&(t="buffer"),c=e.objectMode?1:r.length,e.length+=c,(i=e.length<e.highWaterMark)||(e.needDrain=!0),e.writing?e.buffer.push(new u(r,t,a)):K(n,e,c,r,t,a),i}function K(n,e,r,t,a,c){e.writelen=r,e.writecb=c,e.writing=!0,e.sync=!0,n._write(t,a,e.onwrite),e.sync=!1}function l(n,e,r,t,a){r?i.nextTick(function(){a(t)}):a(t),n.n0e.errorEmitted=!0,n.emit("error",t)}function m(n){n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0}function f(n,e){var r,t,a,c,r=n.n0e,t=r.sync,a=r.writecb;m(r),e?l(n,r,t,e,a):((c=A(n,r))||r.bufferProcessing||!r.buffer.length||g(n,r),t?i.nextTick(function(){d(n,r,c,a)}):d(n,r,c,a))}function d(n,e,r,t){r||h(n,e),t(),r&&v(n,e)}function h(n,e){0===e.length&&e.needDrain&&(e.needDrain=!1,n.emit("drain"))}function g(n,e){var r,t,a,c,t,i;for(e.bufferProcessing=!0,r=0;r<e.buffer.length;r++)if(a=(t=e.buffer[r]).chunk,c=t.encoding,t=t.callback,K(n,e,i=e.objectMode?1:a.length,a,c,t),e.writing){r++;break}e.bufferProcessing=!1,r<e.buffer.length?e.buffer=e.buffer.slice(r):e.buffer.length=0}function A(n,e){return e.ending&&0===e.length&&!e.finished&&!e.writing}function v(n,e){var r=A(n,e);r&&(e.finished=!0,n.emit("finish"))}function C(n,e,r){e.ending=!0,v(n,e),r&&(e.finished?i.nextTick(r):n.once("finish",r)),e.ended=!0}e.exports=a,o=W("buffer").Buffer,a.WritableState=t,(n=W("core-util-is")).inherits=W("inherits"),r=W("stream"),n.inherits(a,r),a.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},a.prototype.write=function(n,e,r){var t,a,t=this.n0e,a=!1;return"function"==typeof e&&(r=e,e=null),e=o.isBuffer(n)?"buffer":e||t.defaultEncoding,"function"!=typeof r&&(r=function(){}),t.ended?c(this,t,r):s(this,t,n,r)&&(a=P(this,t,n,e,r)),a},a.prototype._write=function(n,e,r){r(new Error("not implemented"))},a.prototype.end=function(n,e,r){var t=this.n0e;"function"==typeof n?(r=n,e=n=null):"function"==typeof e&&(r=e,e=null),null!=n&&this.write(n,e),t.ending||t.finished||C(this,t,r)}}.call(this,W("_process"))},{"./_stream_duplex":12,_process:10,buffer:3,"core-util-is":17,inherits:8,stream:22}],17:[function(n,e,h){!function(e){function n(n){return Array.isArray(n)}function r(n){return"boolean"==typeof n}function t(n){return null===n}function a(n){return null==n}function c(n){return"number"==typeof n}function i(n){return"string"==typeof n}function o(n){return"symbol"==typeof n}function u(n){return void 0===n}function s(n){return X(n)&&"[object RegExp]"===d(n)}function X(n){return"object"==typeof n&&null!==n}function P(n){return X(n)&&"[object Date]"===d(n)}function K(n){return X(n)&&("[object Error]"===d(n)||n instanceof Error)}function l(n){return"function"==typeof n}function m(n){return null===n||"boolean"==typeof n||"number"==typeof n||"string"==typeof n||"symbol"==typeof n||void 0===n}function f(n){return e.isBuffer(n)}function d(n){return Object.prototype.toString.call(n)}h.isArray=n,h.isBoolean=r,h.isNull=t,h.isNullOrUndefined=a,h.isNumber=c,h.isString=i,h.isSymbol=o,h.isUndefined=u,h.isRegExp=s,h.isObject=X,h.isDate=P,h.isError=K,h.isFunction=l,h.isPrimitive=m,h.isBuffer=f}.call(this,n("buffer").Buffer)},{buffer:3}],18:[function(n,e,r){e.exports=n("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":13}],19:[function(n,e,r){var t=n("stream");(r=e.exports=n("./lib/_stream_readable.js")).Stream=t,(r.Readable=r).Writable=n("./lib/_stream_writable.js"),r.Duplex=n("./lib/_stream_duplex.js"),r.Transform=n("./lib/_stream_transform.js"),r.PassThrough=n("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":12,"./lib/_stream_passthrough.js":13,"./lib/_stream_readable.js":14,"./lib/_stream_transform.js":15,"./lib/_stream_writable.js":16,stream:22}],20:[function(n,e,r){e.exports=n("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":15}],21:[function(n,e,r){e.exports=n("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":16}],22:[function(n,e,r){var X,t;function a(){X.call(this)}e.exports=a,X=n("events").EventEmitter,(t=n("inherits"))(a,X),a.Readable=n("readable-stream/readable.js"),a.Writable=n("readable-stream/writable.js"),a.Duplex=n("readable-stream/duplex.js"),a.Transform=n("readable-stream/transform.js"),a.PassThrough=n("readable-stream/passthrough.js"),(a.Stream=a).prototype.pipe=function(e,n){var r,t;function a(n){e.writable&&!1===e.write(n)&&r.pause&&r.pause()}function c(){r.readable&&r.resume&&r.resume()}function i(){t||(t=!0,e.end())}function o(){t||(t=!0,"function"==typeof e.destroy&&e.destroy())}function u(n){if(s(),0===X.listenerCount(this,"error"))throw n}function s(){r.removeListener("data",a),e.removeListener("drain",c),r.removeListener("end",i),r.removeListener("close",o),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",s),r.removeListener("close",s),e.removeListener("close",s)}return(r=this).on("data",a),e.on("drain",c),e._isStdio||n&&!1===n.end||(r.on("end",i),r.on("close",o)),t=!1,r.on("error",u),e.on("error",u),r.on("end",s),r.on("close",s),e.on("close",s),e.emit("pipe",r),e}},{events:7,inherits:8,"readable-stream/duplex.js":11,"readable-stream/passthrough.js":18,"readable-stream/readable.js":19,"readable-stream/transform.js":20,"readable-stream/writable.js":21}],23:[function(n,e,r){var t,a,n;function c(n){if(n&&!a(n))throw new Error("Unknown encoding: "+n)}function i(n){return n.toString(this.encoding)}function o(n){this.charReceived=n.length%2,this.charLength=this.charReceived?2:0}function u(n){this.charReceived=n.length%3,this.charLength=this.charReceived?3:0}t=n("buffer").Buffer,a=t.isEncoding||function(n){switch(n&&n.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},(n=r.StringDecoder=function(n){switch(this.encoding=(n||"utf8").toLowerCase().replace(/[-_]/,""),c(n),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=i)}this.charBuffer=new t(6),this.charReceived=0,this.charLength=0}).prototype.write=function(n){for(var e,r,t,a,c,e="";this.charLength;){if(r=n.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:n.length,n.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(n=n.slice(r,n.length),!(55296<=(t=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))&&t<=56319)){if((this.charReceived=this.charLength=0)===n.length)return e;break}this.charLength+=this.surrogateSize,e=""}return this.detectIncompleteChar(n),a=n.length,this.charLength&&(n.copy(this.charBuffer,0,n.length-this.charReceived,a),a-=this.charReceived),a=(e+=n.toString(this.encoding,0,a)).length-1,55296<=(t=e.charCodeAt(a))&&t<=56319?(c=this.surrogateSize,this.charLength+=c,this.charReceived+=c,this.charBuffer.copy(this.charBuffer,c,0,c),n.copy(this.charBuffer,0,0,c),e.substring(0,a)):e},n.prototype.detectIncompleteChar=function(n){for(var e,r,e=3<=n.length?3:n.length;0<e;e--){if(r=n[n.length-e],1==e&&r>>5==6){this.charLength=2;break}if(e<=2&&r>>4==14){this.charLength=3;break}if(e<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=e},n.prototype.end=function(n){var e,n,r,t,e="";return n&&n.length&&(e=this.write(n)),this.charReceived&&(n=this.charReceived,r=this.charBuffer,t=this.encoding,e+=r.slice(0,n).toString(t)),e}},{buffer:3}],24:[function(n,e,r){e.exports=function n(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],25:[function(Y,n,R){!function(a,c){var o,n,t,r;function u(n,e){var r={seen:[],stylize:s};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),g(e)?r.showHidden=e:e&&R.Dh(r,e),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),P(r,n,r.depth)}function i(n,e){var e=u.styles[e];return e?"\x1b["+u.colors[e][0]+"m"+n+"\x1b["+u.colors[e][1]+"m":n}function s(n,e){return n}function X(n){var r={};return n.forEach(function(n,e){r[n]=!0}),r}function P(e,r,t){var n,n,n,a,c,c,i,o,u,n;if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==R.inspect&&(!r.constructor||r.constructor.prototype!==r))return n=C(n=r.inspect(t,e))?n:P(e,n,t);if(n=K(e,r))return n;if(n=Object.keys(r),a=X(n),e.showHidden&&(n=Object.getOwnPropertyNames(r)),p(r)&&(0<=n.indexOf("message")||0<=n.indexOf("description")))return l(r);if(0===n.length){if(O(r))return c=r.name?": "+r.name:"",e.stylize("[Function"+c+"]","special");if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(B(r))return e.stylize(Date.prototype.toString.call(r),"date");if(p(r))return l(r)}return c="",i=!1,o=["{","}"],h(r)&&(i=!0,o=["[","]"]),O(r)&&(c=" [Function"+(u=r.name?": "+r.name:"")+"]"),y(r)&&(c=" "+RegExp.prototype.toString.call(r)),B(r)&&(c=" "+Date.prototype.toUTCString.call(r)),p(r)&&(c=" "+l(r)),0!==n.length||i&&0!=r.length?t<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),n=i?m(e,r,t,a,n):n.map(function(n){return f(e,r,t,a,n,i)}),e.seen.pop(),d(n,c,o)):o[0]+c+o[1]}function K(n,e){var r;return b(e)?n.stylize("undefined","undefined"):C(e)?(r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",n.stylize(r,"string")):v(e)?n.stylize(""+e,"number"):g(e)?n.stylize(""+e,"boolean"):A(e)?n.stylize("null","null"):void 0}function l(n){return"["+Error.prototype.toString.call(n)+"]"}function m(e,r,t,a,n){for(var c,i,o,c=[],i=0,o=r.length;i<o;++i)U(r,String(i))?c.push(f(e,r,t,a,String(i),!0)):c.push("");return n.forEach(function(n){n.match(/^\d+$/)||c.push(f(e,r,t,a,n,!0))}),c}function f(n,e,r,t,a,c){var i,o,e,e=Object.getOwnPropertyDescriptor(e,a)||{value:e[a]};if(e.get?o=e.set?n.stylize("[Getter/Setter]","special"):n.stylize("[Getter]","special"):e.set&&(o=n.stylize("[Setter]","special")),U(t,a)||(i="["+a+"]"),o||(n.seen.indexOf(e.value)<0?-1<(o=A(r)?P(n,e.value,null):P(n,e.value,r-1)).indexOf("\n")&&(o=c?o.split("\n").map(function(n){return" "+n}).join("\n").substr(2):"\n"+o.split("\n").map(function(n){return" "+n}).join("\n")):o=n.stylize("[Circular]","special")),b(i)){if(c&&a.match(/^\d+$/))return o;i=(i=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),n.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),n.stylize(i,"string"))}return i+": "+o}function d(n,e,r){var t,a,t=0,a;return 60<n.reduce(function(n,e){return t++,0<=e.indexOf("\n")&&t++,n+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)?r[0]+(""===e?"":e+"\n ")+" "+n.join(",\n ")+" "+r[1]:r[0]+e+" "+n.join(", ")+" "+r[1]}function h(n){return Array.isArray(n)}function g(n){return"boolean"==typeof n}function A(n){return null===n}function e(n){return null==n}function v(n){return"number"==typeof n}function C(n){return"string"==typeof n}function W(n){return"symbol"==typeof n}function b(n){return void 0===n}function y(n){return N(n)&&"[object RegExp]"===k(n)}function N(n){return"object"==typeof n&&null!==n}function B(n){return N(n)&&"[object Date]"===k(n)}function p(n){return N(n)&&("[object Error]"===k(n)||n instanceof Error)}function O(n){return"function"==typeof n}function w(n){return null===n||"boolean"==typeof n||"number"==typeof n||"string"==typeof n||"symbol"==typeof n||void 0===n}function k(n){return Object.prototype.toString.call(n)}function x(n){return n<10?"0"+n.toString(10):n.toString(10)}function T(){var n,e,n=new Date,e=[x(n.getHours()),x(n.getMinutes()),x(n.getSeconds())].join(":");return[n.getDate(),r[n.getMonth()],e].join(" ")}function U(n,e){return Object.prototype.hasOwnProperty.call(n,e)}o=/%[sdj%]/g,R.format=function(n){var e,r,t,a,c,i;if(!C(n)){for(e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(" ")}for(r=1,a=(t=arguments).length,c=String(n).replace(o,function(n){if("%%"===n)return"%";if(a<=r)return n;switch(n){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}default:return n}}),i=t[r];r<a;i=t[++r])A(i)||!N(i)?c+=" "+i:c+=" "+u(i);return c},R.deprecate=function(n,e){var r;return b(c.process)?function(){return R.deprecate(n,e).apply(this,arguments)}:!0===a.noDeprecation?n:(r=!1,t);function t(){if(!r){if(a.throwDeprecation)throw new Error(e);a.traceDeprecation?console.trace(e):console.error(e),r=!0}return n.apply(this,arguments)}},n={},R.debuglog=function(e){var r;return b(t)&&(t=a.env.NODE_DEBUG||""),e=e.toUpperCase(),n[e]||(new RegExp("\\b"+e+"\\b","i").test(t)?(r=a.pid,n[e]=function(){var n=R.format.apply(R,arguments);console.error("%s %d: %s",e,r,n)}):n[e]=function(){}),n[e]},(R.inspect=u).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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},R.isArray=h,R.isBoolean=g,R.isNull=A,R.isNullOrUndefined=e,R.isNumber=v,R.isString=C,R.isSymbol=W,R.isUndefined=b,R.isRegExp=y,R.isObject=N,R.isDate=B,R.isError=p,R.isFunction=O,R.isPrimitive=w,R.isBuffer=Y("./support/isBuffer"),r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],R.log=function(){console.log("%s - %s",T(),R.format.apply(R,arguments))},R.inherits=Y("inherits"),R.Dh=function(n,e){var r,t;if(e&&N(e))for(t=(r=Object.keys(e)).length;t--;)n[r[t]]=e[r[t]];return n}}.call(this,Y("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":24,_process:10,inherits:8}]},{},[2])(2)},n.exports