!function(){var t={187:function(t){"use strict";var r,i="object"==typeof Reflect?Reflect:null,p=i&&"function"==typeof i.apply?i.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var y=Number.isNaN||function(t){return t!=t};function EventEmitter(){EventEmitter.init.call(this)}t.exports=EventEmitter,t.exports.once=function(t,r){return new Promise(function(i,p){function errorListener(i){t.removeListener(r,resolver),p(i)}function resolver(){"function"==typeof t.removeListener&&t.removeListener("error",errorListener),i([].slice.call(arguments))}eventTargetAgnosticAddListener(t,r,resolver,{once:!0}),"error"!==r&&"function"==typeof t.on&&eventTargetAgnosticAddListener(t,"error",errorListener,{once:!0})})},EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var b=10;function checkListener(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function _getMaxListeners(t){return void 0===t._maxListeners?EventEmitter.defaultMaxListeners:t._maxListeners}function _addListener(t,r,i,p){if(checkListener(i),void 0===(b=t._events)?(b=t._events=Object.create(null),t._eventsCount=0):(void 0!==b.newListener&&(t.emit("newListener",r,i.listener?i.listener:i),b=t._events),_=b[r]),void 0===_)_=b[r]=i,++t._eventsCount;else if("function"==typeof _?_=b[r]=p?[i,_]:[_,i]:p?_.unshift(i):_.push(i),(y=_getMaxListeners(t))>0&&_.length>y&&!_.warned){_.warned=!0;var y,b,_,m=Error("Possible EventEmitter memory leak detected. "+_.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");m.name="MaxListenersExceededWarning",m.emitter=t,m.type=r,m.count=_.length,console&&console.warn&&console.warn(m)}return t}function onceWrapper(){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 _onceWrap(t,r,i){var p={fired:!1,wrapFn:void 0,target:t,type:r,listener:i},y=onceWrapper.bind(p);return y.listener=i,p.wrapFn=y,y}function _listeners(t,r,i){var p=t._events;if(void 0===p)return[];var y=p[r];return void 0===y?[]:"function"==typeof y?i?[y.listener||y]:[y]:i?function(t){for(var r=Array(t.length),i=0;i0&&(_=r[0]),_ instanceof Error)throw _;var _,m=Error("Unhandled error."+(_?" ("+_.message+")":""));throw m.context=_,m}var w=b[t];if(void 0===w)return!1;if("function"==typeof w)p(w,this,r);else for(var S=w.length,A=arrayClone(w,S),i=0;i=0;b--)if(i[b]===r||i[b].listener===r){_=i[b].listener,y=b;break}if(y<0)return this;0===y?i.shift():function(t,r){for(;r+1=0;p--)this.removeListener(t,r[p]);return this},EventEmitter.prototype.listeners=function(t){return _listeners(this,t,!0)},EventEmitter.prototype.rawListeners=function(t){return _listeners(this,t,!1)},EventEmitter.listenerCount=function(t,r){return"function"==typeof t.listenerCount?t.listenerCount(r):listenerCount.call(t,r)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},105:function(t,r,i){"use strict";var p=i(876).Buffer;let{PassThrough:y}=i(681);t.exports=t=>{t={...t};let{array:r}=t,{encoding:i}=t,b="buffer"===i,_=!1;r?_=!(i||b):i=i||"utf8",b&&(i=null);let m=new y({objectMode:_});i&&m.setEncoding(i);let w=0,S=[];return m.on("data",t=>{S.push(t),_?w=S.length:w+=t.length}),m.getBufferedValue=()=>r?S:b?p.concat(S,w):S.join(""),m.getBufferedLength=()=>w,m}},31:function(t,r,i){"use strict";let{constants:p}=i(876),y=i(681),{promisify:b}=i(720),_=i(105),m=b(y.pipeline);let MaxBufferError=class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function getStream(t,r){if(!t)throw Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:i}=r,y=_(r);return await new Promise((r,b)=>{let rejectPromise=t=>{t&&y.getBufferedLength()<=p.MAX_LENGTH&&(t.bufferedData=y.getBufferedValue()),b(t)};(async()=>{try{await m(t,y),r()}catch(t){rejectPromise(t)}})(),y.on("data",()=>{y.getBufferedLength()>i&&rejectPromise(new MaxBufferError)})}),y.getBufferedValue()}t.exports=getStream,t.exports.buffer=(t,r)=>getStream(t,{...r,encoding:"buffer"}),t.exports.array=(t,r)=>getStream(t,{...r,array:!0}),t.exports.MaxBufferError=MaxBufferError},454:function(t,r,i){"use strict";var p,y;t.exports=(null==(p=i.g.process)?void 0:p.env)&&"object"==typeof(null==(y=i.g.process)?void 0:y.env)?i.g.process:i(663)},876:function(t){!function(){var r={675:function(t,r){"use strict";r.byteLength=function(t){var r=getLens(t),i=r[0],p=r[1];return(i+p)*3/4-p},r.toByteArray=function(t){var r,i,b=getLens(t),_=b[0],m=b[1],w=new y((_+m)*3/4-m),S=0,A=m>0?_-4:_;for(i=0;i>16&255,w[S++]=r>>8&255,w[S++]=255&r;return 2===m&&(r=p[t.charCodeAt(i)]<<2|p[t.charCodeAt(i+1)]>>4,w[S++]=255&r),1===m&&(r=p[t.charCodeAt(i)]<<10|p[t.charCodeAt(i+1)]<<4|p[t.charCodeAt(i+2)]>>2,w[S++]=r>>8&255,w[S++]=255&r),w},r.fromByteArray=function(t){for(var r,p=t.length,y=p%3,b=[],_=0,m=p-y;_>18&63]+i[y>>12&63]+i[y>>6&63]+i[63&y]);return b.join("")}(t,_,_+16383>m?m:_+16383));return 1===y?b.push(i[(r=t[p-1])>>2]+i[r<<4&63]+"=="):2===y&&b.push(i[(r=(t[p-2]<<8)+t[p-1])>>10]+i[r>>4&63]+i[r<<2&63]+"="),b.join("")};for(var i=[],p=[],y="undefined"!=typeof Uint8Array?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_=0,m=b.length;_0)throw Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");-1===i&&(i=r);var p=i===r?0:4-i%4;return[i,p]}p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63},72:function(t,r,i){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var p=i(675),y=i(783),b="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,Buffer.prototype),r}function Buffer(t,r,i){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(t)}return from(t,r,i)}function from(t,r,i){if("string"==typeof t)return function(t,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!Buffer.isEncoding(r))throw TypeError("Unknown encoding: "+r);var i=0|byteLength(t,r),p=createBuffer(i),y=p.write(t,r);return y!==i&&(p=p.slice(0,y)),p}(t,r);if(ArrayBuffer.isView(t))return fromArrayLike(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(isInstance(t,ArrayBuffer)||t&&isInstance(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(t,SharedArrayBuffer)||t&&isInstance(t.buffer,SharedArrayBuffer)))return function(t,r,i){var p;if(r<0||t.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function byteLength(t,r){if(Buffer.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||isInstance(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,p=arguments.length>2&&!0===arguments[2];if(!p&&0===i)return 0;for(var y=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return utf8ToBytes(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return base64ToBytes(t).length;default:if(y)return p?-1:utf8ToBytes(t).length;r=(""+r).toLowerCase(),y=!0}}function slowToString(t,r,i){var y,b,_=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,i){var p=t.length;(!r||r<0)&&(r=0),(!i||i<0||i>p)&&(i=p);for(var y="",b=r;b2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),(b=i=+i)!=b&&(i=y?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(y)return -1;i=t.length-1}else if(i<0){if(!y)return -1;i=0}if("string"==typeof r&&(r=Buffer.from(r,p)),Buffer.isBuffer(r))return 0===r.length?-1:arrayIndexOf(t,r,i,p,y);if("number"==typeof r)return(r&=255,"function"==typeof Uint8Array.prototype.indexOf)?y?Uint8Array.prototype.indexOf.call(t,r,i):Uint8Array.prototype.lastIndexOf.call(t,r,i):arrayIndexOf(t,[r],i,p,y);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(t,r,i,p,y){var b,_=1,m=t.length,w=r.length;if(void 0!==p&&("ucs2"===(p=String(p).toLowerCase())||"ucs-2"===p||"utf16le"===p||"utf-16le"===p)){if(t.length<2||r.length<2)return -1;_=2,m/=2,w/=2,i/=2}function read(t,r){return 1===_?t[r]:t.readUInt16BE(r*_)}if(y){var S=-1;for(b=i;bm&&(i=m-w),b=i;b>=0;b--){for(var A=!0,k=0;k239?4:S>223?3:S>191?2:1;if(y+k<=i)switch(k){case 1:S<128&&(A=S);break;case 2:(192&(b=t[y+1]))==128&&(w=(31&S)<<6|63&b)>127&&(A=w);break;case 3:b=t[y+1],_=t[y+2],(192&b)==128&&(192&_)==128&&(w=(15&S)<<12|(63&b)<<6|63&_)>2047&&(w<55296||w>57343)&&(A=w);break;case 4:b=t[y+1],_=t[y+2],m=t[y+3],(192&b)==128&&(192&_)==128&&(192&m)==128&&(w=(15&S)<<18|(63&b)<<12|(63&_)<<6|63&m)>65535&&w<1114112&&(A=w)}null===A?(A=65533,k=1):A>65535&&(A-=65536,p.push(A>>>10&1023|55296),A=56320|1023&A),p.push(A),y+=k}return function(t){var r=t.length;if(r<=4096)return String.fromCharCode.apply(String,t);for(var i="",p=0;pi)throw RangeError("Trying to access beyond buffer length")}function checkInt(t,r,i,p,y,b){if(!Buffer.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(r>y||rt.length)throw RangeError("Index out of range")}function checkIEEE754(t,r,i,p,y,b){if(i+p>t.length||i<0)throw RangeError("Index out of range")}function writeFloat(t,r,i,p,b){return r=+r,i>>>=0,b||checkIEEE754(t,r,i,4,34028234663852886e22,-34028234663852886e22),y.write(t,r,i,p,23,4),i+4}function writeDouble(t,r,i,p,b){return r=+r,i>>>=0,b||checkIEEE754(t,r,i,8,17976931348623157e292,-17976931348623157e292),y.write(t,r,i,p,52,8),i+8}r.Buffer=Buffer,r.SlowBuffer=function(t){return+t!=t&&(t=0),Buffer.alloc(+t)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=2147483647,Buffer.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(t,r,i){return from(t,r,i)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(t,r,i){return(assertSize(t),t<=0)?createBuffer(t):void 0!==r?"string"==typeof i?createBuffer(t).fill(r,i):createBuffer(t).fill(r):createBuffer(t)},Buffer.allocUnsafe=function(t){return allocUnsafe(t)},Buffer.allocUnsafeSlow=function(t){return allocUnsafe(t)},Buffer.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==Buffer.prototype},Buffer.compare=function(t,r){if(isInstance(t,Uint8Array)&&(t=Buffer.from(t,t.offset,t.byteLength)),isInstance(r,Uint8Array)&&(r=Buffer.from(r,r.offset,r.byteLength)),!Buffer.isBuffer(t)||!Buffer.isBuffer(r))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var i=t.length,p=r.length,y=0,b=Math.min(i,p);yi&&(t+=" ... "),""},b&&(Buffer.prototype[b]=Buffer.prototype.inspect),Buffer.prototype.compare=function(t,r,i,p,y){if(isInstance(t,Uint8Array)&&(t=Buffer.from(t,t.offset,t.byteLength)),!Buffer.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===i&&(i=t?t.length:0),void 0===p&&(p=0),void 0===y&&(y=this.length),r<0||i>t.length||p<0||y>this.length)throw RangeError("out of range index");if(p>=y&&r>=i)return 0;if(p>=y)return -1;if(r>=i)return 1;if(r>>>=0,i>>>=0,p>>>=0,y>>>=0,this===t)return 0;for(var b=y-p,_=i-r,m=Math.min(b,_),w=this.slice(p,y),S=t.slice(r,i),A=0;A>>=0,isFinite(i)?(i>>>=0,void 0===p&&(p="utf8")):(p=i,i=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var y,b,_,m,w,S,A,k,T,R,O,x,P=this.length-r;if((void 0===i||i>P)&&(i=P),t.length>0&&(i<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");p||(p="utf8");for(var L=!1;;)switch(p){case"hex":return function(t,r,i,p){i=Number(i)||0;var y=t.length-i;p?(p=Number(p))>y&&(p=y):p=y;var b=r.length;p>b/2&&(p=b/2);for(var _=0;_>8,y.push(i%256),y.push(p);return y}(t,this.length-O),this,O,x);default:if(L)throw TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),L=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(t,r){var i=this.length;t=~~t,r=void 0===r?i:~~r,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),r<0?(r+=i)<0&&(r=0):r>i&&(r=i),r>>=0,r>>>=0,i||checkOffset(t,r,this.length);for(var p=this[t],y=1,b=0;++b>>=0,r>>>=0,i||checkOffset(t,r,this.length);for(var p=this[t+--r],y=1;r>0&&(y*=256);)p+=this[t+--r]*y;return p},Buffer.prototype.readUInt8=function(t,r){return t>>>=0,r||checkOffset(t,1,this.length),this[t]},Buffer.prototype.readUInt16LE=function(t,r){return t>>>=0,r||checkOffset(t,2,this.length),this[t]|this[t+1]<<8},Buffer.prototype.readUInt16BE=function(t,r){return t>>>=0,r||checkOffset(t,2,this.length),this[t]<<8|this[t+1]},Buffer.prototype.readUInt32LE=function(t,r){return t>>>=0,r||checkOffset(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Buffer.prototype.readUInt32BE=function(t,r){return t>>>=0,r||checkOffset(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Buffer.prototype.readIntLE=function(t,r,i){t>>>=0,r>>>=0,i||checkOffset(t,r,this.length);for(var p=this[t],y=1,b=0;++b=(y*=128)&&(p-=Math.pow(2,8*r)),p},Buffer.prototype.readIntBE=function(t,r,i){t>>>=0,r>>>=0,i||checkOffset(t,r,this.length);for(var p=r,y=1,b=this[t+--p];p>0&&(y*=256);)b+=this[t+--p]*y;return b>=(y*=128)&&(b-=Math.pow(2,8*r)),b},Buffer.prototype.readInt8=function(t,r){return(t>>>=0,r||checkOffset(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},Buffer.prototype.readInt16LE=function(t,r){t>>>=0,r||checkOffset(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},Buffer.prototype.readInt16BE=function(t,r){t>>>=0,r||checkOffset(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},Buffer.prototype.readInt32LE=function(t,r){return t>>>=0,r||checkOffset(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Buffer.prototype.readInt32BE=function(t,r){return t>>>=0,r||checkOffset(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Buffer.prototype.readFloatLE=function(t,r){return t>>>=0,r||checkOffset(t,4,this.length),y.read(this,t,!0,23,4)},Buffer.prototype.readFloatBE=function(t,r){return t>>>=0,r||checkOffset(t,4,this.length),y.read(this,t,!1,23,4)},Buffer.prototype.readDoubleLE=function(t,r){return t>>>=0,r||checkOffset(t,8,this.length),y.read(this,t,!0,52,8)},Buffer.prototype.readDoubleBE=function(t,r){return t>>>=0,r||checkOffset(t,8,this.length),y.read(this,t,!1,52,8)},Buffer.prototype.writeUIntLE=function(t,r,i,p){if(t=+t,r>>>=0,i>>>=0,!p){var y=Math.pow(2,8*i)-1;checkInt(this,t,r,i,y,0)}var b=1,_=0;for(this[r]=255&t;++_>>=0,i>>>=0,!p){var y=Math.pow(2,8*i)-1;checkInt(this,t,r,i,y,0)}var b=i-1,_=1;for(this[r+b]=255&t;--b>=0&&(_*=256);)this[r+b]=t/_&255;return r+i},Buffer.prototype.writeUInt8=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,1,255,0),this[r]=255&t,r+1},Buffer.prototype.writeUInt16LE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},Buffer.prototype.writeUInt16BE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},Buffer.prototype.writeUInt32LE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},Buffer.prototype.writeUInt32BE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},Buffer.prototype.writeIntLE=function(t,r,i,p){if(t=+t,r>>>=0,!p){var y=Math.pow(2,8*i-1);checkInt(this,t,r,i,y-1,-y)}var b=0,_=1,m=0;for(this[r]=255&t;++b>0)-m&255;return r+i},Buffer.prototype.writeIntBE=function(t,r,i,p){if(t=+t,r>>>=0,!p){var y=Math.pow(2,8*i-1);checkInt(this,t,r,i,y-1,-y)}var b=i-1,_=1,m=0;for(this[r+b]=255&t;--b>=0&&(_*=256);)t<0&&0===m&&0!==this[r+b+1]&&(m=1),this[r+b]=(t/_>>0)-m&255;return r+i},Buffer.prototype.writeInt8=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},Buffer.prototype.writeInt16LE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},Buffer.prototype.writeInt16BE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},Buffer.prototype.writeInt32LE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,4,2147483647,-2147483648),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},Buffer.prototype.writeInt32BE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},Buffer.prototype.writeFloatLE=function(t,r,i){return writeFloat(this,t,r,!0,i)},Buffer.prototype.writeFloatBE=function(t,r,i){return writeFloat(this,t,r,!1,i)},Buffer.prototype.writeDoubleLE=function(t,r,i){return writeDouble(this,t,r,!0,i)},Buffer.prototype.writeDoubleBE=function(t,r,i){return writeDouble(this,t,r,!1,i)},Buffer.prototype.copy=function(t,r,i,p){if(!Buffer.isBuffer(t))throw TypeError("argument should be a Buffer");if(i||(i=0),p||0===p||(p=this.length),r>=t.length&&(r=t.length),r||(r=0),p>0&&p=this.length)throw RangeError("Index out of range");if(p<0)throw RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),t.length-r=0;--b)t[b+r]=this[b+i];else Uint8Array.prototype.set.call(t,this.subarray(i,p),r);return y},Buffer.prototype.fill=function(t,r,i,p){if("string"==typeof t){if("string"==typeof r?(p=r,r=0,i=this.length):"string"==typeof i&&(p=i,i=this.length),void 0!==p&&"string"!=typeof p)throw TypeError("encoding must be a string");if("string"==typeof p&&!Buffer.isEncoding(p))throw TypeError("Unknown encoding: "+p);if(1===t.length){var y,b=t.charCodeAt(0);("utf8"===p&&b<128||"latin1"===p)&&(t=b)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(y=r;y55295&&i<57344){if(!y){if(i>56319||_+1===p){(r-=3)>-1&&b.push(239,191,189);continue}y=i;continue}if(i<56320){(r-=3)>-1&&b.push(239,191,189),y=i;continue}i=(y-55296<<10|i-56320)+65536}else y&&(r-=3)>-1&&b.push(239,191,189);if(y=null,i<128){if((r-=1)<0)break;b.push(i)}else if(i<2048){if((r-=2)<0)break;b.push(i>>6|192,63&i|128)}else if(i<65536){if((r-=3)<0)break;b.push(i>>12|224,i>>6&63|128,63&i|128)}else if(i<1114112){if((r-=4)<0)break;b.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else throw Error("Invalid code point")}return b}function asciiToBytes(t){for(var r=[],i=0;i=r.length)&&!(y>=t.length);++y)r[y+i]=t[y];return y}function isInstance(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}var m=function(){for(var t="0123456789abcdef",r=Array(256),i=0;i<16;++i)for(var p=16*i,y=0;y<16;++y)r[p+y]=t[i]+t[y];return r}()},783:function(t,r){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */r.read=function(t,r,i,p,y){var b,_,m=8*y-p-1,w=(1<>1,A=-7,k=i?y-1:0,T=i?-1:1,R=t[r+k];for(k+=T,b=R&(1<<-A)-1,R>>=-A,A+=m;A>0;b=256*b+t[r+k],k+=T,A-=8);for(_=b&(1<<-A)-1,b>>=-A,A+=p;A>0;_=256*_+t[r+k],k+=T,A-=8);if(0===b)b=1-S;else{if(b===w)return _?NaN:(R?-1:1)*(1/0);_+=Math.pow(2,p),b-=S}return(R?-1:1)*_*Math.pow(2,b-p)},r.write=function(t,r,i,p,y,b){var _,m,w,S=8*b-y-1,A=(1<>1,T=23===y?5960464477539062e-23:0,R=p?0:b-1,O=p?1:-1,x=r<0||0===r&&1/r<0?1:0;for(isNaN(r=Math.abs(r))||r===1/0?(m=isNaN(r)?1:0,_=A):(_=Math.floor(Math.log(r)/Math.LN2),r*(w=Math.pow(2,-_))<1&&(_--,w*=2),_+k>=1?r+=T/w:r+=T*Math.pow(2,1-k),r*w>=2&&(_++,w/=2),_+k>=A?(m=0,_=A):_+k>=1?(m=(r*w-1)*Math.pow(2,y),_+=k):(m=r*Math.pow(2,k-1)*Math.pow(2,y),_=0));y>=8;t[i+R]=255&m,R+=O,m/=256,y-=8);for(_=_<0;t[i+R]=255&_,R+=O,_/=256,S-=8);t[i+R-O]|=128*x}}},i={};function __nccwpck_require__(t){var p=i[t];if(void 0!==p)return p.exports;var y=i[t]={exports:{}},b=!0;try{r[t](y,y.exports,__nccwpck_require__),b=!1}finally{b&&delete i[t]}return y.exports}__nccwpck_require__.ab="//";var p=__nccwpck_require__(72);t.exports=p}()},663:function(t){!function(){var r={229:function(t){var r,i,p,y=t.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(t){if(r===setTimeout)return setTimeout(t,0);if((r===defaultSetTimout||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(i){try{return r.call(null,t,0)}catch(i){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(t){r=defaultSetTimout}try{i="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(t){i=defaultClearTimeout}}();var b=[],_=!1,m=-1;function cleanUpNextTick(){_&&p&&(_=!1,p.length?b=p.concat(b):m=-1,b.length&&drainQueue())}function drainQueue(){if(!_){var t=runTimeout(cleanUpNextTick);_=!0;for(var r=b.length;r;){for(p=b,b=[];++m1)for(var i=1;iString(t)),i>2)?`one of ${r} ${t.slice(0,i-1).join(", ")}, or `+t[i-1]:2===i?`one of ${r} ${t[0]} or ${t[1]}`:`of ${r} ${t[0]}`}}createErrorType("ERR_INVALID_OPT_VALUE",function(t,r){return'The value "'+r+'" is invalid for option "'+t+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(t,r,i){var p,y,b,_,m;let w,S;if("string"==typeof r&&(p="not ",r.substr(!y||y<0?0:+y,p.length)===p)?(w="must not be",r=r.replace(/^not /,"")):w="must be",b=" argument",(void 0===_||_>t.length)&&(_=t.length),t.substring(_-b.length,_)===b)S=`The ${t} ${w} ${oneOf(r,"type")}`;else{let i=("number"!=typeof m&&(m=0),m+1>t.length||-1===t.indexOf(".",m))?"argument":"property";S=`The "${t}" ${i} ${w} ${oneOf(r,"type")}`}return S+`. Received type ${typeof i}`},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=r},403:function(t,r,i){"use strict";var y=Object.keys||function(t){var r=[];for(var i in t)r.push(i);return r};t.exports=Duplex;var b=i(709),_=i(337);i(782)(Duplex,b);for(var m=y(_.prototype),w=0;w0){if("string"==typeof r||R.objectMode||Object.getPrototypeOf(r)===k.prototype||(S=r,r=k.from(S)),p)R.endEmitted?U(t,new D):addChunk(t,R,r,!0);else if(R.ended)U(t,new C);else{if(R.destroyed)return!1;R.reading=!1,R.decoder&&!i?(r=R.decoder.write(r),R.objectMode||0!==r.length?addChunk(t,R,r,!1):maybeReadMore(t,R)):addChunk(t,R,r,!1)}}else p||(R.reading=!1,maybeReadMore(t,R))}return!R.ended&&(R.lengthr.highWaterMark){var i;r.highWaterMark=((i=t)>=1073741824?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)}return t<=r.length?t:r.ended?r.length:(r.needReadable=!0,0)}function emitReadable(t){var r=t._readableState;_("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(_("emitReadable",r.flowing),r.emittedReadable=!0,p.nextTick(emitReadable_,t))}function emitReadable_(t){var r=t._readableState;_("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(t.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,flow(t)}function maybeReadMore(t,r){r.readingMore||(r.readingMore=!0,p.nextTick(maybeReadMore_,t,r))}function maybeReadMore_(t,r){for(;!r.reading&&!r.ended&&(r.length0,r.resumeScheduled&&!r.paused?r.flowing=!0:t.listenerCount("data")>0&&t.resume()}function nReadingNextTick(t){_("readable nexttick read 0"),t.read(0)}function resume_(t,r){_("resume",r.reading),r.reading||t.read(0),r.resumeScheduled=!1,t.emit("resume"),flow(t),r.flowing&&!r.reading&&t.read(0)}function flow(t){var r=t._readableState;for(_("flow",r.flowing);r.flowing&&null!==t.read(););}function fromList(t,r){var i;return 0===r.length?null:(r.objectMode?i=r.buffer.shift():!t||t>=r.length?(i=r.decoder?r.buffer.join(""):1===r.buffer.length?r.buffer.first():r.buffer.concat(r.length),r.buffer.clear()):i=r.buffer.consume(t,r.decoder),i)}function endReadable(t){var r=t._readableState;_("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,p.nextTick(endReadableNT,r,t))}function endReadableNT(t,r){if(_("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,r.readable=!1,r.emit("end"),t.autoDestroy)){var i=r._writableState;(!i||i.autoDestroy&&i.finished)&&r.destroy()}}function indexOf(t,r){for(var i=0,p=t.length;i=i.highWaterMark:i.length>0)||i.ended))return _("read: emitReadable",i.length,i.ended),0===i.length&&i.ended?endReadable(this):emitReadable(this),null;if(0===(t=howMuchToRead(t,i))&&i.ended)return 0===i.length&&endReadable(this),null;var y=i.needReadable;return _("need readable",y),(0===i.length||i.length-t0?fromList(t,i):null)?(i.needReadable=i.length<=i.highWaterMark,t=0):(i.length-=t,i.awaitDrain=0),0===i.length&&(i.ended||(i.needReadable=!0),p!==t&&i.ended&&endReadable(this)),null!==r&&this.emit("data",r),r},Readable.prototype._read=function(t){U(this,new N("_read()"))},Readable.prototype.pipe=function(t,r){var i=this,y=this._readableState;switch(y.pipesCount){case 0:y.pipes=t;break;case 1:y.pipes=[y.pipes,t];break;default:y.pipes.push(t)}y.pipesCount+=1,_("pipe count=%d opts=%j",y.pipesCount,r);var b=r&&!1===r.end||t===p.stdout||t===p.stderr?unpipe:onend;function onend(){_("onend"),t.end()}y.endEmitted?p.nextTick(b):i.once("end",b),t.on("unpipe",function onunpipe(r,p){_("onunpipe"),r===i&&p&&!1===p.hasUnpiped&&(p.hasUnpiped=!0,_("cleanup"),t.removeListener("close",onclose),t.removeListener("finish",onfinish),t.removeListener("drain",s),t.removeListener("error",onerror),t.removeListener("unpipe",onunpipe),i.removeListener("end",onend),i.removeListener("end",unpipe),i.removeListener("data",ondata),m=!0,y.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&s())});var s=function(){var t=i._readableState;_("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(i,"data")&&(t.flowing=!0,flow(i))};t.on("drain",s);var m=!1;function ondata(r){_("ondata");var p=t.write(r);_("dest.write",p),!1===p&&((1===y.pipesCount&&y.pipes===t||y.pipesCount>1&&-1!==indexOf(y.pipes,t))&&!m&&(_("false write response, pause",y.awaitDrain),y.awaitDrain++),i.pause())}function onerror(r){_("onerror",r),unpipe(),t.removeListener("error",onerror),0===a(t,"error")&&U(t,r)}function onclose(){t.removeListener("finish",onfinish),unpipe()}function onfinish(){_("onfinish"),t.removeListener("close",onclose),unpipe()}function unpipe(){_("unpipe"),i.unpipe(t)}return i.on("data",ondata),function(t,r,i){if("function"==typeof t.prependListener)return t.prependListener(r,i);t._events&&t._events[r]?Array.isArray(t._events[r])?t._events[r].unshift(i):t._events[r]=[i,t._events[r]]:t.on(r,i)}(t,"error",onerror),t.once("close",onclose),t.once("finish",onfinish),t.emit("pipe",i),y.flowing||(_("pipe resume"),i.resume()),t},Readable.prototype.unpipe=function(t){var r=this._readableState,i={hasUnpiped:!1};if(0===r.pipesCount)return this;if(1===r.pipesCount)return t&&t!==r.pipes||(t||(t=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){var p=r.pipes,y=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var b=0;b0,!1!==y.flowing&&this.resume()):"readable"!==t||y.endEmitted||y.readableListening||(y.readableListening=y.needReadable=!0,y.flowing=!1,y.emittedReadable=!1,_("on readable",y.length,y.reading),y.length?emitReadable(this):y.reading||p.nextTick(nReadingNextTick,this)),i},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(t,r){var i=A.prototype.removeListener.call(this,t,r);return"readable"===t&&p.nextTick(updateReadableListening,this),i},Readable.prototype.removeAllListeners=function(t){var r=A.prototype.removeAllListeners.apply(this,arguments);return("readable"===t||void 0===t)&&p.nextTick(updateReadableListening,this),r},Readable.prototype.resume=function(){var t=this._readableState;return t.flowing||(_("resume"),t.flowing=!t.readableListening,t.resumeScheduled||(t.resumeScheduled=!0,p.nextTick(resume_,this,t))),t.paused=!1,this},Readable.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},Readable.prototype.wrap=function(t){var r=this,i=this._readableState,p=!1;for(var y in t.on("end",function(){if(_("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),t.on("data",function(y){_("wrapped data"),i.decoder&&(y=i.decoder.write(y)),(!i.objectMode||null!=y)&&(i.objectMode||y&&y.length)&&(r.push(y)||(p=!0,t.pause()))}),t)void 0===this[y]&&"function"==typeof t[y]&&(this[y]=function(r){return function(){return t[r].apply(t,arguments)}}(y));for(var b=0;b-1))throw new D(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(t,r,i){i(new x("_write()"))},Writable.prototype._writev=null,Writable.prototype.end=function(t,r,i){var y,b=this._writableState;return"function"==typeof t?(i=t,t=null,r=null):"function"==typeof r&&(i=r,r=null),null!=t&&this.write(t,r),b.corked&&(b.corked=1,this.uncork()),b.ending||(y=i,b.ending=!0,finishMaybe(this,b),y&&(b.finished?p.nextTick(y):this.once("finish",y)),b.ended=!0,this.writable=!1),this},Object.defineProperty(Writable.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Writable.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),Writable.prototype.destroy=k.destroy,Writable.prototype._undestroy=k.undestroy,Writable.prototype._destroy=function(t,r){r(t)}},871:function(t,r,i){"use strict";function _defineProperty(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var y,b=i(698),_=Symbol("lastResolve"),m=Symbol("lastReject"),w=Symbol("error"),S=Symbol("ended"),A=Symbol("lastPromise"),k=Symbol("handlePromise"),T=Symbol("stream");function createIterResult(t,r){return{value:t,done:r}}function readAndResolve(t){var r=t[_];if(null!==r){var i=t[T].read();null!==i&&(t[A]=null,t[_]=null,t[m]=null,r(createIterResult(i,!1)))}}function onReadable(t){p.nextTick(readAndResolve,t)}var R=Object.getPrototypeOf(function(){}),O=Object.setPrototypeOf((_defineProperty(y={get stream(){return this[T]},next:function(){var t,r,i=this,y=this[w];if(null!==y)return Promise.reject(y);if(this[S])return Promise.resolve(createIterResult(void 0,!0));if(this[T].destroyed)return new Promise(function(t,r){p.nextTick(function(){i[w]?r(i[w]):t(createIterResult(void 0,!0))})});var b=this[A];if(b)r=new Promise((t=this,function(r,i){b.then(function(){if(t[S]){r(createIterResult(void 0,!0));return}t[k](r,i)},i)}));else{var _=this[T].read();if(null!==_)return Promise.resolve(createIterResult(_,!1));r=new Promise(this[k])}return this[A]=r,r}},Symbol.asyncIterator,function(){return this}),_defineProperty(y,"return",function(){var t=this;return new Promise(function(r,i){t[T].destroy(null,function(t){if(t){i(t);return}r(createIterResult(void 0,!0))})})}),y),R);t.exports=function(t){var r,i=Object.create(O,(_defineProperty(r={},T,{value:t,writable:!0}),_defineProperty(r,_,{value:null,writable:!0}),_defineProperty(r,m,{value:null,writable:!0}),_defineProperty(r,w,{value:null,writable:!0}),_defineProperty(r,S,{value:t._readableState.endEmitted,writable:!0}),_defineProperty(r,k,{value:function(t,r){var p=i[T].read();p?(i[A]=null,i[_]=null,i[m]=null,t(createIterResult(p,!1))):(i[_]=t,i[m]=r)},writable:!0}),r));return i[A]=null,b(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var r=i[m];null!==r&&(i[A]=null,i[_]=null,i[m]=null,r(t)),i[w]=t;return}var p=i[_];null!==p&&(i[A]=null,i[_]=null,i[m]=null,p(createIterResult(void 0,!0))),i[S]=!0}),t.on("readable",onReadable.bind(null,i)),i}},379:function(t,r,i){"use strict";function ownKeys(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);r&&(p=p.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,p)}return i}function _defineProperties(t,r){for(var i=0;i0?this.tail.next=r:this.head=r,this.tail=r,++this.length}},{key:"unshift",value:function(t){var r={data:t,next:this.head};0===this.length&&(this.tail=r),this.head=r,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var r=this.head,i=""+r.data;r=r.next;)i+=t+r.data;return i}},{key:"concat",value:function(t){if(0===this.length)return p.alloc(0);for(var r,i,y=p.allocUnsafe(t>>>0),b=this.head,_=0;b;)r=b.data,i=_,p.prototype.copy.call(r,y,i),_+=b.data.length,b=b.next;return y}},{key:"consume",value:function(t,r){var i;return ty.length?y.length:t;if(b===y.length?p+=y:p+=y.slice(0,t),0==(t-=b)){b===y.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=y.slice(b));break}++i}return this.length-=i,p}},{key:"_getBuffer",value:function(t){var r=p.allocUnsafe(t),i=this.head,y=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var b=i.data,_=t>b.length?b.length:t;if(b.copy(r,r.length-t,0,_),0==(t-=_)){_===b.length?(++y,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=b.slice(_));break}++y}return this.length-=y,r}},{key:b,value:function(t,r){return y(this,function(t){for(var r=1;r0},function(t){if(t)return b(t);T=!0,b()}),R=!1,function(r){if(!T&&!R){if(R=!0,t.setHeader&&"function"==typeof t.abort)return t.abort();if("function"==typeof t.destroy)return t.destroy();b(r||new _("pipe"))}}});return m.reduce(pipe)}},776:function(t,r,i){"use strict";var p=i(646).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,r,i,y){var b=null!=r.highWaterMark?r.highWaterMark:y?r[i]:null;if(null!=b){if(!(isFinite(b)&&Math.floor(b)===b)||b<0){var _=y?i:"highWaterMark";throw new p(_,b)}return Math.floor(b)}return t.objectMode?16:16384}}},678:function(t,r,i){t.exports=i(781)},55:function(t,r,i){var p=i(300),y=p.Buffer;function copyProps(t,r){for(var i in t)r[i]=t[i]}function SafeBuffer(t,r,i){return y(t,r,i)}y.from&&y.alloc&&y.allocUnsafe&&y.allocUnsafeSlow?t.exports=p:(copyProps(p,r),r.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(y.prototype),copyProps(y,SafeBuffer),SafeBuffer.from=function(t,r,i){if("number"==typeof t)throw TypeError("Argument must not be a number");return y(t,r,i)},SafeBuffer.alloc=function(t,r,i){if("number"!=typeof t)throw TypeError("Argument must be a number");var p=y(t);return void 0!==r?"string"==typeof i?p.fill(r,i):p.fill(r):p.fill(0),p},SafeBuffer.allocUnsafe=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return y(t)},SafeBuffer.allocUnsafeSlow=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return p.SlowBuffer(t)}},173:function(t,r,i){t.exports=Stream;var p=i(361).EventEmitter;function Stream(){p.call(this)}i(782)(Stream,p),Stream.Readable=i(709),Stream.Writable=i(337),Stream.Duplex=i(403),Stream.Transform=i(170),Stream.PassThrough=i(889),Stream.finished=i(698),Stream.pipeline=i(442),Stream.Stream=Stream,Stream.prototype.pipe=function(t,r){var i=this;function ondata(r){t.writable&&!1===t.write(r)&&i.pause&&i.pause()}function ondrain(){i.readable&&i.resume&&i.resume()}i.on("data",ondata),t.on("drain",ondrain),t._isStdio||r&&!1===r.end||(i.on("end",onend),i.on("close",onclose));var y=!1;function onend(){y||(y=!0,t.end())}function onclose(){y||(y=!0,"function"==typeof t.destroy&&t.destroy())}function onerror(t){if(cleanup(),0===p.listenerCount(this,"error"))throw t}function cleanup(){i.removeListener("data",ondata),t.removeListener("drain",ondrain),i.removeListener("end",onend),i.removeListener("close",onclose),i.removeListener("error",onerror),t.removeListener("error",onerror),i.removeListener("end",cleanup),i.removeListener("close",cleanup),t.removeListener("close",cleanup)}return i.on("error",onerror),t.on("error",onerror),i.on("end",cleanup),i.on("close",cleanup),t.on("close",cleanup),t.emit("pipe",i),t}},704:function(t,r,i){"use strict";var p=i(55).Buffer,y=p.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 StringDecoder(t){var r;switch(this.encoding=function(t){var r=function(t){var r;if(!t)return"utf8";for(;;)switch(t){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 t;default:if(r)return;t=(""+t).toLowerCase(),r=!0}}(t);if("string"!=typeof r&&(p.isEncoding===y||!y(t)))throw Error("Unknown encoding: "+t);return r||t}(t),this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,r=4;break;case"utf8":this.fillLast=utf8FillLast,r=4;break;case"base64":this.text=base64Text,this.end=base64End,r=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=p.allocUnsafe(r)}function utf8CheckByte(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function utf8FillLast(t){var r=this.lastTotal-this.lastNeed,i=function(t,r,i){if((192&r[0])!=128)return t.lastNeed=0,"�";if(t.lastNeed>1&&r.length>1){if((192&r[1])!=128)return t.lastNeed=1,"�";if(t.lastNeed>2&&r.length>2&&(192&r[2])!=128)return t.lastNeed=2,"�"}}(this,t,0);return void 0!==i?i:this.lastNeed<=t.length?(t.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(t.copy(this.lastChar,r,0,t.length),this.lastNeed-=t.length)}function utf16Text(t,r){if((t.length-r)%2==0){var i=t.toString("utf16le",r);if(i){var p=i.charCodeAt(i.length-1);if(p>=55296&&p<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",r,t.length-1)}function utf16End(t){var r=t&&t.length?this.write(t):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,i)}return r}function base64Text(t,r){var i=(t.length-r)%3;return 0===i?t.toString("base64",r):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",r,t.length-i))}function base64End(t){var r=t&&t.length?this.write(t):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function simpleWrite(t){return t.toString(this.encoding)}function simpleEnd(t){return t&&t.length?this.write(t):""}r.s=StringDecoder,StringDecoder.prototype.write=function(t){var r,i;if(0===t.length)return"";if(this.lastNeed){if(void 0===(r=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i=0?(y>0&&(t.lastNeed=y-1),y):--p=0?(y>0&&(t.lastNeed=y-2),y):--p=0?(y>0&&(2===y?y=0:t.lastNeed=y-3),y):0}(this,t,r);if(!this.lastNeed)return t.toString("utf8",r);this.lastTotal=i;var p=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,p),t.toString("utf8",r,p)},StringDecoder.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}},769:function(t){t.exports=function(t,r){if(config("noDeprecation"))return t;var i=!1;return function(){if(!i){if(config("throwDeprecation"))throw Error(r);config("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return t.apply(this,arguments)}};function config(t){try{if(!i.g.localStorage)return!1}catch(t){return!1}var r=i.g.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}},300:function(t){"use strict";t.exports=i(876)},361:function(t){"use strict";t.exports=i(187)},781:function(t){"use strict";t.exports=i(187).EventEmitter},837:function(t){"use strict";t.exports=i(720)}},y={};function __nccwpck_require__(t){var i=y[t];if(void 0!==i)return i.exports;var p=y[t]={exports:{}},b=!0;try{r[t](p,p.exports,__nccwpck_require__),b=!1}finally{b&&delete y[t]}return p.exports}__nccwpck_require__.ab="//";var b=__nccwpck_require__(173);t.exports=b}()},720:function(t,r,i){var p=i(876).Buffer,y=i(454);!function(){var r={992:function(t){t.exports=function(t,i,p){if(t.filter)return t.filter(i,p);if(null==t||"function"!=typeof i)throw TypeError();for(var y=[],b=0;b-1?y(i):i}},139:function(t,r,i){"use strict";var p=i(174),y=i(925),b=y("%Function.prototype.apply%"),_=y("%Function.prototype.call%"),m=y("%Reflect.apply%",!0)||p.call(_,b),w=y("%Object.getOwnPropertyDescriptor%",!0),S=y("%Object.defineProperty%",!0),A=y("%Math.max%");if(S)try{S({},"a",{value:1})}catch(t){S=null}t.exports=function(t){var r=m(p,_,arguments);return w&&S&&w(r,"length").configurable&&S(r,"length",{value:1+A(0,t.length-(arguments.length-1))}),r};var s=function(){return m(p,b,arguments)};S?S(t.exports,"apply",{value:s}):t.exports.apply=s},144:function(t){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString;t.exports=function(t,p,y){if("[object Function]"!==i.call(p))throw TypeError("iterator must be a function");var b=t.length;if(b===+b)for(var _=0;_1&&"boolean"!=typeof r)throw new _('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/g,t))throw new y("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=j(t),p=i.length>0?i[0]:"",b=E("%"+p+"%",r),w=b.name,S=b.value,A=!1,k=b.alias;k&&(p=k[0],M(i,L([0,1],k)));for(var T=1,O=!0;T=i.length){var F=m(S,x);S=(O=!!F)&&"get"in F&&!("originalValue"in F.get)?F.get:S[x]}else O=P(S,x),S=S[x];O&&!A&&(R[w]=S)}}return S}},925:function(t,r,i){"use strict";var p,y=SyntaxError,b=Function,_=TypeError,getEvalledConstructor=function(t){try{return b('"use strict"; return ('+t+").constructor;")()}catch(t){}},m=Object.getOwnPropertyDescriptor;if(m)try{m({},"")}catch(t){m=null}var throwTypeError=function(){throw new _},w=m?function(){try{return arguments.callee,throwTypeError}catch(t){try{return m(arguments,"callee").get}catch(t){return throwTypeError}}}():throwTypeError,S=i(115)(),A=i(504)(),k=Object.getPrototypeOf||(A?function(t){return t.__proto__}:null),T={},R="undefined"!=typeof Uint8Array&&k?k(Uint8Array):p,O={"%AggregateError%":"undefined"==typeof AggregateError?p:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?p:ArrayBuffer,"%ArrayIteratorPrototype%":S&&k?k([][Symbol.iterator]()):p,"%AsyncFromSyncIteratorPrototype%":p,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"undefined"==typeof Atomics?p:Atomics,"%BigInt%":"undefined"==typeof BigInt?p:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?p:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?p:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?p:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?p:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?p:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?p:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":T,"%Int8Array%":"undefined"==typeof Int8Array?p:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?p:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?p:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&k?k(k([][Symbol.iterator]())):p,"%JSON%":"object"==typeof JSON?JSON:p,"%Map%":"undefined"==typeof Map?p:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&S&&k?k((new Map)[Symbol.iterator]()):p,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?p:Promise,"%Proxy%":"undefined"==typeof Proxy?p:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?p:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?p:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&S&&k?k((new Set)[Symbol.iterator]()):p,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?p:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&k?k(""[Symbol.iterator]()):p,"%Symbol%":S?Symbol:p,"%SyntaxError%":y,"%ThrowTypeError%":w,"%TypedArray%":R,"%TypeError%":_,"%Uint8Array%":"undefined"==typeof Uint8Array?p:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?p:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?p:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?p:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?p:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?p:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?p:WeakSet};if(k)try{null.error}catch(t){var x=k(k(t));O["%Error.prototype%"]=x}var v=function doEval(t){var r;if("%AsyncFunction%"===t)r=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===t)r=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===t){var i=doEval("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var p=doEval("%AsyncGenerator%");p&&k&&(r=k(p.prototype))}return O[t]=r,r},P={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=i(174),M=i(101),C=L.call(Function.call,Array.prototype.concat),N=L.call(Function.apply,Array.prototype.splice),D=L.call(Function.call,String.prototype.replace),U=L.call(Function.call,String.prototype.slice),F=L.call(Function.call,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,I=function(t){var r=U(t,0,1),i=U(t,-1);if("%"===r&&"%"!==i)throw new y("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==r)throw new y("invalid intrinsic syntax, expected opening `%`");var p=[];return D(t,z,function(t,r,i,y){p[p.length]=i?D(y,W,"$1"):r||t}),p},B=function(t,r){var i,p=t;if(M(P,p)&&(p="%"+(i=P[p])[0]+"%"),M(O,p)){var b=O[p];if(b===T&&(b=v(p)),void 0===b&&!r)throw new _("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:p,value:b}}throw new y("intrinsic "+t+" does not exist!")};t.exports=function(t,r){if("string"!=typeof t||0===t.length)throw new _("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof r)throw new _('"allowMissing" argument must be a boolean');if(null===F(/^%?[^%]*%?$/,t))throw new y("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=I(t),p=i.length>0?i[0]:"",b=B("%"+p+"%",r),w=b.name,S=b.value,A=!1,k=b.alias;k&&(p=k[0],N(i,C([0,1],k)));for(var T=1,R=!0;T=i.length){var D=m(S,x);S=(R=!!D)&&"get"in D&&!("originalValue"in D.get)?D.get:S[x]}else R=M(S,x),S=S[x];R&&!A&&(O[w]=S)}}return S}},504:function(t){"use strict";var r={foo:{}},i=Object;t.exports=function(){return({__proto__:r}).foo===r.foo&&!(({__proto__:null})instanceof i)}},942:function(t,r,i){"use strict";var p="undefined"!=typeof Symbol&&Symbol,y=i(773);t.exports=function(){return"function"==typeof p&&"function"==typeof Symbol&&"symbol"==typeof p("foo")&&"symbol"==typeof Symbol("bar")&&y()}},773:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},r=Symbol("test"),i=Object(r);if("string"==typeof r||"[object Symbol]"!==Object.prototype.toString.call(r)||"[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(r in t[r]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var p=Object.getOwnPropertySymbols(t);if(1!==p.length||p[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var y=Object.getOwnPropertyDescriptor(t,r);if(42!==y.value||!0!==y.enumerable)return!1}return!0}},115:function(t,r,i){"use strict";var p="undefined"!=typeof Symbol&&Symbol,y=i(832);t.exports=function(){return"function"==typeof p&&"function"==typeof Symbol&&"symbol"==typeof p("foo")&&"symbol"==typeof Symbol("bar")&&y()}},832:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},r=Symbol("test"),i=Object(r);if("string"==typeof r||"[object Symbol]"!==Object.prototype.toString.call(r)||"[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(r in t[r]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var p=Object.getOwnPropertySymbols(t);if(1!==p.length||p[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var y=Object.getOwnPropertyDescriptor(t,r);if(42!==y.value||!0!==y.enumerable)return!1}return!0}},101:function(t,r,i){"use strict";var p=i(174);t.exports=p.call(Function.call,Object.prototype.hasOwnProperty)},782:function(t){"function"==typeof Object.create?t.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,r){if(r){t.super_=r;var TempCtor=function(){};TempCtor.prototype=r.prototype,t.prototype=new TempCtor,t.prototype.constructor=t}}},157:function(t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=Object.prototype.toString,o=function(t){return(!r||!t||"object"!=typeof t||!(Symbol.toStringTag in t))&&"[object Arguments]"===i.call(t)},n=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i.call(t)&&"[object Function]"===i.call(t.callee)},p=function(){return o(arguments)}();o.isLegacyArguments=n,t.exports=p?o:n},391:function(t){"use strict";var r=Object.prototype.toString,i=Function.prototype.toString,p=/^\s*(?:function)?\*/,y="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,b=Object.getPrototypeOf,_=function(){if(!y)return!1;try{return Function("return function*() {}")()}catch(t){}}(),m=_?b(_):{};t.exports=function(t){return"function"==typeof t&&(!!p.test(i.call(t))||(y?b(t)===m:"[object GeneratorFunction]"===r.call(t)))}},994:function(t,r,p){"use strict";var y=p(144),b=p(349),_=p(256),m=_("Object.prototype.toString"),w=p(942)()&&"symbol"==typeof Symbol.toStringTag,S=b(),A=_("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i-1)}},369:function(t){t.exports=function(t){return t instanceof p}},584:function(t,r,i){"use strict";var p=i(157),y=i(391),b=i(490),_=i(994);function uncurryThis(t){return t.call.bind(t)}var m="undefined"!=typeof BigInt,w="undefined"!=typeof Symbol,S=uncurryThis(Object.prototype.toString),A=uncurryThis(Number.prototype.valueOf),k=uncurryThis(String.prototype.valueOf),T=uncurryThis(Boolean.prototype.valueOf);if(m)var R=uncurryThis(BigInt.prototype.valueOf);if(w)var O=uncurryThis(Symbol.prototype.valueOf);function checkBoxedPrimitive(t,r){if("object"!=typeof t)return!1;try{return r(t),!0}catch(t){return!1}}function isMapToString(t){return"[object Map]"===S(t)}function isSetToString(t){return"[object Set]"===S(t)}function isWeakMapToString(t){return"[object WeakMap]"===S(t)}function isWeakSetToString(t){return"[object WeakSet]"===S(t)}function isArrayBufferToString(t){return"[object ArrayBuffer]"===S(t)}function isArrayBuffer(t){return"undefined"!=typeof ArrayBuffer&&(isArrayBufferToString.working?isArrayBufferToString(t):t instanceof ArrayBuffer)}function isDataViewToString(t){return"[object DataView]"===S(t)}function isDataView(t){return"undefined"!=typeof DataView&&(isDataViewToString.working?isDataViewToString(t):t instanceof DataView)}r.isArgumentsObject=p,r.isGeneratorFunction=y,r.isTypedArray=_,r.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},r.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):_(t)||isDataView(t)},r.isUint8Array=function(t){return"Uint8Array"===b(t)},r.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===b(t)},r.isUint16Array=function(t){return"Uint16Array"===b(t)},r.isUint32Array=function(t){return"Uint32Array"===b(t)},r.isInt8Array=function(t){return"Int8Array"===b(t)},r.isInt16Array=function(t){return"Int16Array"===b(t)},r.isInt32Array=function(t){return"Int32Array"===b(t)},r.isFloat32Array=function(t){return"Float32Array"===b(t)},r.isFloat64Array=function(t){return"Float64Array"===b(t)},r.isBigInt64Array=function(t){return"BigInt64Array"===b(t)},r.isBigUint64Array=function(t){return"BigUint64Array"===b(t)},isMapToString.working="undefined"!=typeof Map&&isMapToString(new Map),r.isMap=function(t){return"undefined"!=typeof Map&&(isMapToString.working?isMapToString(t):t instanceof Map)},isSetToString.working="undefined"!=typeof Set&&isSetToString(new Set),r.isSet=function(t){return"undefined"!=typeof Set&&(isSetToString.working?isSetToString(t):t instanceof Set)},isWeakMapToString.working="undefined"!=typeof WeakMap&&isWeakMapToString(new WeakMap),r.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(isWeakMapToString.working?isWeakMapToString(t):t instanceof WeakMap)},isWeakSetToString.working="undefined"!=typeof WeakSet&&isWeakSetToString(new WeakSet),r.isWeakSet=function(t){return isWeakSetToString(t)},isArrayBufferToString.working="undefined"!=typeof ArrayBuffer&&isArrayBufferToString(new ArrayBuffer),r.isArrayBuffer=isArrayBuffer,isDataViewToString.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&isDataViewToString(new DataView(new ArrayBuffer(1),0,1)),r.isDataView=isDataView;var x="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function isSharedArrayBufferToString(t){return"[object SharedArrayBuffer]"===S(t)}function isSharedArrayBuffer(t){return void 0!==x&&(void 0===isSharedArrayBufferToString.working&&(isSharedArrayBufferToString.working=isSharedArrayBufferToString(new x)),isSharedArrayBufferToString.working?isSharedArrayBufferToString(t):t instanceof x)}function isNumberObject(t){return checkBoxedPrimitive(t,A)}function isStringObject(t){return checkBoxedPrimitive(t,k)}function isBooleanObject(t){return checkBoxedPrimitive(t,T)}function isBigIntObject(t){return m&&checkBoxedPrimitive(t,R)}function isSymbolObject(t){return w&&checkBoxedPrimitive(t,O)}r.isSharedArrayBuffer=isSharedArrayBuffer,r.isAsyncFunction=function(t){return"[object AsyncFunction]"===S(t)},r.isMapIterator=function(t){return"[object Map Iterator]"===S(t)},r.isSetIterator=function(t){return"[object Set Iterator]"===S(t)},r.isGeneratorObject=function(t){return"[object Generator]"===S(t)},r.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===S(t)},r.isNumberObject=isNumberObject,r.isStringObject=isStringObject,r.isBooleanObject=isBooleanObject,r.isBigIntObject=isBigIntObject,r.isSymbolObject=isSymbolObject,r.isBoxedPrimitive=function(t){return isNumberObject(t)||isStringObject(t)||isBooleanObject(t)||isBigIntObject(t)||isSymbolObject(t)},r.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(isArrayBuffer(t)||isSharedArrayBuffer(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(r,t,{enumerable:!1,value:function(){throw Error(t+" is not supported in userland")}})})},177:function(t,r,i){var p=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},p=0;p=y)return t;switch(t){case"%s":return String(p[i++]);case"%d":return Number(p[i++]);case"%j":try{return JSON.stringify(p[i++])}catch(t){return"[Circular]"}default:return t}}),m=p[i];i=3&&(p.depth=arguments[2]),arguments.length>=4&&(p.colors=arguments[3]),isBoolean(i)?p.showHidden=i:i&&r._extend(p,i),isUndefined(p.showHidden)&&(p.showHidden=!1),isUndefined(p.depth)&&(p.depth=2),isUndefined(p.colors)&&(p.colors=!1),isUndefined(p.customInspect)&&(p.customInspect=!0),p.colors&&(p.stylize=stylizeWithColor),formatValue(p,t,p.depth)}function stylizeWithColor(t,r){var i=inspect.styles[r];return i?"\x1b["+inspect.colors[i][0]+"m"+t+"\x1b["+inspect.colors[i][1]+"m":t}function stylizeNoColor(t,r){return t}function formatValue(t,i,p){if(t.customInspect&&i&&isFunction(i.inspect)&&i.inspect!==r.inspect&&!(i.constructor&&i.constructor.prototype===i)){var y,b,_,m,w,S=i.inspect(p,t);return isString(S)||(S=formatValue(t,S,p)),S}var A=function(t,r){if(isUndefined(r))return t.stylize("undefined","undefined");if(isString(r)){var i="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(i,"string")}return isNumber(r)?t.stylize(""+r,"number"):isBoolean(r)?t.stylize(""+r,"boolean"):isNull(r)?t.stylize("null","null"):void 0}(t,i);if(A)return A;var k=Object.keys(i),T=(m={},k.forEach(function(t,r){m[t]=!0}),m);if(t.showHidden&&(k=Object.getOwnPropertyNames(i)),isError(i)&&(k.indexOf("message")>=0||k.indexOf("description")>=0))return formatError(i);if(0===k.length){if(isFunction(i)){var R=i.name?": "+i.name:"";return t.stylize("[Function"+R+"]","special")}if(isRegExp(i))return t.stylize(RegExp.prototype.toString.call(i),"regexp");if(isDate(i))return t.stylize(Date.prototype.toString.call(i),"date");if(isError(i))return formatError(i)}var O="",x=!1,P=["{","}"];return(isArray(i)&&(x=!0,P=["[","]"]),isFunction(i)&&(O=" [Function"+(i.name?": "+i.name:"")+"]"),isRegExp(i)&&(O=" "+RegExp.prototype.toString.call(i)),isDate(i)&&(O=" "+Date.prototype.toUTCString.call(i)),isError(i)&&(O=" "+formatError(i)),0!==k.length||x&&0!=i.length)?p<0?isRegExp(i)?t.stylize(RegExp.prototype.toString.call(i),"regexp"):t.stylize("[Object]","special"):(t.seen.push(i),w=x?function(t,r,i,p,y){for(var b=[],_=0,m=r.length;_=0&&_++,t+r.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?b[0]+(""===y?"":y+"\n ")+" "+w.join(",\n ")+" "+b[1]:b[0]+y+" "+w.join(", ")+" "+b[1]):P[0]+O+P[1]}function formatError(t){return"["+Error.prototype.toString.call(t)+"]"}function formatProperty(t,r,i,p,y,b){var _,m,w;if((w=Object.getOwnPropertyDescriptor(r,y)||{value:r[y]}).get?m=w.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):w.set&&(m=t.stylize("[Setter]","special")),hasOwnProperty(p,y)||(_="["+y+"]"),!m&&(0>t.seen.indexOf(w.value)?(m=isNull(i)?formatValue(t,w.value,null):formatValue(t,w.value,i-1)).indexOf("\n")>-1&&(m=b?m.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+m.split("\n").map(function(t){return" "+t}).join("\n")):m=t.stylize("[Circular]","special")),isUndefined(_)){if(b&&y.match(/^\d+$/))return m;(_=JSON.stringify(""+y)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_=_.substr(1,_.length-2),_=t.stylize(_,"name")):(_=_.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_=t.stylize(_,"string"))}return _+": "+m}function isArray(t){return Array.isArray(t)}function isBoolean(t){return"boolean"==typeof t}function isNull(t){return null===t}function isNumber(t){return"number"==typeof t}function isString(t){return"string"==typeof t}function isUndefined(t){return void 0===t}function isRegExp(t){return isObject(t)&&"[object RegExp]"===objectToString(t)}function isObject(t){return"object"==typeof t&&null!==t}function isDate(t){return isObject(t)&&"[object Date]"===objectToString(t)}function isError(t){return isObject(t)&&("[object Error]"===objectToString(t)||t instanceof Error)}function isFunction(t){return"function"==typeof t}function objectToString(t){return Object.prototype.toString.call(t)}function pad(t){return t<10?"0"+t.toString(10):t.toString(10)}r.debuglog=function(t){if(!_[t=t.toUpperCase()]){if(m.test(t)){var i=y.pid;_[t]=function(){var p=r.format.apply(r,arguments);console.error("%s %d: %s",t,i,p)}}else _[t]=function(){}}return _[t]},r.inspect=inspect,inspect.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]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.types=i(584),r.isArray=isArray,r.isBoolean=isBoolean,r.isNull=isNull,r.isNullOrUndefined=function(t){return null==t},r.isNumber=isNumber,r.isString=isString,r.isSymbol=function(t){return"symbol"==typeof t},r.isUndefined=isUndefined,r.isRegExp=isRegExp,r.types.isRegExp=isRegExp,r.isObject=isObject,r.isDate=isDate,r.types.isDate=isDate,r.isError=isError,r.types.isNativeError=isError,r.isFunction=isFunction,r.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},r.isBuffer=i(369);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hasOwnProperty(t,r){return Object.prototype.hasOwnProperty.call(t,r)}r.log=function(){var t,i;console.log("%s - %s",(i=[pad((t=new Date).getHours()),pad(t.getMinutes()),pad(t.getSeconds())].join(":"),[t.getDate(),S[t.getMonth()],i].join(" ")),r.format.apply(r,arguments))},r.inherits=i(782),r._extend=function(t,r){if(!r||!isObject(r))return t;for(var i=Object.keys(r),p=i.length;p--;)t[i[p]]=r[i[p]];return t};var A="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(t,r){if(!t){var i=Error("Promise was rejected with a falsy value");i.reason=t,t=i}return r(t)}r.promisify=function(t){if("function"!=typeof t)throw TypeError('The "original" argument must be of type Function');if(A&&t[A]){var e=t[A];if("function"!=typeof e)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,A,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var r,i,p=new Promise(function(t,p){r=t,i=p}),y=[],b=0;b=r.length)throw Error("Ran out of data");let y=r[p];t[i]=y,t[i+1]=y,t[i+2]=y,t[i+3]=r[p+1]},function(t,r,i,p){if(p+2>=r.length)throw Error("Ran out of data");t[i]=r[p],t[i+1]=r[p+1],t[i+2]=r[p+2],t[i+3]=255},function(t,r,i,p){if(p+3>=r.length)throw Error("Ran out of data");t[i]=r[p],t[i+1]=r[p+1],t[i+2]=r[p+2],t[i+3]=r[p+3]}],b=[function(){},function(t,r,i,p){let y=r[0];t[i]=y,t[i+1]=y,t[i+2]=y,t[i+3]=p},function(t,r,i){let p=r[0];t[i]=p,t[i+1]=p,t[i+2]=p,t[i+3]=r[1]},function(t,r,i,p){t[i]=r[0],t[i+1]=r[1],t[i+2]=r[2],t[i+3]=p},function(t,r,i){t[i]=r[0],t[i+1]=r[1],t[i+2]=r[2],t[i+3]=r[3]}];i.dataToBitMap=function(t,i){let _,m,w,S,A=i.width,k=i.height,T=i.depth,R=i.bpp,O=i.interlace;if(8!==T){let r,i;r=[],i=0,_={get:function(p){for(;r.length>4,r.push(A,S);break;case 2:m=3&k,w=k>>2&3,S=k>>4&3,A=k>>6&3,r.push(A,S,w,m);break;case 1:p=1&k,y=k>>1&1,b=k>>2&1,_=k>>3&1,m=k>>4&1,w=k>>5&1,S=k>>6&1,A=k>>7&1,r.push(A,S,w,m,_,b,y,p)}}();let y=r.slice(0,p);return r=r.slice(p),y},resetAfterLine:function(){r.length=0},end:function(){if(i!==t.length)throw Error("extra data found")}}}m=T<=8?r.alloc(A*k*4):new Uint16Array(A*k*4);let x=Math.pow(2,T)-1,P=0;if(O)w=p.getImagePasses(A,k),S=p.getInterlaceIterator(A,k);else{let t=0;S=function(){let r=t;return t+=4,r},w=[{width:A,height:k}]}for(let r=0;r0&&(this._paused=!1,this.emit("drain"))}).bind(this))},_.prototype.write=function(t,r){let i;return this.writable?(i=p.isBuffer(t)?t:p.from(t,r||this._encoding),this._buffers.push(i),this._buffered+=i.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit("error",Error("Stream not writable")),!1)},_.prototype.end=function(t,r){t&&this.write(t,r),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},_.prototype.destroySoon=_.prototype.end,_.prototype._end=function(){this._reads.length>0&&this.emit("error",Error("Unexpected end of input")),this.destroy()},_.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},_.prototype._processReadAllowingLess=function(t){this._reads.shift();let r=this._buffers[0];r.length>t.length?(this._buffered-=t.length,this._buffers[0]=r.slice(t.length),t.func.call(this,r.slice(0,t.length))):(this._buffered-=r.length,this._buffers.shift(),t.func.call(this,r))},_.prototype._processRead=function(t){this._reads.shift();let r=0,i=0,y=p.alloc(t.length);for(;r0&&this._buffers.splice(0,i),this._buffered-=t.length,t.func.call(this,y)},_.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else if(this._buffered>=t.length)this._processRead(t);else break}this._buffers&&!this.writable&&this._end()}catch(t){this.emit("error",t)}}}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{_process:60,buffer:33,stream:61,util:81}],4:[function(t,r,i){"use strict";r.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},{}],5:[function(t,r,i){"use strict";let p=[];!function(){for(let t=0;t<256;t++){let r=t;for(let t=0;t<8;t++)1&r?r=3988292384^r>>>1:r>>>=1;p[t]=r}}();let y=r.exports=function(){this._crc=-1};y.prototype.write=function(t){for(let r=0;r>>8;return!0},y.prototype.crc32=function(){return -1^this._crc},y.crc32=function(t){let r=-1;for(let i=0;i>>8;return -1^r}},{}],6:[function(t,r,i){(function(i){(function(){"use strict";let p=t("./paeth-predictor"),y={0:function(t,r,i,p,y){for(let b=0;b=b?t[r+_-b]:0,m=t[r+_]-i;p[y+_]=m}},2:function(t,r,i,p,y){for(let b=0;b0?t[r+b-i]:0,m=t[r+b]-_;p[y+b]=m}},3:function(t,r,i,p,y,b){for(let _=0;_=b?t[r+_-b]:0,w=r>0?t[r+_-i]:0,S=t[r+_]-(m+w>>1);p[y+_]=S}},4:function(t,r,i,y,b,_){for(let m=0;m=_?t[r+m-_]:0,S=r>0?t[r+m-i]:0,A=r>0&&m>=_?t[r+m-(i+_)]:0,k=t[r+m]-p(w,S,A);y[b+m]=k}}},b={0:function(t,r,i){let p=0,y=r+i;for(let i=r;i=p?t[r+b-p]:0;y+=Math.abs(t[r+b]-i)}return y},2:function(t,r,i){let p=0,y=r+i;for(let b=r;b0?t[b-i]:0;p+=Math.abs(t[b]-y)}return p},3:function(t,r,i,p){let y=0;for(let b=0;b=p?t[r+b-p]:0,m=r>0?t[r+b-i]:0;y+=Math.abs(t[r+b]-(_+m>>1))}return y},4:function(t,r,i,y){let b=0;for(let _=0;_=y?t[r+_-y]:0,w=r>0?t[r+_-i]:0,S=r>0&&_>=y?t[r+_-(i+y)]:0;b+=Math.abs(t[r+_]-p(m,w,S))}return b}};r.exports=function(t,r,p,_,m){let w;if("filterType"in _&&-1!==_.filterType){if("number"==typeof _.filterType)w=[_.filterType];else throw Error("unrecognised filter types")}else w=[0,1,2,3,4];16===_.bitDepth&&(m*=2);let S=r*m,A=0,k=0,T=i.alloc((S+1)*p),R=w[0];for(let r=0;r1){let r=1/0;for(let i=0;iy?r[b-p]:0;r[b]=i+_}},b.prototype._unFilterType2=function(t,r,i){let p=this._lastLine;for(let y=0;yy?r[_-p]:0)+m)/2);r[_]=i+w}},b.prototype._unFilterType4=function(t,r,i){let p=this._xComparison,b=p-1,_=this._lastLine;for(let m=0;mb?r[m-p]:0,w,m>b&&_?_[m-p]:0);r[m]=i+S}},b.prototype._reverseFilterLine=function(t){let r,p=t[0],y=this._images[this._imageIndex],b=y.byteWidth;if(0===p)r=t.slice(1,b+1);else switch(r=i.alloc(b),p){case 1:this._unFilterType1(t,r,b);break;case 2:this._unFilterType2(t,r,b);break;case 3:this._unFilterType3(t,r,b);break;case 4:this._unFilterType4(t,r,b);break;default:throw Error("Unrecognised filter type - "+p)}this.write(r),y.lineIndex++,y.lineIndex>=y.height?(this._lastLine=null,this._imageIndex++,y=this._images[this._imageIndex]):this._lastLine=r,y?this.read(y.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this)}).call(this,t("buffer").Buffer)},{"./interlace":11,"./paeth-predictor":15,buffer:33}],10:[function(t,r,i){(function(t){(function(){"use strict";r.exports=function(r,i,p=!1){let y=i.depth,b=i.width,_=i.height,m=i.colorType,w=i.transColor,S=i.palette,A=r;return 3===m?function(t,r,i,p,y){let b=0;for(let _=0;_0&&S>0&&i.push({width:w,height:S,index:t})}return i},i.getInterlaceIterator=function(t){return function(r,i,y){let b=r%p[y].x.length,_=(r-b)/p[y].x.length*8+p[y].x[b],m=i%p[y].y.length;return 4*_+((i-m)/p[y].y.length*8+p[y].y[m])*t*4}}},{}],12:[function(t,r,i){(function(i){(function(){"use strict";let p=t("util"),y=t("stream"),b=t("./constants"),_=t("./packer"),m=r.exports=function(t){y.call(this);let r=t||{};this._packer=new _(r),this._deflate=this._packer.createDeflate(),this.readable=!0};p.inherits(m,y),m.prototype.pack=function(t,r,p,y){this.emit("data",i.from(b.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(r,p)),y&&this.emit("data",this._packer.packGAMA(y));let _=this._packer.filterData(t,r,p);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",(function(t){this.emit("data",this._packer.packIDAT(t))}).bind(this)),this._deflate.on("end",(function(){this.emit("data",this._packer.packIEND()),this.emit("end")}).bind(this)),this._deflate.end(_)}}).call(this)}).call(this,t("buffer").Buffer)},{"./constants":4,"./packer":14,buffer:33,stream:61,util:81}],13:[function(t,r,i){(function(i){(function(){"use strict";let p=!0,y=t("zlib");y.deflateSync||(p=!1);let b=t("./constants"),_=t("./packer");r.exports=function(t,r){if(!p)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let m=new _(r||{}),w=[];w.push(i.from(b.PNG_SIGNATURE)),w.push(m.packIHDR(t.width,t.height)),t.gamma&&w.push(m.packGAMA(t.gamma));let S=m.filterData(t.data,t.width,t.height),A=y.deflateSync(S,m.getDeflateOptions());if(S=null,!A||!A.length)throw Error("bad png - invalid compressed data response");return w.push(m.packIDAT(A)),w.push(m.packIEND()),i.concat(w)}}).call(this)}).call(this,t("buffer").Buffer)},{"./constants":4,"./packer":14,buffer:33,zlib:32}],14:[function(t,r,i){(function(i){(function(){"use strict";let p=t("./constants"),y=t("./crc"),b=t("./bitpacker"),_=t("./filter-pack"),m=t("zlib"),w=r.exports=function(t){if(this._options=t,t.deflateChunkSize=t.deflateChunkSize||32768,t.deflateLevel=null!=t.deflateLevel?t.deflateLevel:9,t.deflateStrategy=null!=t.deflateStrategy?t.deflateStrategy:3,t.inputHasAlpha=null==t.inputHasAlpha||t.inputHasAlpha,t.deflateFactory=t.deflateFactory||m.createDeflate,t.bitDepth=t.bitDepth||8,t.colorType="number"==typeof t.colorType?t.colorType:p.COLORTYPE_COLOR_ALPHA,t.inputColorType="number"==typeof t.inputColorType?t.inputColorType:p.COLORTYPE_COLOR_ALPHA,-1===[p.COLORTYPE_GRAYSCALE,p.COLORTYPE_COLOR,p.COLORTYPE_COLOR_ALPHA,p.COLORTYPE_ALPHA].indexOf(t.colorType))throw Error("option color type:"+t.colorType+" is not supported at present");if(-1===[p.COLORTYPE_GRAYSCALE,p.COLORTYPE_COLOR,p.COLORTYPE_COLOR_ALPHA,p.COLORTYPE_ALPHA].indexOf(t.inputColorType))throw Error("option input color type:"+t.inputColorType+" is not supported at present");if(8!==t.bitDepth&&16!==t.bitDepth)throw Error("option bit depth:"+t.bitDepth+" is not supported at present")};w.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},w.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},w.prototype.filterData=function(t,r,i){let y=b(t,r,i,this._options),m=p.COLORTYPE_TO_BPP_MAP[this._options.colorType];return _(y,r,i,this._options,m)},w.prototype._packChunk=function(t,r){let p=r?r.length:0,b=i.alloc(p+12);return b.writeUInt32BE(p,0),b.writeUInt32BE(t,4),r&&r.copy(b,8),b.writeInt32BE(y.crc32(b.slice(4,b.length-4)),b.length-4),b},w.prototype.packGAMA=function(t){let r=i.alloc(4);return r.writeUInt32BE(Math.floor(t*p.GAMMA_DIVISION),0),this._packChunk(p.TYPE_gAMA,r)},w.prototype.packIHDR=function(t,r){let y=i.alloc(13);return y.writeUInt32BE(t,0),y.writeUInt32BE(r,4),y[8]=this._options.bitDepth,y[9]=this._options.colorType,y[10]=0,y[11]=0,y[12]=0,this._packChunk(p.TYPE_IHDR,y)},w.prototype.packIDAT=function(t){return this._packChunk(p.TYPE_IDAT,t)},w.prototype.packIEND=function(){return this._packChunk(p.TYPE_IEND,null)}}).call(this)}).call(this,t("buffer").Buffer)},{"./bitpacker":2,"./constants":4,"./crc":5,"./filter-pack":6,buffer:33,zlib:32}],15:[function(t,r,i){"use strict";r.exports=function(t,r,i){let p=t+r-i,y=Math.abs(p-t),b=Math.abs(p-r),_=Math.abs(p-i);return y<=b&&y<=_?t:b<=_?r:i}},{}],16:[function(t,r,i){"use strict";let p=t("util"),y=t("zlib"),b=t("./chunkstream"),_=t("./filter-parse-async"),m=t("./parser"),w=t("./bitmapper"),S=t("./format-normaliser"),A=r.exports=function(t){b.call(this),this._parser=new m(t,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=t,this.writable=!0,this._parser.start()};p.inherits(A,b),A.prototype._handleError=function(t){this.emit("error",t),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",function(){})),this.errord=!0},A.prototype._inflateData=function(t){if(!this._inflate){if(this._bitmapInfo.interlace)this._inflate=y.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let t=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,r=Math.max(t,y.Z_MIN_CHUNK);this._inflate=y.createInflate({chunkSize:r});let i=t,p=this.emit.bind(this,"error");this._inflate.on("error",function(t){i&&p(t)}),this._filter.on("complete",this._complete.bind(this));let b=this._filter.write.bind(this._filter);this._inflate.on("data",function(t){i&&(t.length>i&&(t=t.slice(0,i)),i-=t.length,b(t))}),this._inflate.on("end",this._filter.end.bind(this._filter))}}this._inflate.write(t)},A.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new _(this._bitmapInfo)},A.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},A.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},A.prototype._simpleTransparency=function(){this._metaData.alpha=!0},A.prototype._headersFinished=function(){this.emit("metadata",this._metaData)},A.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))},A.prototype._complete=function(t){let r;if(!this.errord){try{let i=w.dataToBitMap(t,this._bitmapInfo);r=S(i,this._bitmapInfo,this._options.skipRescale),i=null}catch(t){this._handleError(t);return}this.emit("parsed",r)}}},{"./bitmapper":1,"./chunkstream":3,"./filter-parse-async":7,"./format-normaliser":10,"./parser":18,util:81,zlib:32}],17:[function(t,r,i){(function(i){(function(){"use strict";let p=!0,y=t("zlib"),b=t("./sync-inflate");y.deflateSync||(p=!1);let _=t("./sync-reader"),m=t("./filter-parse-sync"),w=t("./parser"),S=t("./bitmapper"),A=t("./format-normaliser");r.exports=function(t,r){let k,T,R,O;if(!p)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let x=[],P=new _(t);if(new w(r,{read:P.read.bind(P),error:function(t){k=t},metadata:function(t){T=t},gamma:function(t){R=t},palette:function(t){T.palette=t},transColor:function(t){T.transColor=t},inflateData:function(t){x.push(t)},simpleTransparency:function(){T.alpha=!0}}).start(),P.process(),k)throw k;let L=i.concat(x);if(x.length=0,T.interlace)O=y.inflateSync(L);else{let t=((T.width*T.bpp*T.depth+7>>3)+1)*T.height;O=b(L,{chunkSize:t,maxLength:t})}if(L=null,!O||!O.length)throw Error("bad png - invalid inflate data response");let M=m.process(O,T);L=null;let C=S.dataToBitMap(M,T);M=null;let N=A(C,T,r.skipRescale);return T.data=N,T.gamma=R||0,T}}).call(this)}).call(this,t("buffer").Buffer)},{"./bitmapper":1,"./filter-parse-sync":8,"./format-normaliser":10,"./parser":18,"./sync-inflate":21,"./sync-reader":22,buffer:33,zlib:32}],18:[function(t,r,i){(function(i){(function(){"use strict";let p=t("./constants"),y=t("./crc"),b=r.exports=function(t,r){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[p.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[p.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[p.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[p.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[p.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[p.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=r.read,this.error=r.error,this.metadata=r.metadata,this.gamma=r.gamma,this.transColor=r.transColor,this.palette=r.palette,this.parsed=r.parsed,this.inflateData=r.inflateData,this.finished=r.finished,this.simpleTransparency=r.simpleTransparency,this.headersFinished=r.headersFinished||function(){}};b.prototype.start=function(){this.read(p.PNG_SIGNATURE.length,this._parseSignature.bind(this))},b.prototype._parseSignature=function(t){let r=p.PNG_SIGNATURE;for(let i=0;ithis._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let r=0;r0?this._handleIDAT(i):this._handleChunkEnd()},b.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},b.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}}).call(this)}).call(this,t("buffer").Buffer)},{"./constants":4,"./crc":5,buffer:33}],19:[function(t,r,i){"use strict";let p=t("./parser-sync"),y=t("./packer-sync");i.read=function(t,r){return p(t,r||{})},i.write=function(t,r){return y(t,r)}},{"./packer-sync":13,"./parser-sync":17}],20:[function(t,r,i){(function(r,p){(function(){"use strict";let y=t("util"),b=t("stream"),_=t("./parser-async"),m=t("./packer-async"),w=t("./png-sync"),S=i.PNG=function(t){b.call(this),t=t||{},this.width=0|t.width,this.height=0|t.height,this.data=this.width>0&&this.height>0?p.alloc(4*this.width*this.height):null,t.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new _(t),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",(function(t){this.data=t,this.emit("parsed",t)}).bind(this)),this._packer=new m(t),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};y.inherits(S,b),S.sync=w,S.prototype.pack=function(){return this.data&&this.data.length?r.nextTick((function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}).bind(this)):this.emit("error","No data provided"),this},S.prototype.parse=function(t,r){if(r){let t,i;t=(function(t){this.removeListener("error",i),this.data=t,r(null,this)}).bind(this),i=(function(i){this.removeListener("parsed",t),r(i,null)}).bind(this),this.once("parsed",t),this.once("error",i)}return this.end(t),this},S.prototype.write=function(t){return this._parser.write(t),!0},S.prototype.end=function(t){this._parser.end(t)},S.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit("metadata",t)},S.prototype._gamma=function(t){this.gamma=t},S.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},S.bitblt=function(t,r,i,p,y,b,_,m){if(p|=0,y|=0,b|=0,_|=0,m|=0,(i|=0)>t.width||p>t.height||i+y>t.width||p+b>t.height)throw Error("bitblt reading outside image");if(_>r.width||m>r.height||_+y>r.width||m+b>r.height)throw Error("bitblt writing outside image");for(let w=0;w=0,"have should not go down"),i>0){let t=S._buffer.slice(S._offset,S._offset+i);if(S._offset+=i,t.length>T&&(t=t.slice(0,T)),O.push(t),x+=t.length,0==(T-=t.length))return!1}return(0===r||S._offset>=S._chunkSize)&&(k=S._chunkSize,S._offset=0,S._buffer=y.allocUnsafe(S._chunkSize)),0===r&&(R+=A-t,A=t,!0)}(m[0],m[1]));if(this._hadError)throw p;if(x>=w)throw _close(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+w.toString(16)+" bytes");let P=y.concat(O,x);return _close(this),P},m.inherits(Inflate,_.Inflate),r.exports=i=inflateSync,i.Inflate=Inflate,i.createInflate=function(t){return new Inflate(t)},i.inflateSync=inflateSync}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{_process:60,assert:23,buffer:33,util:81,zlib:32}],22:[function(t,r,i){"use strict";let p=r.exports=function(t){this._buffer=t,this._reads=[]};p.prototype.read=function(t,r){this._reads.push({length:Math.abs(t),allowLess:t<0,func:r})},p.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let t=this._reads[0];if(this._buffer.length&&(this._buffer.length>=t.length||t.allowLess)){this._reads.shift();let r=this._buffer;this._buffer=r.slice(t.length),t.func.call(this,r.slice(0,t.length))}else break}if(this._reads.length>0)throw Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)throw Error("unrecognised content at end of stream")}},{}],23:[function(t,r,p){(function(i){(function(){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */function compare(t,r){if(t===r)return 0;for(var i=t.length,p=r.length,y=0,b=Math.min(i,p);y=0;m--)if(k[m]!==T[m])return!1;for(m=k.length-1;m>=0;m--)if(!_deepEqual(t[_=k[m]],r[_],i,y))return!1;return!0}(t,r,i,y))}function isArguments(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function expectedException(t,r){if(!t||!r)return!1;if("[object RegExp]"==Object.prototype.toString.call(r))return r.test(t);try{if(t instanceof r)return!0}catch(t){}return!Error.isPrototypeOf(r)&&!0===r.call({},t)}function _throws(t,r,i,y){if("function"!=typeof r)throw TypeError('"block" argument must be a function');"string"==typeof i&&(y=i,i=null),b=function(t){var r;try{t()}catch(t){r=t}return r}(r),y=(i&&i.name?" ("+i.name+").":".")+(y?" "+y:"."),t&&!b&&fail(b,i,"Missing expected exception"+y);var b,_="string"==typeof y,m=!t&&p.isError(b),w=!t&&b&&!i;if((m&&_&&expectedException(b,i)||w)&&fail(b,i,"Got unwanted exception"+y),t&&b&&i&&!expectedException(b,i)||!t&&b)throw b}m.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=truncate(inspect(this.actual),128)+" "+this.operator+" "+truncate(inspect(this.expected),128),this.generatedMessage=!0);var r=t.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var i=Error();if(i.stack){var p=i.stack,y=getName(r),b=p.indexOf("\n"+y);if(b>=0){var _=p.indexOf("\n",b+1);p=p.substring(_+1)}this.stack=p}}},p.inherits(m.AssertionError,Error),m.fail=fail,m.ok=ok,m.equal=function(t,r,i){t!=r&&fail(t,r,i,"==",m.equal)},m.notEqual=function(t,r,i){t==r&&fail(t,r,i,"!=",m.notEqual)},m.deepEqual=function(t,r,i){_deepEqual(t,r,!1)||fail(t,r,i,"deepEqual",m.deepEqual)},m.deepStrictEqual=function(t,r,i){_deepEqual(t,r,!0)||fail(t,r,i,"deepStrictEqual",m.deepStrictEqual)},m.notDeepEqual=function(t,r,i){_deepEqual(t,r,!1)&&fail(t,r,i,"notDeepEqual",m.notDeepEqual)},m.notDeepStrictEqual=function notDeepStrictEqual(t,r,i){_deepEqual(t,r,!0)&&fail(t,r,i,"notDeepStrictEqual",notDeepStrictEqual)},m.strictEqual=function(t,r,i){t!==r&&fail(t,r,i,"===",m.strictEqual)},m.notStrictEqual=function(t,r,i){t===r&&fail(t,r,i,"!==",m.notStrictEqual)},m.throws=function(t,r,i){_throws(!0,t,r,i)},m.doesNotThrow=function(t,r,i){_throws(!1,t,r,i)},m.ifError=function(t){if(t)throw t};var S=Object.keys||function(t){var r=[];for(var i in t)y.call(t,i)&&r.push(i);return r}}).call(this)}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"util/":26}],24:[function(t,r,i){"function"==typeof Object.create?r.exports=function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:r.exports=function(t,r){t.super_=r;var TempCtor=function(){};TempCtor.prototype=r.prototype,t.prototype=new TempCtor,t.prototype.constructor=t}},{}],25:[function(t,r,i){r.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],26:[function(t,r,p){(function(r,i){(function(){var y,b=/%[sdj%]/g;p.format=function(t){if(!isString(t)){for(var r=[],i=0;i=y)return t;switch(t){case"%s":return String(p[i++]);case"%d":return Number(p[i++]);case"%j":try{return JSON.stringify(p[i++])}catch(t){return"[Circular]"}default:return t}}),m=p[i];i=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),isBoolean(r)?i.showHidden=r:r&&p._extend(i,r),isUndefined(i.showHidden)&&(i.showHidden=!1),isUndefined(i.depth)&&(i.depth=2),isUndefined(i.colors)&&(i.colors=!1),isUndefined(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=stylizeWithColor),formatValue(i,t,i.depth)}function stylizeWithColor(t,r){var i=inspect.styles[r];return i?"\x1b["+inspect.colors[i][0]+"m"+t+"\x1b["+inspect.colors[i][1]+"m":t}function stylizeNoColor(t,r){return t}function formatValue(t,r,i){if(t.customInspect&&r&&isFunction(r.inspect)&&r.inspect!==p.inspect&&!(r.constructor&&r.constructor.prototype===r)){var y,b,_,m,w,S=r.inspect(i,t);return isString(S)||(S=formatValue(t,S,i)),S}var A=function(t,r){if(isUndefined(r))return t.stylize("undefined","undefined");if(isString(r)){var i="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(i,"string")}return isNumber(r)?t.stylize(""+r,"number"):isBoolean(r)?t.stylize(""+r,"boolean"):isNull(r)?t.stylize("null","null"):void 0}(t,r);if(A)return A;var k=Object.keys(r),T=(m={},k.forEach(function(t,r){m[t]=!0}),m);if(t.showHidden&&(k=Object.getOwnPropertyNames(r)),isError(r)&&(k.indexOf("message")>=0||k.indexOf("description")>=0))return formatError(r);if(0===k.length){if(isFunction(r)){var R=r.name?": "+r.name:"";return t.stylize("[Function"+R+"]","special")}if(isRegExp(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(isDate(r))return t.stylize(Date.prototype.toString.call(r),"date");if(isError(r))return formatError(r)}var O="",x=!1,P=["{","}"];return(isArray(r)&&(x=!0,P=["[","]"]),isFunction(r)&&(O=" [Function"+(r.name?": "+r.name:"")+"]"),isRegExp(r)&&(O=" "+RegExp.prototype.toString.call(r)),isDate(r)&&(O=" "+Date.prototype.toUTCString.call(r)),isError(r)&&(O=" "+formatError(r)),0!==k.length||x&&0!=r.length)?i<0?isRegExp(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),w=x?function(t,r,i,p,y){for(var b=[],_=0,m=r.length;_=0&&_++,t+r.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?b[0]+(""===y?"":y+"\n ")+" "+w.join(",\n ")+" "+b[1]:b[0]+y+" "+w.join(", ")+" "+b[1]):P[0]+O+P[1]}function formatError(t){return"["+Error.prototype.toString.call(t)+"]"}function formatProperty(t,r,i,p,y,b){var _,m,w;if((w=Object.getOwnPropertyDescriptor(r,y)||{value:r[y]}).get?m=w.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):w.set&&(m=t.stylize("[Setter]","special")),hasOwnProperty(p,y)||(_="["+y+"]"),!m&&(0>t.seen.indexOf(w.value)?(m=isNull(i)?formatValue(t,w.value,null):formatValue(t,w.value,i-1)).indexOf("\n")>-1&&(m=b?m.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+m.split("\n").map(function(t){return" "+t}).join("\n")):m=t.stylize("[Circular]","special")),isUndefined(_)){if(b&&y.match(/^\d+$/))return m;(_=JSON.stringify(""+y)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_=_.substr(1,_.length-2),_=t.stylize(_,"name")):(_=_.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_=t.stylize(_,"string"))}return _+": "+m}function isArray(t){return Array.isArray(t)}function isBoolean(t){return"boolean"==typeof t}function isNull(t){return null===t}function isNumber(t){return"number"==typeof t}function isString(t){return"string"==typeof t}function isUndefined(t){return void 0===t}function isRegExp(t){return isObject(t)&&"[object RegExp]"===objectToString(t)}function isObject(t){return"object"==typeof t&&null!==t}function isDate(t){return isObject(t)&&"[object Date]"===objectToString(t)}function isError(t){return isObject(t)&&("[object Error]"===objectToString(t)||t instanceof Error)}function isFunction(t){return"function"==typeof t}function objectToString(t){return Object.prototype.toString.call(t)}function pad(t){return t<10?"0"+t.toString(10):t.toString(10)}p.debuglog=function(t){if(isUndefined(y)&&(y=r.env.NODE_DEBUG||""),!_[t=t.toUpperCase()]){if(RegExp("\\b"+t+"\\b","i").test(y)){var i=r.pid;_[t]=function(){var r=p.format.apply(p,arguments);console.error("%s %d: %s",t,i,r)}}else _[t]=function(){}}return _[t]},p.inspect=inspect,inspect.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]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},p.isArray=isArray,p.isBoolean=isBoolean,p.isNull=isNull,p.isNullOrUndefined=function(t){return null==t},p.isNumber=isNumber,p.isString=isString,p.isSymbol=function(t){return"symbol"==typeof t},p.isUndefined=isUndefined,p.isRegExp=isRegExp,p.isObject=isObject,p.isDate=isDate,p.isError=isError,p.isFunction=isFunction,p.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},p.isBuffer=t("./support/isBuffer");var m=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hasOwnProperty(t,r){return Object.prototype.hasOwnProperty.call(t,r)}p.log=function(){var t,r;console.log("%s - %s",(r=[pad((t=new Date).getHours()),pad(t.getMinutes()),pad(t.getSeconds())].join(":"),[t.getDate(),m[t.getMonth()],r].join(" ")),p.format.apply(p,arguments))},p.inherits=t("inherits"),p._extend=function(t,r){if(!r||!isObject(r))return t;for(var i=Object.keys(r),p=i.length;p--;)t[i[p]]=r[i[p]];return t}}).call(this)}).call(this,t("_process"),void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":25,_process:60,inherits:24}],27:[function(t,r,p){(function(i){(function(){"use strict";var p=t("array-filter");r.exports=function(){return p(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(t){return"function"==typeof i[t]})}}).call(this)}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"array-filter":28}],28:[function(t,r,i){r.exports=function(t,r,i){if(t.filter)return t.filter(r,i);if(null==t||"function"!=typeof r)throw TypeError();for(var y=[],b=0;b0?_-4:_;for(i=0;i>16&255,w[S++]=r>>8&255,w[S++]=255&r;return 2===m&&(r=y[t.charCodeAt(i)]<<2|y[t.charCodeAt(i+1)]>>4,w[S++]=255&r),1===m&&(r=y[t.charCodeAt(i)]<<10|y[t.charCodeAt(i+1)]<<4|y[t.charCodeAt(i+2)]>>2,w[S++]=r>>8&255,w[S++]=255&r),w},i.fromByteArray=function(t){for(var r,i=t.length,y=i%3,b=[],_=0,m=i-y;_>18&63]+p[y>>12&63]+p[y>>6&63]+p[63&y]);return b.join("")}(t,_,_+16383>m?m:_+16383));return 1===y?b.push(p[(r=t[i-1])>>2]+p[r<<4&63]+"=="):2===y&&b.push(p[(r=(t[i-2]<<8)+t[i-1])>>10]+p[r>>4&63]+p[r<<2&63]+"="),b.join("")};for(var p=[],y=[],b="undefined"!=typeof Uint8Array?Uint8Array:Array,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,w=_.length;m0)throw Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");-1===i&&(i=r);var p=i===r?0:4-i%4;return[i,p]}y["-".charCodeAt(0)]=62,y["_".charCodeAt(0)]=63},{}],30:[function(t,r,i){},{}],31:[function(t,r,i){(function(r,p){(function(){"use strict";var y=t("assert"),b=t("pako/lib/zlib/zstream"),_=t("pako/lib/zlib/deflate.js"),m=t("pako/lib/zlib/inflate.js"),w=t("pako/lib/zlib/constants");for(var S in w)i[S]=w[S];function Zlib(t){if("number"!=typeof t||ti.UNZIP)throw TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}i.NONE=0,i.DEFLATE=1,i.INFLATE=2,i.GZIP=3,i.GUNZIP=4,i.DEFLATERAW=5,i.INFLATERAW=6,i.UNZIP=7,Zlib.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,y(this.init_done,"close before init"),y(this.mode<=i.UNZIP),this.mode===i.DEFLATE||this.mode===i.GZIP||this.mode===i.DEFLATERAW?_.deflateEnd(this.strm):(this.mode===i.INFLATE||this.mode===i.GUNZIP||this.mode===i.INFLATERAW||this.mode===i.UNZIP)&&m.inflateEnd(this.strm),this.mode=i.NONE,this.dictionary=null},Zlib.prototype.write=function(t,r,i,p,y,b,_){return this._write(!0,t,r,i,p,y,b,_)},Zlib.prototype.writeSync=function(t,r,i,p,y,b,_){return this._write(!1,t,r,i,p,y,b,_)},Zlib.prototype._write=function(t,b,_,m,w,S,A,k){if(y.equal(arguments.length,8),y(this.init_done,"write before init"),y(this.mode!==i.NONE,"already finalized"),y.equal(!1,this.write_in_progress,"write already in progress"),y.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,y.equal(!1,void 0===b,"must provide flush value"),this.write_in_progress=!0,b!==i.Z_NO_FLUSH&&b!==i.Z_PARTIAL_FLUSH&&b!==i.Z_SYNC_FLUSH&&b!==i.Z_FULL_FLUSH&&b!==i.Z_FINISH&&b!==i.Z_BLOCK)throw Error("Invalid flush value");if(null==_&&(_=p.alloc(0),w=0,m=0),this.strm.avail_in=w,this.strm.input=_,this.strm.next_in=m,this.strm.avail_out=k,this.strm.output=S,this.strm.next_out=A,this.flush=b,!t)return(this._process(),this._checkError())?this._afterSync():void 0;var T=this;return r.nextTick(function(){T._process(),T._after()}),this},Zlib.prototype._afterSync=function(){var t=this.strm.avail_out,r=this.strm.avail_in;return this.write_in_progress=!1,[r,t]},Zlib.prototype._process=function(){var t=null;switch(this.mode){case i.DEFLATE:case i.GZIP:case i.DEFLATERAW:this.err=_.deflate(this.strm,this.flush);break;case i.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31===this.strm.input[t]){if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break}else{this.mode=i.INFLATE;break}case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=i.GUNZIP):this.mode=i.INFLATE;break;default:throw Error("invalid number of gzip magic number bytes read")}case i.INFLATE:case i.GUNZIP:case i.INFLATERAW:for(this.err=m.inflate(this.strm,this.flush),this.err===i.Z_NEED_DICT&&this.dictionary&&(this.err=m.inflateSetDictionary(this.strm,this.dictionary),this.err===i.Z_OK?this.err=m.inflate(this.strm,this.flush):this.err===i.Z_DATA_ERROR&&(this.err=i.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===i.GUNZIP&&this.err===i.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=m.inflate(this.strm,this.flush);break;default:throw Error("Unknown mode "+this.mode)}},Zlib.prototype._checkError=function(){switch(this.err){case i.Z_OK:case i.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===i.Z_FINISH)return this._error("unexpected end of file"),!1;break;case i.Z_STREAM_END:break;case i.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},Zlib.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,r=this.strm.avail_in;this.write_in_progress=!1,this.callback(r,t),this.pending_close&&this.close()}},Zlib.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},Zlib.prototype.init=function(t,r,p,b,_){y(4==arguments.length||5==arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),y(t>=8&&t<=15,"invalid windowBits"),y(r>=-1&&r<=9,"invalid compression level"),y(p>=1&&p<=9,"invalid memlevel"),y(b===i.Z_FILTERED||b===i.Z_HUFFMAN_ONLY||b===i.Z_RLE||b===i.Z_FIXED||b===i.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,t,p,b,_),this._setDictionary()},Zlib.prototype.params=function(){throw Error("deflateParams Not supported")},Zlib.prototype.reset=function(){this._reset(),this._setDictionary()},Zlib.prototype._init=function(t,r,p,y,w){switch(this.level=t,this.windowBits=r,this.memLevel=p,this.strategy=y,this.flush=i.Z_NO_FLUSH,this.err=i.Z_OK,(this.mode===i.GZIP||this.mode===i.GUNZIP)&&(this.windowBits+=16),this.mode===i.UNZIP&&(this.windowBits+=32),(this.mode===i.DEFLATERAW||this.mode===i.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new b,this.mode){case i.DEFLATE:case i.GZIP:case i.DEFLATERAW:this.err=_.deflateInit2(this.strm,this.level,i.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case i.INFLATE:case i.GUNZIP:case i.INFLATERAW:case i.UNZIP:this.err=m.inflateInit2(this.strm,this.windowBits);break;default:throw Error("Unknown mode "+this.mode)}this.err!==i.Z_OK&&this._error("Init error"),this.dictionary=w,this.write_in_progress=!1,this.init_done=!0},Zlib.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=i.Z_OK,this.mode){case i.DEFLATE:case i.DEFLATERAW:this.err=_.deflateSetDictionary(this.strm,this.dictionary)}this.err!==i.Z_OK&&this._error("Failed to set dictionary")}},Zlib.prototype._reset=function(){switch(this.err=i.Z_OK,this.mode){case i.DEFLATE:case i.DEFLATERAW:case i.GZIP:this.err=_.deflateReset(this.strm);break;case i.INFLATE:case i.INFLATERAW:case i.GUNZIP:this.err=m.inflateReset(this.strm)}this.err!==i.Z_OK&&this._error("Failed to reset stream")},i.Zlib=Zlib}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{_process:60,assert:23,buffer:33,"pako/lib/zlib/constants":51,"pako/lib/zlib/deflate.js":53,"pako/lib/zlib/inflate.js":55,"pako/lib/zlib/zstream":59}],32:[function(t,r,i){(function(r){(function(){"use strict";var p=t("buffer").Buffer,y=t("stream").Transform,b=t("./binding"),_=t("util"),m=t("assert").ok,w=t("buffer").kMaxLength,S="Cannot create final Buffer. It would be larger than 0x"+w.toString(16)+" bytes";b.Z_MIN_WINDOWBITS=8,b.Z_MAX_WINDOWBITS=15,b.Z_DEFAULT_WINDOWBITS=15,b.Z_MIN_CHUNK=64,b.Z_MAX_CHUNK=1/0,b.Z_DEFAULT_CHUNK=16384,b.Z_MIN_MEMLEVEL=1,b.Z_MAX_MEMLEVEL=9,b.Z_DEFAULT_MEMLEVEL=8,b.Z_MIN_LEVEL=-1,b.Z_MAX_LEVEL=9,b.Z_DEFAULT_LEVEL=b.Z_DEFAULT_COMPRESSION;for(var A=Object.keys(b),k=0;k=w?_=RangeError(S):r=p.concat(y,b),y=[],t.close(),i(_,r)}t.on("error",function(r){t.removeListener("end",onEnd),t.removeListener("readable",flow),i(r)}),t.on("end",onEnd),t.end(r),flow()}function zlibBufferSync(t,r){if("string"==typeof r&&(r=p.from(r)),!p.isBuffer(r))throw TypeError("Not a string or buffer");var i=t._finishFlushFlag;return t._processChunk(r,i)}function Deflate(t){if(!(this instanceof Deflate))return new Deflate(t);Zlib.call(this,t,b.DEFLATE)}function Inflate(t){if(!(this instanceof Inflate))return new Inflate(t);Zlib.call(this,t,b.INFLATE)}function Gzip(t){if(!(this instanceof Gzip))return new Gzip(t);Zlib.call(this,t,b.GZIP)}function Gunzip(t){if(!(this instanceof Gunzip))return new Gunzip(t);Zlib.call(this,t,b.GUNZIP)}function DeflateRaw(t){if(!(this instanceof DeflateRaw))return new DeflateRaw(t);Zlib.call(this,t,b.DEFLATERAW)}function InflateRaw(t){if(!(this instanceof InflateRaw))return new InflateRaw(t);Zlib.call(this,t,b.INFLATERAW)}function Unzip(t){if(!(this instanceof Unzip))return new Unzip(t);Zlib.call(this,t,b.UNZIP)}function isValidFlushFlag(t){return t===b.Z_NO_FLUSH||t===b.Z_PARTIAL_FLUSH||t===b.Z_SYNC_FLUSH||t===b.Z_FULL_FLUSH||t===b.Z_FINISH||t===b.Z_BLOCK}function Zlib(t,r){var _=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||i.Z_DEFAULT_CHUNK,y.call(this,t),t.flush&&!isValidFlushFlag(t.flush))throw Error("Invalid flush flag: "+t.flush);if(t.finishFlush&&!isValidFlushFlag(t.finishFlush))throw Error("Invalid flush flag: "+t.finishFlush);if(this._flushFlag=t.flush||b.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:b.Z_FINISH,t.chunkSize&&(t.chunkSizei.Z_MAX_CHUNK))throw Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBitsi.Z_MAX_WINDOWBITS))throw Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.leveli.Z_MAX_LEVEL))throw Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLeveli.Z_MAX_MEMLEVEL))throw Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=i.Z_FILTERED&&t.strategy!=i.Z_HUFFMAN_ONLY&&t.strategy!=i.Z_RLE&&t.strategy!=i.Z_FIXED&&t.strategy!=i.Z_DEFAULT_STRATEGY)throw Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!p.isBuffer(t.dictionary))throw Error("Invalid dictionary: it should be a Buffer instance");this._handle=new b.Zlib(r);var m=this;this._hadError=!1,this._handle.onerror=function(t,r){_close(m),m._hadError=!0;var p=Error(t);p.errno=r,p.code=i.codes[r],m.emit("error",p)};var w=i.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(w=t.level);var S=i.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(S=t.strategy),this._handle.init(t.windowBits||i.Z_DEFAULT_WINDOWBITS,w,t.memLevel||i.Z_DEFAULT_MEMLEVEL,S,t.dictionary),this._buffer=p.allocUnsafe(this._chunkSize),this._offset=0,this._level=w,this._strategy=S,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!_._handle},configurable:!0,enumerable:!0})}function _close(t,i){i&&r.nextTick(i),t._handle&&(t._handle.close(),t._handle=null)}function emitCloseNT(t){t.emit("close")}Object.defineProperty(i,"codes",{enumerable:!0,value:Object.freeze(R),writable:!1}),i.Deflate=Deflate,i.Inflate=Inflate,i.Gzip=Gzip,i.Gunzip=Gunzip,i.DeflateRaw=DeflateRaw,i.InflateRaw=InflateRaw,i.Unzip=Unzip,i.createDeflate=function(t){return new Deflate(t)},i.createInflate=function(t){return new Inflate(t)},i.createDeflateRaw=function(t){return new DeflateRaw(t)},i.createInflateRaw=function(t){return new InflateRaw(t)},i.createGzip=function(t){return new Gzip(t)},i.createGunzip=function(t){return new Gunzip(t)},i.createUnzip=function(t){return new Unzip(t)},i.deflate=function(t,r,i){return"function"==typeof r&&(i=r,r={}),zlibBuffer(new Deflate(r),t,i)},i.deflateSync=function(t,r){return zlibBufferSync(new Deflate(r),t)},i.gzip=function(t,r,i){return"function"==typeof r&&(i=r,r={}),zlibBuffer(new Gzip(r),t,i)},i.gzipSync=function(t,r){return zlibBufferSync(new Gzip(r),t)},i.deflateRaw=function(t,r,i){return"function"==typeof r&&(i=r,r={}),zlibBuffer(new DeflateRaw(r),t,i)},i.deflateRawSync=function(t,r){return zlibBufferSync(new DeflateRaw(r),t)},i.unzip=function(t,r,i){return"function"==typeof r&&(i=r,r={}),zlibBuffer(new Unzip(r),t,i)},i.unzipSync=function(t,r){return zlibBufferSync(new Unzip(r),t)},i.inflate=function(t,r,i){return"function"==typeof r&&(i=r,r={}),zlibBuffer(new Inflate(r),t,i)},i.inflateSync=function(t,r){return zlibBufferSync(new Inflate(r),t)},i.gunzip=function(t,r,i){return"function"==typeof r&&(i=r,r={}),zlibBuffer(new Gunzip(r),t,i)},i.gunzipSync=function(t,r){return zlibBufferSync(new Gunzip(r),t)},i.inflateRaw=function(t,r,i){return"function"==typeof r&&(i=r,r={}),zlibBuffer(new InflateRaw(r),t,i)},i.inflateRawSync=function(t,r){return zlibBufferSync(new InflateRaw(r),t)},_.inherits(Zlib,y),Zlib.prototype.params=function(t,p,y){if(ti.Z_MAX_LEVEL)throw RangeError("Invalid compression level: "+t);if(p!=i.Z_FILTERED&&p!=i.Z_HUFFMAN_ONLY&&p!=i.Z_RLE&&p!=i.Z_FIXED&&p!=i.Z_DEFAULT_STRATEGY)throw TypeError("Invalid strategy: "+p);if(this._level!==t||this._strategy!==p){var _=this;this.flush(b.Z_SYNC_FLUSH,function(){m(_._handle,"zlib binding closed"),_._handle.params(t,p),!_._hadError&&(_._level=t,_._strategy=p,y&&y())})}else r.nextTick(y)},Zlib.prototype.reset=function(){return m(this._handle,"zlib binding closed"),this._handle.reset()},Zlib.prototype._flush=function(t){this._transform(p.alloc(0),"",t)},Zlib.prototype.flush=function(t,i){var y=this,_=this._writableState;"function"!=typeof t&&(void 0!==t||i)||(i=t,t=b.Z_FULL_FLUSH),_.ended?i&&r.nextTick(i):_.ending?i&&this.once("end",i):_.needDrain?i&&this.once("drain",function(){return y.flush(t,i)}):(this._flushFlag=t,this.write(p.alloc(0),"",i))},Zlib.prototype.close=function(t){_close(this,t),r.nextTick(emitCloseNT,this)},Zlib.prototype._transform=function(t,r,i){var y,_=this._writableState,m=(_.ending||_.ended)&&(!t||_.length===t.length);return null===t||p.isBuffer(t)?this._handle?void(m?y=this._finishFlushFlag:(y=this._flushFlag,t.length>=_.length&&(this._flushFlag=this._opts.flush||b.Z_NO_FLUSH)),this._processChunk(t,y,i)):i(Error("zlib binding closed")):i(Error("invalid input"))},Zlib.prototype._processChunk=function(t,r,i){var y=t&&t.length,b=this._chunkSize-this._offset,_=0,A=this,k="function"==typeof i;if(!k){var T,R=[],O=0;this.on("error",function(t){T=t}),m(this._handle,"zlib binding closed");do var x=this._handle.writeSync(r,t,_,y,this._buffer,this._offset,b);while(!this._hadError&&callback(x[0],x[1]));if(this._hadError)throw T;if(O>=w)throw _close(this),RangeError(S);var P=p.concat(R,O);return _close(this),P}m(this._handle,"zlib binding closed");var L=this._handle.write(r,t,_,y,this._buffer,this._offset,b);function callback(w,S){if(this&&(this.buffer=null,this.callback=null),!A._hadError){var T=b-S;if(m(T>=0,"have should not go down"),T>0){var x=A._buffer.slice(A._offset,A._offset+T);A._offset+=T,k?A.push(x):(R.push(x),O+=x.length)}if((0===S||A._offset>=A._chunkSize)&&(b=A._chunkSize,A._offset=0,A._buffer=p.allocUnsafe(A._chunkSize)),0===S){if(_+=y-w,y=w,!k)return!0;var P=A._handle.write(r,t,_,y,A._buffer,A._offset,A._chunkSize);return P.callback=callback,void(P.buffer=t)}if(!k)return!1;i()}}L.buffer=t,L.callback=callback},_.inherits(Deflate,Zlib),_.inherits(Inflate,Zlib),_.inherits(Gzip,Zlib),_.inherits(Gunzip,Zlib),_.inherits(DeflateRaw,Zlib),_.inherits(InflateRaw,Zlib),_.inherits(Unzip,Zlib)}).call(this)}).call(this,t("_process"))},{"./binding":31,_process:60,assert:23,buffer:33,stream:61,util:81}],33:[function(t,r,i){(function(r){(function(){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */"use strict";var r=t("base64-js"),p=t("ieee754");function createBuffer(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return r.__proto__=Buffer.prototype,r}function Buffer(t,r,i){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(t)}return from(t,r,i)}function from(t,r,i){if("string"==typeof t)return function(t,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!Buffer.isEncoding(r))throw TypeError("Unknown encoding: "+r);var i=0|byteLength(t,r),p=createBuffer(i),y=p.write(t,r);return y!==i&&(p=p.slice(0,y)),p}(t,r);if(ArrayBuffer.isView(t))return fromArrayLike(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(isInstance(t,ArrayBuffer)||t&&isInstance(t.buffer,ArrayBuffer))return function(t,r,i){var p;if(r<0||t.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function byteLength(t,r){if(Buffer.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||isInstance(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,p=arguments.length>2&&!0===arguments[2];if(!p&&0===i)return 0;for(var y=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return utf8ToBytes(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return base64ToBytes(t).length;default:if(y)return p?-1:utf8ToBytes(t).length;r=(""+r).toLowerCase(),y=!0}}function slowToString(t,i,p){var y,b,_=!1;if((void 0===i||i<0)&&(i=0),i>this.length||((void 0===p||p>this.length)&&(p=this.length),p<=0||(p>>>=0)<=(i>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,i){var p,y=t.length;(!r||r<0)&&(r=0),(!i||i<0||i>y)&&(i=y);for(var b="",_=r;_2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),(b=i=+i)!=b&&(i=y?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(y)return -1;i=t.length-1}else if(i<0){if(!y)return -1;i=0}if("string"==typeof r&&(r=Buffer.from(r,p)),Buffer.isBuffer(r))return 0===r.length?-1:arrayIndexOf(t,r,i,p,y);if("number"==typeof r)return(r&=255,"function"==typeof Uint8Array.prototype.indexOf)?y?Uint8Array.prototype.indexOf.call(t,r,i):Uint8Array.prototype.lastIndexOf.call(t,r,i):arrayIndexOf(t,[r],i,p,y);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(t,r,i,p,y){var b,_=1,m=t.length,w=r.length;if(void 0!==p&&("ucs2"===(p=String(p).toLowerCase())||"ucs-2"===p||"utf16le"===p||"utf-16le"===p)){if(t.length<2||r.length<2)return -1;_=2,m/=2,w/=2,i/=2}function read(t,r){return 1===_?t[r]:t.readUInt16BE(r*_)}if(y){var S=-1;for(b=i;bm&&(i=m-w),b=i;b>=0;b--){for(var A=!0,k=0;k239?4:S>223?3:S>191?2:1;if(y+k<=i)switch(k){case 1:S<128&&(A=S);break;case 2:(192&(b=t[y+1]))==128&&(w=(31&S)<<6|63&b)>127&&(A=w);break;case 3:b=t[y+1],_=t[y+2],(192&b)==128&&(192&_)==128&&(w=(15&S)<<12|(63&b)<<6|63&_)>2047&&(w<55296||w>57343)&&(A=w);break;case 4:b=t[y+1],_=t[y+2],m=t[y+3],(192&b)==128&&(192&_)==128&&(192&m)==128&&(w=(15&S)<<18|(63&b)<<12|(63&_)<<6|63&m)>65535&&w<1114112&&(A=w)}null===A?(A=65533,k=1):A>65535&&(A-=65536,p.push(A>>>10&1023|55296),A=56320|1023&A),p.push(A),y+=k}return function(t){var r=t.length;if(r<=4096)return String.fromCharCode.apply(String,t);for(var i="",p=0;pi)throw RangeError("Trying to access beyond buffer length")}function checkInt(t,r,i,p,y,b){if(!Buffer.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(r>y||rt.length)throw RangeError("Index out of range")}function checkIEEE754(t,r,i,p,y,b){if(i+p>t.length||i<0)throw RangeError("Index out of range")}function writeFloat(t,r,i,y,b){return r=+r,i>>>=0,b||checkIEEE754(t,r,i,4,34028234663852886e22,-34028234663852886e22),p.write(t,r,i,y,23,4),i+4}function writeDouble(t,r,i,y,b){return r=+r,i>>>=0,b||checkIEEE754(t,r,i,8,17976931348623157e292,-17976931348623157e292),p.write(t,r,i,y,52,8),i+8}i.Buffer=Buffer,i.SlowBuffer=function(t){return+t!=t&&(t=0),Buffer.alloc(+t)},i.INSPECT_MAX_BYTES=50,i.kMaxLength=2147483647,Buffer.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),Buffer.poolSize=8192,Buffer.from=function(t,r,i){return from(t,r,i)},Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,Buffer.alloc=function(t,r,i){return(assertSize(t),t<=0)?createBuffer(t):void 0!==r?"string"==typeof i?createBuffer(t).fill(r,i):createBuffer(t).fill(r):createBuffer(t)},Buffer.allocUnsafe=function(t){return allocUnsafe(t)},Buffer.allocUnsafeSlow=function(t){return allocUnsafe(t)},Buffer.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==Buffer.prototype},Buffer.compare=function(t,r){if(isInstance(t,Uint8Array)&&(t=Buffer.from(t,t.offset,t.byteLength)),isInstance(r,Uint8Array)&&(r=Buffer.from(r,r.offset,r.byteLength)),!Buffer.isBuffer(t)||!Buffer.isBuffer(r))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var i=t.length,p=r.length,y=0,b=Math.min(i,p);yr&&(t+=" ... "),""},Buffer.prototype.compare=function(t,r,i,p,y){if(isInstance(t,Uint8Array)&&(t=Buffer.from(t,t.offset,t.byteLength)),!Buffer.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===i&&(i=t?t.length:0),void 0===p&&(p=0),void 0===y&&(y=this.length),r<0||i>t.length||p<0||y>this.length)throw RangeError("out of range index");if(p>=y&&r>=i)return 0;if(p>=y)return -1;if(r>=i)return 1;if(r>>>=0,i>>>=0,p>>>=0,y>>>=0,this===t)return 0;for(var b=y-p,_=i-r,m=Math.min(b,_),w=this.slice(p,y),S=t.slice(r,i),A=0;A>>=0,isFinite(i)?(i>>>=0,void 0===p&&(p="utf8")):(p=i,i=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var y,b,_,m,w,S,A,k,T,R,O,x,P=this.length-r;if((void 0===i||i>P)&&(i=P),t.length>0&&(i<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");p||(p="utf8");for(var L=!1;;)switch(p){case"hex":return function(t,r,i,p){i=Number(i)||0;var y=t.length-i;p?(p=Number(p))>y&&(p=y):p=y;var b=r.length;p>b/2&&(p=b/2);for(var _=0;_>8,y.push(i%256),y.push(p);return y}(t,this.length-O),this,O,x);default:if(L)throw TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),L=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(t,r){var i=this.length;t=~~t,r=void 0===r?i:~~r,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),r<0?(r+=i)<0&&(r=0):r>i&&(r=i),r>>=0,r>>>=0,i||checkOffset(t,r,this.length);for(var p=this[t],y=1,b=0;++b>>=0,r>>>=0,i||checkOffset(t,r,this.length);for(var p=this[t+--r],y=1;r>0&&(y*=256);)p+=this[t+--r]*y;return p},Buffer.prototype.readUInt8=function(t,r){return t>>>=0,r||checkOffset(t,1,this.length),this[t]},Buffer.prototype.readUInt16LE=function(t,r){return t>>>=0,r||checkOffset(t,2,this.length),this[t]|this[t+1]<<8},Buffer.prototype.readUInt16BE=function(t,r){return t>>>=0,r||checkOffset(t,2,this.length),this[t]<<8|this[t+1]},Buffer.prototype.readUInt32LE=function(t,r){return t>>>=0,r||checkOffset(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Buffer.prototype.readUInt32BE=function(t,r){return t>>>=0,r||checkOffset(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Buffer.prototype.readIntLE=function(t,r,i){t>>>=0,r>>>=0,i||checkOffset(t,r,this.length);for(var p=this[t],y=1,b=0;++b=(y*=128)&&(p-=Math.pow(2,8*r)),p},Buffer.prototype.readIntBE=function(t,r,i){t>>>=0,r>>>=0,i||checkOffset(t,r,this.length);for(var p=r,y=1,b=this[t+--p];p>0&&(y*=256);)b+=this[t+--p]*y;return b>=(y*=128)&&(b-=Math.pow(2,8*r)),b},Buffer.prototype.readInt8=function(t,r){return(t>>>=0,r||checkOffset(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},Buffer.prototype.readInt16LE=function(t,r){t>>>=0,r||checkOffset(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},Buffer.prototype.readInt16BE=function(t,r){t>>>=0,r||checkOffset(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},Buffer.prototype.readInt32LE=function(t,r){return t>>>=0,r||checkOffset(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Buffer.prototype.readInt32BE=function(t,r){return t>>>=0,r||checkOffset(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Buffer.prototype.readFloatLE=function(t,r){return t>>>=0,r||checkOffset(t,4,this.length),p.read(this,t,!0,23,4)},Buffer.prototype.readFloatBE=function(t,r){return t>>>=0,r||checkOffset(t,4,this.length),p.read(this,t,!1,23,4)},Buffer.prototype.readDoubleLE=function(t,r){return t>>>=0,r||checkOffset(t,8,this.length),p.read(this,t,!0,52,8)},Buffer.prototype.readDoubleBE=function(t,r){return t>>>=0,r||checkOffset(t,8,this.length),p.read(this,t,!1,52,8)},Buffer.prototype.writeUIntLE=function(t,r,i,p){if(t=+t,r>>>=0,i>>>=0,!p){var y=Math.pow(2,8*i)-1;checkInt(this,t,r,i,y,0)}var b=1,_=0;for(this[r]=255&t;++_>>=0,i>>>=0,!p){var y=Math.pow(2,8*i)-1;checkInt(this,t,r,i,y,0)}var b=i-1,_=1;for(this[r+b]=255&t;--b>=0&&(_*=256);)this[r+b]=t/_&255;return r+i},Buffer.prototype.writeUInt8=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,1,255,0),this[r]=255&t,r+1},Buffer.prototype.writeUInt16LE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},Buffer.prototype.writeUInt16BE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},Buffer.prototype.writeUInt32LE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},Buffer.prototype.writeUInt32BE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},Buffer.prototype.writeIntLE=function(t,r,i,p){if(t=+t,r>>>=0,!p){var y=Math.pow(2,8*i-1);checkInt(this,t,r,i,y-1,-y)}var b=0,_=1,m=0;for(this[r]=255&t;++b>0)-m&255;return r+i},Buffer.prototype.writeIntBE=function(t,r,i,p){if(t=+t,r>>>=0,!p){var y=Math.pow(2,8*i-1);checkInt(this,t,r,i,y-1,-y)}var b=i-1,_=1,m=0;for(this[r+b]=255&t;--b>=0&&(_*=256);)t<0&&0===m&&0!==this[r+b+1]&&(m=1),this[r+b]=(t/_>>0)-m&255;return r+i},Buffer.prototype.writeInt8=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},Buffer.prototype.writeInt16LE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},Buffer.prototype.writeInt16BE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},Buffer.prototype.writeInt32LE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,4,2147483647,-2147483648),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},Buffer.prototype.writeInt32BE=function(t,r,i){return t=+t,r>>>=0,i||checkInt(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},Buffer.prototype.writeFloatLE=function(t,r,i){return writeFloat(this,t,r,!0,i)},Buffer.prototype.writeFloatBE=function(t,r,i){return writeFloat(this,t,r,!1,i)},Buffer.prototype.writeDoubleLE=function(t,r,i){return writeDouble(this,t,r,!0,i)},Buffer.prototype.writeDoubleBE=function(t,r,i){return writeDouble(this,t,r,!1,i)},Buffer.prototype.copy=function(t,r,i,p){if(!Buffer.isBuffer(t))throw TypeError("argument should be a Buffer");if(i||(i=0),p||0===p||(p=this.length),r>=t.length&&(r=t.length),r||(r=0),p>0&&p=this.length)throw RangeError("Index out of range");if(p<0)throw RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),t.length-r=0;--b)t[b+r]=this[b+i];else Uint8Array.prototype.set.call(t,this.subarray(i,p),r);return y},Buffer.prototype.fill=function(t,r,i,p){if("string"==typeof t){if("string"==typeof r?(p=r,r=0,i=this.length):"string"==typeof i&&(p=i,i=this.length),void 0!==p&&"string"!=typeof p)throw TypeError("encoding must be a string");if("string"==typeof p&&!Buffer.isEncoding(p))throw TypeError("Unknown encoding: "+p);if(1===t.length){var y,b=t.charCodeAt(0);("utf8"===p&&b<128||"latin1"===p)&&(t=b)}}else"number"==typeof t&&(t&=255);if(r<0||this.length>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(y=r;y55295&&i<57344){if(!y){if(i>56319||_+1===p){(r-=3)>-1&&b.push(239,191,189);continue}y=i;continue}if(i<56320){(r-=3)>-1&&b.push(239,191,189),y=i;continue}i=(y-55296<<10|i-56320)+65536}else y&&(r-=3)>-1&&b.push(239,191,189);if(y=null,i<128){if((r-=1)<0)break;b.push(i)}else if(i<2048){if((r-=2)<0)break;b.push(i>>6|192,63&i|128)}else if(i<65536){if((r-=3)<0)break;b.push(i>>12|224,i>>6&63|128,63&i|128)}else if(i<1114112){if((r-=4)<0)break;b.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else throw Error("Invalid code point")}return b}function asciiToBytes(t){for(var r=[],i=0;i=r.length)&&!(y>=t.length);++y)r[y+i]=t[y];return y}function isInstance(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":29,buffer:33,ieee754:44}],34:[function(t,r,i){"use strict";var p,y,b,_,m=TypeError,w=Object.getOwnPropertyDescriptor;if(w)try{w({},"")}catch(t){w=null}var throwTypeError=function(){throw new m},S=w?function(){try{return arguments.callee,throwTypeError}catch(t){try{return w(arguments,"callee").get}catch(t){return throwTypeError}}}():throwTypeError,A=t("has-symbols")(),k=Object.getPrototypeOf||function(t){return t.__proto__},T=y?k(y):p,R=b?b.constructor:p,O=_?k(_):p,x=_?_():p,P="undefined"==typeof Uint8Array?p:k(Uint8Array),L={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?p:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?p:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":A?k([][Symbol.iterator]()):p,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":p,"%AsyncFunction%":R,"%AsyncFunctionPrototype%":R?R.prototype:p,"%AsyncGenerator%":_?k(x):p,"%AsyncGeneratorFunction%":O,"%AsyncGeneratorPrototype%":O?O.prototype:p,"%AsyncIteratorPrototype%":x&&A&&Symbol.asyncIterator?x[Symbol.asyncIterator]():p,"%Atomics%":"undefined"==typeof Atomics?p:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?p:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?p:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?p:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?p:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?p:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?p:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":y?k(y()):p,"%GeneratorFunction%":T,"%GeneratorPrototype%":T?T.prototype:p,"%Int8Array%":"undefined"==typeof Int8Array?p:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?p:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?p:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?p:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?p:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?p:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A?k(k([][Symbol.iterator]())):p,"%JSON%":"object"==typeof JSON?JSON:p,"%JSONParse%":"object"==typeof JSON?JSON.parse:p,"%Map%":"undefined"==typeof Map?p:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&A?k(new Map()[Symbol.iterator]()):p,"%MapPrototype%":"undefined"==typeof Map?p:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?p:Promise,"%PromisePrototype%":"undefined"==typeof Promise?p:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?p:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?p:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?p:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?p:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?p:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?p:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?p:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&A?k(new Set()[Symbol.iterator]()):p,"%SetPrototype%":"undefined"==typeof Set?p:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?p:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?p:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":A?k(""[Symbol.iterator]()):p,"%StringPrototype%":String.prototype,"%Symbol%":A?Symbol:p,"%SymbolPrototype%":A?Symbol.prototype:p,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypedArrayPrototype%":P?P.prototype:p,"%TypeError%":m,"%TypeErrorPrototype%":m.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?p:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?p:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?p:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?p:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?p:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?p:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?p:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?p:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?p:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?p:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?p:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?p:WeakSet.prototype},M=t("function-bind").call(Function.call,String.prototype.replace),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,stringToPath=function(t){var r=[];return M(t,C,function(t,i,p,y){r[r.length]=p?M(y,N,"$1"):i||t}),r},getBaseIntrinsic=function(t,r){if(!(t in L))throw SyntaxError("intrinsic "+t+" does not exist!");if(void 0===L[t]&&!r)throw new m("intrinsic "+t+" exists, but is not available. Please file an issue!");return L[t]};r.exports=function(t,r){if("string"!=typeof t||0===t.length)throw TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof r)throw TypeError('"allowMissing" argument must be a boolean');for(var i=stringToPath(t),p=getBaseIntrinsic("%"+(i.length>0?i[0]:"")+"%",r),y=1;y=i.length){var b=w(p,i[y]);if(!r&&!(i[y]in p))throw new m("base intrinsic for "+t+" exists, but the property is not available.");p=b?b.get||b.value:p[i[y]]}else p=p[i[y]]}return p}},{"function-bind":41,"has-symbols":42}],35:[function(t,r,i){"use strict";var p=t("function-bind"),y=t("../GetIntrinsic")("%Function%"),b=y.apply,_=y.call;r.exports=function(){return p.apply(_,arguments)},r.exports.apply=function(){return p.apply(b,arguments)}},{"../GetIntrinsic":34,"function-bind":41}],36:[function(t,r,i){"use strict";var p=t("../GetIntrinsic"),y=t("./callBind"),b=y(p("String.prototype.indexOf"));r.exports=function(t,r){var i=p(t,!!r);return"function"==typeof i&&b(t,".prototype.")?y(i):i}},{"../GetIntrinsic":34,"./callBind":35}],37:[function(t,r,i){"use strict";var p=t("../GetIntrinsic")("%Object.getOwnPropertyDescriptor%");if(p)try{p([],"length")}catch(t){p=null}r.exports=p},{"../GetIntrinsic":34}],38:[function(t,r,i){"use strict";var p,y="object"==typeof Reflect?Reflect:null,b=y&&"function"==typeof y.apply?y.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)};p=y&&"function"==typeof y.ownKeys?y.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var _=Number.isNaN||function(t){return t!=t};function EventEmitter(){EventEmitter.init.call(this)}r.exports=EventEmitter,r.exports.once=function(t,r){return new Promise(function(i,p){var y;function eventListener(){void 0!==y&&t.removeListener("error",y),i([].slice.call(arguments))}"error"!==r&&(y=function(i){t.removeListener(r,eventListener),p(i)},t.once("error",y)),t.once(r,eventListener)})},EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var m=10;function checkListener(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function _getMaxListeners(t){return void 0===t._maxListeners?EventEmitter.defaultMaxListeners:t._maxListeners}function _addListener(t,r,i,p){if(checkListener(i),void 0===(b=t._events)?(b=t._events=Object.create(null),t._eventsCount=0):(void 0!==b.newListener&&(t.emit("newListener",r,i.listener?i.listener:i),b=t._events),_=b[r]),void 0===_)_=b[r]=i,++t._eventsCount;else if("function"==typeof _?_=b[r]=p?[i,_]:[_,i]:p?_.unshift(i):_.push(i),(y=_getMaxListeners(t))>0&&_.length>y&&!_.warned){_.warned=!0;var y,b,_,m=Error("Possible EventEmitter memory leak detected. "+_.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");m.name="MaxListenersExceededWarning",m.emitter=t,m.type=r,m.count=_.length,console&&console.warn&&console.warn(m)}return t}function onceWrapper(){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 _onceWrap(t,r,i){var p={fired:!1,wrapFn:void 0,target:t,type:r,listener:i},y=onceWrapper.bind(p);return y.listener=i,p.wrapFn=y,y}function _listeners(t,r,i){var p=t._events;if(void 0===p)return[];var y=p[r];return void 0===y?[]:"function"==typeof y?i?[y.listener||y]:[y]:i?function(t){for(var r=Array(t.length),i=0;i0&&(_=r[0]),_ instanceof Error)throw _;var _,m=Error("Unhandled error."+(_?" ("+_.message+")":""));throw m.context=_,m}var w=y[t];if(void 0===w)return!1;if("function"==typeof w)b(w,this,r);else for(var S=w.length,A=arrayClone(w,S),i=0;i=0;b--)if(i[b]===r||i[b].listener===r){_=i[b].listener,y=b;break}if(y<0)return this;0===y?i.shift():function(t,r){for(;r+1=0;p--)this.removeListener(t,r[p]);return this},EventEmitter.prototype.listeners=function(t){return _listeners(this,t,!0)},EventEmitter.prototype.rawListeners=function(t){return _listeners(this,t,!1)},EventEmitter.listenerCount=function(t,r){return"function"==typeof t.listenerCount?t.listenerCount(r):listenerCount.call(t,r)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?p(this._events):[]}},{}],39:[function(t,r,i){var p=Object.prototype.hasOwnProperty,y=Object.prototype.toString;r.exports=function(t,r,i){if("[object Function]"!==y.call(r))throw TypeError("iterator must be a function");var b=t.length;if(b===+b)for(var _=0;_>1,A=-7,k=i?y-1:0,T=i?-1:1,R=t[r+k];for(k+=T,b=R&(1<<-A)-1,R>>=-A,A+=m;A>0;b=256*b+t[r+k],k+=T,A-=8);for(_=b&(1<<-A)-1,b>>=-A,A+=p;A>0;_=256*_+t[r+k],k+=T,A-=8);if(0===b)b=1-S;else{if(b===w)return _?NaN:(R?-1:1)*(1/0);_+=Math.pow(2,p),b-=S}return(R?-1:1)*_*Math.pow(2,b-p)},i.write=function(t,r,i,p,y,b){var _,m,w,S=8*b-y-1,A=(1<>1,T=23===y?5960464477539062e-23:0,R=p?0:b-1,O=p?1:-1,x=r<0||0===r&&1/r<0?1:0;for(isNaN(r=Math.abs(r))||r===1/0?(m=isNaN(r)?1:0,_=A):(_=Math.floor(Math.log(r)/Math.LN2),r*(w=Math.pow(2,-_))<1&&(_--,w*=2),_+k>=1?r+=T/w:r+=T*Math.pow(2,1-k),r*w>=2&&(_++,w/=2),_+k>=A?(m=0,_=A):_+k>=1?(m=(r*w-1)*Math.pow(2,y),_+=k):(m=r*Math.pow(2,k-1)*Math.pow(2,y),_=0));y>=8;t[i+R]=255&m,R+=O,m/=256,y-=8);for(_=_<0;t[i+R]=255&_,R+=O,_/=256,S-=8);t[i+R-O]|=128*x}},{}],45:[function(t,r,i){"function"==typeof Object.create?r.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(t,r){if(r){t.super_=r;var TempCtor=function(){};TempCtor.prototype=r.prototype,t.prototype=new TempCtor,t.prototype.constructor=t}}},{}],46:[function(t,r,i){"use strict";var p="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,y=Object.prototype.toString,isStandardArguments=function(t){return(!p||!t||"object"!=typeof t||!(Symbol.toStringTag in t))&&"[object Arguments]"===y.call(t)},isLegacyArguments=function(t){return!!isStandardArguments(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==y.call(t)&&"[object Function]"===y.call(t.callee)},b=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments,r.exports=b?isStandardArguments:isLegacyArguments},{}],47:[function(t,r,i){"use strict";var p=Object.prototype.toString,y=Function.prototype.toString,b=/^\s*(?:function)?\*/,_="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,m=Object.getPrototypeOf,w=function(){if(!_)return!1;try{return Function("return function*() {}")()}catch(t){}}(),S=w?m(w):{};r.exports=function(t){return"function"==typeof t&&(!!b.test(y.call(t))||(_?m(t)===S:"[object GeneratorFunction]"===p.call(t)))}},{}],48:[function(t,r,p){(function(i){(function(){"use strict";var p=t("foreach"),y=t("available-typed-arrays"),b=t("es-abstract/helpers/callBound"),_=b("Object.prototype.toString"),m=t("has-symbols")()&&"symbol"==typeof Symbol.toStringTag,w=y(),S=b("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i-1)}}).call(this)}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"available-typed-arrays":27,"es-abstract/helpers/callBound":36,"es-abstract/helpers/getOwnPropertyDescriptor":37,foreach:39,"has-symbols":42}],49:[function(t,r,i){"use strict";var p="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var i=r.shift();if(i){if("object"!=typeof i)throw TypeError(i+"must be non-object");for(var p in i)Object.prototype.hasOwnProperty.call(i,p)&&(t[p]=i[p])}}return t},i.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var y={arraySet:function(t,r,i,p,y){if(r.subarray&&t.subarray){t.set(r.subarray(i,i+p),y);return}for(var b=0;b>>16&65535|0,_=0;0!==i;){_=i>2e3?2e3:i,i-=_;do b=b+(y=y+r[p++]|0)|0;while(--_);y%=65521,b%=65521}return y|b<<16|0}},{}],51:[function(t,r,i){"use strict";r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],52:[function(t,r,i){"use strict";var p=function(){for(var t,r=[],i=0;i<256;i++){t=i;for(var p=0;p<8;p++)t=1&t?3988292384^t>>>1:t>>>1;r[i]=t}return r}();r.exports=function(t,r,i,y){var b=y+i;t^=-1;for(var _=y;_>>8^p[(t^r[_])&255];return -1^t}},{}],53:[function(t,r,i){"use strict";var p,y=t("../utils/common"),b=t("./trees"),_=t("./adler32"),m=t("./crc32"),w=t("./messages");function err(t,r){return t.msg=w[r],r}function rank(t){return(t<<1)-(t>4?9:0)}function zero(t){for(var r=t.length;--r>=0;)t[r]=0}function flush_pending(t){var r=t.state,i=r.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(y.arraySet(t.output,r.pending_buf,r.pending_out,i,t.next_out),t.next_out+=i,r.pending_out+=i,t.total_out+=i,t.avail_out-=i,r.pending-=i,0===r.pending&&(r.pending_out=0))}function flush_block_only(t,r){b._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,r),t.block_start=t.strstart,flush_pending(t.strm)}function put_byte(t,r){t.pending_buf[t.pending++]=r}function putShortMSB(t,r){t.pending_buf[t.pending++]=r>>>8&255,t.pending_buf[t.pending++]=255&r}function longest_match(t,r){var i,p,y=t.max_chain_length,b=t.strstart,_=t.prev_length,m=t.nice_match,w=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,S=t.window,A=t.w_mask,k=t.prev,T=t.strstart+258,R=S[b+_-1],O=S[b+_];t.prev_length>=t.good_match&&(y>>=2),m>t.lookahead&&(m=t.lookahead);do{if(S[(i=r)+_]!==O||S[i+_-1]!==R||S[i]!==S[b]||S[++i]!==S[b+1])continue;b+=2,i++;do;while(S[++b]===S[++i]&&S[++b]===S[++i]&&S[++b]===S[++i]&&S[++b]===S[++i]&&S[++b]===S[++i]&&S[++b]===S[++i]&&S[++b]===S[++i]&&S[++b]===S[++i]&&b_){if(t.match_start=r,_=p,p>=m)break;R=S[b+_-1],O=S[b+_]}}while((r=k[r&A])>w&&0!=--y);return _<=t.lookahead?_:t.lookahead}function fill_window(t){var r,i,p,b,w,S=t.w_size;do{if(b=t.window_size-t.lookahead-t.strstart,t.strstart>=S+(S-262)){y.arraySet(t.window,t.window,S,S,0),t.match_start-=S,t.strstart-=S,t.block_start-=S,r=i=t.hash_size;do p=t.head[--r],t.head[r]=p>=S?p-S:0;while(--i);r=i=S;do p=t.prev[--r],t.prev[r]=p>=S?p-S:0;while(--i);b+=S}if(0===t.strm.avail_in)break;if(i=function(t,r,i,p){var b=t.avail_in;return(b>p&&(b=p),0===b)?0:(t.avail_in-=b,y.arraySet(r,t.input,t.next_in,b,i),1===t.state.wrap?t.adler=_(t.adler,r,b,i):2===t.state.wrap&&(t.adler=m(t.adler,r,b,i)),t.next_in+=b,t.total_in+=b,b)}(t.strm,t.window,t.strstart+t.lookahead,b),t.lookahead+=i,t.lookahead+t.insert>=3)for(w=t.strstart-t.insert,t.ins_h=t.window[w],t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<=3){if(p=b._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){y=t.strstart+t.lookahead-3,p=b._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=y&&(t.ins_h=(t.ins_h<15&&(m=2,p-=16),b<1||b>9||8!==i||p<8||p>15||r<0||r>9||_<0||_>4)return err(t,-2);8===p&&(p=9);var w=new DeflateState;return t.state=w,w.strm=t,w.wrap=m,w.gzhead=null,w.w_bits=p,w.w_size=1<t.pending_buf_size-5&&(i=t.pending_buf_size-5);;){if(t.lookahead<=1){if(fill_window(t),0===t.lookahead&&0===r)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var p=t.block_start+i;if((0===t.strstart||t.strstart>=p)&&(t.lookahead=t.strstart-p,t.strstart=p,flush_block_only(t,!1),0===t.strm.avail_out)||t.strstart-t.block_start>=t.w_size-262&&(flush_block_only(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,4===r)?(flush_block_only(t,!0),0===t.strm.avail_out)?3:4:(t.strstart>t.block_start&&(flush_block_only(t,!1),t.strm.avail_out),1)}),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],i.deflateInit=function(t,r){return deflateInit2(t,r,8,15,8,0)},i.deflateInit2=deflateInit2,i.deflateReset=deflateReset,i.deflateResetKeep=deflateResetKeep,i.deflateSetHeader=function(t,r){return t&&t.state&&2===t.state.wrap?(t.state.gzhead=r,0):-2},i.deflate=function(t,r){if(!t||!t.state||r>5||r<0)return t?err(t,-2):-2;if(y=t.state,!t.output||!t.input&&0!==t.avail_in||666===y.status&&4!==r)return err(t,0===t.avail_out?-5:-2);if(y.strm=t,i=y.last_flush,y.last_flush=r,42===y.status){if(2===y.wrap)t.adler=0,put_byte(y,31),put_byte(y,139),put_byte(y,8),y.gzhead?(put_byte(y,(y.gzhead.text?1:0)+(y.gzhead.hcrc?2:0)+(y.gzhead.extra?4:0)+(y.gzhead.name?8:0)+(y.gzhead.comment?16:0)),put_byte(y,255&y.gzhead.time),put_byte(y,y.gzhead.time>>8&255),put_byte(y,y.gzhead.time>>16&255),put_byte(y,y.gzhead.time>>24&255),put_byte(y,9===y.level?2:y.strategy>=2||y.level<2?4:0),put_byte(y,255&y.gzhead.os),y.gzhead.extra&&y.gzhead.extra.length&&(put_byte(y,255&y.gzhead.extra.length),put_byte(y,y.gzhead.extra.length>>8&255)),y.gzhead.hcrc&&(t.adler=m(t.adler,y.pending_buf,y.pending,0)),y.gzindex=0,y.status=69):(put_byte(y,0),put_byte(y,0),put_byte(y,0),put_byte(y,0),put_byte(y,0),put_byte(y,9===y.level?2:y.strategy>=2||y.level<2?4:0),put_byte(y,3),y.status=113);else{var i,y,_,w,S=8+(y.w_bits-8<<4)<<8;S|=(y.strategy>=2||y.level<2?0:y.level<6?1:6===y.level?2:3)<<6,0!==y.strstart&&(S|=32),S+=31-S%31,y.status=113,putShortMSB(y,S),0!==y.strstart&&(putShortMSB(y,t.adler>>>16),putShortMSB(y,65535&t.adler)),t.adler=1}}if(69===y.status){if(y.gzhead.extra){for(_=y.pending;y.gzindex<(65535&y.gzhead.extra.length)&&(y.pending!==y.pending_buf_size||(y.gzhead.hcrc&&y.pending>_&&(t.adler=m(t.adler,y.pending_buf,y.pending-_,_)),flush_pending(t),_=y.pending,y.pending!==y.pending_buf_size));)put_byte(y,255&y.gzhead.extra[y.gzindex]),y.gzindex++;y.gzhead.hcrc&&y.pending>_&&(t.adler=m(t.adler,y.pending_buf,y.pending-_,_)),y.gzindex===y.gzhead.extra.length&&(y.gzindex=0,y.status=73)}else y.status=73}if(73===y.status){if(y.gzhead.name){_=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>_&&(t.adler=m(t.adler,y.pending_buf,y.pending-_,_)),flush_pending(t),_=y.pending,y.pending===y.pending_buf_size)){w=1;break}w=y.gzindex_&&(t.adler=m(t.adler,y.pending_buf,y.pending-_,_)),0===w&&(y.gzindex=0,y.status=91)}else y.status=91}if(91===y.status){if(y.gzhead.comment){_=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>_&&(t.adler=m(t.adler,y.pending_buf,y.pending-_,_)),flush_pending(t),_=y.pending,y.pending===y.pending_buf_size)){w=1;break}w=y.gzindex_&&(t.adler=m(t.adler,y.pending_buf,y.pending-_,_)),0===w&&(y.status=103)}else y.status=103}if(103===y.status&&(y.gzhead.hcrc?(y.pending+2>y.pending_buf_size&&flush_pending(t),y.pending+2<=y.pending_buf_size&&(put_byte(y,255&t.adler),put_byte(y,t.adler>>8&255),t.adler=0,y.status=113)):y.status=113),0!==y.pending){if(flush_pending(t),0===t.avail_out)return y.last_flush=-1,0}else if(0===t.avail_in&&rank(r)<=rank(i)&&4!==r)return err(t,-5);if(666===y.status&&0!==t.avail_in)return err(t,-5);if(0!==t.avail_in||0!==y.lookahead||0!==r&&666!==y.status){var A=2===y.strategy?function(t,r){for(var i;;){if(0===t.lookahead&&(fill_window(t),0===t.lookahead)){if(0===r)return 1;break}if(t.match_length=0,i=b._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(flush_block_only(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,4===r)?(flush_block_only(t,!0),0===t.strm.avail_out)?3:4:t.last_lit&&(flush_block_only(t,!1),0===t.strm.avail_out)?1:2}(y,r):3===y.strategy?function(t,r){for(var i,p,y,_,m=t.window;;){if(t.lookahead<=258){if(fill_window(t),t.lookahead<=258&&0===r)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(p=m[y=t.strstart-1])===m[++y]&&p===m[++y]&&p===m[++y]){_=t.strstart+258;do;while(p===m[++y]&&p===m[++y]&&p===m[++y]&&p===m[++y]&&p===m[++y]&&p===m[++y]&&p===m[++y]&&p===m[++y]&&y<_);t.match_length=258-(_-y),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(i=b._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=b._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(flush_block_only(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,4===r)?(flush_block_only(t,!0),0===t.strm.avail_out)?3:4:t.last_lit&&(flush_block_only(t,!1),0===t.strm.avail_out)?1:2}(y,r):p[y.level].func(y,r);if((3===A||4===A)&&(y.status=666),1===A||3===A)return 0===t.avail_out&&(y.last_flush=-1),0;if(2===A&&(1===r?b._tr_align(y):5!==r&&(b._tr_stored_block(y,0,0,!1),3===r&&(zero(y.head),0===y.lookahead&&(y.strstart=0,y.block_start=0,y.insert=0))),flush_pending(t),0===t.avail_out))return y.last_flush=-1,0}return 4!==r?0:y.wrap<=0?1:(2===y.wrap?(put_byte(y,255&t.adler),put_byte(y,t.adler>>8&255),put_byte(y,t.adler>>16&255),put_byte(y,t.adler>>24&255),put_byte(y,255&t.total_in),put_byte(y,t.total_in>>8&255),put_byte(y,t.total_in>>16&255),put_byte(y,t.total_in>>24&255)):(putShortMSB(y,t.adler>>>16),putShortMSB(y,65535&t.adler)),flush_pending(t),y.wrap>0&&(y.wrap=-y.wrap),0!==y.pending?0:1)},i.deflateEnd=function(t){var r;return t&&t.state?42!==(r=t.state.status)&&69!==r&&73!==r&&91!==r&&103!==r&&113!==r&&666!==r?err(t,-2):(t.state=null,113===r?err(t,-3):0):-2},i.deflateSetDictionary=function(t,r){var i,p,b,m,w,S,A,k,T=r.length;if(!t||!t.state||2===(m=(i=t.state).wrap)||1===m&&42!==i.status||i.lookahead)return -2;for(1===m&&(t.adler=_(t.adler,r,T,0)),i.wrap=0,T>=i.w_size&&(0===m&&(zero(i.head),i.strstart=0,i.block_start=0,i.insert=0),k=new y.Buf8(i.w_size),y.arraySet(k,r,T-i.w_size,i.w_size,0),r=k,T=i.w_size),w=t.avail_in,S=t.next_in,A=t.input,t.avail_in=T,t.next_in=0,t.input=r,fill_window(i);i.lookahead>=3;){p=i.strstart,b=i.lookahead-2;do i.ins_h=(i.ins_h<>>=N=C>>>24,O-=N,0==(N=C>>>16&255))Z[b++]=65535&C;else if(16&N)for(D=65535&C,(N&=15)&&(O>>=N,O-=N),O<15&&(R+=W[p++]<>>=N=C>>>24,O-=N,16&(N=C>>>16&255)){if(U=65535&C,O<(N&=15)&&(R+=W[p++]<w){t.msg="invalid distance too far back",i.mode=30;break e}if(R>>>=N,O-=N,U>(N=b-_)){if((N=U-N)>A&&i.sane){t.msg="invalid distance too far back",i.mode=30;break e}if(F=0,z=T,0===k){if(F+=S-N,N2;)Z[b++]=z[F++],Z[b++]=z[F++],Z[b++]=z[F++],D-=3;D&&(Z[b++]=z[F++],D>1&&(Z[b++]=z[F++]))}else{F=b-U;do Z[b++]=Z[F++],Z[b++]=Z[F++],Z[b++]=Z[F++],D-=3;while(D>2);D&&(Z[b++]=Z[F++],D>1&&(Z[b++]=Z[F++]))}}else if((64&N)==0){C=P[(65535&C)+(R&(1<>3,O-=D<<3,R&=(1<>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function InflateState(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new b.Buf16(320),this.work=new b.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function inflateResetKeep(t){var r;return t&&t.state?(r=t.state,t.total_in=t.total_out=r.total=0,t.msg="",r.wrap&&(t.adler=1&r.wrap),r.mode=1,r.last=0,r.havedict=0,r.dmax=32768,r.head=null,r.hold=0,r.bits=0,r.lencode=r.lendyn=new b.Buf32(852),r.distcode=r.distdyn=new b.Buf32(592),r.sane=1,r.back=-1,0):-2}function inflateReset(t){var r;return t&&t.state?((r=t.state).wsize=0,r.whave=0,r.wnext=0,inflateResetKeep(t)):-2}function inflateReset2(t,r){var i,p;return t&&t.state?(p=t.state,r<0?(i=0,r=-r):(i=(r>>4)+1,r<48&&(r&=15)),r&&(r<8||r>15))?-2:(null!==p.window&&p.wbits!==r&&(p.window=null),p.wrap=i,p.wbits=r,inflateReset(t)):-2}function inflateInit2(t,r){var i,p;return t?(p=new InflateState,t.state=p,p.window=null,0!==(i=inflateReset2(t,r))&&(t.state=null),i):-2}var A=!0;function updatewindow(t,r,i,p){var y,_=t.state;return null===_.window&&(_.wsize=1<<_.wbits,_.wnext=0,_.whave=0,_.window=new b.Buf8(_.wsize)),p>=_.wsize?(b.arraySet(_.window,r,i-_.wsize,_.wsize,0),_.wnext=0,_.whave=_.wsize):((y=_.wsize-_.wnext)>p&&(y=p),b.arraySet(_.window,r,i-p,y,_.wnext),(p-=y)?(b.arraySet(_.window,r,i-p,p,0),_.wnext=p,_.whave=_.wsize):(_.wnext+=y,_.wnext===_.wsize&&(_.wnext=0),_.whave<_.wsize&&(_.whave+=y))),0}i.inflateReset=inflateReset,i.inflateReset2=inflateReset2,i.inflateResetKeep=inflateResetKeep,i.inflateInit=function(t){return inflateInit2(t,15)},i.inflateInit2=inflateInit2,i.inflate=function(t,r){var i,k,T,R,O,x,P,L,M,C,N,D,U,F,z,W,Z,G,q,H,V,Y,K,$,J=0,X=new b.Buf8(4),Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return -2;12===(i=t.state).mode&&(i.mode=13),O=t.next_out,T=t.output,P=t.avail_out,R=t.next_in,k=t.input,x=t.avail_in,L=i.hold,M=i.bits,C=x,N=P,Y=0;t:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;M<16;){if(0===x)break t;x--,L+=k[R++]<>>8&255,i.check=m(i.check,X,2,0),L=0,M=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&L)<<8)+(L>>8))%31){t.msg="incorrect header check",i.mode=30;break}if((15&L)!=8){t.msg="unknown compression method",i.mode=30;break}if(L>>>=4,M-=4,V=(15&L)+8,0===i.wbits)i.wbits=V;else if(V>i.wbits){t.msg="invalid window size",i.mode=30;break}i.dmax=1<>8&1),512&i.flags&&(X[0]=255&L,X[1]=L>>>8&255,i.check=m(i.check,X,2,0)),L=0,M=0,i.mode=3;case 3:for(;M<32;){if(0===x)break t;x--,L+=k[R++]<>>8&255,X[2]=L>>>16&255,X[3]=L>>>24&255,i.check=m(i.check,X,4,0)),L=0,M=0,i.mode=4;case 4:for(;M<16;){if(0===x)break t;x--,L+=k[R++]<>8),512&i.flags&&(X[0]=255&L,X[1]=L>>>8&255,i.check=m(i.check,X,2,0)),L=0,M=0,i.mode=5;case 5:if(1024&i.flags){for(;M<16;){if(0===x)break t;x--,L+=k[R++]<>>8&255,i.check=m(i.check,X,2,0)),L=0,M=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&((D=i.length)>x&&(D=x),D&&(i.head&&(V=i.head.extra_len-i.length,i.head.extra||(i.head.extra=Array(i.head.extra_len)),b.arraySet(i.head.extra,k,R,D,V)),512&i.flags&&(i.check=m(i.check,k,D,R)),x-=D,R+=D,i.length-=D),i.length))break t;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===x)break t;D=0;do V=k[R+D++],i.head&&V&&i.length<65536&&(i.head.name+=String.fromCharCode(V));while(V&&D>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=12;break;case 10:for(;M<32;){if(0===x)break t;x--,L+=k[R++]<>>=7&M,M-=7&M,i.mode=27;break}for(;M<3;){if(0===x)break t;x--,L+=k[R++]<>>=1)){case 0:i.mode=14;break;case 1:if(function(t){if(A){var r;for(p=new b.Buf32(512),y=new b.Buf32(32),r=0;r<144;)t.lens[r++]=8;for(;r<256;)t.lens[r++]=9;for(;r<280;)t.lens[r++]=7;for(;r<288;)t.lens[r++]=8;for(S(1,t.lens,0,288,p,0,t.work,{bits:9}),r=0;r<32;)t.lens[r++]=5;S(2,t.lens,0,32,y,0,t.work,{bits:5}),A=!1}t.lencode=p,t.lenbits=9,t.distcode=y,t.distbits=5}(i),i.mode=20,6===r){L>>>=2,M-=2;break t}break;case 2:i.mode=17;break;case 3:t.msg="invalid block type",i.mode=30}L>>>=2,M-=2;break;case 14:for(L>>>=7&M,M-=7&M;M<32;){if(0===x)break t;x--,L+=k[R++]<>>16^65535)){t.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&L,L=0,M=0,i.mode=15,6===r)break t;case 15:i.mode=16;case 16:if(D=i.length){if(D>x&&(D=x),D>P&&(D=P),0===D)break t;b.arraySet(T,k,R,D,O),x-=D,R+=D,P-=D,O+=D,i.length-=D;break}i.mode=12;break;case 17:for(;M<14;){if(0===x)break t;x--,L+=k[R++]<>>=5,M-=5,i.ndist=(31&L)+1,L>>>=5,M-=5,i.ncode=(15&L)+4,L>>>=4,M-=4,i.nlen>286||i.ndist>30){t.msg="too many length or distance symbols",i.mode=30;break}i.have=0,i.mode=18;case 18:for(;i.have>>=3,M-=3}for(;i.have<19;)i.lens[Q[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,K={bits:i.lenbits},Y=S(0,i.lens,0,19,i.lencode,0,i.work,K),i.lenbits=K.bits,Y){t.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have>>24,W=J>>>16&255,Z=65535&J,!(z<=M);){if(0===x)break t;x--,L+=k[R++]<>>=z,M-=z,i.lens[i.have++]=Z;else{if(16===Z){for($=z+2;M<$;){if(0===x)break t;x--,L+=k[R++]<>>=z,M-=z,0===i.have){t.msg="invalid bit length repeat",i.mode=30;break}V=i.lens[i.have-1],D=3+(3&L),L>>>=2,M-=2}else if(17===Z){for($=z+3;M<$;){if(0===x)break t;x--,L+=k[R++]<>>=z,M-=z,V=0,D=3+(7&L),L>>>=3,M-=3}else{for($=z+7;M<$;){if(0===x)break t;x--,L+=k[R++]<>>=z,M-=z,V=0,D=11+(127&L),L>>>=7,M-=7}if(i.have+D>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=30;break}for(;D--;)i.lens[i.have++]=V}}if(30===i.mode)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,K={bits:i.lenbits},Y=S(1,i.lens,0,i.nlen,i.lencode,0,i.work,K),i.lenbits=K.bits,Y){t.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,K={bits:i.distbits},Y=S(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,K),i.distbits=K.bits,Y){t.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===r)break t;case 20:i.mode=21;case 21:if(x>=6&&P>=258){t.next_out=O,t.avail_out=P,t.next_in=R,t.avail_in=x,i.hold=L,i.bits=M,w(t,N),O=t.next_out,T=t.output,P=t.avail_out,R=t.next_in,k=t.input,x=t.avail_in,L=i.hold,M=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;z=(J=i.lencode[L&(1<>>24,W=J>>>16&255,Z=65535&J,!(z<=M);){if(0===x)break t;x--,L+=k[R++]<>G)])>>>24,W=J>>>16&255,Z=65535&J,!(G+z<=M);){if(0===x)break t;x--,L+=k[R++]<>>=G,M-=G,i.back+=G}if(L>>>=z,M-=z,i.back+=z,i.length=Z,0===W){i.mode=26;break}if(32&W){i.back=-1,i.mode=12;break}if(64&W){t.msg="invalid literal/length code",i.mode=30;break}i.extra=15&W,i.mode=22;case 22:if(i.extra){for($=i.extra;M<$;){if(0===x)break t;x--,L+=k[R++]<>>=i.extra,M-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;z=(J=i.distcode[L&(1<>>24,W=J>>>16&255,Z=65535&J,!(z<=M);){if(0===x)break t;x--,L+=k[R++]<>G)])>>>24,W=J>>>16&255,Z=65535&J,!(G+z<=M);){if(0===x)break t;x--,L+=k[R++]<>>=G,M-=G,i.back+=G}if(L>>>=z,M-=z,i.back+=z,64&W){t.msg="invalid distance code",i.mode=30;break}i.offset=Z,i.extra=15&W,i.mode=24;case 24:if(i.extra){for($=i.extra;M<$;){if(0===x)break t;x--,L+=k[R++]<>>=i.extra,M-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===P)break t;if(D=N-P,i.offset>D){if((D=i.offset-D)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=30;break}D>i.wnext?(D-=i.wnext,U=i.wsize-D):U=i.wnext-D,D>i.length&&(D=i.length),F=i.window}else F=T,U=O-i.offset,D=i.length;D>P&&(D=P),P-=D,i.length-=D;do T[O++]=F[U++];while(--D);0===i.length&&(i.mode=21);break;case 26:if(0===P)break t;T[O++]=i.length,P--,i.mode=21;break;case 27:if(i.wrap){for(;M<32;){if(0===x)break t;x--,L|=k[R++]<=1&&0===X[Z];Z--);if(G>Z&&(G=Z),0===Z)return S[A++]=20971520,S[A++]=20971520,T.bits=1,0;for(W=1;W0&&(0===t||1!==Z))return -1;for(F=1,Q[1]=0;F<15;F++)Q[F+1]=Q[F]+X[F];for(z=0;z852||2===t&&Y>592)return 1;for(;;){C=F-H,k[z]M?(N=ee[et+k[z]],D=$[J+k[z]]):(N=96,D=0),R=1<>H)+(O-=R)]=C<<24|N<<16|D|0;while(0!==O);for(R=1<>=1;if(0!==R?(K&=R-1,K+=R):K=0,z++,0==--X[F]){if(F===Z)break;F=r[i+k[z]]}if(F>G&&(K&P)!==x){for(0===H&&(H=G),L+=W,V=1<<(q=F-H);q+H852||2===t&&Y>592)return 1;S[x=K&P]=G<<24|q<<16|L-A|0}}return 0!==K&&(S[L+K]=F-H<<24|4194304),T.bits=G,0}},{"../utils/common":49}],57:[function(t,r,i){"use strict";r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],58:[function(t,r,i){"use strict";var p,y,b,_=t("../utils/common");function zero(t){for(var r=t.length;--r>=0;)t[r]=0}var m=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=Array(576);zero(k);var T=Array(60);zero(T);var R=Array(512);zero(R);var O=Array(256);zero(O);var x=Array(29);zero(x);var P=Array(30);function StaticTreeDesc(t,r,i,p,y){this.static_tree=t,this.extra_bits=r,this.extra_base=i,this.elems=p,this.max_length=y,this.has_stree=t&&t.length}function TreeDesc(t,r){this.dyn_tree=t,this.max_code=0,this.stat_desc=r}function d_code(t){return t<256?R[t]:R[256+(t>>>7)]}function put_short(t,r){t.pending_buf[t.pending++]=255&r,t.pending_buf[t.pending++]=r>>>8&255}function send_bits(t,r,i){t.bi_valid>16-i?(t.bi_buf|=r<>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=r<>>=1,i<<=1;while(--r>0);return i>>>1}function gen_codes(t,r,i){var p,y,b=Array(16),_=0;for(p=1;p<=15;p++)b[p]=_=_+i[p-1]<<1;for(y=0;y<=r;y++){var m=t[2*y+1];0!==m&&(t[2*y]=bi_reverse(b[m]++,m))}}function init_block(t){var r;for(r=0;r<286;r++)t.dyn_ltree[2*r]=0;for(r=0;r<30;r++)t.dyn_dtree[2*r]=0;for(r=0;r<19;r++)t.bl_tree[2*r]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function bi_windup(t){t.bi_valid>8?put_short(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function smaller(t,r,i,p){var y=2*r,b=2*i;return t[y]>1;i>=1;i--)pqdownheap(t,b,i);y=w;do i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],pqdownheap(t,b,1),p=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=p,b[2*y]=b[2*i]+b[2*p],t.depth[y]=(t.depth[i]>=t.depth[p]?t.depth[i]:t.depth[p])+1,b[2*i+1]=b[2*p+1]=y,t.heap[1]=y++,pqdownheap(t,b,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,r){var i,p,y,b,_,m,w=r.dyn_tree,S=r.max_code,A=r.stat_desc.static_tree,k=r.stat_desc.has_stree,T=r.stat_desc.extra_bits,R=r.stat_desc.extra_base,O=r.stat_desc.max_length,x=0;for(b=0;b<=15;b++)t.bl_count[b]=0;for(w[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<573;i++)(b=w[2*w[2*(p=t.heap[i])+1]+1]+1)>O&&(b=O,x++),w[2*p+1]=b,!(p>S)&&(t.bl_count[b]++,_=0,p>=R&&(_=T[p-R]),m=w[2*p],t.opt_len+=m*(b+_),k&&(t.static_len+=m*(A[2*p+1]+_)));if(0!==x){do{for(b=O-1;0===t.bl_count[b];)b--;t.bl_count[b]--,t.bl_count[b+1]+=2,t.bl_count[O]--,x-=2}while(x>0);for(b=O;0!==b;b--)for(p=t.bl_count[b];0!==p;)!((y=t.heap[--i])>S)&&(w[2*y+1]!==b&&(t.opt_len+=(b-w[2*y+1])*w[2*y],w[2*y+1]=b),p--)}}(t,r),gen_codes(b,S,t.bl_count)}function scan_tree(t,r,i){var p,y,b=-1,_=r[1],m=0,w=7,S=4;for(0===_&&(w=138,S=3),r[(i+1)*2+1]=65535,p=0;p<=i;p++)y=_,_=r[(p+1)*2+1],++m>=7;_<30;_++)for(t=0,P[_]=A<<7;t<1<0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var r,i=4093624447;for(r=0;r<=31;r++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*r])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(r=32;r<256;r++)if(0!==t.dyn_ltree[2*r])return 1;return 0}(t)),build_tree(t,t.l_desc),build_tree(t,t.d_desc),_=function(t){var r;for(scan_tree(t,t.dyn_ltree,t.l_desc.max_code),scan_tree(t,t.dyn_dtree,t.d_desc.max_code),build_tree(t,t.bl_desc),r=18;r>=3&&0===t.bl_tree[2*A[r]+1];r--);return t.opt_len+=3*(r+1)+5+5+4,r}(t),y=t.opt_len+3+7>>>3,(b=t.static_len+3+7>>>3)<=y&&(y=b)):y=b=i+5,i+4<=y&&-1!==r?_tr_stored_block(t,r,i,p):4===t.strategy||b===y?(send_bits(t,2+(p?1:0),3),compress_block(t,k,T)):(send_bits(t,4+(p?1:0),3),function(t,r,i,p){var y;for(send_bits(t,r-257,5),send_bits(t,i-1,5),send_bits(t,p-4,4),y=0;y>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&r,t.pending_buf[t.l_buf+t.last_lit]=255&i,t.last_lit++,0===r?t.dyn_ltree[2*i]++:(t.matches++,r--,t.dyn_ltree[(O[i]+256+1)*2]++,t.dyn_dtree[2*d_code(r)]++),t.last_lit===t.lit_bufsize-1},i._tr_align=function(t){send_bits(t,2,3),send_code(t,256,k),16===t.bi_valid?(put_short(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":49}],59:[function(t,r,i){"use strict";r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],60:[function(t,r,i){var p,y,b,_=r.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(t){if(p===setTimeout)return setTimeout(t,0);if((p===defaultSetTimout||!p)&&setTimeout)return p=setTimeout,setTimeout(t,0);try{return p(t,0)}catch(r){try{return p.call(null,t,0)}catch(r){return p.call(this,t,0)}}}!function(){try{p="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(t){p=defaultSetTimout}try{y="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(t){y=defaultClearTimeout}}();var m=[],w=!1,S=-1;function cleanUpNextTick(){w&&b&&(w=!1,b.length?m=b.concat(m):S=-1,m.length&&drainQueue())}function drainQueue(){if(!w){var t=runTimeout(cleanUpNextTick);w=!0;for(var r=m.length;r;){for(b=m,m=[];++S1)for(var i=1;i2)?"one of ".concat(r," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(r," ").concat(t[0]," or ").concat(t[1]):"of ".concat(r," ").concat(t[0])}createErrorType("ERR_INVALID_OPT_VALUE",function(t,r){return'The value "'+r+'" is invalid for option "'+t+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(t,r,i){if("string"==typeof r&&(p="not ",r.substr(!y||y<0?0:+y,p.length)===p)?(w="must not be",r=r.replace(/^not /,"")):w="must be",b=" argument",(void 0===_||_>t.length)&&(_=t.length),t.substring(_-b.length,_)===b)S="The ".concat(t," ").concat(w," ").concat(oneOf(r,"type"));else{var p,y,b,_,m,w,S,A=("number"!=typeof m&&(m=0),m+1>t.length||-1===t.indexOf(".",m))?"argument":"property";S='The "'.concat(t,'" ').concat(A," ").concat(w," ").concat(oneOf(r,"type"))}return S+". Received type ".concat(typeof i)},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),r.exports.codes=p},{}],63:[function(t,r,i){(function(i){(function(){"use strict";var p=Object.keys||function(t){var r=[];for(var i in t)r.push(i);return r};r.exports=Duplex;var y=t("./_stream_readable"),b=t("./_stream_writable");t("inherits")(Duplex,y);for(var _=p(b.prototype),m=0;m<_.length;m++){var w=_[m];Duplex.prototype[w]||(Duplex.prototype[w]=b.prototype[w])}function Duplex(t){if(!(this instanceof Duplex))return new Duplex(t);y.call(this,t),b.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",onend)))}function onend(){this._writableState.ended||i.nextTick(onEndNT,this)}function onEndNT(t){t.end()}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Duplex.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Duplex.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Duplex.prototype,"destroyed",{enumerable:!1,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)}})}).call(this)}).call(this,t("_process"))},{"./_stream_readable":65,"./_stream_writable":67,_process:60,inherits:45}],64:[function(t,r,i){"use strict";r.exports=PassThrough;var p=t("./_stream_transform");function PassThrough(t){if(!(this instanceof PassThrough))return new PassThrough(t);p.call(this,t)}t("inherits")(PassThrough,p),PassThrough.prototype._transform=function(t,r,i){i(null,t)}},{"./_stream_transform":66,inherits:45}],65:[function(t,r,p){(function(i,p){(function(){"use strict";r.exports=Readable,Readable.ReadableState=ReadableState,t("events").EventEmitter;var y,b,_,m,w,EElistenerCount=function(t,r){return t.listeners(r).length},S=t("./internal/streams/stream"),A=t("buffer").Buffer,k=p.Uint8Array||function(){},T=t("util");b=T&&T.debuglog?T.debuglog("stream"):function(){};var R=t("./internal/streams/buffer_list"),O=t("./internal/streams/destroy"),x=t("./internal/streams/state").getHighWaterMark,P=t("../errors").codes,L=P.ERR_INVALID_ARG_TYPE,M=P.ERR_STREAM_PUSH_AFTER_EOF,C=P.ERR_METHOD_NOT_IMPLEMENTED,N=P.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;t("inherits")(Readable,S);var D=O.errorOrDestroy,U=["error","close","destroy","pause","resume"];function ReadableState(r,i,p){y=y||t("./_stream_duplex"),r=r||{},"boolean"!=typeof p&&(p=i instanceof y),this.objectMode=!!r.objectMode,p&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=x(this,r,"readableHighWaterMark",p),this.buffer=new R,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.paused=!0,this.emitClose=!1!==r.emitClose,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(_||(_=t("string_decoder/").StringDecoder),this.decoder=new _(r.encoding),this.encoding=r.encoding)}function Readable(r){if(y=y||t("./_stream_duplex"),!(this instanceof Readable))return new Readable(r);var i=this instanceof y;this._readableState=new ReadableState(r,this,i),this.readable=!0,r&&("function"==typeof r.read&&(this._read=r.read),"function"==typeof r.destroy&&(this._destroy=r.destroy)),S.call(this)}function readableAddChunk(t,r,i,p,y){b("readableAddChunk",r);var _,m,w,S,T,R=t._readableState;if(null===r)R.reading=!1,function(t,r){if(b("onEofChunk"),!r.ended){if(r.decoder){var i=r.decoder.end();i&&i.length&&(r.buffer.push(i),r.length+=r.objectMode?1:i.length)}r.ended=!0,r.sync?emitReadable(t):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,emitReadable_(t)))}}(t,R);else{if(y||(_=R,m=r,A.isBuffer(m)||m instanceof k||"string"==typeof m||void 0===m||_.objectMode||(w=new L("chunk",["string","Buffer","Uint8Array"],m)),T=w),T)D(t,T);else if(R.objectMode||r&&r.length>0){if("string"==typeof r||R.objectMode||Object.getPrototypeOf(r)===A.prototype||(S=r,r=A.from(S)),p)R.endEmitted?D(t,new N):addChunk(t,R,r,!0);else if(R.ended)D(t,new M);else{if(R.destroyed)return!1;R.reading=!1,R.decoder&&!i?(r=R.decoder.write(r),R.objectMode||0!==r.length?addChunk(t,R,r,!1):maybeReadMore(t,R)):addChunk(t,R,r,!1)}}else p||(R.reading=!1,maybeReadMore(t,R))}return!R.ended&&(R.lengthr.highWaterMark){var i;r.highWaterMark=((i=t)>=1073741824?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)}return t<=r.length?t:r.ended?r.length:(r.needReadable=!0,0)}function emitReadable(t){var r=t._readableState;b("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(b("emitReadable",r.flowing),r.emittedReadable=!0,i.nextTick(emitReadable_,t))}function emitReadable_(t){var r=t._readableState;b("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(t.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,flow(t)}function maybeReadMore(t,r){r.readingMore||(r.readingMore=!0,i.nextTick(maybeReadMore_,t,r))}function maybeReadMore_(t,r){for(;!r.reading&&!r.ended&&(r.length0,r.resumeScheduled&&!r.paused?r.flowing=!0:t.listenerCount("data")>0&&t.resume()}function nReadingNextTick(t){b("readable nexttick read 0"),t.read(0)}function resume_(t,r){b("resume",r.reading),r.reading||t.read(0),r.resumeScheduled=!1,t.emit("resume"),flow(t),r.flowing&&!r.reading&&t.read(0)}function flow(t){var r=t._readableState;for(b("flow",r.flowing);r.flowing&&null!==t.read(););}function fromList(t,r){var i;return 0===r.length?null:(r.objectMode?i=r.buffer.shift():!t||t>=r.length?(i=r.decoder?r.buffer.join(""):1===r.buffer.length?r.buffer.first():r.buffer.concat(r.length),r.buffer.clear()):i=r.buffer.consume(t,r.decoder),i)}function endReadable(t){var r=t._readableState;b("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,i.nextTick(endReadableNT,r,t))}function endReadableNT(t,r){if(b("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,r.readable=!1,r.emit("end"),t.autoDestroy)){var i=r._writableState;(!i||i.autoDestroy&&i.finished)&&r.destroy()}}function indexOf(t,r){for(var i=0,p=t.length;i=i.highWaterMark:i.length>0)||i.ended))return b("read: emitReadable",i.length,i.ended),0===i.length&&i.ended?endReadable(this):emitReadable(this),null;if(0===(t=howMuchToRead(t,i))&&i.ended)return 0===i.length&&endReadable(this),null;var y=i.needReadable;return b("need readable",y),(0===i.length||i.length-t0?fromList(t,i):null)?(i.needReadable=i.length<=i.highWaterMark,t=0):(i.length-=t,i.awaitDrain=0),0===i.length&&(i.ended||(i.needReadable=!0),p!==t&&i.ended&&endReadable(this)),null!==r&&this.emit("data",r),r},Readable.prototype._read=function(t){D(this,new C("_read()"))},Readable.prototype.pipe=function(t,r){var p=this,y=this._readableState;switch(y.pipesCount){case 0:y.pipes=t;break;case 1:y.pipes=[y.pipes,t];break;default:y.pipes.push(t)}y.pipesCount+=1,b("pipe count=%d opts=%j",y.pipesCount,r);var _=r&&!1===r.end||t===i.stdout||t===i.stderr?unpipe:onend;function onend(){b("onend"),t.end()}y.endEmitted?i.nextTick(_):p.once("end",_),t.on("unpipe",function onunpipe(r,i){b("onunpipe"),r===p&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,b("cleanup"),t.removeListener("close",onclose),t.removeListener("finish",onfinish),t.removeListener("drain",ondrain),t.removeListener("error",onerror),t.removeListener("unpipe",onunpipe),p.removeListener("end",onend),p.removeListener("end",unpipe),p.removeListener("data",ondata),m=!0,y.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&ondrain())});var ondrain=function(){var t=p._readableState;b("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&EElistenerCount(p,"data")&&(t.flowing=!0,flow(p))};t.on("drain",ondrain);var m=!1;function ondata(r){b("ondata");var i=t.write(r);b("dest.write",i),!1===i&&((1===y.pipesCount&&y.pipes===t||y.pipesCount>1&&-1!==indexOf(y.pipes,t))&&!m&&(b("false write response, pause",y.awaitDrain),y.awaitDrain++),p.pause())}function onerror(r){b("onerror",r),unpipe(),t.removeListener("error",onerror),0===EElistenerCount(t,"error")&&D(t,r)}function onclose(){t.removeListener("finish",onfinish),unpipe()}function onfinish(){b("onfinish"),t.removeListener("close",onclose),unpipe()}function unpipe(){b("unpipe"),p.unpipe(t)}return p.on("data",ondata),function(t,r,i){if("function"==typeof t.prependListener)return t.prependListener(r,i);t._events&&t._events[r]?Array.isArray(t._events[r])?t._events[r].unshift(i):t._events[r]=[i,t._events[r]]:t.on(r,i)}(t,"error",onerror),t.once("close",onclose),t.once("finish",onfinish),t.emit("pipe",p),y.flowing||(b("pipe resume"),p.resume()),t},Readable.prototype.unpipe=function(t){var r=this._readableState,i={hasUnpiped:!1};if(0===r.pipesCount)return this;if(1===r.pipesCount)return t&&t!==r.pipes||(t||(t=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){var p=r.pipes,y=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var b=0;b0,!1!==y.flowing&&this.resume()):"readable"!==t||y.endEmitted||y.readableListening||(y.readableListening=y.needReadable=!0,y.flowing=!1,y.emittedReadable=!1,b("on readable",y.length,y.reading),y.length?emitReadable(this):y.reading||i.nextTick(nReadingNextTick,this)),p},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(t,r){var p=S.prototype.removeListener.call(this,t,r);return"readable"===t&&i.nextTick(updateReadableListening,this),p},Readable.prototype.removeAllListeners=function(t){var r=S.prototype.removeAllListeners.apply(this,arguments);return("readable"===t||void 0===t)&&i.nextTick(updateReadableListening,this),r},Readable.prototype.resume=function(){var t=this._readableState;return t.flowing||(b("resume"),t.flowing=!t.readableListening,t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(resume_,this,t))),t.paused=!1,this},Readable.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},Readable.prototype.wrap=function(t){var r=this,i=this._readableState,p=!1;for(var y in t.on("end",function(){if(b("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),t.on("data",function(y){b("wrapped data"),i.decoder&&(y=i.decoder.write(y)),(!i.objectMode||null!=y)&&(i.objectMode||y&&y.length)&&(r.push(y)||(p=!0,t.pause()))}),t)void 0===this[y]&&"function"==typeof t[y]&&(this[y]=function(r){return function(){return t[r].apply(t,arguments)}}(y));for(var _=0;_-1))throw new N(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(t,r,i){i(new O("_write()"))},Writable.prototype._writev=null,Writable.prototype.end=function(t,r,p){var y,b=this._writableState;return"function"==typeof t?(p=t,t=null,r=null):"function"==typeof r&&(p=r,r=null),null!=t&&this.write(t,r),b.corked&&(b.corked=1,this.uncork()),b.ending||(y=p,b.ending=!0,finishMaybe(this,b),y&&(b.finished?i.nextTick(y):this.once("finish",y)),b.ended=!0,this.writable=!1),this},Object.defineProperty(Writable.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Writable.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),Writable.prototype.destroy=A.destroy,Writable.prototype._undestroy=A.undestroy,Writable.prototype._destroy=function(t,r){r(t)}}).call(this)}).call(this,t("_process"),void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":62,"./_stream_duplex":63,"./internal/streams/destroy":70,"./internal/streams/state":74,"./internal/streams/stream":75,_process:60,buffer:33,inherits:45,"util-deprecate":78}],68:[function(t,r,i){(function(i){(function(){"use strict";function _defineProperty(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var p,y=t("./end-of-stream"),b=Symbol("lastResolve"),_=Symbol("lastReject"),m=Symbol("error"),w=Symbol("ended"),S=Symbol("lastPromise"),A=Symbol("handlePromise"),k=Symbol("stream");function createIterResult(t,r){return{value:t,done:r}}function readAndResolve(t){var r=t[b];if(null!==r){var i=t[k].read();null!==i&&(t[S]=null,t[b]=null,t[_]=null,r(createIterResult(i,!1)))}}function onReadable(t){i.nextTick(readAndResolve,t)}var T=Object.getPrototypeOf(function(){}),R=Object.setPrototypeOf((_defineProperty(p={get stream(){return this[k]},next:function(){var t,r,p=this,y=this[m];if(null!==y)return Promise.reject(y);if(this[w])return Promise.resolve(createIterResult(void 0,!0));if(this[k].destroyed)return new Promise(function(t,r){i.nextTick(function(){p[m]?r(p[m]):t(createIterResult(void 0,!0))})});var b=this[S];if(b)r=new Promise((t=this,function(r,i){b.then(function(){if(t[w]){r(createIterResult(void 0,!0));return}t[A](r,i)},i)}));else{var _=this[k].read();if(null!==_)return Promise.resolve(createIterResult(_,!1));r=new Promise(this[A])}return this[S]=r,r}},Symbol.asyncIterator,function(){return this}),_defineProperty(p,"return",function(){var t=this;return new Promise(function(r,i){t[k].destroy(null,function(t){if(t){i(t);return}r(createIterResult(void 0,!0))})})}),p),T);r.exports=function(t){var r,i=Object.create(R,(_defineProperty(r={},k,{value:t,writable:!0}),_defineProperty(r,b,{value:null,writable:!0}),_defineProperty(r,_,{value:null,writable:!0}),_defineProperty(r,m,{value:null,writable:!0}),_defineProperty(r,w,{value:t._readableState.endEmitted,writable:!0}),_defineProperty(r,A,{value:function(t,r){var p=i[k].read();p?(i[S]=null,i[b]=null,i[_]=null,t(createIterResult(p,!1))):(i[b]=t,i[_]=r)},writable:!0}),r));return i[S]=null,y(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var r=i[_];null!==r&&(i[S]=null,i[b]=null,i[_]=null,r(t)),i[m]=t;return}var p=i[b];null!==p&&(i[S]=null,i[b]=null,i[_]=null,p(createIterResult(void 0,!0))),i[w]=!0}),t.on("readable",onReadable.bind(null,i)),i}}).call(this)}).call(this,t("_process"))},{"./end-of-stream":71,_process:60}],69:[function(t,r,i){"use strict";function ownKeys(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);r&&(p=p.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,p)}return i}function _defineProperties(t,r){for(var i=0;i0?this.tail.next=r:this.head=r,this.tail=r,++this.length}},{key:"unshift",value:function(t){var r={data:t,next:this.head};0===this.length&&(this.tail=r),this.head=r,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var r=this.head,i=""+r.data;r=r.next;)i+=t+r.data;return i}},{key:"concat",value:function(t){if(0===this.length)return p.alloc(0);for(var r,i,y=p.allocUnsafe(t>>>0),b=this.head,_=0;b;)r=b.data,i=_,p.prototype.copy.call(r,y,i),_+=b.data.length,b=b.next;return y}},{key:"consume",value:function(t,r){var i;return ty.length?y.length:t;if(b===y.length?p+=y:p+=y.slice(0,t),0==(t-=b)){b===y.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=y.slice(b));break}++i}return this.length-=i,p}},{key:"_getBuffer",value:function(t){var r=p.allocUnsafe(t),i=this.head,y=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var b=i.data,_=t>b.length?b.length:t;if(b.copy(r,r.length-t,0,_),0==(t-=_)){_===b.length?(++y,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=b.slice(_));break}++y}return this.length-=y,r}},{key:b,value:function(t,r){return y(this,function(t){for(var r=1;r0},function(t){if(t)return b(t);T=!0,b()}),R=!1,function(t){if(!T&&!R){if(R=!0,r.setHeader&&"function"==typeof r.abort)return r.abort();if("function"==typeof r.destroy)return r.destroy();b(t||new _("pipe"))}}});return m.reduce(pipe)}},{"../../../errors":62,"./end-of-stream":71}],74:[function(t,r,i){"use strict";var p=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;r.exports={getHighWaterMark:function(t,r,i,y){var b=null!=r.highWaterMark?r.highWaterMark:y?r[i]:null;if(null!=b){if(!(isFinite(b)&&Math.floor(b)===b)||b<0){var _=y?i:"highWaterMark";throw new p(_,b)}return Math.floor(b)}return t.objectMode?16:16384}}},{"../../../errors":62}],75:[function(t,r,i){r.exports=t("events").EventEmitter},{events:38}],76:[function(t,r,i){"use strict";var p=t("safe-buffer").Buffer,y=p.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 StringDecoder(t){var r;switch(this.encoding=function(t){var r=function(t){var r;if(!t)return"utf8";for(;;)switch(t){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 t;default:if(r)return;t=(""+t).toLowerCase(),r=!0}}(t);if("string"!=typeof r&&(p.isEncoding===y||!y(t)))throw Error("Unknown encoding: "+t);return r||t}(t),this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,r=4;break;case"utf8":this.fillLast=utf8FillLast,r=4;break;case"base64":this.text=base64Text,this.end=base64End,r=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=p.allocUnsafe(r)}function utf8CheckByte(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function utf8FillLast(t){var r=this.lastTotal-this.lastNeed,i=function(t,r,i){if((192&r[0])!=128)return t.lastNeed=0,"�";if(t.lastNeed>1&&r.length>1){if((192&r[1])!=128)return t.lastNeed=1,"�";if(t.lastNeed>2&&r.length>2&&(192&r[2])!=128)return t.lastNeed=2,"�"}}(this,t,0);return void 0!==i?i:this.lastNeed<=t.length?(t.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(t.copy(this.lastChar,r,0,t.length),this.lastNeed-=t.length)}function utf16Text(t,r){if((t.length-r)%2==0){var i=t.toString("utf16le",r);if(i){var p=i.charCodeAt(i.length-1);if(p>=55296&&p<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",r,t.length-1)}function utf16End(t){var r=t&&t.length?this.write(t):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,i)}return r}function base64Text(t,r){var i=(t.length-r)%3;return 0===i?t.toString("base64",r):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",r,t.length-i))}function base64End(t){var r=t&&t.length?this.write(t):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function simpleWrite(t){return t.toString(this.encoding)}function simpleEnd(t){return t&&t.length?this.write(t):""}i.StringDecoder=StringDecoder,StringDecoder.prototype.write=function(t){var r,i;if(0===t.length)return"";if(this.lastNeed){if(void 0===(r=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i=0?(y>0&&(t.lastNeed=y-1),y):--p=0?(y>0&&(t.lastNeed=y-2),y):--p=0?(y>0&&(2===y?y=0:t.lastNeed=y-3),y):0}(this,t,r);if(!this.lastNeed)return t.toString("utf8",r);this.lastTotal=i;var p=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,p),t.toString("utf8",r,p)},StringDecoder.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}},{"safe-buffer":77}],77:[function(t,r,i){/*! safe-buffer. MIT License. Feross Aboukhadijeh */var p=t("buffer"),y=p.Buffer;function copyProps(t,r){for(var i in t)r[i]=t[i]}function SafeBuffer(t,r,i){return y(t,r,i)}y.from&&y.alloc&&y.allocUnsafe&&y.allocUnsafeSlow?r.exports=p:(copyProps(p,i),i.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(y.prototype),copyProps(y,SafeBuffer),SafeBuffer.from=function(t,r,i){if("number"==typeof t)throw TypeError("Argument must not be a number");return y(t,r,i)},SafeBuffer.alloc=function(t,r,i){if("number"!=typeof t)throw TypeError("Argument must be a number");var p=y(t);return void 0!==r?"string"==typeof i?p.fill(r,i):p.fill(r):p.fill(0),p},SafeBuffer.allocUnsafe=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return y(t)},SafeBuffer.allocUnsafeSlow=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return p.SlowBuffer(t)}},{buffer:33}],78:[function(t,r,p){(function(t){(function(){r.exports=function(t,r){if(config("noDeprecation"))return t;var i=!1;return function(){if(!i){if(config("throwDeprecation"))throw Error(r);config("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return t.apply(this,arguments)}};function config(r){try{if(!t.localStorage)return!1}catch(t){return!1}var i=t.localStorage[r];return null!=i&&"true"===String(i).toLowerCase()}}).call(this)}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],79:[function(t,r,i){arguments[4][25][0].apply(i,arguments)},{dup:25}],80:[function(t,r,i){"use strict";var p=t("is-arguments"),y=t("is-generator-function"),b=t("which-typed-array"),_=t("is-typed-array");function uncurryThis(t){return t.call.bind(t)}var m="undefined"!=typeof BigInt,w="undefined"!=typeof Symbol,S=uncurryThis(Object.prototype.toString),A=uncurryThis(Number.prototype.valueOf),k=uncurryThis(String.prototype.valueOf),T=uncurryThis(Boolean.prototype.valueOf);if(m)var R=uncurryThis(BigInt.prototype.valueOf);if(w)var O=uncurryThis(Symbol.prototype.valueOf);function checkBoxedPrimitive(t,r){if("object"!=typeof t)return!1;try{return r(t),!0}catch(t){return!1}}function isMapToString(t){return"[object Map]"===S(t)}function isSetToString(t){return"[object Set]"===S(t)}function isWeakMapToString(t){return"[object WeakMap]"===S(t)}function isWeakSetToString(t){return"[object WeakSet]"===S(t)}function isArrayBufferToString(t){return"[object ArrayBuffer]"===S(t)}function isArrayBuffer(t){return"undefined"!=typeof ArrayBuffer&&(isArrayBufferToString.working?isArrayBufferToString(t):t instanceof ArrayBuffer)}function isDataViewToString(t){return"[object DataView]"===S(t)}function isDataView(t){return"undefined"!=typeof DataView&&(isDataViewToString.working?isDataViewToString(t):t instanceof DataView)}function isSharedArrayBufferToString(t){return"[object SharedArrayBuffer]"===S(t)}function isSharedArrayBuffer(t){return"undefined"!=typeof SharedArrayBuffer&&(isSharedArrayBufferToString.working?isSharedArrayBufferToString(t):t instanceof SharedArrayBuffer)}function isNumberObject(t){return checkBoxedPrimitive(t,A)}function isStringObject(t){return checkBoxedPrimitive(t,k)}function isBooleanObject(t){return checkBoxedPrimitive(t,T)}function isBigIntObject(t){return m&&checkBoxedPrimitive(t,R)}function isSymbolObject(t){return w&&checkBoxedPrimitive(t,O)}i.isArgumentsObject=p,i.isGeneratorFunction=y,i.isTypedArray=_,i.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},i.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):_(t)||isDataView(t)},i.isUint8Array=function(t){return"Uint8Array"===b(t)},i.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===b(t)},i.isUint16Array=function(t){return"Uint16Array"===b(t)},i.isUint32Array=function(t){return"Uint32Array"===b(t)},i.isInt8Array=function(t){return"Int8Array"===b(t)},i.isInt16Array=function(t){return"Int16Array"===b(t)},i.isInt32Array=function(t){return"Int32Array"===b(t)},i.isFloat32Array=function(t){return"Float32Array"===b(t)},i.isFloat64Array=function(t){return"Float64Array"===b(t)},i.isBigInt64Array=function(t){return"BigInt64Array"===b(t)},i.isBigUint64Array=function(t){return"BigUint64Array"===b(t)},isMapToString.working="undefined"!=typeof Map&&isMapToString(new Map),i.isMap=function(t){return"undefined"!=typeof Map&&(isMapToString.working?isMapToString(t):t instanceof Map)},isSetToString.working="undefined"!=typeof Set&&isSetToString(new Set),i.isSet=function(t){return"undefined"!=typeof Set&&(isSetToString.working?isSetToString(t):t instanceof Set)},isWeakMapToString.working="undefined"!=typeof WeakMap&&isWeakMapToString(new WeakMap),i.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(isWeakMapToString.working?isWeakMapToString(t):t instanceof WeakMap)},isWeakSetToString.working="undefined"!=typeof WeakSet&&isWeakSetToString(new WeakSet),i.isWeakSet=function(t){return isWeakSetToString(t)},isArrayBufferToString.working="undefined"!=typeof ArrayBuffer&&isArrayBufferToString(new ArrayBuffer),i.isArrayBuffer=isArrayBuffer,isDataViewToString.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&isDataViewToString(new DataView(new ArrayBuffer(1),0,1)),i.isDataView=isDataView,isSharedArrayBufferToString.working="undefined"!=typeof SharedArrayBuffer&&isSharedArrayBufferToString(new SharedArrayBuffer),i.isSharedArrayBuffer=isSharedArrayBuffer,i.isAsyncFunction=function(t){return"[object AsyncFunction]"===S(t)},i.isMapIterator=function(t){return"[object Map Iterator]"===S(t)},i.isSetIterator=function(t){return"[object Set Iterator]"===S(t)},i.isGeneratorObject=function(t){return"[object Generator]"===S(t)},i.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===S(t)},i.isNumberObject=isNumberObject,i.isStringObject=isStringObject,i.isBooleanObject=isBooleanObject,i.isBigIntObject=isBigIntObject,i.isSymbolObject=isSymbolObject,i.isBoxedPrimitive=function(t){return isNumberObject(t)||isStringObject(t)||isBooleanObject(t)||isBigIntObject(t)||isSymbolObject(t)},i.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(isArrayBuffer(t)||isSharedArrayBuffer(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(i,t,{enumerable:!1,value:function(){throw Error(t+" is not supported in userland")}})})},{"is-arguments":46,"is-generator-function":47,"is-typed-array":48,"which-typed-array":82}],81:[function(t,r,i){(function(r){(function(){var p=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},p=0;p=b)return t;switch(t){case"%s":return String(p[i++]);case"%d":return Number(p[i++]);case"%j":try{return JSON.stringify(p[i++])}catch(t){return"[Circular]"}default:return t}}),m=p[i];i=3&&(p.depth=arguments[2]),arguments.length>=4&&(p.colors=arguments[3]),isBoolean(r)?p.showHidden=r:r&&i._extend(p,r),isUndefined(p.showHidden)&&(p.showHidden=!1),isUndefined(p.depth)&&(p.depth=2),isUndefined(p.colors)&&(p.colors=!1),isUndefined(p.customInspect)&&(p.customInspect=!0),p.colors&&(p.stylize=stylizeWithColor),formatValue(p,t,p.depth)}function stylizeWithColor(t,r){var i=inspect.styles[r];return i?"\x1b["+inspect.colors[i][0]+"m"+t+"\x1b["+inspect.colors[i][1]+"m":t}function stylizeNoColor(t,r){return t}function formatValue(t,r,p){if(t.customInspect&&r&&isFunction(r.inspect)&&r.inspect!==i.inspect&&!(r.constructor&&r.constructor.prototype===r)){var y,b,_,m,w,S=r.inspect(p,t);return isString(S)||(S=formatValue(t,S,p)),S}var A=function(t,r){if(isUndefined(r))return t.stylize("undefined","undefined");if(isString(r)){var i="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(i,"string")}return isNumber(r)?t.stylize(""+r,"number"):isBoolean(r)?t.stylize(""+r,"boolean"):isNull(r)?t.stylize("null","null"):void 0}(t,r);if(A)return A;var k=Object.keys(r),T=(m={},k.forEach(function(t,r){m[t]=!0}),m);if(t.showHidden&&(k=Object.getOwnPropertyNames(r)),isError(r)&&(k.indexOf("message")>=0||k.indexOf("description")>=0))return formatError(r);if(0===k.length){if(isFunction(r)){var R=r.name?": "+r.name:"";return t.stylize("[Function"+R+"]","special")}if(isRegExp(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(isDate(r))return t.stylize(Date.prototype.toString.call(r),"date");if(isError(r))return formatError(r)}var O="",x=!1,P=["{","}"];return(isArray(r)&&(x=!0,P=["[","]"]),isFunction(r)&&(O=" [Function"+(r.name?": "+r.name:"")+"]"),isRegExp(r)&&(O=" "+RegExp.prototype.toString.call(r)),isDate(r)&&(O=" "+Date.prototype.toUTCString.call(r)),isError(r)&&(O=" "+formatError(r)),0!==k.length||x&&0!=r.length)?p<0?isRegExp(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),w=x?function(t,r,i,p,y){for(var b=[],_=0,m=r.length;_=0&&_++,t+r.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?b[0]+(""===y?"":y+"\n ")+" "+w.join(",\n ")+" "+b[1]:b[0]+y+" "+w.join(", ")+" "+b[1]):P[0]+O+P[1]}function formatError(t){return"["+Error.prototype.toString.call(t)+"]"}function formatProperty(t,r,i,p,y,b){var _,m,w;if((w=Object.getOwnPropertyDescriptor(r,y)||{value:r[y]}).get?m=w.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):w.set&&(m=t.stylize("[Setter]","special")),hasOwnProperty(p,y)||(_="["+y+"]"),!m&&(0>t.seen.indexOf(w.value)?(m=isNull(i)?formatValue(t,w.value,null):formatValue(t,w.value,i-1)).indexOf("\n")>-1&&(m=b?m.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+m.split("\n").map(function(t){return" "+t}).join("\n")):m=t.stylize("[Circular]","special")),isUndefined(_)){if(b&&y.match(/^\d+$/))return m;(_=JSON.stringify(""+y)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_=_.substr(1,_.length-2),_=t.stylize(_,"name")):(_=_.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_=t.stylize(_,"string"))}return _+": "+m}function isArray(t){return Array.isArray(t)}function isBoolean(t){return"boolean"==typeof t}function isNull(t){return null===t}function isNumber(t){return"number"==typeof t}function isString(t){return"string"==typeof t}function isUndefined(t){return void 0===t}function isRegExp(t){return isObject(t)&&"[object RegExp]"===objectToString(t)}function isObject(t){return"object"==typeof t&&null!==t}function isDate(t){return isObject(t)&&"[object Date]"===objectToString(t)}function isError(t){return isObject(t)&&("[object Error]"===objectToString(t)||t instanceof Error)}function isFunction(t){return"function"==typeof t}function objectToString(t){return Object.prototype.toString.call(t)}function pad(t){return t<10?"0"+t.toString(10):t.toString(10)}i.debuglog=function(t){if(!b[t=t.toUpperCase()]){if(_.test(t)){var p=r.pid;b[t]=function(){var r=i.format.apply(i,arguments);console.error("%s %d: %s",t,p,r)}}else b[t]=function(){}}return b[t]},i.inspect=inspect,inspect.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]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.types=t("./support/types"),i.isArray=isArray,i.isBoolean=isBoolean,i.isNull=isNull,i.isNullOrUndefined=function(t){return null==t},i.isNumber=isNumber,i.isString=isString,i.isSymbol=function(t){return"symbol"==typeof t},i.isUndefined=isUndefined,i.isRegExp=isRegExp,i.types.isRegExp=isRegExp,i.isObject=isObject,i.isDate=isDate,i.types.isDate=isDate,i.isError=isError,i.types.isNativeError=isError,i.isFunction=isFunction,i.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},i.isBuffer=t("./support/isBuffer");var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hasOwnProperty(t,r){return Object.prototype.hasOwnProperty.call(t,r)}i.log=function(){var t,r;console.log("%s - %s",(r=[pad((t=new Date).getHours()),pad(t.getMinutes()),pad(t.getSeconds())].join(":"),[t.getDate(),w[t.getMonth()],r].join(" ")),i.format.apply(i,arguments))},i.inherits=t("inherits"),i._extend=function(t,r){if(!r||!isObject(r))return t;for(var i=Object.keys(r),p=i.length;p--;)t[i[p]]=r[i[p]];return t};var S="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(t,r){if(!t){var i=Error("Promise was rejected with a falsy value");i.reason=t,t=i}return r(t)}i.promisify=function(t){if("function"!=typeof t)throw TypeError('The "original" argument must be of type Function');if(S&&t[S]){var fn=t[S];if("function"!=typeof fn)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(fn,S,{value:fn,enumerable:!1,writable:!1,configurable:!0}),fn}function fn(){for(var r,i,p=new Promise(function(t,p){r=t,i=p}),y=[],b=0;b"object"==typeof t&&null!==t||"function"==typeof t,y=new Map([["proxy",{canHandle:r=>isObject(r)&&r[t],serialize(t){let{port1:r,port2:i}=new MessageChannel;return expose(t,r),[i,[i]]},deserialize:t=>(t.start(),function createProxy(t,p=[],y=function(){}){let b=!1,_=new Proxy(y,{get(r,y){if(throwIfProxyReleased(b),y===i)return()=>requestResponseMessage(t,{type:"RELEASE",path:p.map(t=>t.toString())}).then(()=>{closeEndPoint(t),b=!0});if("then"===y){if(0===p.length)return{then:()=>_};let r=requestResponseMessage(t,{type:"GET",path:p.map(t=>t.toString())}).then(fromWireValue);return r.then.bind(r)}return createProxy(t,[...p,y])},set(r,i,y){throwIfProxyReleased(b);let[_,m]=toWireValue(y);return requestResponseMessage(t,{type:"SET",path:[...p,i].map(t=>t.toString()),value:_},m).then(fromWireValue)},apply(i,y,_){throwIfProxyReleased(b);let m=p[p.length-1];if(m===r)return requestResponseMessage(t,{type:"ENDPOINT"}).then(fromWireValue);if("bind"===m)return createProxy(t,p.slice(0,-1));let[w,S]=processArguments(_);return requestResponseMessage(t,{type:"APPLY",path:p.map(t=>t.toString()),argumentList:w},S).then(fromWireValue)},construct(r,i){throwIfProxyReleased(b);let[y,_]=processArguments(i);return requestResponseMessage(t,{type:"CONSTRUCT",path:p.map(t=>t.toString()),argumentList:y},_).then(fromWireValue)}});return _}(t,[],void 0))}],["throw",{canHandle:t=>isObject(t)&&p in t,serialize:({value:t})=>[t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[]],deserialize(t){if(t.isError)throw Object.assign(Error(t.value.message),t.value);throw t.value}}]]);function expose(r,i=self){i.addEventListener("message",function callback(y){let _;if(!y||!y.data)return;let{id:m,type:w,path:S}=Object.assign({path:[]},y.data),A=(y.data.argumentList||[]).map(fromWireValue);try{var k;let i=S.slice(0,-1).reduce((t,r)=>t[r],r),p=S.reduce((t,r)=>t[r],r);switch(w){case"GET":_=p;break;case"SET":i[S.slice(-1)[0]]=fromWireValue(y.data.value),_=!0;break;case"APPLY":_=p.apply(i,A);break;case"CONSTRUCT":{let r=new p(...A);_=Object.assign(r,{[t]:!0})}break;case"ENDPOINT":{let{port1:t,port2:i}=new MessageChannel;expose(r,i),k=[t],b.set(t,k),_=t}break;case"RELEASE":_=void 0;break;default:return}}catch(t){_={value:t,[p]:0}}Promise.resolve(_).catch(t=>({value:t,[p]:0})).then(t=>{let[r,p]=toWireValue(t);i.postMessage(Object.assign(Object.assign({},r),{id:m}),p),"RELEASE"===w&&(i.removeEventListener("message",callback),closeEndPoint(i))})}),i.start&&i.start()}function closeEndPoint(t){"MessagePort"===t.constructor.name&&t.close()}function throwIfProxyReleased(t){if(t)throw Error("Proxy has been released and is not useable")}function processArguments(t){var r;let i=t.map(toWireValue);return[i.map(t=>t[0]),(r=i.map(t=>t[1]),Array.prototype.concat.apply([],r))]}let b=new WeakMap;function toWireValue(t){for(let[r,i]of y)if(i.canHandle(t)){let[p,y]=i.serialize(t);return[{type:"HANDLER",name:r,value:p},y]}return[{type:"RAW",value:t},b.get(t)||[]]}function fromWireValue(t){switch(t.type){case"HANDLER":return y.get(t.name).deserialize(t.value);case"RAW":return t.value}}function requestResponseMessage(t,r,i){return new Promise(p=>{let y=[,,,,].fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.addEventListener("message",function l(r){r.data&&r.data.id&&r.data.id===y&&(t.removeEventListener("message",l),p(r.data))}),t.start&&t.start(),t.postMessage(Object.assign({id:y},r),i)})}var _=__webpack_require__(113),m=__webpack_require__(31),w=__webpack_require__.n(m);async function rgbaToArrayBuffer(t,r){let{width:i,height:p}=r,y=new _.PNG({width:i,height:p,inputHasAlpha:!0});y.data=t,y.pack();let b=await w().buffer(y);return b}async function imageUrlToArrayBuffer(t){let r=await fetch(t);if(r.ok){let t=await r.arrayBuffer();return t}throw Error("Failed to load image URL: ".concat(t))}async function arrayBufferToRgba(t){let r=await new Promise((r,i)=>new _.PNG().parse(t,(t,p)=>{t?i(t):r(p)}));return{rgba:r.data,width:r.width,height:r.height}}async function setGrayscaleFromAlpha(t){let r=t.length;for(let i=0;i>18]+_[(258048&y)>>12]+_[(4032&y)>>6]+_[63&y];return 1==S?b+=_[r=(252&(y=m[A]))>>2]+_[(3&y)<<4]+"==":2==S&&(b+=_[r=(64512&(y=m[A]<<8|m[A+1]))>>10]+_[(1008&y)>>4]+_[(15&y)<<2]+"="),b}(t);return"data:image/png;base64,".concat(r)}(y);return b}expose({combineColorAndAlphaImageUrls:async function(t){let{colorImageUrl:r,metallicImageUrl:i}=t,[{rgba:p,width:y,height:b},{rgba:_}]=await Promise.all([imageUrlToRgba(r),imageUrlToRgba(i)]);setAlphaFromGrayscale(p,_);let m=await rgbaToImageUrl(p,{width:y,height:b});return m},removeAlphaFromArrayBuffer:async function(t){let{rgba:r,width:i,height:p}=await arrayBufferToRgba(t);setAlphaToMax(r);let y=await rgbaToImageUrl(r,{width:i,height:p});return y},convertArrayBufferAlphaToGrayscale:async function(t){let{rgba:r,width:i,height:p}=await arrayBufferToRgba(t);setGrayscaleFromAlpha(r);let y=await rgbaToImageUrl(r,{width:i,height:p});return y},convertGrayscaleImageUrlToMetallicRoughness:async function(t){let{rgba:r,width:i,height:p}=await imageUrlToRgba(t);!function(t){let r=t.length;for(let i=0;i0?255-Math.min(2*r+64,255):255,t[i+2]=r?Math.min(1*r+64,255):0}}(r);let y=await rgbaToImageUrl(r,{width:i,height:p});return y}})}()}();