/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[367],{1089:function(t,e,r){"use strict";(function(e,n){var o;t.exports=M,M.ReadableState=O;r(316).EventEmitter;var f=function(t,e){return t.listeners(e).length},h=r(1090),l=r(80).Buffer,c=(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var d,w=r(1425);d=w&&w.debuglog?w.debuglog("stream"):function(){};var y,v,m,_=r(1426),E=r(1091),S=r(1092).getHighWaterMark,R=r(351).codes,A=R.ERR_INVALID_ARG_TYPE,T=R.ERR_STREAM_PUSH_AFTER_EOF,k=R.ERR_METHOD_NOT_IMPLEMENTED,P=R.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(36)(M,h);var x=E.errorOrDestroy,B=["error","close","destroy","pause","resume"];function O(t,e,n){o=o||r(352),t=t||{},"boolean"!=typeof n&&(n=e instanceof o),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=S(this,t,"readableHighWaterMark",n),this.buffer=new _,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!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(y||(y=r(317).StringDecoder),this.decoder=new y(t.encoding),this.encoding=t.encoding)}function M(t){if(o=o||r(352),!(this instanceof M))return new M(t);var e=this instanceof o;this._readableState=new O(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),h.call(this)}function L(t,e,r,n,o){d("readableAddChunk",e);var f,h=t._readableState;if(null===e)h.reading=!1,function(t,e){if(d("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?C(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,$(t)))}(t,h);else if(o||(f=function(t,e){var r;n=e,l.isBuffer(n)||n instanceof c||"string"==typeof e||void 0===e||t.objectMode||(r=new A("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(h,e)),f)x(t,f);else if(h.objectMode||e&&e.length>0)if("string"==typeof e||h.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),n)h.endEmitted?x(t,new P):U(t,h,e,!0);else if(h.ended)x(t,new T);else{if(h.destroyed)return!1;h.reading=!1,h.decoder&&!r?(e=h.decoder.write(e),h.objectMode||0!==e.length?U(t,h,e,!1):D(t,h)):U(t,h,e,!1)}else n||(h.reading=!1,D(t,h));return!h.ended&&(h.length<h.highWaterMark||0===h.length)}function U(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&C(t)),D(t,e)}Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),M.prototype.destroy=E.destroy,M.prototype._undestroy=E.undestroy,M.prototype._destroy=function(t,e){e(t)},M.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=l.from(t,e),e=""),r=!0),L(this,t,e,!1,r)},M.prototype.unshift=function(t){return L(this,t,null,!0,!1)},M.prototype.isPaused=function(){return!1===this._readableState.flowing},M.prototype.setEncoding=function(t){y||(y=r(317).StringDecoder);var e=new y(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var p=this._readableState.buffer.head,content="";null!==p;)content+=e.write(p.data),p=p.next;return this._readableState.buffer.clear(),""!==content&&this._readableState.buffer.push(content),this._readableState.length=content.length,this};var j=1073741824;function I(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=j?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t){var e=t._readableState;d("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick($,t))}function $(t){var e=t._readableState;d("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,F(t)}function D(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(N,t,e))}function N(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(d("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function Y(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function z(t){d("readable nexttick read 0"),t.read(0)}function W(t,e){d("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),F(t),e.flowing&&!e.reading&&t.read(0)}function F(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function V(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function H(t){var e=t._readableState;d("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(G,e,t))}function G(t,e){if(d("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function K(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}M.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?H(this):C(this),null;if(0===(t=I(t,e))&&e.ended)return 0===e.length&&H(this),null;var n,o=e.needReadable;return d("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",o=!0),e.ended||e.reading?d("reading or ended",o=!1):o&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=I(r,e))),null===(n=t>0?V(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&H(this)),null!==n&&this.emit("data",n),n},M.prototype._read=function(t){x(this,new k("_read()"))},M.prototype.pipe=function(t,e){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,e);var h=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?c:S;function l(e,n){d("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),t.removeListener("close",_),t.removeListener("finish",E),t.removeListener("drain",w),t.removeListener("error",m),t.removeListener("unpipe",l),r.removeListener("end",c),r.removeListener("end",S),r.removeListener("data",v),y=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||w())}function c(){d("onend"),t.end()}o.endEmitted?n.nextTick(h):r.once("end",h),t.on("unpipe",l);var w=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&f(t,"data")&&(e.flowing=!0,F(t))}}(r);t.on("drain",w);var y=!1;function v(e){d("ondata");var n=t.write(e);d("dest.write",n),!1===n&&((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==K(o.pipes,t))&&!y&&(d("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function m(e){d("onerror",e),S(),t.removeListener("error",m),0===f(t,"error")&&x(t,e)}function _(){t.removeListener("finish",E),S()}function E(){d("onfinish"),t.removeListener("close",_),S()}function S(){d("unpipe"),r.unpipe(t)}return r.on("data",v),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",m),t.once("close",_),t.once("finish",E),t.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),t},M.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var f=K(e.pipes,t);return-1===f||(e.pipes.splice(f,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},M.prototype.on=function(t,e){var r=h.prototype.on.call(this,t,e),o=this._readableState;return"data"===t?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===t&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,d("on readable",o.length,o.reading),o.length?C(this):o.reading||n.nextTick(z,this))),r},M.prototype.addListener=M.prototype.on,M.prototype.removeListener=function(t,e){var r=h.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(Y,this),r},M.prototype.removeAllListeners=function(t){var e=h.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(Y,this),e},M.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(W,t,e))}(this,t)),t.paused=!1,this},M.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},M.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(d("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(e.push(o)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<B.length;o++)t.on(B[o],this.emit.bind(this,B[o]));return this._read=function(e){d("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(M.prototype[Symbol.asyncIterator]=function(){return void 0===v&&(v=r(1428)),v(this)}),Object.defineProperty(M.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(M.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(M.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),M._fromList=V,Object.defineProperty(M.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(M.from=function(t,e){return void 0===m&&(m=r(1429)),m(M,t,e)})}).call(this,r(83),r(104))},1090:function(t,e,r){t.exports=r(316).EventEmitter},1091:function(t,e,r){"use strict";(function(e){function r(t,e){o(t,e),n(t)}function n(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,f){var h=this,l=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return l||c?(f?f(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(o,this,t)):e.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!f&&t?h._writableState?h._writableState.errorEmitted?e.nextTick(n,h):(h._writableState.errorEmitted=!0,e.nextTick(r,h,t)):e.nextTick(r,h,t):f?(e.nextTick(n,h),f(t)):e.nextTick(n,h)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,r(104))},1092:function(t,e,r){"use strict";var n=r(351).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,o){var f=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,o,r);if(null!=f){if(!isFinite(f)||Math.floor(f)!==f||f<0)throw new n(o?r:"highWaterMark",f);return Math.floor(f)}return t.objectMode?16:16384}}},1093:function(t,e,r){"use strict";(function(e,n){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var o=n.callback;e.pendingcb--,o(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var f;t.exports=M,M.WritableState=O;var h={deprecate:r(708)},l=r(1090),c=r(80).Buffer,d=(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var w,y=r(1091),v=r(1092).getHighWaterMark,m=r(351).codes,_=m.ERR_INVALID_ARG_TYPE,E=m.ERR_METHOD_NOT_IMPLEMENTED,S=m.ERR_MULTIPLE_CALLBACK,R=m.ERR_STREAM_CANNOT_PIPE,A=m.ERR_STREAM_DESTROYED,T=m.ERR_STREAM_NULL_VALUES,k=m.ERR_STREAM_WRITE_AFTER_END,P=m.ERR_UNKNOWN_ENCODING,x=y.errorOrDestroy;function B(){}function O(t,e,h){f=f||r(352),t=t||{},"boolean"!=typeof h&&(h=e instanceof f),this.objectMode=!!t.objectMode,h&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=v(this,t,"writableHighWaterMark",h),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===t.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,o=r.sync,f=r.writecb;if("function"!=typeof f)throw new S;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,o,f){--e.pendingcb,r?(n.nextTick(f,o),n.nextTick($,t,e),t._writableState.errorEmitted=!0,x(t,o)):(f(o),t._writableState.errorEmitted=!0,x(t,o),$(t,e))}(t,r,o,e,f);else{var h=I(r)||t.destroyed;h||r.corked||r.bufferProcessing||!r.bufferedRequest||j(t,r),o?n.nextTick(U,t,r,h,f):U(t,r,h,f)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function M(t){var e=this instanceof(f=f||r(352));if(!e&&!w.call(M,this))return new M(t);this._writableState=new O(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function L(t,e,r,n,o,f,h){e.writelen=n,e.writecb=h,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new A("write")):r?t._writev(o,e.onwrite):t._write(o,f,e.onwrite),e.sync=!1}function U(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),$(t,e)}function j(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,f=new Array(n),h=e.corkedRequestsFree;h.entry=r;for(var l=0,c=!0;r;)f[l]=r,r.isBuf||(c=!1),r=r.next,l+=1;f.allBuffers=c,L(t,e,!0,e.length,f,"",h.finish),e.pendingcb++,e.lastBufferedRequest=null,h.next?(e.corkedRequestsFree=h.next,h.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var d=r.chunk,w=r.encoding,y=r.callback;if(L(t,e,!1,e.objectMode?1:d.length,d,w,y),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function I(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function C(t,e){t._final((function(r){e.pendingcb--,r&&x(t,r),e.prefinished=!0,t.emit("prefinish"),$(t,e)}))}function $(t,e){var r=I(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick(C,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var o=t._readableState;(!o||o.autoDestroy&&o.endEmitted)&&t.destroy()}return r}r(36)(M,l),O.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(O.prototype,"buffer",{get:h.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(object){return!!w.call(this,object)||this===M&&(object&&object._writableState instanceof O)}})):w=function(object){return object instanceof this},M.prototype.pipe=function(){x(this,new R)},M.prototype.write=function(t,e,r){var o,f=this._writableState,h=!1,l=!f.objectMode&&(o=t,c.isBuffer(o)||o instanceof d);return l&&!c.isBuffer(t)&&(t=function(t){return c.from(t)}(t)),"function"==typeof e&&(r=e,e=null),l?e="buffer":e||(e=f.defaultEncoding),"function"!=typeof r&&(r=B),f.ending?function(t,e){var r=new k;x(t,r),n.nextTick(e,r)}(this,r):(l||function(t,e,r,o){var f;return null===r?f=new T:"string"==typeof r||e.objectMode||(f=new _("chunk",["string","Buffer"],r)),!f||(x(t,f),n.nextTick(o,f),!1)}(this,f,t,r))&&(f.pendingcb++,h=function(t,e,r,n,o,f){if(!r){var h=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=c.from(e,r));return e}(e,n,o);n!==h&&(r=!0,o="buffer",n=h)}var l=e.objectMode?1:n.length;e.length+=l;var d=e.length<e.highWaterMark;d||(e.needDrain=!0);if(e.writing||e.corked){var w=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:f,next:null},w?w.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else L(t,e,!1,l,n,o,f);return d}(this,f,l,t,e,r)),h},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||j(this,t))},M.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new P(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(t,e,r){r(new E("_write()"))},M.prototype._writev=null,M.prototype.end=function(t,e,r){var o=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||function(t,e,r){e.ending=!0,$(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,o,r),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),M.prototype.destroy=y.destroy,M.prototype._undestroy=y.undestroy,M.prototype._destroy=function(t,e){e(t)}}).call(this,r(83),r(104))},1094:function(t,e,r){"use strict";t.exports=w;var n=r(351).codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,f=n.ERR_MULTIPLE_CALLBACK,h=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,l=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(352);function d(t,data){var e=this._transformState;e.transforming=!1;var r=e.writecb;if(null===r)return this.emit("error",new f);e.writechunk=null,e.writecb=null,null!=data&&this.push(data),r(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function w(t){if(!(this instanceof w))return new w(t);c.call(this,t),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",y)}function y(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?v(this,null,null):this._flush((function(e,data){v(t,e,data)}))}function v(t,e,data){if(e)return t.emit("error",e);if(null!=data&&t.push(data),t._writableState.length)throw new l;if(t._transformState.transforming)throw new h;return t.push(null)}r(36)(w,c),w.prototype.push=function(t,e){return this._transformState.needTransform=!1,c.prototype.push.call(this,t,e)},w.prototype._transform=function(t,e,r){r(new o("_transform()"))},w.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},w.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},w.prototype._destroy=function(t,e){c.prototype._destroy.call(this,t,(function(t){e(t)}))}},1123:function(t,e,r){var n=r(134),o=r(718);function f(t){this.rand=t||new o.Rand}t.exports=f,f.create=function(t){return new f(t)},f.prototype._randbelow=function(t){var e=t.bitLength(),r=Math.ceil(e/8);do{var a=new n(this.rand.generate(r))}while(a.cmp(t)>=0);return a},f.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},f.prototype.test=function(t,e,r){var o=t.bitLength(),f=n.mont(t),h=new n(1).toRed(f);e||(e=Math.max(1,o/48|0));for(var l=t.subn(1),s=0;!l.testn(s);s++);for(var c=t.shrn(s),d=l.toRed(f);e>0;e--){var a=this._randrange(new n(2),l);r&&r(a);var w=a.toRed(f).redPow(c);if(0!==w.cmp(h)&&0!==w.cmp(d)){for(var i=1;i<s;i++){if(0===(w=w.redSqr()).cmp(h))return!1;if(0===w.cmp(d))break}if(i===s)return!1}}return!0},f.prototype.getDivisor=function(t,e){var r=t.bitLength(),o=n.mont(t),f=new n(1).toRed(o);e||(e=Math.max(1,r/48|0));for(var h=t.subn(1),s=0;!h.testn(s);s++);for(var l=t.shrn(s),c=h.toRed(o);e>0;e--){var a=this._randrange(new n(2),h),g=t.gcd(a);if(0!==g.cmpn(1))return g;var d=a.toRed(o).redPow(l);if(0!==d.cmp(f)&&0!==d.cmp(c)){for(var i=1;i<s;i++){if(0===(d=d.redSqr()).cmp(f))return d.fromRed().subn(1).gcd(t);if(0===d.cmp(c))break}if(i===s)return(d=d.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},1124:function(t,e,r){"use strict";var n=e;function o(t){return 1===t.length?"0"+t:t}function f(t){for(var e="",i=0;i<t.length;i++)e+=o(t[i].toString(16));return e}n.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var i=0;i<t.length;i++)r[i]=0|t[i];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t);for(i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(i=0;i<t.length;i++){var n=t.charCodeAt(i),o=n>>8,f=255&n;o?r.push(o,f):r.push(f)}return r},n.zero2=o,n.toHex=f,n.encode=function(t,e){return"hex"===e?f(t):t}},1408:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},1423:function(t,e,r){"use strict";var n=r(51).Buffer,o=r(1424).Transform;function f(t){o.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(36)(f,o),f.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},f.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},f.prototype.update=function(data,t){if(function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}(data,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(data)||(data=n.from(data,t));for(var e=this._block,r=0;this._blockOffset+data.length-r>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)e[i++]=data[r++];this._update(),this._blockOffset=0}for(;r<data.length;)e[this._blockOffset++]=data[r++];for(var o=0,f=8*data.length;f>0;++o)this._length[o]+=f,(f=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*f);return this},f.prototype._update=function(){throw new Error("_update is not implemented")},f.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return e},f.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=f},1424:function(t,e,r){(e=t.exports=r(1089)).Stream=e,e.Readable=e,e.Writable=r(1093),e.Duplex=r(352),e.Transform=r(1094),e.PassThrough=r(1430),e.finished=r(709),e.pipeline=r(1431)},1426:function(t,e,r){"use strict";function n(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function o(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?n(Object(source),!0).forEach((function(e){f(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):n(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function f(t,e,r){return(e=l(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function l(t){var e=function(input,t){if("object"!=typeof input||null===input)return input;var e=input[Symbol.toPrimitive];if(void 0!==e){var r=e.call(input,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(input)}(t,"string");return"symbol"==typeof e?e:String(e)}var c=r(80).Buffer,d=r(1427).inspect,w=d&&d.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r,n;return e=t,(r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++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(s){if(0===this.length)return"";for(var p=this.head,t=""+p.data;p=p.next;)t+=s+p.data;return t}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);for(var e,r,n,o=c.allocUnsafe(t>>>0),p=this.head,i=0;p;)e=p.data,r=o,n=i,c.prototype.copy.call(e,r,n),i+=p.data.length,p=p.next;return o}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var p=this.head,e=1,r=p.data;for(t-=r.length;p=p.next;){var n=p.data,o=t>n.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++e,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=n.slice(o));break}++e}return this.length-=e,r}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),p=this.head,r=1;for(p.data.copy(e),t-=p.data.length;p=p.next;){var n=p.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=n.slice(o));break}++r}return this.length-=r,e}},{key:w,value:function(t,e){return d(this,o(o({},e),{},{depth:0,customInspect:!1}))}}])&&h(e.prototype,r),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},1428:function(t,e,r){"use strict";(function(e){var n;function o(t,e,r){return(e=function(t){var e=function(input,t){if("object"!=typeof input||null===input)return input;var e=input[Symbol.toPrimitive];if(void 0!==e){var r=e.call(input,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(input)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f=r(709),h=Symbol("lastResolve"),l=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),w=Symbol("lastPromise"),y=Symbol("handlePromise"),v=Symbol("stream");function m(t,e){return{value:t,done:e}}function _(t){var e=t[h];if(null!==e){var data=t[v].read();null!==data&&(t[w]=null,t[h]=null,t[l]=null,e(m(data,!1)))}}function E(t){e.nextTick(_,t)}var S=Object.getPrototypeOf((function(){})),R=Object.setPrototypeOf((o(n={get stream(){return this[v]},next:function(){var t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[d])return Promise.resolve(m(void 0,!0));if(this[v].destroyed)return new Promise((function(r,n){e.nextTick((function(){t[c]?n(t[c]):r(m(void 0,!0))}))}));var n,o=this[w];if(o)n=new Promise(function(t,e){return function(r,n){t.then((function(){e[d]?r(m(void 0,!0)):e[y](r,n)}),n)}}(o,this));else{var data=this[v].read();if(null!==data)return Promise.resolve(m(data,!1));n=new Promise(this[y])}return this[w]=n,n}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var t=this;return new Promise((function(e,r){t[v].destroy(null,(function(t){t?r(t):e(m(void 0,!0))}))}))})),n),S);t.exports=function(t){var e,r=Object.create(R,(o(e={},v,{value:t,writable:!0}),o(e,h,{value:null,writable:!0}),o(e,l,{value:null,writable:!0}),o(e,c,{value:null,writable:!0}),o(e,d,{value:t._readableState.endEmitted,writable:!0}),o(e,y,{value:function(t,e){var data=r[v].read();data?(r[w]=null,r[h]=null,r[l]=null,t(m(data,!1))):(r[h]=t,r[l]=e)},writable:!0}),e));return r[w]=null,f(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[l];return null!==e&&(r[w]=null,r[h]=null,r[l]=null,e(t)),void(r[c]=t)}var n=r[h];null!==n&&(r[w]=null,r[h]=null,r[l]=null,n(m(void 0,!0))),r[d]=!0})),t.on("readable",E.bind(null,r)),r}}).call(this,r(104))},1429:function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},1430:function(t,e,r){"use strict";t.exports=o;var n=r(1094);function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}r(36)(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},1431:function(t,e,r){"use strict";var n;var o=r(351).codes,f=o.ERR_MISSING_ARGS,h=o.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function c(t){t()}function d(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];var w,y=function(t){return t.length?"function"!=typeof t[t.length-1]?l:t.pop():l}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new f("streams");var v=e.map((function(t,i){var o=i<e.length-1;return function(t,e,o,f){f=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(f);var l=!1;t.on("close",(function(){l=!0})),void 0===n&&(n=r(709)),n(t,{readable:e,writable:o},(function(t){if(t)return f(t);l=!0,f()}));var c=!1;return function(e){if(!l&&!c)return c=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void f(e||new h("pipe"))}}(t,o,i>0,(function(t){w||(w=t),t&&v.forEach(c),o||(v.forEach(c),y(w))}))}));return e.reduce(d)}},181:function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=r,r.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},2:function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"d",(function(){return f})),r.d(e,"w",(function(){return y})),r.d(e,"x",(function(){return k})),r.d(e,"y",(function(){return P})),r.d(e,"n",(function(){return M})),r.d(e,"f",(function(){return U})),r.d(e,"i",(function(){return j})),r.d(e,"c",(function(){return I})),r.d(e,"h",(function(){return $})),r.d(e,"g",(function(){return D})),r.d(e,"b",(function(){return N})),r.d(e,"e",(function(){return Y})),r.d(e,"j",(function(){return z})),r.d(e,"m",(function(){return W})),r.d(e,"s",(function(){return F})),r.d(e,"t",(function(){return V})),r.d(e,"q",(function(){return H})),r.d(e,"k",(function(){return G})),r.d(e,"o",(function(){return K})),r.d(e,"p",(function(){return X})),r.d(e,"r",(function(){return J})),r.d(e,"u",(function(){return Q})),r.d(e,"v",(function(){return tt})),r.d(e,"l",(function(){return et}));var n=r(46);const o=new Uint8Array,f=new Uint8Array([0]);function h(a,b){if(a.length!==b.length)return!1;for(let i=0;i<a.length;i++)if(a[i]!==b[i])return!1;return!0}function l(a){return a instanceof Uint8Array||null!=a&&"object"==typeof a&&"Uint8Array"===a.constructor.name}const c=t=>new DataView(t.buffer,t.byteOffset,t.byteLength);function d(t){return"[object Object]"===Object.prototype.toString.call(t)}function w(t){return Number.isSafeInteger(t)}const y={equalBytes:h,isBytes:l,isCoder:B,checkBounds:A,concatBytes:function(...t){let e=0;for(let i=0;i<t.length;i++){const a=t[i];if(!l(a))throw new Error("Uint8Array expected");e+=a.length}const r=new Uint8Array(e);for(let i=0,e=0;i<t.length;i++){const a=t[i];r.set(a,e),e+=a.length}return r},createView:c,isPlainObject:d},v=t=>{if(null!==t&&"string"!=typeof t&&!B(t)&&!l(t)&&!w(t))throw new Error(`lengthCoder: expected null | number | Uint8Array | CoderType, got ${t} (${typeof t})`);return{encodeStream(e,r){if(null===t)return;if(B(t))return t.encodeStream(e,r);let n;if("number"==typeof t?n=t:"string"==typeof t&&(n=_.resolve(e.stack,t)),"bigint"==typeof n&&(n=Number(n)),void 0===n||n!==r)throw e.err(`Wrong length: ${n} len=${t} exp=${r} (${typeof r})`)},decodeStream(e){let r;if(B(t)?r=Number(t.decodeStream(e)):"number"==typeof t?r=t:"string"==typeof t&&(r=_.resolve(e.stack,t)),"bigint"==typeof r&&(r=Number(r)),"number"!=typeof r)throw e.err(`Wrong length: ${r}`);return r}}},m={BITS:32,FULL_MASK:-1>>>0,len:t=>Math.ceil(t/32),create:t=>new Uint32Array(m.len(t)),clean:t=>t.fill(0),debug:t=>Array.from(t).map((i=>(i>>>0).toString(2).padStart(32,"0"))),checkLen:(t,e)=>{if(m.len(e)!==t.length)throw new Error(`wrong length=${t.length}. Expected: ${m.len(e)}`)},chunkLen:(t,e,r)=>{if(e<0)throw new Error(`wrong pos=${e}`);if(e+r>t)throw new Error(`wrong range=${e}/${r} of ${t}`)},set:(t,e,r,n=!0)=>!(!n&&t[e]&r)&&(t[e]|=r,!0),pos:(t,i)=>({chunk:Math.floor((t+i)/32),mask:1<<32-(t+i)%32-1}),indices:(t,e,r=!1)=>{m.checkLen(t,e);const{FULL_MASK:n,BITS:o}=m,f=o-e%o,h=f?n>>>f<<f:n,l=[];for(let i=0;i<t.length;i++){let e=t[i];if(r&&(e=~e),i===t.length-1&&(e&=h),0!==e)for(let t=0;t<o;t++){e&1<<o-t-1&&l.push(i*o+t)}}return l},range:t=>{const e=[];let r;for(const i of t)void 0===r||i!==r.pos+r.length?e.push(r={pos:i,length:1}):r.length+=1;return e},rangeDebug:(t,e,r=!1)=>`[${m.range(m.indices(t,e,r)).map((i=>`(${i.pos}/${i.length})`)).join(", ")}]`,setRange:(t,e,r,n,o=!0)=>{m.chunkLen(e,r,n);const{FULL_MASK:f,BITS:h}=m,l=r%h?Math.floor(r/h):void 0,c=r+n,d=c%h?Math.floor(c/h):void 0;if(void 0!==l&&l===d)return m.set(t,l,f>>>h-n<<h-n-r,o);if(void 0!==l&&!m.set(t,l,f>>>r%h,o))return!1;const w=void 0!==d?d:c/h;for(let i=void 0!==l?l+1:r/h;i<w;i++)if(!m.set(t,i,f,o))return!1;return!(void 0!==d&&l!==d&&!m.set(t,d,f<<h-c%h,o))}},_={pushObj:(t,e,r)=>{const n={obj:e};t.push(n),r(((t,e)=>{n.field=t,e(),n.field=void 0})),t.pop()},path:t=>{const e=[];for(const i of t)void 0!==i.field&&e.push(i.field);return e.join("/")},err(t,e,r){const n=new Error(`${t}(${_.path(e)}): ${"string"==typeof r?r:r.message}`);return r instanceof Error&&r.stack&&(n.stack=r.stack),n},resolve:(t,path)=>{const e=path.split("/"),r=t.map((i=>i.obj));let i=0;for(;i<e.length&&".."===e[i];i++)r.pop();let n=r.pop();for(;i<e.length;i++){if(!n||void 0===n[e[i]])return;n=n[e[i]]}return n}};class E{constructor(data,t={},e=[],r=void 0,n=0){this.data=data,this.opts=t,this.stack=e,this.parent=r,this.parentOffset=n,this.pos=0,this.bitBuf=0,this.bitPos=0,this.view=c(data)}_enablePointers(){if(this.parent)return this.parent._enablePointers();this.bs||(this.bs=m.create(this.data.length),m.setRange(this.bs,this.data.length,0,this.pos,this.opts.allowMultipleReads))}markBytesBS(t,e){return this.parent?this.parent.markBytesBS(this.parentOffset+t,e):!e||(!this.bs||m.setRange(this.bs,this.data.length,t,e,!1))}markBytes(t){const e=this.pos;this.pos+=t;const r=this.markBytesBS(e,t);if(!this.opts.allowMultipleReads&&!r)throw this.err(`multiple read pos=${this.pos} len=${t}`);return r}pushObj(t,e){return _.pushObj(this.stack,t,e)}readView(t,e){if(!Number.isFinite(t))throw this.err(`readView: wrong length=${t}`);if(this.pos+t>this.data.length)throw this.err("readView: Unexpected end of buffer");const r=e(this.view,this.pos);return this.markBytes(t),r}absBytes(t){if(t>this.data.length)throw new Error("Unexpected end of buffer");return this.data.subarray(t)}finish(){if(!this.opts.allowUnreadBytes){if(this.bitPos)throw this.err(`${this.bitPos} bits left after unpack: ${n.e.encode(this.data.slice(this.pos))}`);if(!this.bs||this.parent){if(!this.isEnd())throw this.err(`${this.leftBytes} bytes ${this.bitPos} bits left after unpack: ${n.e.encode(this.data.slice(this.pos))}`)}else{const t=m.indices(this.bs,this.data.length,!0);if(t.length){const e=m.range(t).map((({pos:t,length:e})=>`(${t}/${e})[${n.e.encode(this.data.subarray(t,t+e))}]`)).join(", ");throw this.err(`unread byte ranges: ${e} (total=${this.data.length})`)}}}}err(t){return _.err("Reader",this.stack,t)}offsetReader(t){if(t>this.data.length)throw this.err("offsetReader: Unexpected end of buffer");return new E(this.absBytes(t),this.opts,this.stack,this,t)}bytes(t,e=!1){if(this.bitPos)throw this.err("readBytes: bitPos not empty");if(!Number.isFinite(t))throw this.err(`readBytes: wrong length=${t}`);if(this.pos+t>this.data.length)throw this.err("readBytes: Unexpected end of buffer");const r=this.data.subarray(this.pos,this.pos+t);return e||this.markBytes(t),r}byte(t=!1){if(this.bitPos)throw this.err("readByte: bitPos not empty");if(this.pos+1>this.data.length)throw this.err("readBytes: Unexpected end of buffer");const data=this.data[this.pos];return t||this.markBytes(1),data}get leftBytes(){return this.data.length-this.pos}get totalBytes(){return this.data.length}isEnd(){return this.pos>=this.data.length&&!this.bitPos}bits(t){if(t>32)throw this.err("BitReader: cannot read more than 32 bits in single call");let e=0;for(;t;){this.bitPos||(this.bitBuf=this.byte(),this.bitPos=8);const r=Math.min(t,this.bitPos);this.bitPos-=r,e=e<<r|this.bitBuf>>this.bitPos&2**r-1,this.bitBuf&=2**this.bitPos-1,t-=r}return e>>>0}find(t,e=this.pos){if(!l(t))throw this.err(`find: needle is not bytes! ${t}`);if(this.bitPos)throw this.err("findByte: bitPos not empty");if(!t.length)throw this.err("find: needle is empty");for(let r=e;-1!==(r=this.data.indexOf(t[0],r));r++){if(-1===r)return;if(this.data.length-r<t.length)return;if(h(t,this.data.subarray(r,r+t.length)))return r}}}class S{constructor(t=[]){this.stack=t,this.pos=0,this.buffers=[],this.ptrs=[],this.bitBuf=0,this.bitPos=0,this.viewBuf=new Uint8Array(8),this.finished=!1,this.view=c(this.viewBuf)}pushObj(t,e){return _.pushObj(this.stack,t,e)}writeView(t,e){if(this.finished)throw this.err("buffer: finished");if(!w(t)||t>8)throw new Error(`wrong writeView length=${t}`);e(this.view),this.bytes(this.viewBuf.slice(0,t)),this.viewBuf.fill(0)}err(t){if(this.finished)throw this.err("buffer: finished");return _.err("Reader",this.stack,t)}bytes(b){if(this.finished)throw this.err("buffer: finished");if(this.bitPos)throw this.err("writeBytes: ends with non-empty bit buffer");this.buffers.push(b),this.pos+=b.length}byte(b){if(this.finished)throw this.err("buffer: finished");if(this.bitPos)throw this.err("writeByte: ends with non-empty bit buffer");this.buffers.push(new Uint8Array([b])),this.pos++}finish(t=!0){if(this.finished)throw this.err("buffer: finished");if(this.bitPos)throw this.err("buffer: ends with non-empty bit buffer");const e=this.buffers.concat(this.ptrs.map((i=>i.buffer))),r=e.map((b=>b.length)).reduce(((a,b)=>a+b),0),n=new Uint8Array(r);for(let i=0,t=0;i<e.length;i++){const a=e[i];n.set(a,t),t+=a.length}for(let t=this.pos,i=0;i<this.ptrs.length;i++){const e=this.ptrs[i];n.set(e.ptr.encode(t),e.pos),t+=e.buffer.length}if(t){this.buffers=[];for(const p of this.ptrs)p.buffer.fill(0);this.ptrs=[],this.finished=!0,this.bitBuf=0}return n}bits(t,e){if(e>32)throw this.err("writeBits: cannot write more than 32 bits in single call");if(t>=2**e)throw this.err(`writeBits: value (${t}) >= 2**bits (${e})`);for(;e;){const r=Math.min(e,8-this.bitPos);this.bitBuf=this.bitBuf<<r|t>>e-r,this.bitPos+=r,t&=2**(e-=r)-1,8===this.bitPos&&(this.bitPos=0,this.buffers.push(new Uint8Array([this.bitBuf])),this.pos++)}}}const R=b=>Uint8Array.from(b).reverse();function A(t,e,r){if(r){const r=2n**(e-1n);if(t<-r||t>=r)throw new Error(`value out of signed bounds. Expected ${-r} <= ${t} < ${r}`)}else if(0n>t||t>=2n**e)throw new Error(`value out of unsigned bounds. Expected 0 <= ${t} < ${2n**e}`)}function T(t){return{encodeStream:t.encodeStream,decodeStream:t.decodeStream,size:t.size,encode:e=>{const r=new S;return t.encodeStream(r,e),r.finish()},decode:(data,e={})=>{const r=new E(data,e),n=t.decodeStream(r);return r.finish(),n}}}function k(t,e){if(!B(t))throw new Error(`validate: invalid inner value ${t}`);if("function"!=typeof e)throw new Error("validate: fn should be function");return T({size:t.size,encodeStream:(r,n)=>{let o;try{o=e(n)}catch(t){throw r.err(t)}t.encodeStream(r,o)},decodeStream:r=>{const n=t.decodeStream(r);try{return e(n)}catch(t){throw r.err(t)}}})}const P=t=>{const e=T(t);return t.validate?k(e,t.validate):e},x=t=>d(t)&&"function"==typeof t.decode&&"function"==typeof t.encode;function B(t){return d(t)&&x(t)&&"function"==typeof t.encodeStream&&"function"==typeof t.decodeStream&&(void 0===t.size||w(t.size))}const O=t=>{if(!x(t))throw new Error("BaseCoder expected");return{encode:t.decode,decode:t.encode}},M={dict:function(){return{encode:t=>{if(!Array.isArray(t))throw new Error("array expected");const e={};for(const r of t){if(!Array.isArray(r)||2!==r.length)throw new Error("array of two elements expected");const t=r[0],n=r[1];if(void 0!==e[t])throw new Error(`key(${t}) appears twice in struct`);e[t]=n}return e},decode:t=>{if(!d(t))throw new Error(`expected plain object, got ${t}`);return Object.entries(t)}}},numberBigint:{encode:t=>{if("bigint"!=typeof t)throw new Error("expected bigint, got "+typeof t);if(t>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`element bigger than MAX_SAFE_INTEGER=${t}`);return Number(t)},decode:t=>{if(!w(t))throw new Error("element is not a safe integer");return BigInt(t)}},tsEnum:function(t){if(!d(t))throw new Error("plain object expected");return{encode:e=>{if(!w(e)||!(e in t))throw new Error(`wrong value ${e}`);return t[e]},decode:e=>{if("string"!=typeof e)throw new Error("wrong value "+typeof e);return t[e]}}},decimal:function(t,e=!1){if(!w(t))throw new Error(`decimal/precision: wrong value ${t}`);if("boolean"!=typeof e)throw new Error("decimal/round: expected boolean, got "+typeof e);const r=10n**BigInt(t);return{encode:e=>{if("bigint"!=typeof e)throw new Error("expected bigint, got "+typeof e);let s=(e<0n?-e:e).toString(10),r=s.length-t;r<0&&(s=s.padStart(s.length-r,"0"),r=0);let i=s.length-1;for(;i>=r&&"0"===s[i];i--);let n=s.slice(0,r),o=s.slice(r,i+1);return n||(n="0"),e<0n&&(n="-"+n),o?`${n}.${o}`:n},decode:n=>{if("string"!=typeof n)throw new Error("expected string, got "+typeof n);if("-0"===n)throw new Error("negative zero is not allowed");let o=!1;if(n.startsWith("-")&&(o=!0,n=n.slice(1)),!/^(0|[1-9]\d*)(\.\d+)?$/.test(n))throw new Error(`wrong string value=${n}`);let f=n.indexOf(".");f=-1===f?n.length:f;const h=n.slice(0,f),l=n.slice(f+1).replace(/0+$/,""),c=BigInt(h)*r;if(!e&&l.length>t)throw new Error(`fractional part cannot be represented with this precision (num=${n}, prec=${t})`);const d=Math.min(l.length,t),w=c+BigInt(l.slice(0,d))*10n**BigInt(t-d);return o?-w:w}}},match:function(t){if(!Array.isArray(t))throw new Error("expected array, got "+typeof t);for(const i of t)if(!x(i))throw new Error(`wrong base coder ${i}`);return{encode:e=>{for(const r of t){const t=r.encode(e);if(void 0!==t)return t}throw new Error(`match/encode: cannot find match in ${e}`)},decode:e=>{for(const r of t){const t=r.decode(e);if(void 0!==t)return t}throw new Error(`match/decode: cannot find match in ${e}`)}}},reverse:O},L=(t,e=!1,r=!1,n=!0)=>{if(!w(t))throw new Error(`bigint/size: wrong value ${t}`);if("boolean"!=typeof e)throw new Error("bigint/le: expected boolean, got "+typeof e);if("boolean"!=typeof r)throw new Error("bigint/signed: expected boolean, got "+typeof r);if("boolean"!=typeof n)throw new Error("bigint/sized: expected boolean, got "+typeof n);const o=BigInt(t),f=2n**(8n*o-1n);return P({size:n?t:void 0,encodeStream:(o,h)=>{r&&h<0&&(h|=f);const b=[];for(let i=0;i<t;i++)b.push(Number(255n&h)),h>>=8n;let l=new Uint8Array(b).reverse();if(!n){let t=0;for(t=0;t<l.length&&0===l[t];t++);l=l.subarray(t)}o.bytes(e?l.reverse():l)},decodeStream:o=>{const h=o.bytes(n?t:Math.min(t,o.leftBytes)),b=e?h:R(h);let l=0n;for(let i=0;i<b.length;i++)l|=BigInt(b[i])<<8n*BigInt(i);return r&&l&f&&(l=(l^f)-f),l},validate:t=>{if("bigint"!=typeof t)throw new Error(`bigint: invalid value: ${t}`);return A(t,8n*o,!!r),t}})},U=L(32,!1),j=L(8,!0),I=L(8,!0,!0),view=(t,e)=>P({size:t,encodeStream:(r,n)=>r.writeView(t,(view=>e.write(view,n))),decodeStream:r=>r.readView(t,e.read),validate:t=>{if("number"!=typeof t)throw new Error("viewCoder: expected number, got "+typeof t);return e.validate&&e.validate(t),t}}),C=(t,e,r)=>{const n=8*t,o=2**(n-1),f=2**n;return view(t,{write:r.write,read:r.read,validate:e?t=>{if(!w(t))throw new Error(`sintView: value is not safe integer: ${t}`);if(t<-o||t>=o)throw new Error(`sintView: value out of bounds. Expected ${-o} <= ${t} < ${o}`)}:t=>{if(!w(t))throw new Error(`uintView: value is not safe integer: ${t}`);if(0>t||t>=f)throw new Error(`uintView: value out of bounds. Expected 0 <= ${t} < ${f}`)}})},$=C(4,!1,{read:(view,t)=>view.getUint32(t,!0),write:(view,t)=>view.setUint32(0,t,!0)}),D=C(4,!1,{read:(view,t)=>view.getUint32(t,!1),write:(view,t)=>view.setUint32(0,t,!1)}),N=C(4,!0,{read:(view,t)=>view.getInt32(t,!0),write:(view,t)=>view.setInt32(0,t,!0)}),Y=C(2,!1,{read:(view,t)=>view.getUint16(t,!0),write:(view,t)=>view.setUint16(0,t,!0)}),z=C(1,!1,{read:(view,t)=>view.getUint8(t),write:(view,t)=>view.setUint8(0,t)}),W=(t,e=!1)=>{if("boolean"!=typeof e)throw new Error("bytes/le: expected boolean, got "+typeof e);const r=v(t),n=l(t);return P({size:"number"==typeof t?t:void 0,encodeStream:(o,f)=>{n||r.encodeStream(o,f.length),o.bytes(e?R(f):f),n&&o.bytes(t)},decodeStream:o=>{let f;if(n){const e=o.find(t);if(!e)throw o.err("bytes: cannot find terminator");f=o.bytes(e-o.pos),o.bytes(t.length)}else f=o.bytes(null===t?o.leftBytes:r.decodeStream(o));return e?R(f):f},validate:t=>{if(!l(t))throw new Error(`bytes: invalid value ${t}`);return t}})};function F(t,e){if(!B(e))throw new Error(`prefix: invalid inner value ${e}`);return G(W(t),O(e))}const V=(t,e=!1)=>k(G(W(t,e),n.g),(t=>{if("string"!=typeof t)throw new Error("expected string, got "+typeof t);return t})),H=(t,e={isLE:!1,with0x:!1})=>{let r=G(W(t,e.isLE),n.e);if("boolean"!=typeof e.with0x)throw new Error("hex/with0x: expected boolean, got "+typeof e.with0x);return e.with0x&&(r=G(r,{encode:t=>`0x${t}`,decode:t=>{if(!t.startsWith("0x"))throw new Error("hex(with0x=true).encode input should start with 0x");return t.slice(2)}})),r};function G(t,base){if(!B(t))throw new Error(`apply: invalid inner value ${t}`);if(!x(base))throw new Error(`apply: invalid base value ${t}`);return P({size:t.size,encodeStream:(e,r)=>{let n;try{n=base.decode(r)}catch(t){throw e.err(""+t)}return t.encodeStream(e,n)},decodeStream:e=>{const r=t.decodeStream(e);try{return base.encode(r)}catch(t){throw e.err(""+t)}}})}const K=(t,e=!1)=>{if(!l(t))throw new Error("flag/flagValue: expected Uint8Array, got "+typeof t);if("boolean"!=typeof e)throw new Error("flag/xor: expected boolean, got "+typeof e);return P({size:t.length,encodeStream:(r,n)=>{!!n!==e&&r.bytes(t)},decodeStream:r=>{let n=r.leftBytes>=t.length;return n&&(n=h(r.bytes(t.length,!0),t),n&&r.bytes(t.length)),n!==e},validate:t=>{if(void 0!==t&&"boolean"!=typeof t)throw new Error("flag: expected boolean value or undefined, got "+typeof t);return t}})};function X(path,t,e){if(!B(t))throw new Error(`flagged: invalid inner value ${t}`);if("string"!=typeof path&&!B(t))throw new Error(`flagged: wrong path=${path}`);return P({encodeStream:(r,n)=>{"string"==typeof path?_.resolve(r.stack,path)?t.encodeStream(r,n):e&&t.encodeStream(r,e):(path.encodeStream(r,!!n),n?t.encodeStream(r,n):e&&t.encodeStream(r,e))},decodeStream:r=>{let n=!1;if(n="string"==typeof path?!!_.resolve(r.stack,path):path.decodeStream(r),n)return t.decodeStream(r);e&&t.decodeStream(r)}})}function J(t,e,r=!0){if(!B(t))throw new Error(`magic: invalid inner value ${t}`);if("boolean"!=typeof r)throw new Error("magic: expected boolean, got "+typeof r);return P({size:t.size,encodeStream:(r,n)=>t.encodeStream(r,e),decodeStream:n=>{const o=t.decodeStream(n);if(r&&"object"!=typeof o&&o!==e||l(e)&&!h(e,o))throw n.err(`magic: invalid value: ${o} !== ${e}`)},validate:t=>{if(void 0!==t)throw new Error("magic: wrong value="+typeof t);return t}})}function Z(t){let e=0;for(const r of t){if(void 0===r.size)return;if(!w(r.size))throw new Error(`sizeof: wrong element size=${e}`);e+=r.size}return e}function Q(t){if(!d(t))throw new Error(`struct: expected plain object, got ${t}`);for(const e in t)if(!B(t[e]))throw new Error(`struct: field ${e} is not CoderType`);return P({size:Z(Object.values(t)),encodeStream:(e,r)=>{e.pushObj(r,(n=>{for(const o in t)n(o,(()=>t[o].encodeStream(e,r[o])))}))},decodeStream:e=>{const r={};return e.pushObj(r,(n=>{for(const o in t)n(o,(()=>r[o]=t[o].decodeStream(e)))})),r},validate:t=>{if("object"!=typeof t||null===t)throw new Error(`struct: invalid value ${t}`);return t}})}function tt(t){if(!Array.isArray(t))throw new Error(`Packed.Tuple: got ${typeof t} instead of array`);for(let i=0;i<t.length;i++)if(!B(t[i]))throw new Error(`tuple: field ${i} is not CoderType`);return P({size:Z(t),encodeStream:(e,r)=>{if(!Array.isArray(r))throw e.err(`tuple: invalid value ${r}`);e.pushObj(r,(n=>{for(let i=0;i<t.length;i++)n(`${i}`,(()=>t[i].encodeStream(e,r[i])))}))},decodeStream:e=>{const r=[];return e.pushObj(r,(n=>{for(let i=0;i<t.length;i++)n(`${i}`,(()=>r.push(t[i].decodeStream(e))))})),r},validate:e=>{if(!Array.isArray(e))throw new Error(`tuple: invalid value ${e}`);if(e.length!==t.length)throw new Error(`tuple: wrong length=${e.length}, expected ${t.length}`);return e}})}function et(t,e){if(!B(e))throw new Error(`array: invalid inner value ${e}`);const r=v("string"==typeof t?`../${t}`:t);return P({size:"number"==typeof t&&e.size?t*e.size:void 0,encodeStream:(n,o)=>{const f=n;f.pushObj(o,(c=>{l(t)||r.encodeStream(n,o.length);for(let i=0;i<o.length;i++)c(`${i}`,(()=>{const r=o[i],c=n.pos;if(e.encodeStream(n,r),l(t)){if(t.length>f.pos-c)return;const data=f.finish(!1).subarray(c,f.pos);if(h(data.subarray(0,t.length),t))throw f.err(`array: inner element encoding same as separator. elm=${r} data=${data}`)}}))})),l(t)&&n.bytes(t)},decodeStream:n=>{const o=[];return n.pushObj(o,(f=>{if(null===t)for(let i=0;!n.isEnd()&&(f(`${i}`,(()=>o.push(e.decodeStream(n)))),!(e.size&&n.leftBytes<e.size));i++);else if(l(t))for(let i=0;;i++){if(h(n.bytes(t.length,!0),t)){n.bytes(t.length);break}f(`${i}`,(()=>o.push(e.decodeStream(n))))}else{let t;f("arrayLen",(()=>t=r.decodeStream(n)));for(let i=0;i<t;i++)f(`${i}`,(()=>o.push(e.decodeStream(n))))}})),o},validate:t=>{if(!Array.isArray(t))throw new Error(`array: invalid value ${t}`);return t}})}},317:function(t,e,r){"use strict";var n=r(51).Buffer,o=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function f(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)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(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=d,e=4;break;case"utf8":this.fillLast=l,e=4;break;case"base64":this.text=w,this.end=y,e=3;break;default:return this.write=v,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function h(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function l(t){var p=this.lastTotal-this.lastNeed,e=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==e?e:this.lastNeed<=t.length?(t.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,p,0,t.length),void(this.lastNeed-=t.length))}function c(t,i){if((t.length-i)%2==0){var e=t.toString("utf16le",i);if(e){var r=e.charCodeAt(e.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],e.slice(0,-1)}return e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",i,t.length-1)}function d(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function w(t,i){var e=(t.length-i)%3;return 0===e?t.toString("base64",i):(this.lastNeed=3-e,this.lastTotal=3,1===e?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",i,t.length-e))}function y(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function v(t){return t.toString(this.encoding)}function m(t){return t&&t.length?this.write(t):""}e.StringDecoder=f,f.prototype.write=function(t){if(0===t.length)return"";var e,i;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<t.length?e?e+this.text(t,i):this.text(t,i):e||""},f.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},f.prototype.text=function(t,i){var e=function(t,e,i){var r=e.length-1;if(r<i)return 0;var n=h(e[r]);if(n>=0)return n>0&&(t.lastNeed=n-1),n;if(--r<i||-2===n)return 0;if(n=h(e[r]),n>=0)return n>0&&(t.lastNeed=n-2),n;if(--r<i||-2===n)return 0;if(n=h(e[r]),n>=0)return n>0&&(2===n?n=0:t.lastNeed=n-3),n;return 0}(this,t,i);if(!this.lastNeed)return t.toString("utf8",i);this.lastTotal=e;var r=t.length-(e-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",i,r)},f.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}},351:function(t,e,r){"use strict";var n={};function o(code,t,e){e||(e=Error);var r=function(e){var r,n;function o(r,n,o){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o))||this}return n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(e);r.prototype.name=e.name,r.prototype.code=code,n[code]=r}function f(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(i){return String(i)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,o,h,l;if("string"==typeof e&&(o="not ",e.substr(!h||h<0?0:+h,o.length)===o)?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))l="The ".concat(t," ").concat(n," ").concat(f(e,"type"));else{var c=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";l='The "'.concat(t,'" ').concat(c," ").concat(n," ").concat(f(e,"type"))}return l+=". Received type ".concat(typeof r)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},352:function(t,e,r){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=d;var o=r(1089),f=r(1093);r(36)(d,o);for(var h=n(f.prototype),l=0;l<h.length;l++){var c=h[l];d.prototype[c]||(d.prototype[c]=f.prototype[c])}function d(t){if(!(this instanceof d))return new d(t);o.call(this,t),f.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",w)))}function w(){this._writableState.ended||e.nextTick(y,this)}function y(t){t.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(d.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(d.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,r(104))},707:function(t,e,r){"use strict";var n=r(36),o=r(1423),f=r(51).Buffer,h=new Array(16);function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(t,e){return t<<e|t>>>32-e}function d(a,b,t,e,r,n,s){return c(a+(b&t|~b&e)+r+n|0,s)+b|0}function w(a,b,t,e,r,n,s){return c(a+(b&e|t&~e)+r+n|0,s)+b|0}function y(a,b,t,e,r,n,s){return c(a+(b^t^e)+r+n|0,s)+b|0}function v(a,b,t,e,r,n,s){return c(a+(t^(b|~e))+r+n|0,s)+b|0}n(l,o),l.prototype._update=function(){for(var t=h,i=0;i<16;++i)t[i]=this._block.readInt32LE(4*i);var a=this._a,b=this._b,e=this._c,r=this._d;a=d(a,b,e,r,t[0],3614090360,7),r=d(r,a,b,e,t[1],3905402710,12),e=d(e,r,a,b,t[2],606105819,17),b=d(b,e,r,a,t[3],3250441966,22),a=d(a,b,e,r,t[4],4118548399,7),r=d(r,a,b,e,t[5],1200080426,12),e=d(e,r,a,b,t[6],2821735955,17),b=d(b,e,r,a,t[7],4249261313,22),a=d(a,b,e,r,t[8],1770035416,7),r=d(r,a,b,e,t[9],2336552879,12),e=d(e,r,a,b,t[10],4294925233,17),b=d(b,e,r,a,t[11],2304563134,22),a=d(a,b,e,r,t[12],1804603682,7),r=d(r,a,b,e,t[13],4254626195,12),e=d(e,r,a,b,t[14],2792965006,17),a=w(a,b=d(b,e,r,a,t[15],1236535329,22),e,r,t[1],4129170786,5),r=w(r,a,b,e,t[6],3225465664,9),e=w(e,r,a,b,t[11],643717713,14),b=w(b,e,r,a,t[0],3921069994,20),a=w(a,b,e,r,t[5],3593408605,5),r=w(r,a,b,e,t[10],38016083,9),e=w(e,r,a,b,t[15],3634488961,14),b=w(b,e,r,a,t[4],3889429448,20),a=w(a,b,e,r,t[9],568446438,5),r=w(r,a,b,e,t[14],3275163606,9),e=w(e,r,a,b,t[3],4107603335,14),b=w(b,e,r,a,t[8],1163531501,20),a=w(a,b,e,r,t[13],2850285829,5),r=w(r,a,b,e,t[2],4243563512,9),e=w(e,r,a,b,t[7],1735328473,14),a=y(a,b=w(b,e,r,a,t[12],2368359562,20),e,r,t[5],4294588738,4),r=y(r,a,b,e,t[8],2272392833,11),e=y(e,r,a,b,t[11],1839030562,16),b=y(b,e,r,a,t[14],4259657740,23),a=y(a,b,e,r,t[1],2763975236,4),r=y(r,a,b,e,t[4],1272893353,11),e=y(e,r,a,b,t[7],4139469664,16),b=y(b,e,r,a,t[10],3200236656,23),a=y(a,b,e,r,t[13],681279174,4),r=y(r,a,b,e,t[0],3936430074,11),e=y(e,r,a,b,t[3],3572445317,16),b=y(b,e,r,a,t[6],76029189,23),a=y(a,b,e,r,t[9],3654602809,4),r=y(r,a,b,e,t[12],3873151461,11),e=y(e,r,a,b,t[15],530742520,16),a=v(a,b=y(b,e,r,a,t[2],3299628645,23),e,r,t[0],4096336452,6),r=v(r,a,b,e,t[7],1126891415,10),e=v(e,r,a,b,t[14],2878612391,15),b=v(b,e,r,a,t[5],4237533241,21),a=v(a,b,e,r,t[12],1700485571,6),r=v(r,a,b,e,t[3],2399980690,10),e=v(e,r,a,b,t[10],4293915773,15),b=v(b,e,r,a,t[1],2240044497,21),a=v(a,b,e,r,t[8],1873313359,6),r=v(r,a,b,e,t[15],4264355552,10),e=v(e,r,a,b,t[6],2734768916,15),b=v(b,e,r,a,t[13],1309151649,21),a=v(a,b,e,r,t[4],4149444226,6),r=v(r,a,b,e,t[11],3174756917,10),e=v(e,r,a,b,t[2],718787259,15),b=v(b,e,r,a,t[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+b|0,this._c=this._c+e|0,this._d=this._d+r|0},l.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=f.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=l},709:function(t,e,r){"use strict";var n=r(351).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function t(e,r,f){if("function"==typeof r)return t(e,null,r);r||(r={}),f=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t.apply(this,n)}}}(f||o);var h=r.readable||!1!==r.readable&&e.readable,l=r.writable||!1!==r.writable&&e.writable,c=function(){e.writable||w()},d=e._writableState&&e._writableState.finished,w=function(){l=!1,d=!0,h||f.call(e)},y=e._readableState&&e._readableState.endEmitted,v=function(){h=!1,y=!0,l||f.call(e)},m=function(t){f.call(e,t)},_=function(){var t;return h&&!y?(e._readableState&&e._readableState.ended||(t=new n),f.call(e,t)):l&&!d?(e._writableState&&e._writableState.ended||(t=new n),f.call(e,t)):void 0},E=function(){e.req.on("finish",w)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?l&&!e._writableState&&(e.on("end",c),e.on("close",c)):(e.on("complete",w),e.on("abort",_),e.req?E():e.on("request",E)),e.on("end",v),e.on("finish",w),!1!==r.error&&e.on("error",m),e.on("close",_),function(){e.removeListener("complete",w),e.removeListener("abort",_),e.removeListener("request",E),e.req&&e.req.removeListener("finish",w),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",w),e.removeListener("end",v),e.removeListener("error",m),e.removeListener("close",_)}}},80:function(t,e,r){"use strict";(function(t){var n=r(485),o=r(1407),f=r(1408);function h(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(h()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return y(this,t)}return d(this,t,e,r)}function d(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=v(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|_(e,r);t=l(t,n);var o=t.write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(c.isBuffer(e)){var r=0|m(e.length);return 0===(t=l(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?l(t,0):v(t,e);if("Buffer"===e.type&&f(e.data))return v(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function w(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function y(t,e){if(w(e),t=l(t,e<0?0:0|m(e)),!c.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function v(t,e){var r=e.length<0?0:0|m(e.length);t=l(t,r);for(var i=0;i<r;i+=1)t[i]=255&e[i];return t}function m(t){if(t>=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return 0|t}function _(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(t).length;default:if(n)return K(t).length;e=(""+e).toLowerCase(),n=!0}}function E(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,r);case"utf8":case"utf-8":return L(this,e,r);case"ascii":return j(this,e,r);case"latin1":case"binary":return I(this,e,r);case"base64":return M(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function S(b,t,e){var i=b[t];b[t]=b[e],b[e]=i}function R(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:A(t,e,r,n,o);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):A(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function A(t,e,r,n,o){var i,f=1,h=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;f=2,h/=2,l/=2,r/=2}function c(t,i){return 1===f?t[i]:t.readUInt16BE(i*f)}if(o){var d=-1;for(i=r;i<h;i++)if(c(t,i)===c(e,-1===d?0:i-d)){if(-1===d&&(d=i),i-d+1===l)return d*f}else-1!==d&&(i-=i-d),d=-1}else for(r+l>h&&(r=h-l),i=r;i>=0;i--){for(var w=!0,y=0;y<l;y++)if(c(t,i+y)!==c(e,y)){w=!1;break}if(w)return i}return-1}function T(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var f=e.length;if(f%2!=0)throw new TypeError("Invalid hex string");n>f/2&&(n=f/2);for(var i=0;i<n;++i){var h=parseInt(e.substr(2*i,2),16);if(isNaN(h))return i;t[r+i]=h}return i}function k(t,e,r,n){return J(K(e,t.length-r),t,r,n)}function P(t,e,r,n){return J(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,r,n)}function x(t,e,r,n){return P(t,e,r,n)}function B(t,e,r,n){return J(X(e),t,r,n)}function O(t,e,r,n){return J(function(t,e){for(var r,n,o,f=[],i=0;i<t.length&&!((e-=2)<0);++i)n=(r=t.charCodeAt(i))>>8,o=r%256,f.push(o),f.push(n);return f}(e,t.length-r),t,r,n)}function M(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function L(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,f,h,l,c=t[i],d=null,w=c>239?4:c>223?3:c>191?2:1;if(i+w<=r)switch(w){case 1:c<128&&(d=c);break;case 2:128==(192&(o=t[i+1]))&&(l=(31&c)<<6|63&o)>127&&(d=l);break;case 3:o=t[i+1],f=t[i+2],128==(192&o)&&128==(192&f)&&(l=(15&c)<<12|(63&o)<<6|63&f)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:o=t[i+1],f=t[i+2],h=t[i+3],128==(192&o)&&128==(192&f)&&128==(192&h)&&(l=(15&c)<<18|(63&o)<<12|(63&f)<<6|63&h)>65535&&l<1114112&&(d=l)}null===d?(d=65533,w=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),i+=w}return function(t){var e=t.length;if(e<=U)return String.fromCharCode.apply(String,t);var r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=U));return r}(n)}e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=h(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,r){return d(null,t,e,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,r){return function(t,e,r,n){return w(e),e<=0?l(t,e):void 0!==r?"string"==typeof n?l(t,e).fill(r,n):l(t,e).fill(r):l(t,e)}(null,t,e,r)},c.allocUnsafe=function(t){return y(null,t)},c.allocUnsafeSlow=function(t){return y(null,t)},c.isBuffer=function(b){return!(null==b||!b._isBuffer)},c.compare=function(a,b){if(!c.isBuffer(a)||!c.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var t=a.length,e=b.length,i=0,r=Math.min(t,e);i<r;++i)if(a[i]!==b[i]){t=a[i],e=b[i];break}return t<e?-1:e<t?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!f(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var r=c.allocUnsafe(e),n=0;for(i=0;i<t.length;++i){var o=t[i];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},c.byteLength=_,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<t;i+=2)S(this,i,i+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<t;i+=4)S(this,i,i+3),S(this,i+1,i+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<t;i+=8)S(this,i,i+7),S(this,i+1,i+6),S(this,i+2,i+5),S(this,i+3,i+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?L(this,0,t):E.apply(this,arguments)},c.prototype.equals=function(b){if(!c.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===c.compare(this,b)},c.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,r,n,o){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var f=(o>>>=0)-(n>>>=0),h=(r>>>=0)-(e>>>=0),l=Math.min(f,h),d=this.slice(n,o),w=t.slice(e,r),i=0;i<l;++i)if(d[i]!==w[i]){f=d[i],h=w[i];break}return f<h?-1:h<f?1:0},c.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},c.prototype.indexOf=function(t,e,r){return R(this,t,e,r,!0)},c.prototype.lastIndexOf=function(t,e,r){return R(this,t,e,r,!1)},c.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var f=!1;;)switch(n){case"hex":return T(this,t,e,r);case"utf8":case"utf-8":return k(this,t,e,r);case"ascii":return P(this,t,e,r);case"latin1":case"binary":return x(this,t,e,r);case"base64":return B(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,r);default:if(f)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function j(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function I(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function C(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=G(t[i]);return o}function $(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function D(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,r,n,o,f){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<f)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function Y(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function z(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function W(t,e,r,n,o,f){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(t,e,r,n,f){return f||W(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function V(t,e,r,n,f){return f||W(t,0,r,8),o.write(t,e,r,n,52,8),r+8}c.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=c.prototype;else{var o=e-t;r=new c(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},c.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||D(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},c.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||D(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},c.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||D(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||D(t,e,this.length);for(var i=e,n=1,o=this[t+--i];i>0&&(n*=256);)o+=this[t+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||N(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},c.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||N(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},c.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Y(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Y(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):z(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):z(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);N(this,t,e,r,o-1,-o)}var i=0,f=1,sub=0;for(this[e]=255&t;++i<r&&(f*=256);)t<0&&0===sub&&0!==this[e+i-1]&&(sub=1),this[e+i]=(t/f|0)-sub&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);N(this,t,e,r,o-1,-o)}var i=r-1,f=1,sub=0;for(this[e+i]=255&t;--i>=0&&(f*=256);)t<0&&0===sub&&0!==this[e+i+1]&&(sub=1),this[e+i]=(t/f|0)-sub&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Y(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Y(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):z(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):z(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,r){return F(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return F(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return V(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return V(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},c.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var code=t.charCodeAt(0);code<256&&(t=code)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var o=c.isBuffer(t)?t:K(new c(t,n).toString()),f=o.length;for(i=0;i<r-e;++i)this[i+e]=o[i%f]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,e){var r;e=e||1/0;for(var n=t.length,o=null,f=[],i=0;i<n;++i){if((r=t.charCodeAt(i))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&f.push(239,191,189);continue}if(i+1===n){(e-=3)>-1&&f.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&f.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&f.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;f.push(r)}else if(r<2048){if((e-=2)<0)break;f.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;f.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;f.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return f}function X(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(H,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function J(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(83))}}]);