@salesforce/core-bundle 8.6.0 → 8.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,8 +11,7 @@ var require_colorette = __commonJS({
11
11
  Object.defineProperty(exports2, "__esModule", { value: true });
12
12
  var tty = require("tty");
13
13
  function _interopNamespace(e) {
14
- if (e && e.__esModule)
15
- return e;
14
+ if (e && e.__esModule) return e;
16
15
  var n = /* @__PURE__ */ Object.create(null);
17
16
  if (e) {
18
17
  Object.keys(e).forEach(function(k) {
@@ -194,8 +193,7 @@ var require_wrappy = __commonJS({
194
193
  "node_modules/wrappy/wrappy.js"(exports2, module2) {
195
194
  module2.exports = wrappy;
196
195
  function wrappy(fn, cb) {
197
- if (fn && cb)
198
- return wrappy(fn)(cb);
196
+ if (fn && cb) return wrappy(fn)(cb);
199
197
  if (typeof fn !== "function")
200
198
  throw new TypeError("need wrapper function");
201
199
  Object.keys(fn).forEach(function(k) {
@@ -242,8 +240,7 @@ var require_once = __commonJS({
242
240
  });
243
241
  function once(fn) {
244
242
  var f = function() {
245
- if (f.called)
246
- return f.value;
243
+ if (f.called) return f.value;
247
244
  f.called = true;
248
245
  return f.value = fn.apply(this, arguments);
249
246
  };
@@ -278,10 +275,8 @@ var require_end_of_stream = __commonJS({
278
275
  return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3;
279
276
  };
280
277
  var eos = function(stream, opts, callback) {
281
- if (typeof opts === "function")
282
- return eos(stream, null, opts);
283
- if (!opts)
284
- opts = {};
278
+ if (typeof opts === "function") return eos(stream, null, opts);
279
+ if (!opts) opts = {};
285
280
  callback = once(callback || noop);
286
281
  var ws = stream._writableState;
287
282
  var rs = stream._readableState;
@@ -289,18 +284,15 @@ var require_end_of_stream = __commonJS({
289
284
  var writable = opts.writable || opts.writable !== false && stream.writable;
290
285
  var cancelled = false;
291
286
  var onlegacyfinish = function() {
292
- if (!stream.writable)
293
- onfinish();
287
+ if (!stream.writable) onfinish();
294
288
  };
295
289
  var onfinish = function() {
296
290
  writable = false;
297
- if (!readable)
298
- callback.call(stream);
291
+ if (!readable) callback.call(stream);
299
292
  };
300
293
  var onend = function() {
301
294
  readable = false;
302
- if (!writable)
303
- callback.call(stream);
295
+ if (!writable) callback.call(stream);
304
296
  };
305
297
  var onexit = function(exitCode) {
306
298
  callback.call(stream, exitCode ? new Error("exited with error code: " + exitCode) : null);
@@ -312,12 +304,9 @@ var require_end_of_stream = __commonJS({
312
304
  process.nextTick(onclosenexttick);
313
305
  };
314
306
  var onclosenexttick = function() {
315
- if (cancelled)
316
- return;
317
- if (readable && !(rs && (rs.ended && !rs.destroyed)))
318
- return callback.call(stream, new Error("premature close"));
319
- if (writable && !(ws && (ws.ended && !ws.destroyed)))
320
- return callback.call(stream, new Error("premature close"));
307
+ if (cancelled) return;
308
+ if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error("premature close"));
309
+ if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error("premature close"));
321
310
  };
322
311
  var onrequest = function() {
323
312
  stream.req.on("finish", onfinish);
@@ -325,28 +314,23 @@ var require_end_of_stream = __commonJS({
325
314
  if (isRequest(stream)) {
326
315
  stream.on("complete", onfinish);
327
316
  stream.on("abort", onclose);
328
- if (stream.req)
329
- onrequest();
330
- else
331
- stream.on("request", onrequest);
317
+ if (stream.req) onrequest();
318
+ else stream.on("request", onrequest);
332
319
  } else if (writable && !ws) {
333
320
  stream.on("end", onlegacyfinish);
334
321
  stream.on("close", onlegacyfinish);
335
322
  }
336
- if (isChildProcess(stream))
337
- stream.on("exit", onexit);
323
+ if (isChildProcess(stream)) stream.on("exit", onexit);
338
324
  stream.on("end", onend);
339
325
  stream.on("finish", onfinish);
340
- if (opts.error !== false)
341
- stream.on("error", onerror);
326
+ if (opts.error !== false) stream.on("error", onerror);
342
327
  stream.on("close", onclose);
343
328
  return function() {
344
329
  cancelled = true;
345
330
  stream.removeListener("complete", onfinish);
346
331
  stream.removeListener("abort", onclose);
347
332
  stream.removeListener("request", onrequest);
348
- if (stream.req)
349
- stream.req.removeListener("finish", onfinish);
333
+ if (stream.req) stream.req.removeListener("finish", onfinish);
350
334
  stream.removeListener("end", onlegacyfinish);
351
335
  stream.removeListener("close", onlegacyfinish);
352
336
  stream.removeListener("finish", onfinish);
@@ -373,10 +357,8 @@ var require_pump = __commonJS({
373
357
  return typeof fn === "function";
374
358
  };
375
359
  var isFS = function(stream) {
376
- if (!ancient)
377
- return false;
378
- if (!fs)
379
- return false;
360
+ if (!ancient) return false;
361
+ if (!fs) return false;
380
362
  return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close);
381
363
  };
382
364
  var isRequest = function(stream) {
@@ -389,24 +371,18 @@ var require_pump = __commonJS({
389
371
  closed = true;
390
372
  });
391
373
  eos(stream, { readable: reading, writable: writing }, function(err) {
392
- if (err)
393
- return callback(err);
374
+ if (err) return callback(err);
394
375
  closed = true;
395
376
  callback();
396
377
  });
397
378
  var destroyed = false;
398
379
  return function(err) {
399
- if (closed)
400
- return;
401
- if (destroyed)
402
- return;
380
+ if (closed) return;
381
+ if (destroyed) return;
403
382
  destroyed = true;
404
- if (isFS(stream))
405
- return stream.close(noop);
406
- if (isRequest(stream))
407
- return stream.abort();
408
- if (isFn(stream.destroy))
409
- return stream.destroy();
383
+ if (isFS(stream)) return stream.close(noop);
384
+ if (isRequest(stream)) return stream.abort();
385
+ if (isFn(stream.destroy)) return stream.destroy();
410
386
  callback(err || new Error("stream was destroyed"));
411
387
  };
412
388
  };
@@ -419,21 +395,16 @@ var require_pump = __commonJS({
419
395
  var pump2 = function() {
420
396
  var streams = Array.prototype.slice.call(arguments);
421
397
  var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop;
422
- if (Array.isArray(streams[0]))
423
- streams = streams[0];
424
- if (streams.length < 2)
425
- throw new Error("pump requires two streams per minimum");
398
+ if (Array.isArray(streams[0])) streams = streams[0];
399
+ if (streams.length < 2) throw new Error("pump requires two streams per minimum");
426
400
  var error;
427
401
  var destroys = streams.map(function(stream, i) {
428
402
  var reading = i < streams.length - 1;
429
403
  var writing = i > 0;
430
404
  return destroyer(stream, reading, writing, function(err) {
431
- if (!error)
432
- error = err;
433
- if (err)
434
- destroys.forEach(call);
435
- if (reading)
436
- return;
405
+ if (!error) error = err;
406
+ if (err) destroys.forEach(call);
407
+ if (reading) return;
437
408
  destroys.forEach(call);
438
409
  callback(error);
439
410
  });
@@ -1239,8 +1210,7 @@ var require_util = __commonJS({
1239
1210
  }
1240
1211
  };
1241
1212
  var validateFunction = (value, name) => {
1242
- if (typeof value !== "function")
1243
- throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
1213
+ if (typeof value !== "function") throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
1244
1214
  };
1245
1215
  var AggregateError = class extends Error {
1246
1216
  constructor(errors) {
@@ -1771,12 +1741,9 @@ var require_validators = __commonJS({
1771
1741
  return value;
1772
1742
  }
1773
1743
  var validateInteger = hideStackFrames((value, name, min = NumberMIN_SAFE_INTEGER, max = NumberMAX_SAFE_INTEGER) => {
1774
- if (typeof value !== "number")
1775
- throw new ERR_INVALID_ARG_TYPE2(name, "number", value);
1776
- if (!NumberIsInteger(value))
1777
- throw new ERR_OUT_OF_RANGE(name, "an integer", value);
1778
- if (value < min || value > max)
1779
- throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
1744
+ if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE2(name, "number", value);
1745
+ if (!NumberIsInteger(value)) throw new ERR_OUT_OF_RANGE(name, "an integer", value);
1746
+ if (value < min || value > max) throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
1780
1747
  });
1781
1748
  var validateInt32 = hideStackFrames((value, name, min = -2147483648, max = 2147483647) => {
1782
1749
  if (typeof value !== "number") {
@@ -1803,12 +1770,10 @@ var require_validators = __commonJS({
1803
1770
  }
1804
1771
  });
1805
1772
  function validateString(value, name) {
1806
- if (typeof value !== "string")
1807
- throw new ERR_INVALID_ARG_TYPE2(name, "string", value);
1773
+ if (typeof value !== "string") throw new ERR_INVALID_ARG_TYPE2(name, "string", value);
1808
1774
  }
1809
1775
  function validateNumber(value, name, min = void 0, max) {
1810
- if (typeof value !== "number")
1811
- throw new ERR_INVALID_ARG_TYPE2(name, "number", value);
1776
+ if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE2(name, "number", value);
1812
1777
  if (min != null && value < min || max != null && value > max || (min != null || max != null) && NumberIsNaN(value)) {
1813
1778
  throw new ERR_OUT_OF_RANGE(
1814
1779
  name,
@@ -1828,8 +1793,7 @@ var require_validators = __commonJS({
1828
1793
  }
1829
1794
  });
1830
1795
  function validateBoolean(value, name) {
1831
- if (typeof value !== "boolean")
1832
- throw new ERR_INVALID_ARG_TYPE2(name, "boolean", value);
1796
+ if (typeof value !== "boolean") throw new ERR_INVALID_ARG_TYPE2(name, "boolean", value);
1833
1797
  }
1834
1798
  function getOwnPropertyValueOrDefault(options, key, defaultValue) {
1835
1799
  return options == null || !ObjectPrototypeHasOwnProperty(options, key) ? defaultValue : options[key];
@@ -1912,16 +1876,13 @@ var require_validators = __commonJS({
1912
1876
  }
1913
1877
  });
1914
1878
  var validateFunction = hideStackFrames((value, name) => {
1915
- if (typeof value !== "function")
1916
- throw new ERR_INVALID_ARG_TYPE2(name, "Function", value);
1879
+ if (typeof value !== "function") throw new ERR_INVALID_ARG_TYPE2(name, "Function", value);
1917
1880
  });
1918
1881
  var validatePlainFunction = hideStackFrames((value, name) => {
1919
- if (typeof value !== "function" || isAsyncFunction(value))
1920
- throw new ERR_INVALID_ARG_TYPE2(name, "Function", value);
1882
+ if (typeof value !== "function" || isAsyncFunction(value)) throw new ERR_INVALID_ARG_TYPE2(name, "Function", value);
1921
1883
  });
1922
1884
  var validateUndefined = hideStackFrames((value, name) => {
1923
- if (value !== void 0)
1924
- throw new ERR_INVALID_ARG_TYPE2(name, "undefined", value);
1885
+ if (value !== void 0) throw new ERR_INVALID_ARG_TYPE2(name, "undefined", value);
1925
1886
  });
1926
1887
  function validateUnion(value, name, union) {
1927
1888
  if (!ArrayPrototypeIncludes(union, value)) {
@@ -2042,84 +2003,59 @@ var require_utils = __commonJS({
2042
2003
  return isReadableStream(obj) || isWritableStream(obj) || isTransformStream(obj);
2043
2004
  }
2044
2005
  function isIterable(obj, isAsync) {
2045
- if (obj == null)
2046
- return false;
2047
- if (isAsync === true)
2048
- return typeof obj[SymbolAsyncIterator] === "function";
2049
- if (isAsync === false)
2050
- return typeof obj[SymbolIterator] === "function";
2006
+ if (obj == null) return false;
2007
+ if (isAsync === true) return typeof obj[SymbolAsyncIterator] === "function";
2008
+ if (isAsync === false) return typeof obj[SymbolIterator] === "function";
2051
2009
  return typeof obj[SymbolAsyncIterator] === "function" || typeof obj[SymbolIterator] === "function";
2052
2010
  }
2053
2011
  function isDestroyed(stream) {
2054
- if (!isNodeStream(stream))
2055
- return null;
2012
+ if (!isNodeStream(stream)) return null;
2056
2013
  const wState = stream._writableState;
2057
2014
  const rState = stream._readableState;
2058
2015
  const state = wState || rState;
2059
2016
  return !!(stream.destroyed || stream[kIsDestroyed] || state !== null && state !== void 0 && state.destroyed);
2060
2017
  }
2061
2018
  function isWritableEnded(stream) {
2062
- if (!isWritableNodeStream(stream))
2063
- return null;
2064
- if (stream.writableEnded === true)
2065
- return true;
2019
+ if (!isWritableNodeStream(stream)) return null;
2020
+ if (stream.writableEnded === true) return true;
2066
2021
  const wState = stream._writableState;
2067
- if (wState !== null && wState !== void 0 && wState.errored)
2068
- return false;
2069
- if (typeof (wState === null || wState === void 0 ? void 0 : wState.ended) !== "boolean")
2070
- return null;
2022
+ if (wState !== null && wState !== void 0 && wState.errored) return false;
2023
+ if (typeof (wState === null || wState === void 0 ? void 0 : wState.ended) !== "boolean") return null;
2071
2024
  return wState.ended;
2072
2025
  }
2073
2026
  function isWritableFinished(stream, strict) {
2074
- if (!isWritableNodeStream(stream))
2075
- return null;
2076
- if (stream.writableFinished === true)
2077
- return true;
2027
+ if (!isWritableNodeStream(stream)) return null;
2028
+ if (stream.writableFinished === true) return true;
2078
2029
  const wState = stream._writableState;
2079
- if (wState !== null && wState !== void 0 && wState.errored)
2080
- return false;
2081
- if (typeof (wState === null || wState === void 0 ? void 0 : wState.finished) !== "boolean")
2082
- return null;
2030
+ if (wState !== null && wState !== void 0 && wState.errored) return false;
2031
+ if (typeof (wState === null || wState === void 0 ? void 0 : wState.finished) !== "boolean") return null;
2083
2032
  return !!(wState.finished || strict === false && wState.ended === true && wState.length === 0);
2084
2033
  }
2085
2034
  function isReadableEnded(stream) {
2086
- if (!isReadableNodeStream(stream))
2087
- return null;
2088
- if (stream.readableEnded === true)
2089
- return true;
2035
+ if (!isReadableNodeStream(stream)) return null;
2036
+ if (stream.readableEnded === true) return true;
2090
2037
  const rState = stream._readableState;
2091
- if (!rState || rState.errored)
2092
- return false;
2093
- if (typeof (rState === null || rState === void 0 ? void 0 : rState.ended) !== "boolean")
2094
- return null;
2038
+ if (!rState || rState.errored) return false;
2039
+ if (typeof (rState === null || rState === void 0 ? void 0 : rState.ended) !== "boolean") return null;
2095
2040
  return rState.ended;
2096
2041
  }
2097
2042
  function isReadableFinished(stream, strict) {
2098
- if (!isReadableNodeStream(stream))
2099
- return null;
2043
+ if (!isReadableNodeStream(stream)) return null;
2100
2044
  const rState = stream._readableState;
2101
- if (rState !== null && rState !== void 0 && rState.errored)
2102
- return false;
2103
- if (typeof (rState === null || rState === void 0 ? void 0 : rState.endEmitted) !== "boolean")
2104
- return null;
2045
+ if (rState !== null && rState !== void 0 && rState.errored) return false;
2046
+ if (typeof (rState === null || rState === void 0 ? void 0 : rState.endEmitted) !== "boolean") return null;
2105
2047
  return !!(rState.endEmitted || strict === false && rState.ended === true && rState.length === 0);
2106
2048
  }
2107
2049
  function isReadable(stream) {
2108
- if (stream && stream[kIsReadable] != null)
2109
- return stream[kIsReadable];
2110
- if (typeof (stream === null || stream === void 0 ? void 0 : stream.readable) !== "boolean")
2111
- return null;
2112
- if (isDestroyed(stream))
2113
- return false;
2050
+ if (stream && stream[kIsReadable] != null) return stream[kIsReadable];
2051
+ if (typeof (stream === null || stream === void 0 ? void 0 : stream.readable) !== "boolean") return null;
2052
+ if (isDestroyed(stream)) return false;
2114
2053
  return isReadableNodeStream(stream) && stream.readable && !isReadableFinished(stream);
2115
2054
  }
2116
2055
  function isWritable(stream) {
2117
- if (stream && stream[kIsWritable] != null)
2118
- return stream[kIsWritable];
2119
- if (typeof (stream === null || stream === void 0 ? void 0 : stream.writable) !== "boolean")
2120
- return null;
2121
- if (isDestroyed(stream))
2122
- return false;
2056
+ if (stream && stream[kIsWritable] != null) return stream[kIsWritable];
2057
+ if (typeof (stream === null || stream === void 0 ? void 0 : stream.writable) !== "boolean") return null;
2058
+ if (isDestroyed(stream)) return false;
2123
2059
  return isWritableNodeStream(stream) && stream.writable && !isWritableEnded(stream);
2124
2060
  }
2125
2061
  function isFinished(stream, opts) {
@@ -2185,8 +2121,7 @@ var require_utils = __commonJS({
2185
2121
  return typeof stream._consuming === "boolean" && typeof stream._dumped === "boolean" && ((_stream$req = stream.req) === null || _stream$req === void 0 ? void 0 : _stream$req.upgradeOrConnect) === void 0;
2186
2122
  }
2187
2123
  function willEmitClose(stream) {
2188
- if (!isNodeStream(stream))
2189
- return null;
2124
+ if (!isNodeStream(stream)) return null;
2190
2125
  const wState = stream._writableState;
2191
2126
  const rState = stream._readableState;
2192
2127
  const state = wState || rState;
@@ -2334,12 +2269,10 @@ var require_end_of_stream2 = __commonJS({
2334
2269
  return callback.call(stream, errored);
2335
2270
  }
2336
2271
  if (readable && !readableFinished && isReadableNodeStream(stream, true)) {
2337
- if (!isReadableFinished(stream, false))
2338
- return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE());
2272
+ if (!isReadableFinished(stream, false)) return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE());
2339
2273
  }
2340
2274
  if (writable && !writableFinished) {
2341
- if (!isWritableFinished(stream, false))
2342
- return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE());
2275
+ if (!isWritableFinished(stream, false)) return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE());
2343
2276
  }
2344
2277
  callback.call(stream);
2345
2278
  };
@@ -2396,8 +2329,7 @@ var require_end_of_stream2 = __commonJS({
2396
2329
  stream.removeListener("complete", onfinish);
2397
2330
  stream.removeListener("abort", onclose);
2398
2331
  stream.removeListener("request", onrequest);
2399
- if (stream.req)
2400
- stream.req.removeListener("finish", onfinish);
2332
+ if (stream.req) stream.req.removeListener("finish", onfinish);
2401
2333
  stream.removeListener("end", onlegacyfinish);
2402
2334
  stream.removeListener("close", onlegacyfinish);
2403
2335
  stream.removeListener("finish", onfinish);
@@ -2787,17 +2719,14 @@ var require_legacy = __commonJS({
2787
2719
  }
2788
2720
  let didOnEnd = false;
2789
2721
  function onend() {
2790
- if (didOnEnd)
2791
- return;
2722
+ if (didOnEnd) return;
2792
2723
  didOnEnd = true;
2793
2724
  dest.end();
2794
2725
  }
2795
2726
  function onclose() {
2796
- if (didOnEnd)
2797
- return;
2727
+ if (didOnEnd) return;
2798
2728
  didOnEnd = true;
2799
- if (typeof dest.destroy === "function")
2800
- dest.destroy();
2729
+ if (typeof dest.destroy === "function") dest.destroy();
2801
2730
  }
2802
2731
  function onerror(er) {
2803
2732
  cleanup();
@@ -2825,14 +2754,10 @@ var require_legacy = __commonJS({
2825
2754
  return dest;
2826
2755
  };
2827
2756
  function prependListener(emitter, event, fn) {
2828
- if (typeof emitter.prependListener === "function")
2829
- return emitter.prependListener(event, fn);
2830
- if (!emitter._events || !emitter._events[event])
2831
- emitter.on(event, fn);
2832
- else if (ArrayIsArray(emitter._events[event]))
2833
- emitter._events[event].unshift(fn);
2834
- else
2835
- emitter._events[event] = [fn, emitter._events[event]];
2757
+ if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
2758
+ if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);
2759
+ else if (ArrayIsArray(emitter._events[event])) emitter._events[event].unshift(fn);
2760
+ else emitter._events[event] = [fn, emitter._events[event]];
2836
2761
  }
2837
2762
  module2.exports = {
2838
2763
  Stream,
@@ -2910,10 +2835,8 @@ var require_buffer_list = __commonJS({
2910
2835
  data: v,
2911
2836
  next: null
2912
2837
  };
2913
- if (this.length > 0)
2914
- this.tail.next = entry;
2915
- else
2916
- this.head = entry;
2838
+ if (this.length > 0) this.tail.next = entry;
2839
+ else this.head = entry;
2917
2840
  this.tail = entry;
2918
2841
  ++this.length;
2919
2842
  }
@@ -2922,19 +2845,15 @@ var require_buffer_list = __commonJS({
2922
2845
  data: v,
2923
2846
  next: this.head
2924
2847
  };
2925
- if (this.length === 0)
2926
- this.tail = entry;
2848
+ if (this.length === 0) this.tail = entry;
2927
2849
  this.head = entry;
2928
2850
  ++this.length;
2929
2851
  }
2930
2852
  shift() {
2931
- if (this.length === 0)
2932
- return;
2853
+ if (this.length === 0) return;
2933
2854
  const ret = this.head.data;
2934
- if (this.length === 1)
2935
- this.head = this.tail = null;
2936
- else
2937
- this.head = this.head.next;
2855
+ if (this.length === 1) this.head = this.tail = null;
2856
+ else this.head = this.head.next;
2938
2857
  --this.length;
2939
2858
  return ret;
2940
2859
  }
@@ -2943,17 +2862,14 @@ var require_buffer_list = __commonJS({
2943
2862
  this.length = 0;
2944
2863
  }
2945
2864
  join(s) {
2946
- if (this.length === 0)
2947
- return "";
2865
+ if (this.length === 0) return "";
2948
2866
  let p = this.head;
2949
2867
  let ret = "" + p.data;
2950
- while ((p = p.next) !== null)
2951
- ret += s + p.data;
2868
+ while ((p = p.next) !== null) ret += s + p.data;
2952
2869
  return ret;
2953
2870
  }
2954
2871
  concat(n) {
2955
- if (this.length === 0)
2956
- return Buffer2.alloc(0);
2872
+ if (this.length === 0) return Buffer2.alloc(0);
2957
2873
  const ret = Buffer2.allocUnsafe(n >>> 0);
2958
2874
  let p = this.head;
2959
2875
  let i = 0;
@@ -2999,10 +2915,8 @@ var require_buffer_list = __commonJS({
2999
2915
  if (n === str.length) {
3000
2916
  ret += str;
3001
2917
  ++c;
3002
- if (p.next)
3003
- this.head = p.next;
3004
- else
3005
- this.head = this.tail = null;
2918
+ if (p.next) this.head = p.next;
2919
+ else this.head = this.tail = null;
3006
2920
  } else {
3007
2921
  ret += StringPrototypeSlice(str, 0, n);
3008
2922
  this.head = p;
@@ -3030,10 +2944,8 @@ var require_buffer_list = __commonJS({
3030
2944
  if (n === buf.length) {
3031
2945
  TypedArrayPrototypeSet(ret, buf, retLen - n);
3032
2946
  ++c;
3033
- if (p.next)
3034
- this.head = p.next;
3035
- else
3036
- this.head = this.tail = null;
2947
+ if (p.next) this.head = p.next;
2948
+ else this.head = this.tail = null;
3037
2949
  } else {
3038
2950
  TypedArrayPrototypeSet(ret, new Uint8Array2(buf.buffer, buf.byteOffset, n), retLen - n);
3039
2951
  this.head = p;
@@ -3274,10 +3186,8 @@ var require_readable = __commonJS({
3274
3186
  return (this.state & bit) !== 0;
3275
3187
  },
3276
3188
  set(value) {
3277
- if (value)
3278
- this.state |= bit;
3279
- else
3280
- this.state &= ~bit;
3189
+ if (value) this.state |= bit;
3190
+ else this.state &= ~bit;
3281
3191
  }
3282
3192
  };
3283
3193
  }
@@ -3319,23 +3229,18 @@ var require_readable = __commonJS({
3319
3229
  dataEmitted: makeBitMapDescriptor(kDataEmitted)
3320
3230
  });
3321
3231
  function ReadableState(options, stream, isDuplex) {
3322
- if (typeof isDuplex !== "boolean")
3323
- isDuplex = stream instanceof require_duplex();
3232
+ if (typeof isDuplex !== "boolean") isDuplex = stream instanceof require_duplex();
3324
3233
  this.state = kEmitClose | kAutoDestroy | kConstructed | kSync;
3325
- if (options && options.objectMode)
3326
- this.state |= kObjectMode;
3327
- if (isDuplex && options && options.readableObjectMode)
3328
- this.state |= kObjectMode;
3234
+ if (options && options.objectMode) this.state |= kObjectMode;
3235
+ if (isDuplex && options && options.readableObjectMode) this.state |= kObjectMode;
3329
3236
  this.highWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
3330
3237
  this.buffer = new BufferList();
3331
3238
  this.length = 0;
3332
3239
  this.pipes = [];
3333
3240
  this.flowing = null;
3334
3241
  this[kPaused] = null;
3335
- if (options && options.emitClose === false)
3336
- this.state &= ~kEmitClose;
3337
- if (options && options.autoDestroy === false)
3338
- this.state &= ~kAutoDestroy;
3242
+ if (options && options.emitClose === false) this.state &= ~kEmitClose;
3243
+ if (options && options.autoDestroy === false) this.state &= ~kAutoDestroy;
3339
3244
  this.errored = null;
3340
3245
  this.defaultEncoding = options && options.defaultEncoding || "utf8";
3341
3246
  this.awaitDrainWriters = null;
@@ -3347,19 +3252,14 @@ var require_readable = __commonJS({
3347
3252
  }
3348
3253
  }
3349
3254
  function Readable(options) {
3350
- if (!(this instanceof Readable))
3351
- return new Readable(options);
3255
+ if (!(this instanceof Readable)) return new Readable(options);
3352
3256
  const isDuplex = this instanceof require_duplex();
3353
3257
  this._readableState = new ReadableState(options, this, isDuplex);
3354
3258
  if (options) {
3355
- if (typeof options.read === "function")
3356
- this._read = options.read;
3357
- if (typeof options.destroy === "function")
3358
- this._destroy = options.destroy;
3359
- if (typeof options.construct === "function")
3360
- this._construct = options.construct;
3361
- if (options.signal && !isDuplex)
3362
- addAbortSignal(options.signal, this);
3259
+ if (typeof options.read === "function") this._read = options.read;
3260
+ if (typeof options.destroy === "function") this._destroy = options.destroy;
3261
+ if (typeof options.construct === "function") this._construct = options.construct;
3262
+ if (options.signal && !isDuplex) addAbortSignal(options.signal, this);
3363
3263
  }
3364
3264
  Stream.call(this, options);
3365
3265
  destroyImpl.construct(this, () => {
@@ -3421,12 +3321,9 @@ var require_readable = __commonJS({
3421
3321
  onEofChunk(stream, state);
3422
3322
  } else if ((state.state & kObjectMode) !== 0 || chunk && chunk.length > 0) {
3423
3323
  if (addToFront) {
3424
- if ((state.state & kEndEmitted) !== 0)
3425
- errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());
3426
- else if (state.destroyed || state.errored)
3427
- return false;
3428
- else
3429
- addChunk(stream, state, chunk, true);
3324
+ if ((state.state & kEndEmitted) !== 0) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());
3325
+ else if (state.destroyed || state.errored) return false;
3326
+ else addChunk(stream, state, chunk, true);
3430
3327
  } else if (state.ended) {
3431
3328
  errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF());
3432
3329
  } else if (state.destroyed || state.errored) {
@@ -3435,10 +3332,8 @@ var require_readable = __commonJS({
3435
3332
  state.state &= ~kReading;
3436
3333
  if (state.decoder && !encoding) {
3437
3334
  chunk = state.decoder.write(chunk);
3438
- if (state.objectMode || chunk.length !== 0)
3439
- addChunk(stream, state, chunk, false);
3440
- else
3441
- maybeReadMore(stream, state);
3335
+ if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);
3336
+ else maybeReadMore(stream, state);
3442
3337
  } else {
3443
3338
  addChunk(stream, state, chunk, false);
3444
3339
  }
@@ -3460,12 +3355,9 @@ var require_readable = __commonJS({
3460
3355
  stream.emit("data", chunk);
3461
3356
  } else {
3462
3357
  state.length += state.objectMode ? 1 : chunk.length;
3463
- if (addToFront)
3464
- state.buffer.unshift(chunk);
3465
- else
3466
- state.buffer.push(chunk);
3467
- if ((state.state & kNeedReadable) !== 0)
3468
- emitReadable(stream);
3358
+ if (addToFront) state.buffer.unshift(chunk);
3359
+ else state.buffer.push(chunk);
3360
+ if ((state.state & kNeedReadable) !== 0) emitReadable(stream);
3469
3361
  }
3470
3362
  maybeReadMore(stream, state);
3471
3363
  }
@@ -3483,8 +3375,7 @@ var require_readable = __commonJS({
3483
3375
  content += decoder.write(data);
3484
3376
  }
3485
3377
  buffer.clear();
3486
- if (content !== "")
3487
- buffer.push(content);
3378
+ if (content !== "") buffer.push(content);
3488
3379
  this._readableState.length = content.length;
3489
3380
  return this;
3490
3381
  };
@@ -3504,17 +3395,13 @@ var require_readable = __commonJS({
3504
3395
  return n;
3505
3396
  }
3506
3397
  function howMuchToRead(n, state) {
3507
- if (n <= 0 || state.length === 0 && state.ended)
3508
- return 0;
3509
- if ((state.state & kObjectMode) !== 0)
3510
- return 1;
3398
+ if (n <= 0 || state.length === 0 && state.ended) return 0;
3399
+ if ((state.state & kObjectMode) !== 0) return 1;
3511
3400
  if (NumberIsNaN(n)) {
3512
- if (state.flowing && state.length)
3513
- return state.buffer.first().length;
3401
+ if (state.flowing && state.length) return state.buffer.first().length;
3514
3402
  return state.length;
3515
3403
  }
3516
- if (n <= state.length)
3517
- return n;
3404
+ if (n <= state.length) return n;
3518
3405
  return state.ended ? state.length : 0;
3519
3406
  }
3520
3407
  Readable.prototype.read = function(n) {
@@ -3526,22 +3413,17 @@ var require_readable = __commonJS({
3526
3413
  }
3527
3414
  const state = this._readableState;
3528
3415
  const nOrig = n;
3529
- if (n > state.highWaterMark)
3530
- state.highWaterMark = computeNewHighWaterMark(n);
3531
- if (n !== 0)
3532
- state.state &= ~kEmittedReadable;
3416
+ if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
3417
+ if (n !== 0) state.state &= ~kEmittedReadable;
3533
3418
  if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {
3534
3419
  debug("read: emitReadable", state.length, state.ended);
3535
- if (state.length === 0 && state.ended)
3536
- endReadable(this);
3537
- else
3538
- emitReadable(this);
3420
+ if (state.length === 0 && state.ended) endReadable(this);
3421
+ else emitReadable(this);
3539
3422
  return null;
3540
3423
  }
3541
3424
  n = howMuchToRead(n, state);
3542
3425
  if (n === 0 && state.ended) {
3543
- if (state.length === 0)
3544
- endReadable(this);
3426
+ if (state.length === 0) endReadable(this);
3545
3427
  return null;
3546
3428
  }
3547
3429
  let doRead = (state.state & kNeedReadable) !== 0;
@@ -3556,22 +3438,18 @@ var require_readable = __commonJS({
3556
3438
  } else if (doRead) {
3557
3439
  debug("do read");
3558
3440
  state.state |= kReading | kSync;
3559
- if (state.length === 0)
3560
- state.state |= kNeedReadable;
3441
+ if (state.length === 0) state.state |= kNeedReadable;
3561
3442
  try {
3562
3443
  this._read(state.highWaterMark);
3563
3444
  } catch (err) {
3564
3445
  errorOrDestroy(this, err);
3565
3446
  }
3566
3447
  state.state &= ~kSync;
3567
- if (!state.reading)
3568
- n = howMuchToRead(nOrig, state);
3448
+ if (!state.reading) n = howMuchToRead(nOrig, state);
3569
3449
  }
3570
3450
  let ret;
3571
- if (n > 0)
3572
- ret = fromList(n, state);
3573
- else
3574
- ret = null;
3451
+ if (n > 0) ret = fromList(n, state);
3452
+ else ret = null;
3575
3453
  if (ret === null) {
3576
3454
  state.needReadable = state.length <= state.highWaterMark;
3577
3455
  n = 0;
@@ -3584,10 +3462,8 @@ var require_readable = __commonJS({
3584
3462
  }
3585
3463
  }
3586
3464
  if (state.length === 0) {
3587
- if (!state.ended)
3588
- state.needReadable = true;
3589
- if (nOrig !== n && state.ended)
3590
- endReadable(this);
3465
+ if (!state.ended) state.needReadable = true;
3466
+ if (nOrig !== n && state.ended) endReadable(this);
3591
3467
  }
3592
3468
  if (ret !== null && !state.errorEmitted && !state.closeEmitted) {
3593
3469
  state.dataEmitted = true;
@@ -3597,8 +3473,7 @@ var require_readable = __commonJS({
3597
3473
  };
3598
3474
  function onEofChunk(stream, state) {
3599
3475
  debug("onEofChunk");
3600
- if (state.ended)
3601
- return;
3476
+ if (state.ended) return;
3602
3477
  if (state.decoder) {
3603
3478
  const chunk = state.decoder.end();
3604
3479
  if (chunk && chunk.length) {
@@ -3667,10 +3542,8 @@ var require_readable = __commonJS({
3667
3542
  debug("pipe count=%d opts=%j", state.pipes.length, pipeOpts);
3668
3543
  const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process2.stdout && dest !== process2.stderr;
3669
3544
  const endFn = doEnd ? onend : unpipe;
3670
- if (state.endEmitted)
3671
- process2.nextTick(endFn);
3672
- else
3673
- src.once("end", endFn);
3545
+ if (state.endEmitted) process2.nextTick(endFn);
3546
+ else src.once("end", endFn);
3674
3547
  dest.on("unpipe", onunpipe);
3675
3548
  function onunpipe(readable, unpipeInfo) {
3676
3549
  debug("onunpipe");
@@ -3700,8 +3573,7 @@ var require_readable = __commonJS({
3700
3573
  src.removeListener("end", unpipe);
3701
3574
  src.removeListener("data", ondata);
3702
3575
  cleanedUp = true;
3703
- if (ondrain && state.awaitDrainWriters && (!dest._writableState || dest._writableState.needDrain))
3704
- ondrain();
3576
+ if (ondrain && state.awaitDrainWriters && (!dest._writableState || dest._writableState.needDrain)) ondrain();
3705
3577
  }
3706
3578
  function pause() {
3707
3579
  if (!cleanedUp) {
@@ -3787,8 +3659,7 @@ var require_readable = __commonJS({
3787
3659
  const unpipeInfo = {
3788
3660
  hasUnpiped: false
3789
3661
  };
3790
- if (state.pipes.length === 0)
3791
- return this;
3662
+ if (state.pipes.length === 0) return this;
3792
3663
  if (!dest) {
3793
3664
  const dests = state.pipes;
3794
3665
  state.pipes = [];
@@ -3800,11 +3671,9 @@ var require_readable = __commonJS({
3800
3671
  return this;
3801
3672
  }
3802
3673
  const index = ArrayPrototypeIndexOf(state.pipes, dest);
3803
- if (index === -1)
3804
- return this;
3674
+ if (index === -1) return this;
3805
3675
  state.pipes.splice(index, 1);
3806
- if (state.pipes.length === 0)
3807
- this.pause();
3676
+ if (state.pipes.length === 0) this.pause();
3808
3677
  dest.emit("unpipe", this, unpipeInfo);
3809
3678
  return this;
3810
3679
  };
@@ -3813,8 +3682,7 @@ var require_readable = __commonJS({
3813
3682
  const state = this._readableState;
3814
3683
  if (ev === "data") {
3815
3684
  state.readableListening = this.listenerCount("readable") > 0;
3816
- if (state.flowing !== false)
3817
- this.resume();
3685
+ if (state.flowing !== false) this.resume();
3818
3686
  } else if (ev === "readable") {
3819
3687
  if (!state.endEmitted && !state.readableListening) {
3820
3688
  state.readableListening = state.needReadable = true;
@@ -3885,8 +3753,7 @@ var require_readable = __commonJS({
3885
3753
  state.resumeScheduled = false;
3886
3754
  stream.emit("resume");
3887
3755
  flow(stream);
3888
- if (state.flowing && !state.reading)
3889
- stream.read(0);
3756
+ if (state.flowing && !state.reading) stream.read(0);
3890
3757
  }
3891
3758
  Readable.prototype.pause = function() {
3892
3759
  debug("call pause flowing=%j", this._readableState.flowing);
@@ -3901,8 +3768,7 @@ var require_readable = __commonJS({
3901
3768
  function flow(stream) {
3902
3769
  const state = stream._readableState;
3903
3770
  debug("flow", state.flowing);
3904
- while (state.flowing && stream.read() !== null)
3905
- ;
3771
+ while (state.flowing && stream.read() !== null) ;
3906
3772
  }
3907
3773
  Readable.prototype.wrap = function(stream) {
3908
3774
  let paused = false;
@@ -4135,18 +4001,13 @@ var require_readable = __commonJS({
4135
4001
  });
4136
4002
  Readable._fromList = fromList;
4137
4003
  function fromList(n, state) {
4138
- if (state.length === 0)
4139
- return null;
4004
+ if (state.length === 0) return null;
4140
4005
  let ret;
4141
- if (state.objectMode)
4142
- ret = state.buffer.shift();
4006
+ if (state.objectMode) ret = state.buffer.shift();
4143
4007
  else if (!n || n >= state.length) {
4144
- if (state.decoder)
4145
- ret = state.buffer.join("");
4146
- else if (state.buffer.length === 1)
4147
- ret = state.buffer.first();
4148
- else
4149
- ret = state.buffer.concat(state.length);
4008
+ if (state.decoder) ret = state.buffer.join("");
4009
+ else if (state.buffer.length === 1) ret = state.buffer.first();
4010
+ else ret = state.buffer.concat(state.length);
4150
4011
  state.buffer.clear();
4151
4012
  } else {
4152
4013
  ret = state.buffer.consume(n, state.decoder);
@@ -4190,8 +4051,7 @@ var require_readable = __commonJS({
4190
4051
  };
4191
4052
  var webStreamsAdapters;
4192
4053
  function lazyWebStreams() {
4193
- if (webStreamsAdapters === void 0)
4194
- webStreamsAdapters = {};
4054
+ if (webStreamsAdapters === void 0) webStreamsAdapters = {};
4195
4055
  return webStreamsAdapters;
4196
4056
  }
4197
4057
  Readable.fromWeb = function(readableStream, options) {
@@ -4255,11 +4115,9 @@ var require_writable = __commonJS({
4255
4115
  }
4256
4116
  var kOnFinished = Symbol2("kOnFinished");
4257
4117
  function WritableState(options, stream, isDuplex) {
4258
- if (typeof isDuplex !== "boolean")
4259
- isDuplex = stream instanceof require_duplex();
4118
+ if (typeof isDuplex !== "boolean") isDuplex = stream instanceof require_duplex();
4260
4119
  this.objectMode = !!(options && options.objectMode);
4261
- if (isDuplex)
4262
- this.objectMode = this.objectMode || !!(options && options.writableObjectMode);
4120
+ if (isDuplex) this.objectMode = this.objectMode || !!(options && options.writableObjectMode);
4263
4121
  this.highWaterMark = options ? getHighWaterMark(this, options, "writableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
4264
4122
  this.finalCalled = false;
4265
4123
  this.needDrain = false;
@@ -4308,22 +4166,15 @@ var require_writable = __commonJS({
4308
4166
  });
4309
4167
  function Writable(options) {
4310
4168
  const isDuplex = this instanceof require_duplex();
4311
- if (!isDuplex && !FunctionPrototypeSymbolHasInstance(Writable, this))
4312
- return new Writable(options);
4169
+ if (!isDuplex && !FunctionPrototypeSymbolHasInstance(Writable, this)) return new Writable(options);
4313
4170
  this._writableState = new WritableState(options, this, isDuplex);
4314
4171
  if (options) {
4315
- if (typeof options.write === "function")
4316
- this._write = options.write;
4317
- if (typeof options.writev === "function")
4318
- this._writev = options.writev;
4319
- if (typeof options.destroy === "function")
4320
- this._destroy = options.destroy;
4321
- if (typeof options.final === "function")
4322
- this._final = options.final;
4323
- if (typeof options.construct === "function")
4324
- this._construct = options.construct;
4325
- if (options.signal)
4326
- addAbortSignal(options.signal, this);
4172
+ if (typeof options.write === "function") this._write = options.write;
4173
+ if (typeof options.writev === "function") this._writev = options.writev;
4174
+ if (typeof options.destroy === "function") this._destroy = options.destroy;
4175
+ if (typeof options.final === "function") this._final = options.final;
4176
+ if (typeof options.construct === "function") this._construct = options.construct;
4177
+ if (options.signal) addAbortSignal(options.signal, this);
4327
4178
  }
4328
4179
  Stream.call(this, options);
4329
4180
  destroyImpl.construct(this, () => {
@@ -4337,10 +4188,8 @@ var require_writable = __commonJS({
4337
4188
  ObjectDefineProperty(Writable, SymbolHasInstance, {
4338
4189
  __proto__: null,
4339
4190
  value: function(object) {
4340
- if (FunctionPrototypeSymbolHasInstance(this, object))
4341
- return true;
4342
- if (this !== Writable)
4343
- return false;
4191
+ if (FunctionPrototypeSymbolHasInstance(this, object)) return true;
4192
+ if (this !== Writable) return false;
4344
4193
  return object && object._writableState instanceof WritableState;
4345
4194
  }
4346
4195
  });
@@ -4353,12 +4202,9 @@ var require_writable = __commonJS({
4353
4202
  cb = encoding;
4354
4203
  encoding = state.defaultEncoding;
4355
4204
  } else {
4356
- if (!encoding)
4357
- encoding = state.defaultEncoding;
4358
- else if (encoding !== "buffer" && !Buffer2.isEncoding(encoding))
4359
- throw new ERR_UNKNOWN_ENCODING(encoding);
4360
- if (typeof cb !== "function")
4361
- cb = nop;
4205
+ if (!encoding) encoding = state.defaultEncoding;
4206
+ else if (encoding !== "buffer" && !Buffer2.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding);
4207
+ if (typeof cb !== "function") cb = nop;
4362
4208
  }
4363
4209
  if (chunk === null) {
4364
4210
  throw new ERR_STREAM_NULL_VALUES();
@@ -4401,15 +4247,12 @@ var require_writable = __commonJS({
4401
4247
  const state = this._writableState;
4402
4248
  if (state.corked) {
4403
4249
  state.corked--;
4404
- if (!state.writing)
4405
- clearBuffer(this, state);
4250
+ if (!state.writing) clearBuffer(this, state);
4406
4251
  }
4407
4252
  };
4408
4253
  Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
4409
- if (typeof encoding === "string")
4410
- encoding = StringPrototypeToLowerCase(encoding);
4411
- if (!Buffer2.isEncoding(encoding))
4412
- throw new ERR_UNKNOWN_ENCODING(encoding);
4254
+ if (typeof encoding === "string") encoding = StringPrototypeToLowerCase(encoding);
4255
+ if (!Buffer2.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding);
4413
4256
  this._writableState.defaultEncoding = encoding;
4414
4257
  return this;
4415
4258
  };
@@ -4417,8 +4260,7 @@ var require_writable = __commonJS({
4417
4260
  const len = state.objectMode ? 1 : chunk.length;
4418
4261
  state.length += len;
4419
4262
  const ret = state.length < state.highWaterMark;
4420
- if (!ret)
4421
- state.needDrain = true;
4263
+ if (!ret) state.needDrain = true;
4422
4264
  if (state.writing || state.corked || state.errored || !state.constructed) {
4423
4265
  state.buffered.push({
4424
4266
  chunk,
@@ -4446,12 +4288,9 @@ var require_writable = __commonJS({
4446
4288
  state.writecb = cb;
4447
4289
  state.writing = true;
4448
4290
  state.sync = true;
4449
- if (state.destroyed)
4450
- state.onwrite(new ERR_STREAM_DESTROYED("write"));
4451
- else if (writev)
4452
- stream._writev(chunk, state.onwrite);
4453
- else
4454
- stream._write(chunk, encoding, state.onwrite);
4291
+ if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED("write"));
4292
+ else if (writev) stream._writev(chunk, state.onwrite);
4293
+ else stream._write(chunk, encoding, state.onwrite);
4455
4294
  state.sync = false;
4456
4295
  }
4457
4296
  function onwriteError(stream, state, er, cb) {
@@ -4788,8 +4627,7 @@ var require_writable = __commonJS({
4788
4627
  __proto__: null,
4789
4628
  get() {
4790
4629
  const wState = this._writableState;
4791
- if (!wState)
4792
- return false;
4630
+ if (!wState) return false;
4793
4631
  return !wState.destroyed && !wState.ending && wState.needDrain;
4794
4632
  }
4795
4633
  },
@@ -4844,8 +4682,7 @@ var require_writable = __commonJS({
4844
4682
  };
4845
4683
  var webStreamsAdapters;
4846
4684
  function lazyWebStreams() {
4847
- if (webStreamsAdapters === void 0)
4848
- webStreamsAdapters = {};
4685
+ if (webStreamsAdapters === void 0) webStreamsAdapters = {};
4849
4686
  return webStreamsAdapters;
4850
4687
  }
4851
4688
  Writable.fromWeb = function(writableStream, options) {
@@ -5055,8 +4892,7 @@ var require_duplexify = __commonJS({
5055
4892
  promise = null;
5056
4893
  const { chunk, done, cb } = await _promise;
5057
4894
  process2.nextTick(cb);
5058
- if (done)
5059
- return;
4895
+ if (done) return;
5060
4896
  if (signal.aborted)
5061
4897
  throw new AbortError(void 0, {
5062
4898
  cause: signal.reason
@@ -5224,13 +5060,11 @@ var require_duplex = __commonJS({
5224
5060
  const keys = ObjectKeys(Writable.prototype);
5225
5061
  for (let i = 0; i < keys.length; i++) {
5226
5062
  const method = keys[i];
5227
- if (!Duplex.prototype[method])
5228
- Duplex.prototype[method] = Writable.prototype[method];
5063
+ if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
5229
5064
  }
5230
5065
  }
5231
5066
  function Duplex(options) {
5232
- if (!(this instanceof Duplex))
5233
- return new Duplex(options);
5067
+ if (!(this instanceof Duplex)) return new Duplex(options);
5234
5068
  Readable.call(this, options);
5235
5069
  Writable.call(this, options);
5236
5070
  if (options) {
@@ -5305,8 +5139,7 @@ var require_duplex = __commonJS({
5305
5139
  });
5306
5140
  var webStreamsAdapters;
5307
5141
  function lazyWebStreams() {
5308
- if (webStreamsAdapters === void 0)
5309
- webStreamsAdapters = {};
5142
+ if (webStreamsAdapters === void 0) webStreamsAdapters = {};
5310
5143
  return webStreamsAdapters;
5311
5144
  }
5312
5145
  Duplex.fromWeb = function(pair, options) {
@@ -5338,8 +5171,7 @@ var require_transform = __commonJS({
5338
5171
  ObjectSetPrototypeOf(Transform2, Duplex);
5339
5172
  var kCallback = Symbol2("kCallback");
5340
5173
  function Transform2(options) {
5341
- if (!(this instanceof Transform2))
5342
- return new Transform2(options);
5174
+ if (!(this instanceof Transform2)) return new Transform2(options);
5343
5175
  const readableHighWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", true) : null;
5344
5176
  if (readableHighWaterMark === 0) {
5345
5177
  options = {
@@ -5357,10 +5189,8 @@ var require_transform = __commonJS({
5357
5189
  this._readableState.sync = false;
5358
5190
  this[kCallback] = null;
5359
5191
  if (options) {
5360
- if (typeof options.transform === "function")
5361
- this._transform = options.transform;
5362
- if (typeof options.flush === "function")
5363
- this._flush = options.flush;
5192
+ if (typeof options.transform === "function") this._transform = options.transform;
5193
+ if (typeof options.flush === "function") this._flush = options.flush;
5364
5194
  }
5365
5195
  this.on("prefinish", prefinish);
5366
5196
  }
@@ -5440,8 +5270,7 @@ var require_passthrough = __commonJS({
5440
5270
  ObjectSetPrototypeOf(PassThrough.prototype, Transform2.prototype);
5441
5271
  ObjectSetPrototypeOf(PassThrough, Transform2);
5442
5272
  function PassThrough(options) {
5443
- if (!(this instanceof PassThrough))
5444
- return new PassThrough(options);
5273
+ if (!(this instanceof PassThrough)) return new PassThrough(options);
5445
5274
  Transform2.call(this, options);
5446
5275
  }
5447
5276
  PassThrough.prototype._transform = function(chunk, encoding, cb) {
@@ -5502,8 +5331,7 @@ var require_pipeline = __commonJS({
5502
5331
  );
5503
5332
  return {
5504
5333
  destroy: (err) => {
5505
- if (finished)
5506
- return;
5334
+ if (finished) return;
5507
5335
  finished = true;
5508
5336
  destroyImpl.destroyer(stream, err || new ERR_STREAM_DESTROYED("pipe"));
5509
5337
  },
@@ -6293,8 +6121,7 @@ var require_operators = __commonJS({
6293
6121
  await fn(value, options2);
6294
6122
  return kEmpty;
6295
6123
  }
6296
- for await (const unused of map.call(this, forEachFn, options))
6297
- ;
6124
+ for await (const unused of map.call(this, forEachFn, options)) ;
6298
6125
  }
6299
6126
  function filter(fn, options) {
6300
6127
  if (typeof fn !== "function") {
@@ -6719,8 +6546,7 @@ var require_split2 = __commonJS({
6719
6546
  if (this.overflow) {
6720
6547
  const buf = this[kDecoder].write(chunk);
6721
6548
  list = buf.split(this.matcher);
6722
- if (list.length === 1)
6723
- return cb();
6549
+ if (list.length === 1) return cb();
6724
6550
  list.shift();
6725
6551
  this.overflow = false;
6726
6552
  } else {
@@ -6935,8 +6761,7 @@ var require_util2 = __commonJS({
6935
6761
  }
6936
6762
  };
6937
6763
  var validateFunction = (value, name) => {
6938
- if (typeof value !== "function")
6939
- throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
6764
+ if (typeof value !== "function") throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
6940
6765
  };
6941
6766
  var AggregateError = class extends Error {
6942
6767
  constructor(errors) {
@@ -7467,12 +7292,9 @@ var require_validators2 = __commonJS({
7467
7292
  return value;
7468
7293
  }
7469
7294
  var validateInteger = hideStackFrames((value, name, min = NumberMIN_SAFE_INTEGER, max = NumberMAX_SAFE_INTEGER) => {
7470
- if (typeof value !== "number")
7471
- throw new ERR_INVALID_ARG_TYPE2(name, "number", value);
7472
- if (!NumberIsInteger(value))
7473
- throw new ERR_OUT_OF_RANGE(name, "an integer", value);
7474
- if (value < min || value > max)
7475
- throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
7295
+ if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE2(name, "number", value);
7296
+ if (!NumberIsInteger(value)) throw new ERR_OUT_OF_RANGE(name, "an integer", value);
7297
+ if (value < min || value > max) throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
7476
7298
  });
7477
7299
  var validateInt32 = hideStackFrames((value, name, min = -2147483648, max = 2147483647) => {
7478
7300
  if (typeof value !== "number") {
@@ -7499,12 +7321,10 @@ var require_validators2 = __commonJS({
7499
7321
  }
7500
7322
  });
7501
7323
  function validateString(value, name) {
7502
- if (typeof value !== "string")
7503
- throw new ERR_INVALID_ARG_TYPE2(name, "string", value);
7324
+ if (typeof value !== "string") throw new ERR_INVALID_ARG_TYPE2(name, "string", value);
7504
7325
  }
7505
7326
  function validateNumber(value, name, min = void 0, max) {
7506
- if (typeof value !== "number")
7507
- throw new ERR_INVALID_ARG_TYPE2(name, "number", value);
7327
+ if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE2(name, "number", value);
7508
7328
  if (min != null && value < min || max != null && value > max || (min != null || max != null) && NumberIsNaN(value)) {
7509
7329
  throw new ERR_OUT_OF_RANGE(
7510
7330
  name,
@@ -7524,8 +7344,7 @@ var require_validators2 = __commonJS({
7524
7344
  }
7525
7345
  });
7526
7346
  function validateBoolean(value, name) {
7527
- if (typeof value !== "boolean")
7528
- throw new ERR_INVALID_ARG_TYPE2(name, "boolean", value);
7347
+ if (typeof value !== "boolean") throw new ERR_INVALID_ARG_TYPE2(name, "boolean", value);
7529
7348
  }
7530
7349
  function getOwnPropertyValueOrDefault(options, key, defaultValue) {
7531
7350
  return options == null || !ObjectPrototypeHasOwnProperty(options, key) ? defaultValue : options[key];
@@ -7608,16 +7427,13 @@ var require_validators2 = __commonJS({
7608
7427
  }
7609
7428
  });
7610
7429
  var validateFunction = hideStackFrames((value, name) => {
7611
- if (typeof value !== "function")
7612
- throw new ERR_INVALID_ARG_TYPE2(name, "Function", value);
7430
+ if (typeof value !== "function") throw new ERR_INVALID_ARG_TYPE2(name, "Function", value);
7613
7431
  });
7614
7432
  var validatePlainFunction = hideStackFrames((value, name) => {
7615
- if (typeof value !== "function" || isAsyncFunction(value))
7616
- throw new ERR_INVALID_ARG_TYPE2(name, "Function", value);
7433
+ if (typeof value !== "function" || isAsyncFunction(value)) throw new ERR_INVALID_ARG_TYPE2(name, "Function", value);
7617
7434
  });
7618
7435
  var validateUndefined = hideStackFrames((value, name) => {
7619
- if (value !== void 0)
7620
- throw new ERR_INVALID_ARG_TYPE2(name, "undefined", value);
7436
+ if (value !== void 0) throw new ERR_INVALID_ARG_TYPE2(name, "undefined", value);
7621
7437
  });
7622
7438
  function validateUnion(value, name, union) {
7623
7439
  if (!ArrayPrototypeIncludes(union, value)) {
@@ -7731,84 +7547,59 @@ var require_utils2 = __commonJS({
7731
7547
  return isReadableStream(obj) || isWritableStream(obj) || isTransformStream(obj);
7732
7548
  }
7733
7549
  function isIterable(obj, isAsync) {
7734
- if (obj == null)
7735
- return false;
7736
- if (isAsync === true)
7737
- return typeof obj[SymbolAsyncIterator] === "function";
7738
- if (isAsync === false)
7739
- return typeof obj[SymbolIterator] === "function";
7550
+ if (obj == null) return false;
7551
+ if (isAsync === true) return typeof obj[SymbolAsyncIterator] === "function";
7552
+ if (isAsync === false) return typeof obj[SymbolIterator] === "function";
7740
7553
  return typeof obj[SymbolAsyncIterator] === "function" || typeof obj[SymbolIterator] === "function";
7741
7554
  }
7742
7555
  function isDestroyed(stream) {
7743
- if (!isNodeStream(stream))
7744
- return null;
7556
+ if (!isNodeStream(stream)) return null;
7745
7557
  const wState = stream._writableState;
7746
7558
  const rState = stream._readableState;
7747
7559
  const state = wState || rState;
7748
7560
  return !!(stream.destroyed || stream[kIsDestroyed] || state !== null && state !== void 0 && state.destroyed);
7749
7561
  }
7750
7562
  function isWritableEnded(stream) {
7751
- if (!isWritableNodeStream(stream))
7752
- return null;
7753
- if (stream.writableEnded === true)
7754
- return true;
7563
+ if (!isWritableNodeStream(stream)) return null;
7564
+ if (stream.writableEnded === true) return true;
7755
7565
  const wState = stream._writableState;
7756
- if (wState !== null && wState !== void 0 && wState.errored)
7757
- return false;
7758
- if (typeof (wState === null || wState === void 0 ? void 0 : wState.ended) !== "boolean")
7759
- return null;
7566
+ if (wState !== null && wState !== void 0 && wState.errored) return false;
7567
+ if (typeof (wState === null || wState === void 0 ? void 0 : wState.ended) !== "boolean") return null;
7760
7568
  return wState.ended;
7761
7569
  }
7762
7570
  function isWritableFinished(stream, strict) {
7763
- if (!isWritableNodeStream(stream))
7764
- return null;
7765
- if (stream.writableFinished === true)
7766
- return true;
7571
+ if (!isWritableNodeStream(stream)) return null;
7572
+ if (stream.writableFinished === true) return true;
7767
7573
  const wState = stream._writableState;
7768
- if (wState !== null && wState !== void 0 && wState.errored)
7769
- return false;
7770
- if (typeof (wState === null || wState === void 0 ? void 0 : wState.finished) !== "boolean")
7771
- return null;
7574
+ if (wState !== null && wState !== void 0 && wState.errored) return false;
7575
+ if (typeof (wState === null || wState === void 0 ? void 0 : wState.finished) !== "boolean") return null;
7772
7576
  return !!(wState.finished || strict === false && wState.ended === true && wState.length === 0);
7773
7577
  }
7774
7578
  function isReadableEnded(stream) {
7775
- if (!isReadableNodeStream(stream))
7776
- return null;
7777
- if (stream.readableEnded === true)
7778
- return true;
7579
+ if (!isReadableNodeStream(stream)) return null;
7580
+ if (stream.readableEnded === true) return true;
7779
7581
  const rState = stream._readableState;
7780
- if (!rState || rState.errored)
7781
- return false;
7782
- if (typeof (rState === null || rState === void 0 ? void 0 : rState.ended) !== "boolean")
7783
- return null;
7582
+ if (!rState || rState.errored) return false;
7583
+ if (typeof (rState === null || rState === void 0 ? void 0 : rState.ended) !== "boolean") return null;
7784
7584
  return rState.ended;
7785
7585
  }
7786
7586
  function isReadableFinished(stream, strict) {
7787
- if (!isReadableNodeStream(stream))
7788
- return null;
7587
+ if (!isReadableNodeStream(stream)) return null;
7789
7588
  const rState = stream._readableState;
7790
- if (rState !== null && rState !== void 0 && rState.errored)
7791
- return false;
7792
- if (typeof (rState === null || rState === void 0 ? void 0 : rState.endEmitted) !== "boolean")
7793
- return null;
7589
+ if (rState !== null && rState !== void 0 && rState.errored) return false;
7590
+ if (typeof (rState === null || rState === void 0 ? void 0 : rState.endEmitted) !== "boolean") return null;
7794
7591
  return !!(rState.endEmitted || strict === false && rState.ended === true && rState.length === 0);
7795
7592
  }
7796
7593
  function isReadable(stream) {
7797
- if (stream && stream[kIsReadable] != null)
7798
- return stream[kIsReadable];
7799
- if (typeof (stream === null || stream === void 0 ? void 0 : stream.readable) !== "boolean")
7800
- return null;
7801
- if (isDestroyed(stream))
7802
- return false;
7594
+ if (stream && stream[kIsReadable] != null) return stream[kIsReadable];
7595
+ if (typeof (stream === null || stream === void 0 ? void 0 : stream.readable) !== "boolean") return null;
7596
+ if (isDestroyed(stream)) return false;
7803
7597
  return isReadableNodeStream(stream) && stream.readable && !isReadableFinished(stream);
7804
7598
  }
7805
7599
  function isWritable(stream) {
7806
- if (stream && stream[kIsWritable] != null)
7807
- return stream[kIsWritable];
7808
- if (typeof (stream === null || stream === void 0 ? void 0 : stream.writable) !== "boolean")
7809
- return null;
7810
- if (isDestroyed(stream))
7811
- return false;
7600
+ if (stream && stream[kIsWritable] != null) return stream[kIsWritable];
7601
+ if (typeof (stream === null || stream === void 0 ? void 0 : stream.writable) !== "boolean") return null;
7602
+ if (isDestroyed(stream)) return false;
7812
7603
  return isWritableNodeStream(stream) && stream.writable && !isWritableEnded(stream);
7813
7604
  }
7814
7605
  function isFinished(stream, opts) {
@@ -7874,8 +7665,7 @@ var require_utils2 = __commonJS({
7874
7665
  return typeof stream._consuming === "boolean" && typeof stream._dumped === "boolean" && ((_stream$req = stream.req) === null || _stream$req === void 0 ? void 0 : _stream$req.upgradeOrConnect) === void 0;
7875
7666
  }
7876
7667
  function willEmitClose(stream) {
7877
- if (!isNodeStream(stream))
7878
- return null;
7668
+ if (!isNodeStream(stream)) return null;
7879
7669
  const wState = stream._writableState;
7880
7670
  const rState = stream._readableState;
7881
7671
  const state = wState || rState;
@@ -8023,12 +7813,10 @@ var require_end_of_stream3 = __commonJS({
8023
7813
  return callback.call(stream, errored);
8024
7814
  }
8025
7815
  if (readable && !readableFinished && isReadableNodeStream(stream, true)) {
8026
- if (!isReadableFinished(stream, false))
8027
- return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE());
7816
+ if (!isReadableFinished(stream, false)) return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE());
8028
7817
  }
8029
7818
  if (writable && !writableFinished) {
8030
- if (!isWritableFinished(stream, false))
8031
- return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE());
7819
+ if (!isWritableFinished(stream, false)) return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE());
8032
7820
  }
8033
7821
  callback.call(stream);
8034
7822
  };
@@ -8085,8 +7873,7 @@ var require_end_of_stream3 = __commonJS({
8085
7873
  stream.removeListener("complete", onfinish);
8086
7874
  stream.removeListener("abort", onclose);
8087
7875
  stream.removeListener("request", onrequest);
8088
- if (stream.req)
8089
- stream.req.removeListener("finish", onfinish);
7876
+ if (stream.req) stream.req.removeListener("finish", onfinish);
8090
7877
  stream.removeListener("end", onlegacyfinish);
8091
7878
  stream.removeListener("close", onlegacyfinish);
8092
7879
  stream.removeListener("finish", onfinish);
@@ -8476,17 +8263,14 @@ var require_legacy2 = __commonJS({
8476
8263
  }
8477
8264
  let didOnEnd = false;
8478
8265
  function onend() {
8479
- if (didOnEnd)
8480
- return;
8266
+ if (didOnEnd) return;
8481
8267
  didOnEnd = true;
8482
8268
  dest.end();
8483
8269
  }
8484
8270
  function onclose() {
8485
- if (didOnEnd)
8486
- return;
8271
+ if (didOnEnd) return;
8487
8272
  didOnEnd = true;
8488
- if (typeof dest.destroy === "function")
8489
- dest.destroy();
8273
+ if (typeof dest.destroy === "function") dest.destroy();
8490
8274
  }
8491
8275
  function onerror(er) {
8492
8276
  cleanup();
@@ -8514,14 +8298,10 @@ var require_legacy2 = __commonJS({
8514
8298
  return dest;
8515
8299
  };
8516
8300
  function prependListener(emitter, event, fn) {
8517
- if (typeof emitter.prependListener === "function")
8518
- return emitter.prependListener(event, fn);
8519
- if (!emitter._events || !emitter._events[event])
8520
- emitter.on(event, fn);
8521
- else if (ArrayIsArray(emitter._events[event]))
8522
- emitter._events[event].unshift(fn);
8523
- else
8524
- emitter._events[event] = [fn, emitter._events[event]];
8301
+ if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
8302
+ if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);
8303
+ else if (ArrayIsArray(emitter._events[event])) emitter._events[event].unshift(fn);
8304
+ else emitter._events[event] = [fn, emitter._events[event]];
8525
8305
  }
8526
8306
  module2.exports = {
8527
8307
  Stream,
@@ -8599,10 +8379,8 @@ var require_buffer_list2 = __commonJS({
8599
8379
  data: v,
8600
8380
  next: null
8601
8381
  };
8602
- if (this.length > 0)
8603
- this.tail.next = entry;
8604
- else
8605
- this.head = entry;
8382
+ if (this.length > 0) this.tail.next = entry;
8383
+ else this.head = entry;
8606
8384
  this.tail = entry;
8607
8385
  ++this.length;
8608
8386
  }
@@ -8611,19 +8389,15 @@ var require_buffer_list2 = __commonJS({
8611
8389
  data: v,
8612
8390
  next: this.head
8613
8391
  };
8614
- if (this.length === 0)
8615
- this.tail = entry;
8392
+ if (this.length === 0) this.tail = entry;
8616
8393
  this.head = entry;
8617
8394
  ++this.length;
8618
8395
  }
8619
8396
  shift() {
8620
- if (this.length === 0)
8621
- return;
8397
+ if (this.length === 0) return;
8622
8398
  const ret = this.head.data;
8623
- if (this.length === 1)
8624
- this.head = this.tail = null;
8625
- else
8626
- this.head = this.head.next;
8399
+ if (this.length === 1) this.head = this.tail = null;
8400
+ else this.head = this.head.next;
8627
8401
  --this.length;
8628
8402
  return ret;
8629
8403
  }
@@ -8632,17 +8406,14 @@ var require_buffer_list2 = __commonJS({
8632
8406
  this.length = 0;
8633
8407
  }
8634
8408
  join(s) {
8635
- if (this.length === 0)
8636
- return "";
8409
+ if (this.length === 0) return "";
8637
8410
  let p = this.head;
8638
8411
  let ret = "" + p.data;
8639
- while ((p = p.next) !== null)
8640
- ret += s + p.data;
8412
+ while ((p = p.next) !== null) ret += s + p.data;
8641
8413
  return ret;
8642
8414
  }
8643
8415
  concat(n) {
8644
- if (this.length === 0)
8645
- return Buffer2.alloc(0);
8416
+ if (this.length === 0) return Buffer2.alloc(0);
8646
8417
  const ret = Buffer2.allocUnsafe(n >>> 0);
8647
8418
  let p = this.head;
8648
8419
  let i = 0;
@@ -8688,10 +8459,8 @@ var require_buffer_list2 = __commonJS({
8688
8459
  if (n === str.length) {
8689
8460
  ret += str;
8690
8461
  ++c;
8691
- if (p.next)
8692
- this.head = p.next;
8693
- else
8694
- this.head = this.tail = null;
8462
+ if (p.next) this.head = p.next;
8463
+ else this.head = this.tail = null;
8695
8464
  } else {
8696
8465
  ret += StringPrototypeSlice(str, 0, n);
8697
8466
  this.head = p;
@@ -8719,10 +8488,8 @@ var require_buffer_list2 = __commonJS({
8719
8488
  if (n === buf.length) {
8720
8489
  TypedArrayPrototypeSet(ret, buf, retLen - n);
8721
8490
  ++c;
8722
- if (p.next)
8723
- this.head = p.next;
8724
- else
8725
- this.head = this.tail = null;
8491
+ if (p.next) this.head = p.next;
8492
+ else this.head = this.tail = null;
8726
8493
  } else {
8727
8494
  TypedArrayPrototypeSet(ret, new Uint8Array2(buf.buffer, buf.byteOffset, n), retLen - n);
8728
8495
  this.head = p;
@@ -8963,10 +8730,8 @@ var require_readable2 = __commonJS({
8963
8730
  return (this.state & bit) !== 0;
8964
8731
  },
8965
8732
  set(value) {
8966
- if (value)
8967
- this.state |= bit;
8968
- else
8969
- this.state &= ~bit;
8733
+ if (value) this.state |= bit;
8734
+ else this.state &= ~bit;
8970
8735
  }
8971
8736
  };
8972
8737
  }
@@ -9008,23 +8773,18 @@ var require_readable2 = __commonJS({
9008
8773
  dataEmitted: makeBitMapDescriptor(kDataEmitted)
9009
8774
  });
9010
8775
  function ReadableState(options, stream, isDuplex) {
9011
- if (typeof isDuplex !== "boolean")
9012
- isDuplex = stream instanceof require_duplex2();
8776
+ if (typeof isDuplex !== "boolean") isDuplex = stream instanceof require_duplex2();
9013
8777
  this.state = kEmitClose | kAutoDestroy | kConstructed | kSync;
9014
- if (options && options.objectMode)
9015
- this.state |= kObjectMode;
9016
- if (isDuplex && options && options.readableObjectMode)
9017
- this.state |= kObjectMode;
8778
+ if (options && options.objectMode) this.state |= kObjectMode;
8779
+ if (isDuplex && options && options.readableObjectMode) this.state |= kObjectMode;
9018
8780
  this.highWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
9019
8781
  this.buffer = new BufferList();
9020
8782
  this.length = 0;
9021
8783
  this.pipes = [];
9022
8784
  this.flowing = null;
9023
8785
  this[kPaused] = null;
9024
- if (options && options.emitClose === false)
9025
- this.state &= ~kEmitClose;
9026
- if (options && options.autoDestroy === false)
9027
- this.state &= ~kAutoDestroy;
8786
+ if (options && options.emitClose === false) this.state &= ~kEmitClose;
8787
+ if (options && options.autoDestroy === false) this.state &= ~kAutoDestroy;
9028
8788
  this.errored = null;
9029
8789
  this.defaultEncoding = options && options.defaultEncoding || "utf8";
9030
8790
  this.awaitDrainWriters = null;
@@ -9036,19 +8796,14 @@ var require_readable2 = __commonJS({
9036
8796
  }
9037
8797
  }
9038
8798
  function Readable(options) {
9039
- if (!(this instanceof Readable))
9040
- return new Readable(options);
8799
+ if (!(this instanceof Readable)) return new Readable(options);
9041
8800
  const isDuplex = this instanceof require_duplex2();
9042
8801
  this._readableState = new ReadableState(options, this, isDuplex);
9043
8802
  if (options) {
9044
- if (typeof options.read === "function")
9045
- this._read = options.read;
9046
- if (typeof options.destroy === "function")
9047
- this._destroy = options.destroy;
9048
- if (typeof options.construct === "function")
9049
- this._construct = options.construct;
9050
- if (options.signal && !isDuplex)
9051
- addAbortSignal(options.signal, this);
8803
+ if (typeof options.read === "function") this._read = options.read;
8804
+ if (typeof options.destroy === "function") this._destroy = options.destroy;
8805
+ if (typeof options.construct === "function") this._construct = options.construct;
8806
+ if (options.signal && !isDuplex) addAbortSignal(options.signal, this);
9052
8807
  }
9053
8808
  Stream.call(this, options);
9054
8809
  destroyImpl.construct(this, () => {
@@ -9110,12 +8865,9 @@ var require_readable2 = __commonJS({
9110
8865
  onEofChunk(stream, state);
9111
8866
  } else if ((state.state & kObjectMode) !== 0 || chunk && chunk.length > 0) {
9112
8867
  if (addToFront) {
9113
- if ((state.state & kEndEmitted) !== 0)
9114
- errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());
9115
- else if (state.destroyed || state.errored)
9116
- return false;
9117
- else
9118
- addChunk(stream, state, chunk, true);
8868
+ if ((state.state & kEndEmitted) !== 0) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());
8869
+ else if (state.destroyed || state.errored) return false;
8870
+ else addChunk(stream, state, chunk, true);
9119
8871
  } else if (state.ended) {
9120
8872
  errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF());
9121
8873
  } else if (state.destroyed || state.errored) {
@@ -9124,10 +8876,8 @@ var require_readable2 = __commonJS({
9124
8876
  state.state &= ~kReading;
9125
8877
  if (state.decoder && !encoding) {
9126
8878
  chunk = state.decoder.write(chunk);
9127
- if (state.objectMode || chunk.length !== 0)
9128
- addChunk(stream, state, chunk, false);
9129
- else
9130
- maybeReadMore(stream, state);
8879
+ if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);
8880
+ else maybeReadMore(stream, state);
9131
8881
  } else {
9132
8882
  addChunk(stream, state, chunk, false);
9133
8883
  }
@@ -9149,12 +8899,9 @@ var require_readable2 = __commonJS({
9149
8899
  stream.emit("data", chunk);
9150
8900
  } else {
9151
8901
  state.length += state.objectMode ? 1 : chunk.length;
9152
- if (addToFront)
9153
- state.buffer.unshift(chunk);
9154
- else
9155
- state.buffer.push(chunk);
9156
- if ((state.state & kNeedReadable) !== 0)
9157
- emitReadable(stream);
8902
+ if (addToFront) state.buffer.unshift(chunk);
8903
+ else state.buffer.push(chunk);
8904
+ if ((state.state & kNeedReadable) !== 0) emitReadable(stream);
9158
8905
  }
9159
8906
  maybeReadMore(stream, state);
9160
8907
  }
@@ -9172,8 +8919,7 @@ var require_readable2 = __commonJS({
9172
8919
  content += decoder.write(data);
9173
8920
  }
9174
8921
  buffer.clear();
9175
- if (content !== "")
9176
- buffer.push(content);
8922
+ if (content !== "") buffer.push(content);
9177
8923
  this._readableState.length = content.length;
9178
8924
  return this;
9179
8925
  };
@@ -9193,17 +8939,13 @@ var require_readable2 = __commonJS({
9193
8939
  return n;
9194
8940
  }
9195
8941
  function howMuchToRead(n, state) {
9196
- if (n <= 0 || state.length === 0 && state.ended)
9197
- return 0;
9198
- if ((state.state & kObjectMode) !== 0)
9199
- return 1;
8942
+ if (n <= 0 || state.length === 0 && state.ended) return 0;
8943
+ if ((state.state & kObjectMode) !== 0) return 1;
9200
8944
  if (NumberIsNaN(n)) {
9201
- if (state.flowing && state.length)
9202
- return state.buffer.first().length;
8945
+ if (state.flowing && state.length) return state.buffer.first().length;
9203
8946
  return state.length;
9204
8947
  }
9205
- if (n <= state.length)
9206
- return n;
8948
+ if (n <= state.length) return n;
9207
8949
  return state.ended ? state.length : 0;
9208
8950
  }
9209
8951
  Readable.prototype.read = function(n) {
@@ -9215,22 +8957,17 @@ var require_readable2 = __commonJS({
9215
8957
  }
9216
8958
  const state = this._readableState;
9217
8959
  const nOrig = n;
9218
- if (n > state.highWaterMark)
9219
- state.highWaterMark = computeNewHighWaterMark(n);
9220
- if (n !== 0)
9221
- state.state &= ~kEmittedReadable;
8960
+ if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
8961
+ if (n !== 0) state.state &= ~kEmittedReadable;
9222
8962
  if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {
9223
8963
  debug("read: emitReadable", state.length, state.ended);
9224
- if (state.length === 0 && state.ended)
9225
- endReadable(this);
9226
- else
9227
- emitReadable(this);
8964
+ if (state.length === 0 && state.ended) endReadable(this);
8965
+ else emitReadable(this);
9228
8966
  return null;
9229
8967
  }
9230
8968
  n = howMuchToRead(n, state);
9231
8969
  if (n === 0 && state.ended) {
9232
- if (state.length === 0)
9233
- endReadable(this);
8970
+ if (state.length === 0) endReadable(this);
9234
8971
  return null;
9235
8972
  }
9236
8973
  let doRead = (state.state & kNeedReadable) !== 0;
@@ -9245,22 +8982,18 @@ var require_readable2 = __commonJS({
9245
8982
  } else if (doRead) {
9246
8983
  debug("do read");
9247
8984
  state.state |= kReading | kSync;
9248
- if (state.length === 0)
9249
- state.state |= kNeedReadable;
8985
+ if (state.length === 0) state.state |= kNeedReadable;
9250
8986
  try {
9251
8987
  this._read(state.highWaterMark);
9252
8988
  } catch (err) {
9253
8989
  errorOrDestroy(this, err);
9254
8990
  }
9255
8991
  state.state &= ~kSync;
9256
- if (!state.reading)
9257
- n = howMuchToRead(nOrig, state);
8992
+ if (!state.reading) n = howMuchToRead(nOrig, state);
9258
8993
  }
9259
8994
  let ret;
9260
- if (n > 0)
9261
- ret = fromList(n, state);
9262
- else
9263
- ret = null;
8995
+ if (n > 0) ret = fromList(n, state);
8996
+ else ret = null;
9264
8997
  if (ret === null) {
9265
8998
  state.needReadable = state.length <= state.highWaterMark;
9266
8999
  n = 0;
@@ -9273,10 +9006,8 @@ var require_readable2 = __commonJS({
9273
9006
  }
9274
9007
  }
9275
9008
  if (state.length === 0) {
9276
- if (!state.ended)
9277
- state.needReadable = true;
9278
- if (nOrig !== n && state.ended)
9279
- endReadable(this);
9009
+ if (!state.ended) state.needReadable = true;
9010
+ if (nOrig !== n && state.ended) endReadable(this);
9280
9011
  }
9281
9012
  if (ret !== null && !state.errorEmitted && !state.closeEmitted) {
9282
9013
  state.dataEmitted = true;
@@ -9286,8 +9017,7 @@ var require_readable2 = __commonJS({
9286
9017
  };
9287
9018
  function onEofChunk(stream, state) {
9288
9019
  debug("onEofChunk");
9289
- if (state.ended)
9290
- return;
9020
+ if (state.ended) return;
9291
9021
  if (state.decoder) {
9292
9022
  const chunk = state.decoder.end();
9293
9023
  if (chunk && chunk.length) {
@@ -9356,10 +9086,8 @@ var require_readable2 = __commonJS({
9356
9086
  debug("pipe count=%d opts=%j", state.pipes.length, pipeOpts);
9357
9087
  const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process2.stdout && dest !== process2.stderr;
9358
9088
  const endFn = doEnd ? onend : unpipe;
9359
- if (state.endEmitted)
9360
- process2.nextTick(endFn);
9361
- else
9362
- src.once("end", endFn);
9089
+ if (state.endEmitted) process2.nextTick(endFn);
9090
+ else src.once("end", endFn);
9363
9091
  dest.on("unpipe", onunpipe);
9364
9092
  function onunpipe(readable, unpipeInfo) {
9365
9093
  debug("onunpipe");
@@ -9389,8 +9117,7 @@ var require_readable2 = __commonJS({
9389
9117
  src.removeListener("end", unpipe);
9390
9118
  src.removeListener("data", ondata);
9391
9119
  cleanedUp = true;
9392
- if (ondrain && state.awaitDrainWriters && (!dest._writableState || dest._writableState.needDrain))
9393
- ondrain();
9120
+ if (ondrain && state.awaitDrainWriters && (!dest._writableState || dest._writableState.needDrain)) ondrain();
9394
9121
  }
9395
9122
  function pause() {
9396
9123
  if (!cleanedUp) {
@@ -9476,8 +9203,7 @@ var require_readable2 = __commonJS({
9476
9203
  const unpipeInfo = {
9477
9204
  hasUnpiped: false
9478
9205
  };
9479
- if (state.pipes.length === 0)
9480
- return this;
9206
+ if (state.pipes.length === 0) return this;
9481
9207
  if (!dest) {
9482
9208
  const dests = state.pipes;
9483
9209
  state.pipes = [];
@@ -9489,11 +9215,9 @@ var require_readable2 = __commonJS({
9489
9215
  return this;
9490
9216
  }
9491
9217
  const index = ArrayPrototypeIndexOf(state.pipes, dest);
9492
- if (index === -1)
9493
- return this;
9218
+ if (index === -1) return this;
9494
9219
  state.pipes.splice(index, 1);
9495
- if (state.pipes.length === 0)
9496
- this.pause();
9220
+ if (state.pipes.length === 0) this.pause();
9497
9221
  dest.emit("unpipe", this, unpipeInfo);
9498
9222
  return this;
9499
9223
  };
@@ -9502,8 +9226,7 @@ var require_readable2 = __commonJS({
9502
9226
  const state = this._readableState;
9503
9227
  if (ev === "data") {
9504
9228
  state.readableListening = this.listenerCount("readable") > 0;
9505
- if (state.flowing !== false)
9506
- this.resume();
9229
+ if (state.flowing !== false) this.resume();
9507
9230
  } else if (ev === "readable") {
9508
9231
  if (!state.endEmitted && !state.readableListening) {
9509
9232
  state.readableListening = state.needReadable = true;
@@ -9574,8 +9297,7 @@ var require_readable2 = __commonJS({
9574
9297
  state.resumeScheduled = false;
9575
9298
  stream.emit("resume");
9576
9299
  flow(stream);
9577
- if (state.flowing && !state.reading)
9578
- stream.read(0);
9300
+ if (state.flowing && !state.reading) stream.read(0);
9579
9301
  }
9580
9302
  Readable.prototype.pause = function() {
9581
9303
  debug("call pause flowing=%j", this._readableState.flowing);
@@ -9590,8 +9312,7 @@ var require_readable2 = __commonJS({
9590
9312
  function flow(stream) {
9591
9313
  const state = stream._readableState;
9592
9314
  debug("flow", state.flowing);
9593
- while (state.flowing && stream.read() !== null)
9594
- ;
9315
+ while (state.flowing && stream.read() !== null) ;
9595
9316
  }
9596
9317
  Readable.prototype.wrap = function(stream) {
9597
9318
  let paused = false;
@@ -9824,18 +9545,13 @@ var require_readable2 = __commonJS({
9824
9545
  });
9825
9546
  Readable._fromList = fromList;
9826
9547
  function fromList(n, state) {
9827
- if (state.length === 0)
9828
- return null;
9548
+ if (state.length === 0) return null;
9829
9549
  let ret;
9830
- if (state.objectMode)
9831
- ret = state.buffer.shift();
9550
+ if (state.objectMode) ret = state.buffer.shift();
9832
9551
  else if (!n || n >= state.length) {
9833
- if (state.decoder)
9834
- ret = state.buffer.join("");
9835
- else if (state.buffer.length === 1)
9836
- ret = state.buffer.first();
9837
- else
9838
- ret = state.buffer.concat(state.length);
9552
+ if (state.decoder) ret = state.buffer.join("");
9553
+ else if (state.buffer.length === 1) ret = state.buffer.first();
9554
+ else ret = state.buffer.concat(state.length);
9839
9555
  state.buffer.clear();
9840
9556
  } else {
9841
9557
  ret = state.buffer.consume(n, state.decoder);
@@ -9879,8 +9595,7 @@ var require_readable2 = __commonJS({
9879
9595
  };
9880
9596
  var webStreamsAdapters;
9881
9597
  function lazyWebStreams() {
9882
- if (webStreamsAdapters === void 0)
9883
- webStreamsAdapters = {};
9598
+ if (webStreamsAdapters === void 0) webStreamsAdapters = {};
9884
9599
  return webStreamsAdapters;
9885
9600
  }
9886
9601
  Readable.fromWeb = function(readableStream, options) {
@@ -9944,11 +9659,9 @@ var require_writable2 = __commonJS({
9944
9659
  }
9945
9660
  var kOnFinished = Symbol2("kOnFinished");
9946
9661
  function WritableState(options, stream, isDuplex) {
9947
- if (typeof isDuplex !== "boolean")
9948
- isDuplex = stream instanceof require_duplex2();
9662
+ if (typeof isDuplex !== "boolean") isDuplex = stream instanceof require_duplex2();
9949
9663
  this.objectMode = !!(options && options.objectMode);
9950
- if (isDuplex)
9951
- this.objectMode = this.objectMode || !!(options && options.writableObjectMode);
9664
+ if (isDuplex) this.objectMode = this.objectMode || !!(options && options.writableObjectMode);
9952
9665
  this.highWaterMark = options ? getHighWaterMark(this, options, "writableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
9953
9666
  this.finalCalled = false;
9954
9667
  this.needDrain = false;
@@ -9997,22 +9710,15 @@ var require_writable2 = __commonJS({
9997
9710
  });
9998
9711
  function Writable(options) {
9999
9712
  const isDuplex = this instanceof require_duplex2();
10000
- if (!isDuplex && !FunctionPrototypeSymbolHasInstance(Writable, this))
10001
- return new Writable(options);
9713
+ if (!isDuplex && !FunctionPrototypeSymbolHasInstance(Writable, this)) return new Writable(options);
10002
9714
  this._writableState = new WritableState(options, this, isDuplex);
10003
9715
  if (options) {
10004
- if (typeof options.write === "function")
10005
- this._write = options.write;
10006
- if (typeof options.writev === "function")
10007
- this._writev = options.writev;
10008
- if (typeof options.destroy === "function")
10009
- this._destroy = options.destroy;
10010
- if (typeof options.final === "function")
10011
- this._final = options.final;
10012
- if (typeof options.construct === "function")
10013
- this._construct = options.construct;
10014
- if (options.signal)
10015
- addAbortSignal(options.signal, this);
9716
+ if (typeof options.write === "function") this._write = options.write;
9717
+ if (typeof options.writev === "function") this._writev = options.writev;
9718
+ if (typeof options.destroy === "function") this._destroy = options.destroy;
9719
+ if (typeof options.final === "function") this._final = options.final;
9720
+ if (typeof options.construct === "function") this._construct = options.construct;
9721
+ if (options.signal) addAbortSignal(options.signal, this);
10016
9722
  }
10017
9723
  Stream.call(this, options);
10018
9724
  destroyImpl.construct(this, () => {
@@ -10026,10 +9732,8 @@ var require_writable2 = __commonJS({
10026
9732
  ObjectDefineProperty(Writable, SymbolHasInstance, {
10027
9733
  __proto__: null,
10028
9734
  value: function(object) {
10029
- if (FunctionPrototypeSymbolHasInstance(this, object))
10030
- return true;
10031
- if (this !== Writable)
10032
- return false;
9735
+ if (FunctionPrototypeSymbolHasInstance(this, object)) return true;
9736
+ if (this !== Writable) return false;
10033
9737
  return object && object._writableState instanceof WritableState;
10034
9738
  }
10035
9739
  });
@@ -10042,12 +9746,9 @@ var require_writable2 = __commonJS({
10042
9746
  cb = encoding;
10043
9747
  encoding = state.defaultEncoding;
10044
9748
  } else {
10045
- if (!encoding)
10046
- encoding = state.defaultEncoding;
10047
- else if (encoding !== "buffer" && !Buffer2.isEncoding(encoding))
10048
- throw new ERR_UNKNOWN_ENCODING(encoding);
10049
- if (typeof cb !== "function")
10050
- cb = nop;
9749
+ if (!encoding) encoding = state.defaultEncoding;
9750
+ else if (encoding !== "buffer" && !Buffer2.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding);
9751
+ if (typeof cb !== "function") cb = nop;
10051
9752
  }
10052
9753
  if (chunk === null) {
10053
9754
  throw new ERR_STREAM_NULL_VALUES();
@@ -10090,15 +9791,12 @@ var require_writable2 = __commonJS({
10090
9791
  const state = this._writableState;
10091
9792
  if (state.corked) {
10092
9793
  state.corked--;
10093
- if (!state.writing)
10094
- clearBuffer(this, state);
9794
+ if (!state.writing) clearBuffer(this, state);
10095
9795
  }
10096
9796
  };
10097
9797
  Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
10098
- if (typeof encoding === "string")
10099
- encoding = StringPrototypeToLowerCase(encoding);
10100
- if (!Buffer2.isEncoding(encoding))
10101
- throw new ERR_UNKNOWN_ENCODING(encoding);
9798
+ if (typeof encoding === "string") encoding = StringPrototypeToLowerCase(encoding);
9799
+ if (!Buffer2.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding);
10102
9800
  this._writableState.defaultEncoding = encoding;
10103
9801
  return this;
10104
9802
  };
@@ -10106,8 +9804,7 @@ var require_writable2 = __commonJS({
10106
9804
  const len = state.objectMode ? 1 : chunk.length;
10107
9805
  state.length += len;
10108
9806
  const ret = state.length < state.highWaterMark;
10109
- if (!ret)
10110
- state.needDrain = true;
9807
+ if (!ret) state.needDrain = true;
10111
9808
  if (state.writing || state.corked || state.errored || !state.constructed) {
10112
9809
  state.buffered.push({
10113
9810
  chunk,
@@ -10135,12 +9832,9 @@ var require_writable2 = __commonJS({
10135
9832
  state.writecb = cb;
10136
9833
  state.writing = true;
10137
9834
  state.sync = true;
10138
- if (state.destroyed)
10139
- state.onwrite(new ERR_STREAM_DESTROYED("write"));
10140
- else if (writev)
10141
- stream._writev(chunk, state.onwrite);
10142
- else
10143
- stream._write(chunk, encoding, state.onwrite);
9835
+ if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED("write"));
9836
+ else if (writev) stream._writev(chunk, state.onwrite);
9837
+ else stream._write(chunk, encoding, state.onwrite);
10144
9838
  state.sync = false;
10145
9839
  }
10146
9840
  function onwriteError(stream, state, er, cb) {
@@ -10477,8 +10171,7 @@ var require_writable2 = __commonJS({
10477
10171
  __proto__: null,
10478
10172
  get() {
10479
10173
  const wState = this._writableState;
10480
- if (!wState)
10481
- return false;
10174
+ if (!wState) return false;
10482
10175
  return !wState.destroyed && !wState.ending && wState.needDrain;
10483
10176
  }
10484
10177
  },
@@ -10533,8 +10226,7 @@ var require_writable2 = __commonJS({
10533
10226
  };
10534
10227
  var webStreamsAdapters;
10535
10228
  function lazyWebStreams() {
10536
- if (webStreamsAdapters === void 0)
10537
- webStreamsAdapters = {};
10229
+ if (webStreamsAdapters === void 0) webStreamsAdapters = {};
10538
10230
  return webStreamsAdapters;
10539
10231
  }
10540
10232
  Writable.fromWeb = function(writableStream, options) {
@@ -10744,8 +10436,7 @@ var require_duplexify2 = __commonJS({
10744
10436
  promise = null;
10745
10437
  const { chunk, done, cb } = await _promise;
10746
10438
  process2.nextTick(cb);
10747
- if (done)
10748
- return;
10439
+ if (done) return;
10749
10440
  if (signal.aborted)
10750
10441
  throw new AbortError(void 0, {
10751
10442
  cause: signal.reason
@@ -10913,13 +10604,11 @@ var require_duplex2 = __commonJS({
10913
10604
  const keys = ObjectKeys(Writable.prototype);
10914
10605
  for (let i = 0; i < keys.length; i++) {
10915
10606
  const method = keys[i];
10916
- if (!Duplex.prototype[method])
10917
- Duplex.prototype[method] = Writable.prototype[method];
10607
+ if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
10918
10608
  }
10919
10609
  }
10920
10610
  function Duplex(options) {
10921
- if (!(this instanceof Duplex))
10922
- return new Duplex(options);
10611
+ if (!(this instanceof Duplex)) return new Duplex(options);
10923
10612
  Readable.call(this, options);
10924
10613
  Writable.call(this, options);
10925
10614
  if (options) {
@@ -10994,8 +10683,7 @@ var require_duplex2 = __commonJS({
10994
10683
  });
10995
10684
  var webStreamsAdapters;
10996
10685
  function lazyWebStreams() {
10997
- if (webStreamsAdapters === void 0)
10998
- webStreamsAdapters = {};
10686
+ if (webStreamsAdapters === void 0) webStreamsAdapters = {};
10999
10687
  return webStreamsAdapters;
11000
10688
  }
11001
10689
  Duplex.fromWeb = function(pair, options) {
@@ -11027,8 +10715,7 @@ var require_transform2 = __commonJS({
11027
10715
  ObjectSetPrototypeOf(Transform2, Duplex);
11028
10716
  var kCallback = Symbol2("kCallback");
11029
10717
  function Transform2(options) {
11030
- if (!(this instanceof Transform2))
11031
- return new Transform2(options);
10718
+ if (!(this instanceof Transform2)) return new Transform2(options);
11032
10719
  const readableHighWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", true) : null;
11033
10720
  if (readableHighWaterMark === 0) {
11034
10721
  options = {
@@ -11046,10 +10733,8 @@ var require_transform2 = __commonJS({
11046
10733
  this._readableState.sync = false;
11047
10734
  this[kCallback] = null;
11048
10735
  if (options) {
11049
- if (typeof options.transform === "function")
11050
- this._transform = options.transform;
11051
- if (typeof options.flush === "function")
11052
- this._flush = options.flush;
10736
+ if (typeof options.transform === "function") this._transform = options.transform;
10737
+ if (typeof options.flush === "function") this._flush = options.flush;
11053
10738
  }
11054
10739
  this.on("prefinish", prefinish);
11055
10740
  }
@@ -11129,8 +10814,7 @@ var require_passthrough2 = __commonJS({
11129
10814
  ObjectSetPrototypeOf(PassThrough.prototype, Transform2.prototype);
11130
10815
  ObjectSetPrototypeOf(PassThrough, Transform2);
11131
10816
  function PassThrough(options) {
11132
- if (!(this instanceof PassThrough))
11133
- return new PassThrough(options);
10817
+ if (!(this instanceof PassThrough)) return new PassThrough(options);
11134
10818
  Transform2.call(this, options);
11135
10819
  }
11136
10820
  PassThrough.prototype._transform = function(chunk, encoding, cb) {
@@ -11191,8 +10875,7 @@ var require_pipeline2 = __commonJS({
11191
10875
  );
11192
10876
  return {
11193
10877
  destroy: (err) => {
11194
- if (finished)
11195
- return;
10878
+ if (finished) return;
11196
10879
  finished = true;
11197
10880
  destroyImpl.destroyer(stream, err || new ERR_STREAM_DESTROYED("pipe"));
11198
10881
  },
@@ -11982,8 +11665,7 @@ var require_operators2 = __commonJS({
11982
11665
  await fn(value, options2);
11983
11666
  return kEmpty;
11984
11667
  }
11985
- for await (const unused of map.call(this, forEachFn, options))
11986
- ;
11668
+ for await (const unused of map.call(this, forEachFn, options)) ;
11987
11669
  }
11988
11670
  function filter(fn, options) {
11989
11671
  if (typeof fn !== "function") {
@@ -12763,8 +12445,7 @@ var require_sonic_boom = __commonJS({
12763
12445
  const mode = sonic.mode;
12764
12446
  if (sonic.sync) {
12765
12447
  try {
12766
- if (sonic.mkdir)
12767
- fs.mkdirSync(path.dirname(file), { recursive: true });
12448
+ if (sonic.mkdir) fs.mkdirSync(path.dirname(file), { recursive: true });
12768
12449
  const fd = fs.openSync(file, flags, mode);
12769
12450
  fileOpened(null, fd);
12770
12451
  } catch (err) {
@@ -12773,8 +12454,7 @@ var require_sonic_boom = __commonJS({
12773
12454
  }
12774
12455
  } else if (sonic.mkdir) {
12775
12456
  fs.mkdir(path.dirname(file), { recursive: true }, (err) => {
12776
- if (err)
12777
- return fileOpened(err);
12457
+ if (err) return fileOpened(err);
12778
12458
  fs.open(file, flags, mode, fileOpened);
12779
12459
  });
12780
12460
  } else {
@@ -12926,8 +12606,7 @@ var require_sonic_boom = __commonJS({
12926
12606
  }
12927
12607
  function emitDrain(sonic) {
12928
12608
  const hasListeners = sonic.listenerCount("drain") > 0;
12929
- if (!hasListeners)
12930
- return;
12609
+ if (!hasListeners) return;
12931
12610
  sonic._asyncDrainScheduled = false;
12932
12611
  sonic.emit("drain");
12933
12612
  }
@@ -14147,8 +13826,7 @@ var require_handle_custom_levels_names_opts = __commonJS({
14147
13826
  "use strict";
14148
13827
  module2.exports = handleCustomLevelsNamesOpts;
14149
13828
  function handleCustomLevelsNamesOpts(cLevels) {
14150
- if (!cLevels)
14151
- return {};
13829
+ if (!cLevels) return {};
14152
13830
  if (typeof cLevels === "string") {
14153
13831
  return cLevels.split(",").reduce((agg, value, idx) => {
14154
13832
  const [levelName, levelNum = idx] = value.split(":");
@@ -14173,8 +13851,7 @@ var require_handle_custom_levels_opts = __commonJS({
14173
13851
  "use strict";
14174
13852
  module2.exports = handleCustomLevelsOpts;
14175
13853
  function handleCustomLevelsOpts(cLevels) {
14176
- if (!cLevels)
14177
- return {};
13854
+ if (!cLevels) return {};
14178
13855
  if (typeof cLevels === "string") {
14179
13856
  return cLevels.split(",").reduce(
14180
13857
  (agg, value, idx) => {
@@ -14548,8 +14225,7 @@ var require_prettify_error = __commonJS({
14548
14225
  const joinedLines = joinLinesWithIndentation({ input: lines, ident, eol });
14549
14226
  const splitLines = `${ident}${keyName}: ${joinedLines}${eol}`.split(eol);
14550
14227
  for (let j = 0; j < splitLines.length; j += 1) {
14551
- if (j !== 0)
14552
- result += eol;
14228
+ if (j !== 0) result += eol;
14553
14229
  const line = splitLines[j];
14554
14230
  if (/^\s*"stack"/.test(line)) {
14555
14231
  const matches = /^(\s*"stack":)\s*(".*"),?$/.exec(line);
@@ -14597,8 +14273,7 @@ var require_prettify_object = __commonJS({
14597
14273
  colorizer
14598
14274
  } = context;
14599
14275
  const keysToIgnore = [].concat(skipKeys);
14600
- if (excludeLoggerKeys === true)
14601
- Array.prototype.push.apply(keysToIgnore, LOGGER_KEYS);
14276
+ if (excludeLoggerKeys === true) Array.prototype.push.apply(keysToIgnore, LOGGER_KEYS);
14602
14277
  let result = "";
14603
14278
  const { plain, errors } = Object.entries(log).reduce(({ plain: plain2, errors: errors2 }, [k, v]) => {
14604
14279
  if (keysToIgnore.includes(k) === false) {
@@ -14620,8 +14295,7 @@ var require_prettify_object = __commonJS({
14620
14295
  } else {
14621
14296
  Object.entries(plain).forEach(([keyName, keyValue]) => {
14622
14297
  let lines = typeof customPrettifiers[keyName] === "function" ? keyValue : stringifySafe(keyValue, null, 2);
14623
- if (lines === void 0)
14624
- return;
14298
+ if (lines === void 0) return;
14625
14299
  lines = lines.replace(/\\\\/gi, "\\");
14626
14300
  const joinedLines = joinLinesWithIndentation({ input: lines, ident, eol });
14627
14301
  result += `${ident}${keyName}:${joinedLines.startsWith(eol) ? "" : " "}${joinedLines}${eol}`;
@@ -14629,8 +14303,7 @@ var require_prettify_object = __commonJS({
14629
14303
  }
14630
14304
  Object.entries(errors).forEach(([keyName, keyValue]) => {
14631
14305
  const lines = typeof customPrettifiers[keyName] === "function" ? keyValue : stringifySafe(keyValue, null, 2);
14632
- if (lines === void 0)
14633
- return;
14306
+ if (lines === void 0) return;
14634
14307
  result += prettifyError({ keyName, lines, eol, ident });
14635
14308
  });
14636
14309
  return result;
@@ -14669,8 +14342,7 @@ var require_prettify_error_log = __commonJS({
14669
14342
  }
14670
14343
  for (let i = 0; i < propertiesToPrint.length; i += 1) {
14671
14344
  const key = propertiesToPrint[i];
14672
- if (key in log === false)
14673
- continue;
14345
+ if (key in log === false) continue;
14674
14346
  if (isObject(log[key])) {
14675
14347
  const prettifiedObject = prettifyObject({
14676
14348
  log: log[key],
@@ -14707,8 +14379,7 @@ var require_prettify_level = __commonJS({
14707
14379
  } = context;
14708
14380
  const prettifier = context.customPrettifiers?.level;
14709
14381
  const output = getPropertyValue(log, levelKey);
14710
- if (output === void 0)
14711
- return void 0;
14382
+ if (output === void 0) return void 0;
14712
14383
  const labelColorized = colorizer(output, { customLevels, customLevelNames });
14713
14384
  if (prettifier) {
14714
14385
  const [label] = getLevelLabelData(output);
@@ -14758,10 +14429,8 @@ var require_prettify_message = __commonJS({
14758
14429
  const msg = messageFormat(log, messageKey, levelLabel, { colors: colorizer.colors });
14759
14430
  return colorizer.message(msg);
14760
14431
  }
14761
- if (messageKey in log === false)
14762
- return void 0;
14763
- if (typeof log[messageKey] !== "string" && typeof log[messageKey] !== "number" && typeof log[messageKey] !== "boolean")
14764
- return void 0;
14432
+ if (messageKey in log === false) return void 0;
14433
+ if (typeof log[messageKey] !== "string" && typeof log[messageKey] !== "number" && typeof log[messageKey] !== "boolean") return void 0;
14765
14434
  return colorizer.message(log[messageKey]);
14766
14435
  }
14767
14436
  }
@@ -14825,8 +14494,7 @@ var require_prettify_time = __commonJS({
14825
14494
  } else if ("timestamp" in log) {
14826
14495
  time = log.timestamp;
14827
14496
  }
14828
- if (time === null)
14829
- return void 0;
14497
+ if (time === null) return void 0;
14830
14498
  const output = translateFormat ? formatTime(time, translateFormat) : time;
14831
14499
  return prettifier ? prettifier(output) : `[${output}]`;
14832
14500
  }
@@ -15023,8 +14691,7 @@ var require_pretty = __commonJS({
15023
14691
  minimum = typeof this.minimumLevel === "string" ? LEVEL_NAMES[this.minimumLevel] : LEVEL_NAMES[LEVELS[this.minimumLevel].toLowerCase()];
15024
14692
  }
15025
14693
  const level = log[this.levelKey === void 0 ? LEVEL_KEY2 : this.levelKey];
15026
- if (level < minimum)
15027
- return;
14694
+ if (level < minimum) return;
15028
14695
  }
15029
14696
  const prettifiedMessage = prettifyMessage({ log, context: this.context });
15030
14697
  if (this.ignoreKeys || this.includeKeys) {
@@ -15080,8 +14747,7 @@ var require_pretty = __commonJS({
15080
14747
  }
15081
14748
  if (log.type === "Error" && typeof log.stack === "string") {
15082
14749
  const prettifiedErrorLog = prettifyErrorLog({ log, context: this.context });
15083
- if (this.singleLine)
15084
- line += this.EOL;
14750
+ if (this.singleLine) line += this.EOL;
15085
14751
  line += prettifiedErrorLog;
15086
14752
  } else if (this.hideObject === false) {
15087
14753
  const skipKeys = [
@@ -15156,8 +14822,7 @@ function build(opts = {}) {
15156
14822
  let pretty2 = prettyFactory(opts);
15157
14823
  return abstractTransport(function(source) {
15158
14824
  source.on("message", function pinoConfigListener(message) {
15159
- if (!message || message.code !== "PINO_CONFIG")
15160
- return;
14825
+ if (!message || message.code !== "PINO_CONFIG") return;
15161
14826
  Object.assign(opts, {
15162
14827
  messageKey: message.config.messageKey,
15163
14828
  errorLikeObjectKeys: Array.from(/* @__PURE__ */ new Set([...opts.errorLikeObjectKeys || ERROR_LIKE_KEYS, message.config.errorKey])),