tdg-react-doc-viewer
Version:
File viewer for React.
10 lines • 77.4 kB
JavaScript
"use strict";const E=require("./index-hgo1B54g.cjs"),G=require("./url-DsDWGMuu.cjs");function Lr(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in e)){const d=Object.getOwnPropertyDescriptor(a,o);d&&Object.defineProperty(e,o,d.get?d:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Me={},Xt={exports:{}},ct={};(function(e){e.fetch=o(E.commonjsGlobal.fetch)&&o(E.commonjsGlobal.ReadableStream),e.writableStream=o(E.commonjsGlobal.WritableStream),e.abortController=o(E.commonjsGlobal.AbortController);var t;function r(){if(t!==void 0)return t;if(E.commonjsGlobal.XMLHttpRequest){t=new E.commonjsGlobal.XMLHttpRequest;try{t.open("GET",E.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function a(d){var l=r();if(!l)return!1;try{return l.responseType=d,l.responseType===d}catch{}return!1}e.arraybuffer=e.fetch||a("arraybuffer"),e.msstream=!e.fetch&&a("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&a("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?o(r().overrideMimeType):!1);function o(d){return typeof d=="function"}t=null})(ct);var tt={exports:{}};typeof Object.create=="function"?tt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:tt.exports=function(t,r){if(r){t.super_=r;var a=function(){};a.prototype=r.prototype,t.prototype=new a,t.prototype.constructor=t}};var se=tt.exports,Le={},rt={exports:{}},dt={exports:{}},ye=typeof Reflect=="object"?Reflect:null,wt=ye&&typeof ye.apply=="function"?ye.apply:function(t,r,a){return Function.prototype.apply.call(t,r,a)},Se;ye&&typeof ye.ownKeys=="function"?Se=ye.ownKeys:Object.getOwnPropertySymbols?Se=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Se=function(t){return Object.getOwnPropertyNames(t)};function Pr(e){console&&console.warn&&console.warn(e)}var Jt=Number.isNaN||function(t){return t!==t};function W(){W.init.call(this)}dt.exports=W;dt.exports.once=Br;W.EventEmitter=W;W.prototype._events=void 0;W.prototype._eventsCount=0;W.prototype._maxListeners=void 0;var St=10;function Pe(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(W,"defaultMaxListeners",{enumerable:!0,get:function(){return St},set:function(e){if(typeof e!="number"||e<0||Jt(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");St=e}});W.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};W.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Jt(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Zt(e){return e._maxListeners===void 0?W.defaultMaxListeners:e._maxListeners}W.prototype.getMaxListeners=function(){return Zt(this)};W.prototype.emit=function(t){for(var r=[],a=1;a<arguments.length;a++)r.push(arguments[a]);var o=t==="error",d=this._events;if(d!==void 0)o=o&&d.error===void 0;else if(!o)return!1;if(o){var l;if(r.length>0&&(l=r[0]),l instanceof Error)throw l;var b=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw b.context=l,b}var h=d[t];if(h===void 0)return!1;if(typeof h=="function")wt(h,this,r);else for(var M=h.length,D=nr(h,M),a=0;a<M;++a)wt(D[a],this,r);return!0};function Qt(e,t,r,a){var o,d,l;if(Pe(r),d=e._events,d===void 0?(d=e._events=Object.create(null),e._eventsCount=0):(d.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),d=e._events),l=d[t]),l===void 0)l=d[t]=r,++e._eventsCount;else if(typeof l=="function"?l=d[t]=a?[r,l]:[l,r]:a?l.unshift(r):l.push(r),o=Zt(e),o>0&&l.length>o&&!l.warned){l.warned=!0;var b=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");b.name="MaxListenersExceededWarning",b.emitter=e,b.type=t,b.count=l.length,Pr(b)}return e}W.prototype.addListener=function(t,r){return Qt(this,t,r,!1)};W.prototype.on=W.prototype.addListener;W.prototype.prependListener=function(t,r){return Qt(this,t,r,!0)};function Cr(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function er(e,t,r){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=Cr.bind(a);return o.listener=r,a.wrapFn=o,o}W.prototype.once=function(t,r){return Pe(r),this.on(t,er(this,t,r)),this};W.prototype.prependOnceListener=function(t,r){return Pe(r),this.prependListener(t,er(this,t,r)),this};W.prototype.removeListener=function(t,r){var a,o,d,l,b;if(Pe(r),o=this._events,o===void 0)return this;if(a=o[t],a===void 0)return this;if(a===r||a.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,a.listener||r));else if(typeof a!="function"){for(d=-1,l=a.length-1;l>=0;l--)if(a[l]===r||a[l].listener===r){b=a[l].listener,d=l;break}if(d<0)return this;d===0?a.shift():Nr(a,d),a.length===1&&(o[t]=a[0]),o.removeListener!==void 0&&this.emit("removeListener",t,b||r)}return this};W.prototype.off=W.prototype.removeListener;W.prototype.removeAllListeners=function(t){var r,a,o;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[t]),this;if(arguments.length===0){var d=Object.keys(a),l;for(o=0;o<d.length;++o)l=d[o],l!=="removeListener"&&this.removeAllListeners(l);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=a[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(o=r.length-1;o>=0;o--)this.removeListener(t,r[o]);return this};function tr(e,t,r){var a=e._events;if(a===void 0)return[];var o=a[t];return o===void 0?[]:typeof o=="function"?r?[o.listener||o]:[o]:r?Dr(o):nr(o,o.length)}W.prototype.listeners=function(t){return tr(this,t,!0)};W.prototype.rawListeners=function(t){return tr(this,t,!1)};W.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):rr.call(e,t)};W.prototype.listenerCount=rr;function rr(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}W.prototype.eventNames=function(){return this._eventsCount>0?Se(this._events):[]};function nr(e,t){for(var r=new Array(t),a=0;a<t;++a)r[a]=e[a];return r}function Nr(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Dr(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function Br(e,t){return new Promise(function(r,a){function o(l){e.removeListener(t,d),a(l)}function d(){typeof e.removeListener=="function"&&e.removeListener("error",o),r([].slice.call(arguments))}ir(e,t,d,{once:!0}),t!=="error"&&Ir(e,o,{once:!0})})}function Ir(e,t,r){typeof e.on=="function"&&ir(e,"error",t,r)}function ir(e,t,r,a){if(typeof e.on=="function")a.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function o(d){a.once&&e.removeEventListener(t,o),r(d)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var or=dt.exports,ar=or.EventEmitter;const Ce=E.getAugmentedNamespace(E.dist);var ht={},fr={},$r=G.shams,Ne=function(){return $r()&&!!Symbol.toStringTag},kr=Ne(),Fr=G.callBound,nt=Fr("Object.prototype.toString"),De=function(t){return kr&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:nt(t)==="[object Arguments]"},sr=function(t){return De(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&nt(t)!=="[object Array]"&&"callee"in t&&nt(t.callee)==="[object Function]"},Ur=function(){return De(arguments)}();De.isLegacyArguments=sr;var qr=Ur?De:sr,Et=G.callBound,Wr=Ne(),Hr=G.requireHasown(),xr=G.gopd,it;if(Wr){var Gr=Et("RegExp.prototype.exec"),Rt={},Ue=function(){throw Rt},Tt={toString:Ue,valueOf:Ue};typeof Symbol.toPrimitive=="symbol"&&(Tt[Symbol.toPrimitive]=Ue),it=function(t){if(!t||typeof t!="object")return!1;var r=xr(t,"lastIndex"),a=r&&Hr(r,"value");if(!a)return!1;try{Gr(t,Tt)}catch(o){return o===Rt}}}else{var Vr=Et("Object.prototype.toString"),zr="[object RegExp]";it=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:Vr(t)===zr}}var Kr=it,Yr=G.callBound,Xr=Kr,Jr=Yr("RegExp.prototype.exec"),Zr=G.type,Qr=function(t){if(!Xr(t))throw new Zr("`regex` must be a RegExp");return function(a){return Jr(t,a)!==null}},ur=G.callBound,en=Qr,tn=en(/^\s*(?:function)?\*/),lr=Ne(),qe=G.requireGetProto(),rn=ur("Object.prototype.toString"),nn=ur("Function.prototype.toString"),on=function(){if(!lr)return!1;try{return Function("return function*() {}")()}catch{}},We,an=function(t){if(typeof t!="function")return!1;if(tn(nn(t)))return!0;if(!lr){var r=rn(t);return r==="[object GeneratorFunction]"}if(!qe)return!1;if(typeof We>"u"){var a=on();We=a?qe(a):!1}return qe(t)===We},cr=Function.prototype.toString,pe=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ot,Ee;if(typeof pe=="function"&&typeof Object.defineProperty=="function")try{ot=Object.defineProperty({},"length",{get:function(){throw Ee}}),Ee={},pe(function(){throw 42},null,ot)}catch(e){e!==Ee&&(pe=null)}else pe=null;var fn=/^\s*class\b/,at=function(t){try{var r=cr.call(t);return fn.test(r)}catch{return!1}},He=function(t){try{return at(t)?!1:(cr.call(t),!0)}catch{return!1}},Re=Object.prototype.toString,sn="[object Object]",un="[object Function]",ln="[object GeneratorFunction]",cn="[object HTMLAllCollection]",dn="[object HTML document.all class]",hn="[object HTMLCollection]",pn=typeof Symbol=="function"&&!!Symbol.toStringTag,yn=!(0 in[,]),ft=function(){return!1};if(typeof document=="object"){var gn=document.all;Re.call(gn)===Re.call(document.all)&&(ft=function(t){if((yn||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Re.call(t);return(r===cn||r===dn||r===hn||r===sn)&&t("")==null}catch{}return!1})}var bn=pe?function(t){if(ft(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{pe(t,null,ot)}catch(r){if(r!==Ee)return!1}return!at(t)&&He(t)}:function(t){if(ft(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(pn)return He(t);if(at(t))return!1;var r=Re.call(t);return r!==un&&r!==ln&&!/^\[object HTML/.test(r)?!1:He(t)},vn=bn,mn=Object.prototype.toString,dr=Object.prototype.hasOwnProperty,_n=function(t,r,a){for(var o=0,d=t.length;o<d;o++)dr.call(t,o)&&(a==null?r(t[o],o,t):r.call(a,t[o],o,t))},wn=function(t,r,a){for(var o=0,d=t.length;o<d;o++)a==null?r(t.charAt(o),o,t):r.call(a,t.charAt(o),o,t)},Sn=function(t,r,a){for(var o in t)dr.call(t,o)&&(a==null?r(t[o],o,t):r.call(a,t[o],o,t))},En=function(t,r,a){if(!vn(r))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=a),mn.call(t)==="[object Array]"?_n(t,r,o):typeof t=="string"?wn(t,r,o):Sn(t,r,o)},Rn=En,Tn=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],xe=Tn,An=typeof globalThis>"u"?E.commonjsGlobal:globalThis,On=function(){for(var t=[],r=0;r<xe.length;r++)typeof An[xe[r]]=="function"&&(t[t.length]=xe[r]);return t},hr={exports:{}},At=G.esDefineProperty,jn=G.syntax,he=G.type,Ot=G.gopd,Mn=function(t,r,a){if(!t||typeof t!="object"&&typeof t!="function")throw new he("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new he("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new he("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new he("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new he("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new he("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,b=arguments.length>6?arguments[6]:!1,h=!!Ot&&Ot(t,r);if(At)At(t,r,{configurable:l===null&&h?h.configurable:!l,enumerable:o===null&&h?h.enumerable:!o,value:a,writable:d===null&&h?h.writable:!d});else if(b||!o&&!d&&!l)t[r]=a;else throw new jn("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},st=G.esDefineProperty,pr=function(){return!!st};pr.hasArrayLengthDefineBug=function(){if(!st)return null;try{return st([],"length",{value:1}).length!==1}catch{return!0}};var Ln=pr,Pn=G.getIntrinsic,jt=Mn,Cn=Ln(),Mt=G.gopd,Lt=G.type,Nn=Pn("%Math.floor%"),Dn=function(t,r){if(typeof t!="function")throw new Lt("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Nn(r)!==r)throw new Lt("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],o=!0,d=!0;if("length"in t&&Mt){var l=Mt(t,"length");l&&!l.configurable&&(o=!1),l&&!l.writable&&(d=!1)}return(o||d||!a)&&(Cn?jt(t,"length",r,!0,!0):jt(t,"length",r)),t},Bn=G.functionBind,In=G.requireFunctionApply(),$n=G.actualApply,kn=function(){return $n(Bn,In,arguments)};(function(e){var t=Dn,r=G.esDefineProperty,a=G.callBindApplyHelpers,o=kn;e.exports=function(l){var b=a(arguments),h=l.length-(arguments.length-1);return t(b,1+(h>0?h:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o})(hr);var Fn=hr.exports,Oe=Rn,Un=On,Pt=Fn,pt=G.callBound,Te=G.gopd,qn=pt("Object.prototype.toString"),yr=Ne(),Ct=typeof globalThis>"u"?E.commonjsGlobal:globalThis,ut=Un(),yt=pt("String.prototype.slice"),Ge=Object.getPrototypeOf,Wn=pt("Array.prototype.indexOf",!0)||function(t,r){for(var a=0;a<t.length;a+=1)if(t[a]===r)return a;return-1},je={__proto__:null};yr&&Te&&Ge?Oe(ut,function(e){var t=new Ct[e];if(Symbol.toStringTag in t){var r=Ge(t),a=Te(r,Symbol.toStringTag);if(!a){var o=Ge(r);a=Te(o,Symbol.toStringTag)}je["$"+e]=Pt(a.get)}}):Oe(ut,function(e){var t=new Ct[e],r=t.slice||t.set;r&&(je["$"+e]=Pt(r))});var Hn=function(t){var r=!1;return Oe(je,function(a,o){if(!r)try{"$"+a(t)===o&&(r=yt(o,1))}catch{}}),r},xn=function(t){var r=!1;return Oe(je,function(a,o){if(!r)try{a(t),r=yt(o,1)}catch{}}),r},gr=function(t){if(!t||typeof t!="object")return!1;if(!yr){var r=yt(qn(t),8,-1);return Wn(ut,r)>-1?r:r!=="Object"?!1:xn(t)}return Te?Hn(t):null},Gn=gr,Vn=function(t){return!!Gn(t)};(function(e){var t=qr,r=an,a=gr,o=Vn;function d(g){return g.call.bind(g)}var l=typeof BigInt<"u",b=typeof Symbol<"u",h=d(Object.prototype.toString),M=d(Number.prototype.valueOf),D=d(String.prototype.valueOf),O=d(Boolean.prototype.valueOf);if(l)var $=d(BigInt.prototype.valueOf);if(b)var x=d(Symbol.prototype.valueOf);function L(g,me){if(typeof g!="object")return!1;try{return me(g),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function C(g){return typeof Promise<"u"&&g instanceof Promise||g!==null&&typeof g=="object"&&typeof g.then=="function"&&typeof g.catch=="function"}e.isPromise=C;function j(g){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(g):o(g)||y(g)}e.isArrayBufferView=j;function u(g){return a(g)==="Uint8Array"}e.isUint8Array=u;function m(g){return a(g)==="Uint8ClampedArray"}e.isUint8ClampedArray=m;function S(g){return a(g)==="Uint16Array"}e.isUint16Array=S;function R(g){return a(g)==="Uint32Array"}e.isUint32Array=R;function A(g){return a(g)==="Int8Array"}e.isInt8Array=A;function I(g){return a(g)==="Int16Array"}e.isInt16Array=I;function U(g){return a(g)==="Int32Array"}e.isInt32Array=U;function k(g){return a(g)==="Float32Array"}e.isFloat32Array=k;function N(g){return a(g)==="Float64Array"}e.isFloat64Array=N;function V(g){return a(g)==="BigInt64Array"}e.isBigInt64Array=V;function Y(g){return a(g)==="BigUint64Array"}e.isBigUint64Array=Y;function X(g){return h(g)==="[object Map]"}X.working=typeof Map<"u"&&X(new Map);function re(g){return typeof Map>"u"?!1:X.working?X(g):g instanceof Map}e.isMap=re;function J(g){return h(g)==="[object Set]"}J.working=typeof Set<"u"&&J(new Set);function ne(g){return typeof Set>"u"?!1:J.working?J(g):g instanceof Set}e.isSet=ne;function ie(g){return h(g)==="[object WeakMap]"}ie.working=typeof WeakMap<"u"&&ie(new WeakMap);function Q(g){return typeof WeakMap>"u"?!1:ie.working?ie(g):g instanceof WeakMap}e.isWeakMap=Q;function ee(g){return h(g)==="[object WeakSet]"}ee.working=typeof WeakSet<"u"&&ee(new WeakSet);function z(g){return ee(g)}e.isWeakSet=z;function te(g){return h(g)==="[object ArrayBuffer]"}te.working=typeof ArrayBuffer<"u"&&te(new ArrayBuffer);function ae(g){return typeof ArrayBuffer>"u"?!1:te.working?te(g):g instanceof ArrayBuffer}e.isArrayBuffer=ae;function c(g){return h(g)==="[object DataView]"}c.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&c(new DataView(new ArrayBuffer(1),0,1));function y(g){return typeof DataView>"u"?!1:c.working?c(g):g instanceof DataView}e.isDataView=y;var _=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function B(g){return h(g)==="[object SharedArrayBuffer]"}function s(g){return typeof _>"u"?!1:(typeof B.working>"u"&&(B.working=B(new _)),B.working?B(g):g instanceof _)}e.isSharedArrayBuffer=s;function f(g){return h(g)==="[object AsyncFunction]"}e.isAsyncFunction=f;function p(g){return h(g)==="[object Map Iterator]"}e.isMapIterator=p;function w(g){return h(g)==="[object Set Iterator]"}e.isSetIterator=w;function P(g){return h(g)==="[object Generator]"}e.isGeneratorObject=P;function n(g){return h(g)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=n;function i(g){return L(g,M)}e.isNumberObject=i;function v(g){return L(g,D)}e.isStringObject=v;function T(g){return L(g,O)}e.isBooleanObject=T;function H(g){return l&&L(g,$)}e.isBigIntObject=H;function F(g){return b&&L(g,x)}e.isSymbolObject=F;function q(g){return i(g)||v(g)||T(g)||H(g)||F(g)}e.isBoxedPrimitive=q;function fe(g){return typeof Uint8Array<"u"&&(ae(g)||s(g))}e.isAnyArrayBuffer=fe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(g){Object.defineProperty(e,g,{enumerable:!1,value:function(){throw new Error(g+" is not supported in userland")}})})})(fr);var zn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"};(function(e){var t=Object.getOwnPropertyDescriptors||function(y){for(var _=Object.keys(y),B={},s=0;s<_.length;s++)B[_[s]]=Object.getOwnPropertyDescriptor(y,_[s]);return B},r=/%[sdj%]/g;e.format=function(c){if(!A(c)){for(var y=[],_=0;_<arguments.length;_++)y.push(l(arguments[_]));return y.join(" ")}for(var _=1,B=arguments,s=B.length,f=String(c).replace(r,function(w){if(w==="%%")return"%";if(_>=s)return w;switch(w){case"%s":return String(B[_++]);case"%d":return Number(B[_++]);case"%j":try{return JSON.stringify(B[_++])}catch{return"[Circular]"}default:return w}}),p=B[_];_<s;p=B[++_])m(p)||!N(p)?f+=" "+p:f+=" "+l(p);return f},e.deprecate=function(c,y){if(typeof E.process$1<"u"&&E.process$1.noDeprecation===!0)return c;if(typeof E.process$1>"u")return function(){return e.deprecate(c,y).apply(this,arguments)};var _=!1;function B(){if(!_){if(E.process$1.throwDeprecation)throw new Error(y);E.process$1.traceDeprecation?console.trace(y):console.error(y),_=!0}return c.apply(this,arguments)}return B};var a={},o=/^$/;if(E.process$1.env.NODE_DEBUG){var d=E.process$1.env.NODE_DEBUG;d=d.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+d+"$","i")}e.debuglog=function(c){if(c=c.toUpperCase(),!a[c])if(o.test(c)){var y=E.process$1.pid;a[c]=function(){var _=e.format.apply(e,arguments);console.error("%s %d: %s",c,y,_)}}else a[c]=function(){};return a[c]};function l(c,y){var _={seen:[],stylize:h};return arguments.length>=3&&(_.depth=arguments[2]),arguments.length>=4&&(_.colors=arguments[3]),u(y)?_.showHidden=y:y&&e._extend(_,y),U(_.showHidden)&&(_.showHidden=!1),U(_.depth)&&(_.depth=2),U(_.colors)&&(_.colors=!1),U(_.customInspect)&&(_.customInspect=!0),_.colors&&(_.stylize=b),D(_,c,_.depth)}e.inspect=l,l.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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function b(c,y){var _=l.styles[y];return _?"\x1B["+l.colors[_][0]+"m"+c+"\x1B["+l.colors[_][1]+"m":c}function h(c,y){return c}function M(c){var y={};return c.forEach(function(_,B){y[_]=!0}),y}function D(c,y,_){if(c.customInspect&&y&&X(y.inspect)&&y.inspect!==e.inspect&&!(y.constructor&&y.constructor.prototype===y)){var B=y.inspect(_,c);return A(B)||(B=D(c,B,_)),B}var s=O(c,y);if(s)return s;var f=Object.keys(y),p=M(f);if(c.showHidden&&(f=Object.getOwnPropertyNames(y)),Y(y)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return $(y);if(f.length===0){if(X(y)){var w=y.name?": "+y.name:"";return c.stylize("[Function"+w+"]","special")}if(k(y))return c.stylize(RegExp.prototype.toString.call(y),"regexp");if(V(y))return c.stylize(Date.prototype.toString.call(y),"date");if(Y(y))return $(y)}var P="",n=!1,i=["{","}"];if(j(y)&&(n=!0,i=["[","]"]),X(y)){var v=y.name?": "+y.name:"";P=" [Function"+v+"]"}if(k(y)&&(P=" "+RegExp.prototype.toString.call(y)),V(y)&&(P=" "+Date.prototype.toUTCString.call(y)),Y(y)&&(P=" "+$(y)),f.length===0&&(!n||y.length==0))return i[0]+P+i[1];if(_<0)return k(y)?c.stylize(RegExp.prototype.toString.call(y),"regexp"):c.stylize("[Object]","special");c.seen.push(y);var T;return n?T=x(c,y,_,p,f):T=f.map(function(H){return L(c,y,_,p,H,n)}),c.seen.pop(),C(T,P,i)}function O(c,y){if(U(y))return c.stylize("undefined","undefined");if(A(y)){var _="'"+JSON.stringify(y).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return c.stylize(_,"string")}if(R(y))return c.stylize(""+y,"number");if(u(y))return c.stylize(""+y,"boolean");if(m(y))return c.stylize("null","null")}function $(c){return"["+Error.prototype.toString.call(c)+"]"}function x(c,y,_,B,s){for(var f=[],p=0,w=y.length;p<w;++p)ee(y,String(p))?f.push(L(c,y,_,B,String(p),!0)):f.push("");return s.forEach(function(P){P.match(/^\d+$/)||f.push(L(c,y,_,B,P,!0))}),f}function L(c,y,_,B,s,f){var p,w,P;if(P=Object.getOwnPropertyDescriptor(y,s)||{value:y[s]},P.get?P.set?w=c.stylize("[Getter/Setter]","special"):w=c.stylize("[Getter]","special"):P.set&&(w=c.stylize("[Setter]","special")),ee(B,s)||(p="["+s+"]"),w||(c.seen.indexOf(P.value)<0?(m(_)?w=D(c,P.value,null):w=D(c,P.value,_-1),w.indexOf(`
`)>-1&&(f?w=w.split(`
`).map(function(n){return" "+n}).join(`
`).slice(2):w=`
`+w.split(`
`).map(function(n){return" "+n}).join(`
`))):w=c.stylize("[Circular]","special")),U(p)){if(f&&s.match(/^\d+$/))return w;p=JSON.stringify(""+s),p.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(p=p.slice(1,-1),p=c.stylize(p,"name")):(p=p.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),p=c.stylize(p,"string"))}return p+": "+w}function C(c,y,_){var B=c.reduce(function(s,f){return f.indexOf(`
`)>=0,s+f.replace(/\u001b\[\d\d?m/g,"").length+1},0);return B>60?_[0]+(y===""?"":y+`
`)+" "+c.join(`,
`)+" "+_[1]:_[0]+y+" "+c.join(", ")+" "+_[1]}e.types=fr;function j(c){return Array.isArray(c)}e.isArray=j;function u(c){return typeof c=="boolean"}e.isBoolean=u;function m(c){return c===null}e.isNull=m;function S(c){return c==null}e.isNullOrUndefined=S;function R(c){return typeof c=="number"}e.isNumber=R;function A(c){return typeof c=="string"}e.isString=A;function I(c){return typeof c=="symbol"}e.isSymbol=I;function U(c){return c===void 0}e.isUndefined=U;function k(c){return N(c)&&J(c)==="[object RegExp]"}e.isRegExp=k,e.types.isRegExp=k;function N(c){return typeof c=="object"&&c!==null}e.isObject=N;function V(c){return N(c)&&J(c)==="[object Date]"}e.isDate=V,e.types.isDate=V;function Y(c){return N(c)&&(J(c)==="[object Error]"||c instanceof Error)}e.isError=Y,e.types.isNativeError=Y;function X(c){return typeof c=="function"}e.isFunction=X;function re(c){return c===null||typeof c=="boolean"||typeof c=="number"||typeof c=="string"||typeof c=="symbol"||typeof c>"u"}e.isPrimitive=re,e.isBuffer=zn;function J(c){return Object.prototype.toString.call(c)}function ne(c){return c<10?"0"+c.toString(10):c.toString(10)}var ie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Q(){var c=new Date,y=[ne(c.getHours()),ne(c.getMinutes()),ne(c.getSeconds())].join(":");return[c.getDate(),ie[c.getMonth()],y].join(" ")}e.log=function(){console.log("%s - %s",Q(),e.format.apply(e,arguments))},e.inherits=se,e._extend=function(c,y){if(!y||!N(y))return c;for(var _=Object.keys(y),B=_.length;B--;)c[_[B]]=y[_[B]];return c};function ee(c,y){return Object.prototype.hasOwnProperty.call(c,y)}var z=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(y){if(typeof y!="function")throw new TypeError('The "original" argument must be of type Function');if(z&&y[z]){var _=y[z];if(typeof _!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(_,z,{value:_,enumerable:!1,writable:!1,configurable:!0}),_}function _(){for(var B,s,f=new Promise(function(P,n){B=P,s=n}),p=[],w=0;w<arguments.length;w++)p.push(arguments[w]);p.push(function(P,n){P?s(P):B(n)});try{y.apply(this,p)}catch(P){s(P)}return f}return Object.setPrototypeOf(_,Object.getPrototypeOf(y)),z&&Object.defineProperty(_,z,{value:_,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(_,t(y))},e.promisify.custom=z;function te(c,y){if(!c){var _=new Error("Promise was rejected with a falsy value");_.reason=c,c=_}return y(c)}function ae(c){if(typeof c!="function")throw new TypeError('The "original" argument must be of type Function');function y(){for(var _=[],B=0;B<arguments.length;B++)_.push(arguments[B]);var s=_.pop();if(typeof s!="function")throw new TypeError("The last argument must be of type Function");var f=this,p=function(){return s.apply(f,arguments)};c.apply(this,_).then(function(w){E.process$1.nextTick(p.bind(null,null,w))},function(w){E.process$1.nextTick(te.bind(null,w,p))})}return Object.setPrototypeOf(y,Object.getPrototypeOf(c)),Object.defineProperties(y,t(c)),y}e.callbackify=ae})(ht);var Ve,Nt;function Kn(){if(Nt)return Ve;Nt=1;function e(L,C){var j=Object.keys(L);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(L);C&&(u=u.filter(function(m){return Object.getOwnPropertyDescriptor(L,m).enumerable})),j.push.apply(j,u)}return j}function t(L){for(var C=1;C<arguments.length;C++){var j=arguments[C]!=null?arguments[C]:{};C%2?e(Object(j),!0).forEach(function(u){r(L,u,j[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(j)):e(Object(j)).forEach(function(u){Object.defineProperty(L,u,Object.getOwnPropertyDescriptor(j,u))})}return L}function r(L,C,j){return C=l(C),C in L?Object.defineProperty(L,C,{value:j,enumerable:!0,configurable:!0,writable:!0}):L[C]=j,L}function a(L,C){if(!(L instanceof C))throw new TypeError("Cannot call a class as a function")}function o(L,C){for(var j=0;j<C.length;j++){var u=C[j];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(L,l(u.key),u)}}function d(L,C,j){return o(L.prototype,C),Object.defineProperty(L,"prototype",{writable:!1}),L}function l(L){var C=b(L,"string");return typeof C=="symbol"?C:String(C)}function b(L,C){if(typeof L!="object"||L===null)return L;var j=L[Symbol.toPrimitive];if(j!==void 0){var u=j.call(L,C);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(L)}var h=Ce,M=h.Buffer,D=ht,O=D.inspect,$=O&&O.custom||"inspect";function x(L,C,j){M.prototype.copy.call(L,C,j)}return Ve=function(){function L(){a(this,L),this.head=null,this.tail=null,this.length=0}return d(L,[{key:"push",value:function(j){var u={data:j,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length}},{key:"unshift",value:function(j){var u={data:j,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length}},{key:"shift",value:function(){if(this.length!==0){var j=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,j}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(j){if(this.length===0)return"";for(var u=this.head,m=""+u.data;u=u.next;)m+=j+u.data;return m}},{key:"concat",value:function(j){if(this.length===0)return M.alloc(0);for(var u=M.allocUnsafe(j>>>0),m=this.head,S=0;m;)x(m.data,u,S),S+=m.data.length,m=m.next;return u}},{key:"consume",value:function(j,u){var m;return j<this.head.data.length?(m=this.head.data.slice(0,j),this.head.data=this.head.data.slice(j)):j===this.head.data.length?m=this.shift():m=u?this._getString(j):this._getBuffer(j),m}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(j){var u=this.head,m=1,S=u.data;for(j-=S.length;u=u.next;){var R=u.data,A=j>R.length?R.length:j;if(A===R.length?S+=R:S+=R.slice(0,j),j-=A,j===0){A===R.length?(++m,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=R.slice(A));break}++m}return this.length-=m,S}},{key:"_getBuffer",value:function(j){var u=M.allocUnsafe(j),m=this.head,S=1;for(m.data.copy(u),j-=m.data.length;m=m.next;){var R=m.data,A=j>R.length?R.length:j;if(R.copy(u,u.length-j,0,A),j-=A,j===0){A===R.length?(++S,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=R.slice(A));break}++S}return this.length-=S,u}},{key:$,value:function(j,u){return O(this,t(t({},u),{},{depth:0,customInspect:!1}))}}]),L}(),Ve}function Yn(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,E.process$1.nextTick(lt,this,e)):E.process$1.nextTick(lt,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(d){!t&&d?r._writableState?r._writableState.errorEmitted?E.process$1.nextTick(Ae,r):(r._writableState.errorEmitted=!0,E.process$1.nextTick(Dt,r,d)):E.process$1.nextTick(Dt,r,d):t?(E.process$1.nextTick(Ae,r),t(d)):E.process$1.nextTick(Ae,r)}),this)}function Dt(e,t){lt(e,t),Ae(e)}function Ae(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Xn(){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)}function lt(e,t){e.emit("error",t)}function Jn(e,t){var r=e._readableState,a=e._writableState;r&&r.autoDestroy||a&&a.autoDestroy?e.destroy(t):e.emit("error",t)}var br={destroy:Yn,undestroy:Xn,errorOrDestroy:Jn},le={};function Zn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var vr={};function Z(e,t,r){r||(r=Error);function a(d,l,b){return typeof t=="string"?t:t(d,l,b)}var o=function(d){Zn(l,d);function l(b,h,M){return d.call(this,a(b,h,M))||this}return l}(r);o.prototype.name=r.name,o.prototype.code=e,vr[e]=o}function Bt(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(a){return String(a)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function Qn(e,t,r){return e.substr(0,t.length)===t}function ei(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function ti(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Z("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Z("ERR_INVALID_ARG_TYPE",function(e,t,r){var a;typeof t=="string"&&Qn(t,"not ")?(a="must not be",t=t.replace(/^not /,"")):a="must be";var o;if(ei(e," argument"))o="The ".concat(e," ").concat(a," ").concat(Bt(t,"type"));else{var d=ti(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(d," ").concat(a," ").concat(Bt(t,"type"))}return o+=". Received type ".concat(typeof r),o},TypeError);Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Z("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Z("ERR_STREAM_PREMATURE_CLOSE","Premature close");Z("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Z("ERR_STREAM_WRITE_AFTER_END","write after end");Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Z("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");le.codes=vr;var ri=le.codes.ERR_INVALID_OPT_VALUE;function ni(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function ii(e,t,r,a){var o=ni(t,a,r);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var d=a?r:"highWaterMark";throw new ri(d,o)}return Math.floor(o)}return e.objectMode?16:16*1024}var mr={getHighWaterMark:ii},oi=ai;function ai(e,t){if(ze("noDeprecation"))return e;var r=!1;function a(){if(!r){if(ze("throwDeprecation"))throw new Error(t);ze("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return a}function ze(e){try{if(!E.commonjsGlobal.localStorage)return!1}catch{return!1}var t=E.commonjsGlobal.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var Ke,It;function _r(){if(It)return Ke;It=1,Ke=k;function e(s){var f=this;this.next=null,this.entry=null,this.finish=function(){B(f,s)}}var t;k.WritableState=I;var r={deprecate:oi},a=ar,o=Ce.Buffer,d=(typeof E.commonjsGlobal<"u"?E.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function l(s){return o.from(s)}function b(s){return o.isBuffer(s)||s instanceof d}var h=br,M=mr,D=M.getHighWaterMark,O=le.codes,$=O.ERR_INVALID_ARG_TYPE,x=O.ERR_METHOD_NOT_IMPLEMENTED,L=O.ERR_MULTIPLE_CALLBACK,C=O.ERR_STREAM_CANNOT_PIPE,j=O.ERR_STREAM_DESTROYED,u=O.ERR_STREAM_NULL_VALUES,m=O.ERR_STREAM_WRITE_AFTER_END,S=O.ERR_UNKNOWN_ENCODING,R=h.errorOrDestroy;se(k,a);function A(){}function I(s,f,p){t=t||ge(),s=s||{},typeof p!="boolean"&&(p=f instanceof t),this.objectMode=!!s.objectMode,p&&(this.objectMode=this.objectMode||!!s.writableObjectMode),this.highWaterMark=D(this,s,"writableHighWaterMark",p),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var w=s.decodeStrings===!1;this.decodeStrings=!w,this.defaultEncoding=s.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(P){ie(f,P)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=s.emitClose!==!1,this.autoDestroy=!!s.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}I.prototype.getBuffer=function(){for(var f=this.bufferedRequest,p=[];f;)p.push(f),f=f.next;return p},function(){try{Object.defineProperty(I.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var U;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(U=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(f){return U.call(this,f)?!0:this!==k?!1:f&&f._writableState instanceof I}})):U=function(f){return f instanceof this};function k(s){t=t||ge();var f=this instanceof t;if(!f&&!U.call(k,this))return new k(s);this._writableState=new I(s,this,f),this.writable=!0,s&&(typeof s.write=="function"&&(this._write=s.write),typeof s.writev=="function"&&(this._writev=s.writev),typeof s.destroy=="function"&&(this._destroy=s.destroy),typeof s.final=="function"&&(this._final=s.final)),a.call(this)}k.prototype.pipe=function(){R(this,new C)};function N(s,f){var p=new m;R(s,p),E.process$1.nextTick(f,p)}function V(s,f,p,w){var P;return p===null?P=new u:typeof p!="string"&&!f.objectMode&&(P=new $("chunk",["string","Buffer"],p)),P?(R(s,P),E.process$1.nextTick(w,P),!1):!0}k.prototype.write=function(s,f,p){var w=this._writableState,P=!1,n=!w.objectMode&&b(s);return n&&!o.isBuffer(s)&&(s=l(s)),typeof f=="function"&&(p=f,f=null),n?f="buffer":f||(f=w.defaultEncoding),typeof p!="function"&&(p=A),w.ending?N(this,p):(n||V(this,w,s,p))&&(w.pendingcb++,P=X(this,w,n,s,f,p)),P},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var s=this._writableState;s.corked&&(s.corked--,!s.writing&&!s.corked&&!s.bufferProcessing&&s.bufferedRequest&&z(this,s))},k.prototype.setDefaultEncoding=function(f){if(typeof f=="string"&&(f=f.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((f+"").toLowerCase())>-1))throw new S(f);return this._writableState.defaultEncoding=f,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Y(s,f,p){return!s.objectMode&&s.decodeStrings!==!1&&typeof f=="string"&&(f=o.from(f,p)),f}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X(s,f,p,w,P,n){if(!p){var i=Y(f,w,P);w!==i&&(p=!0,P="buffer",w=i)}var v=f.objectMode?1:w.length;f.length+=v;var T=f.length<f.highWaterMark;if(T||(f.needDrain=!0),f.writing||f.corked){var H=f.lastBufferedRequest;f.lastBufferedRequest={chunk:w,encoding:P,isBuf:p,callback:n,next:null},H?H.next=f.lastBufferedRequest:f.bufferedRequest=f.lastBufferedRequest,f.bufferedRequestCount+=1}else re(s,f,!1,v,w,P,n);return T}function re(s,f,p,w,P,n,i){f.writelen=w,f.writecb=i,f.writing=!0,f.sync=!0,f.destroyed?f.onwrite(new j("write")):p?s._writev(P,f.onwrite):s._write(P,n,f.onwrite),f.sync=!1}function J(s,f,p,w,P){--f.pendingcb,p?(E.process$1.nextTick(P,w),E.process$1.nextTick(y,s,f),s._writableState.errorEmitted=!0,R(s,w)):(P(w),s._writableState.errorEmitted=!0,R(s,w),y(s,f))}function ne(s){s.writing=!1,s.writecb=null,s.length-=s.writelen,s.writelen=0}function ie(s,f){var p=s._writableState,w=p.sync,P=p.writecb;if(typeof P!="function")throw new L;if(ne(p),f)J(s,p,w,f,P);else{var n=te(p)||s.destroyed;!n&&!p.corked&&!p.bufferProcessing&&p.bufferedRequest&&z(s,p),w?E.process$1.nextTick(Q,s,p,n,P):Q(s,p,n,P)}}function Q(s,f,p,w){p||ee(s,f),f.pendingcb--,w(),y(s,f)}function ee(s,f){f.length===0&&f.needDrain&&(f.needDrain=!1,s.emit("drain"))}function z(s,f){f.bufferProcessing=!0;var p=f.bufferedRequest;if(s._writev&&p&&p.next){var w=f.bufferedRequestCount,P=new Array(w),n=f.corkedRequestsFree;n.entry=p;for(var i=0,v=!0;p;)P[i]=p,p.isBuf||(v=!1),p=p.next,i+=1;P.allBuffers=v,re(s,f,!0,f.length,P,"",n.finish),f.pendingcb++,f.lastBufferedRequest=null,n.next?(f.corkedRequestsFree=n.next,n.next=null):f.corkedRequestsFree=new e(f),f.bufferedRequestCount=0}else{for(;p;){var T=p.chunk,H=p.encoding,F=p.callback,q=f.objectMode?1:T.length;if(re(s,f,!1,q,T,H,F),p=p.next,f.bufferedRequestCount--,f.writing)break}p===null&&(f.lastBufferedRequest=null)}f.bufferedRequest=p,f.bufferProcessing=!1}k.prototype._write=function(s,f,p){p(new x("_write()"))},k.prototype._writev=null,k.prototype.end=function(s,f,p){var w=this._writableState;return typeof s=="function"?(p=s,s=null,f=null):typeof f=="function"&&(p=f,f=null),s!=null&&this.write(s,f),w.corked&&(w.corked=1,this.uncork()),w.ending||_(this,w,p),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function te(s){return s.ending&&s.length===0&&s.bufferedRequest===null&&!s.finished&&!s.writing}function ae(s,f){s._final(function(p){f.pendingcb--,p&&R(s,p),f.prefinished=!0,s.emit("prefinish"),y(s,f)})}function c(s,f){!f.prefinished&&!f.finalCalled&&(typeof s._final=="function"&&!f.destroyed?(f.pendingcb++,f.finalCalled=!0,E.process$1.nextTick(ae,s,f)):(f.prefinished=!0,s.emit("prefinish")))}function y(s,f){var p=te(f);if(p&&(c(s,f),f.pendingcb===0&&(f.finished=!0,s.emit("finish"),f.autoDestroy))){var w=s._readableState;(!w||w.autoDestroy&&w.endEmitted)&&s.destroy()}return p}function _(s,f,p){f.ending=!0,y(s,f),p&&(f.finished?E.process$1.nextTick(p):s.once("finish",p)),f.ended=!0,s.writable=!1}function B(s,f,p){var w=s.entry;for(s.entry=null;w;){var P=w.callback;f.pendingcb--,P(p),w=w.next}f.corkedRequestsFree.next=s}return Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(f){this._writableState&&(this._writableState.destroyed=f)}}),k.prototype.destroy=h.destroy,k.prototype._undestroy=h.undestroy,k.prototype._destroy=function(s,f){f(s)},Ke}var Ye,$t;function ge(){if($t)return Ye;$t=1;var e=Object.keys||function(M){var D=[];for(var O in M)D.push(O);return D};Ye=l;var t=Sr(),r=_r();se(l,t);for(var a=e(r.prototype),o=0;o<a.length;o++){var d=a[o];l.prototype[d]||(l.prototype[d]=r.prototype[d])}function l(M){if(!(this instanceof l))return new l(M);t.call(this,M),r.call(this,M),this.allowHalfOpen=!0,M&&(M.readable===!1&&(this.readable=!1),M.writable===!1&&(this.writable=!1),M.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",b)))}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function b(){this._writableState.ended||E.process$1.nextTick(h,this)}function h(M){M.end()}return Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(D){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=D,this._writableState.destroyed=D)}}),Ye}var Xe={},_e={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var kt;function fi(){return kt||(kt=1,function(e,t){var r=Ce,a=r.Buffer;function o(l,b){for(var h in l)b[h]=l[h]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=d);function d(l,b,h){return a(l,b,h)}d.prototype=Object.create(a.prototype),o(a,d),d.from=function(l,b,h){if(typeof l=="number")throw new TypeError("Argument must not be a number");return a(l,b,h)},d.alloc=function(l,b,h){if(typeof l!="number")throw new TypeError("Argument must be a number");var M=a(l);return b!==void 0?typeof h=="string"?M.fill(b,h):M.fill(b):M.fill(0),M},d.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return a(l)},d.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(l)}}(_e,_e.exports)),_e.exports}var Ft;function Ut(){if(Ft)return Xe;Ft=1;var e=fi().Buffer,t=e.isEncoding||function(u){switch(u=""+u,u&&u.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 r(u){if(!u)return"utf8";for(var m;;)switch(u){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 u;default:if(m)return;u=(""+u).toLowerCase(),m=!0}}function a(u){var m=r(u);if(typeof m!="string"&&(e.isEncoding===t||!t(u)))throw new Error("Unknown encoding: "+u);return m||u}Xe.StringDecoder=o;function o(u){this.encoding=a(u);var m;switch(this.encoding){case"utf16le":this.text=O,this.end=$,m=4;break;case"utf8":this.fillLast=h,m=4;break;case"base64":this.text=x,this.end=L,m=3;break;default:this.write=C,this.end=j;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(m)}o.prototype.write=function(u){if(u.length===0)return"";var m,S;if(this.lastNeed){if(m=this.fillLast(u),m===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S<u.length?m?m+this.text(u,S):this.text(u,S):m||""},o.prototype.end=D,o.prototype.text=M,o.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length};function d(u){return u<=127?0:u>>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function l(u,m,S){var R=m.length-1;if(R<S)return 0;var A=d(m[R]);return A>=0?(A>0&&(u.lastNeed=A-1),A):--R<S||A===-2?0:(A=d(m[R]),A>=0?(A>0&&(u.lastNeed=A-2),A):--R<S||A===-2?0:(A=d(m[R]),A>=0?(A>0&&(A===2?A=0:u.lastNeed=A-3),A):0))}function b(u,m,S){if((m[0]&192)!==128)return u.lastNeed=0,"�";if(u.lastNeed>1&&m.length>1){if((m[1]&192)!==128)return u.lastNeed=1,"�";if(u.lastNeed>2&&m.length>2&&(m[2]&192)!==128)return u.lastNeed=2,"�"}}function h(u){var m=this.lastTotal-this.lastNeed,S=b(this,u);if(S!==void 0)return S;if(this.lastNeed<=u.length)return u.copy(this.lastChar,m,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,m,0,u.length),this.lastNeed-=u.length}function M(u,m){var S=l(this,u,m);if(!this.lastNeed)return u.toString("utf8",m);this.lastTotal=S;var R=u.length-(S-this.lastNeed);return u.copy(this.lastChar,0,R),u.toString("utf8",m,R)}function D(u){var m=u&&u.length?this.write(u):"";return this.lastNeed?m+"�":m}function O(u,m){if((u.length-m)%2===0){var S=u.toString("utf16le",m);if(S){var R=S.charCodeAt(S.length-1);if(R>=55296&&R<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",m,u.length-1)}function $(u){var m=u&&u.length?this.write(u):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return m+this.lastChar.toString("utf16le",0,S)}return m}function x(u,m){var S=(u.length-m)%3;return S===0?u.toString("base64",m):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",m,u.length-S))}function L(u){var m=u&&u.length?this.write(u):"";return this.lastNeed?m+this.lastChar.toString("base64",0,3-this.lastNeed):m}function C(u){return u.toString(this.encoding)}function j(u){return u&&u.length?this.write(u):""}return Xe}var qt=le.codes.ERR_STREAM_PREMATURE_CLOSE;function si(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];e.apply(this,a)}}}function ui(){}function li(e){return e.setHeader&&typeof e.abort=="function"}function wr(e,t,r){if(typeof t=="function")return wr(e,null,t);t||(t={}),r=si(r||ui);var a=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,d=function(){e.writable||b()},l=e._writableState&&e._writableState.finished,b=function(){o=!1,l=!0,a||r.call(e)},h=e._readableState&&e._readableState.endEmitted,M=function(){a=!1,h=!0,o||r.call(e)},D=function(L){r.call(e,L)},O=function(){var L;if(a&&!h)return(!e._readableState||!e._readableState.ended)&&(L=new qt),r.call(e,L);if(o&&!l)return(!e._writableState||!e._writableState.ended)&&(L=new qt),r.call(e,L)},$=function(){e.req.on("finish",b)};return li(e)?(e.on("complete",b),e.on("abort",O),e.req?$():e.on("request",$)):o&&!e._writableState&&(e.on("end",d),e.on("close",d)),e.on("end",M),e.on("finish",b),t.error!==!1&&e.on("error",D),e.on("close",O),function(){e.removeListener("complete",b),e.removeListener("abort",O),e.removeListener("request",$),e.req&&e.req.removeListener("finish",b),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",b),e.removeListener("end",M),e.removeListener("error",D),e.removeListener("close",O)}}var gt=wr,Je,Wt;function ci(){if(Wt)return Je;Wt=1;var e;function t(S,R,A){return R=r(R),R in S?Object.defineProperty(S,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):S[R]=A,S}function r(S){var R=a(S,"string");return typeof R=="symbol"?R:String(R)}function a(S,R){if(typeof S!="object"||S===null)return S;var A=S[Symbol.toPrimitive];if(A!==void 0){var I=A.call(S,R||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(S)}var o=gt,d=Symbol("lastResolve"),l=Symbol("lastReject"),b=Symbol("error"),h=Symbol("ended"),M=Symbol("lastPromise"),D=S