@fern-api/fern-api-dev 5.23.3-764-g07d84856196 → 5.23.3-767-gd576140fb68

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.
Files changed (2) hide show
  1. package/cli.cjs +1036 -1010
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -52666,9 +52666,9 @@ var init_streamObjectToFile = __esm({
52666
52666
  }
52667
52667
  });
52668
52668
 
52669
- // ../../../node_modules/.pnpm/tmp@0.2.6/node_modules/tmp/lib/tmp.js
52669
+ // ../../../node_modules/.pnpm/tmp@0.2.7/node_modules/tmp/lib/tmp.js
52670
52670
  var require_tmp = __commonJS({
52671
- "../../../node_modules/.pnpm/tmp@0.2.6/node_modules/tmp/lib/tmp.js"(exports2, module4) {
52671
+ "../../../node_modules/.pnpm/tmp@0.2.7/node_modules/tmp/lib/tmp.js"(exports2, module4) {
52672
52672
  "use strict";
52673
52673
  var fs34 = require("fs");
52674
52674
  var os22 = require("os");
@@ -52919,11 +52919,14 @@ var require_tmp = __commonJS({
52919
52919
  ].join("");
52920
52920
  return path118.join(tmpDir, opts.dir, name2);
52921
52921
  }
52922
- function _assertPath(path119) {
52923
- if (path119.includes("..")) {
52922
+ function _assertPath(option, value2) {
52923
+ if (typeof value2 !== "string") {
52924
+ throw new Error(`${option} option must be a string, got "${typeof value2}".`);
52925
+ }
52926
+ if (value2.includes("..")) {
52924
52927
  throw new Error("Relative value not allowed");
52925
52928
  }
52926
- return path119;
52929
+ return value2;
52927
52930
  }
52928
52931
  function _assertOptionsBase(options2) {
52929
52932
  if (!_isUndefined(options2.name)) {
@@ -52934,8 +52937,13 @@ var require_tmp = __commonJS({
52934
52937
  throw new Error(`name option must not contain a path, found "${name2}".`);
52935
52938
  }
52936
52939
  }
52937
- if (!_isUndefined(options2.template) && !options2.template.match(TEMPLATE_PATTERN)) {
52938
- throw new Error(`Invalid template, found "${options2.template}".`);
52940
+ if (!_isUndefined(options2.template)) {
52941
+ if (typeof options2.template !== "string") {
52942
+ throw new Error(`template option must be a string, got "${typeof options2.template}".`);
52943
+ }
52944
+ if (!options2.template.match(TEMPLATE_PATTERN)) {
52945
+ throw new Error(`Invalid template, found "${options2.template}".`);
52946
+ }
52939
52947
  }
52940
52948
  if (!_isUndefined(options2.tries) && isNaN(options2.tries) || options2.tries < 0) {
52941
52949
  throw new Error(`Invalid tries, found "${options2.tries}".`);
@@ -52945,9 +52953,9 @@ var require_tmp = __commonJS({
52945
52953
  options2.detachDescriptor = !!options2.detachDescriptor;
52946
52954
  options2.discardDescriptor = !!options2.discardDescriptor;
52947
52955
  options2.unsafeCleanup = !!options2.unsafeCleanup;
52948
- options2.prefix = _isUndefined(options2.prefix) ? "" : _assertPath(options2.prefix);
52949
- options2.postfix = _isUndefined(options2.postfix) ? "" : _assertPath(options2.postfix);
52950
- options2.template = _isUndefined(options2.template) ? void 0 : _assertPath(options2.template);
52956
+ options2.prefix = _isUndefined(options2.prefix) ? "" : _assertPath("prefix", options2.prefix);
52957
+ options2.postfix = _isUndefined(options2.postfix) ? "" : _assertPath("postfix", options2.postfix);
52958
+ options2.template = _isUndefined(options2.template) ? void 0 : _assertPath("template", options2.template);
52951
52959
  }
52952
52960
  function _getRelativePath(option, name2, tmpDir, cb) {
52953
52961
  if (_isUndefined(name2)) return cb(null);
@@ -213395,16 +213403,16 @@ var require_share = __commonJS({
213395
213403
  };
213396
213404
  }
213397
213405
  exports2.share = share3;
213398
- function handleReset(reset2, on) {
213406
+ function handleReset(reset2, on2) {
213399
213407
  var args = [];
213400
213408
  for (var _i6 = 2; _i6 < arguments.length; _i6++) {
213401
213409
  args[_i6 - 2] = arguments[_i6];
213402
213410
  }
213403
- if (on === true) {
213411
+ if (on2 === true) {
213404
213412
  reset2();
213405
213413
  return;
213406
213414
  }
213407
- if (on === false) {
213415
+ if (on2 === false) {
213408
213416
  return;
213409
213417
  }
213410
213418
  var onSubscriber = new Subscriber_1.SafeSubscriber({
@@ -213413,7 +213421,7 @@ var require_share = __commonJS({
213413
213421
  reset2();
213414
213422
  }
213415
213423
  });
213416
- return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray4([], __read4(args)))).subscribe(onSubscriber);
213424
+ return innerFrom_1.innerFrom(on2.apply(void 0, __spreadArray4([], __read4(args)))).subscribe(onSubscriber);
213417
213425
  }
213418
213426
  }
213419
213427
  });
@@ -228079,7 +228087,7 @@ var require_directives = __commonJS({
228079
228087
  "{": "%7B",
228080
228088
  "}": "%7D"
228081
228089
  };
228082
- var escapeTagName = (tn) => tn.replace(/[!,[\]{}]/g, (ch2) => escapeChars[ch2]);
228090
+ var escapeTagName = (tn2) => tn2.replace(/[!,[\]{}]/g, (ch2) => escapeChars[ch2]);
228083
228091
  var Directives = class _Directives {
228084
228092
  constructor(yaml3, tags) {
228085
228093
  this.docStart = null;
@@ -228224,7 +228232,7 @@ var require_directives = __commonJS({
228224
228232
  for (const [handle3, prefix2] of tagEntries) {
228225
228233
  if (handle3 === "!!" && prefix2 === "tag:yaml.org,2002:")
228226
228234
  continue;
228227
- if (!doc || tagNames.some((tn) => tn.startsWith(prefix2)))
228235
+ if (!doc || tagNames.some((tn2) => tn2.startsWith(prefix2)))
228228
228236
  lines.push(`%TAG ${handle3} ${prefix2}`);
228229
228237
  }
228230
228238
  return lines.join("\n");
@@ -356184,7 +356192,7 @@ var require_escodegen = __commonJS({
356184
356192
  return str3.length - 1 - i6;
356185
356193
  }
356186
356194
  function adjustMultilineComment(value2, specialBase) {
356187
- var array3, i6, len, line, j5, spaces, previousBase, sn2;
356195
+ var array3, i6, len, line, j5, spaces, previousBase, sn;
356188
356196
  array3 = value2.split(/\r\n|[\r\n]/);
356189
356197
  spaces = Number.MAX_VALUE;
356190
356198
  for (i6 = 1, len = array3.length; i6 < len; ++i6) {
@@ -356210,8 +356218,8 @@ var require_escodegen = __commonJS({
356210
356218
  previousBase = base4;
356211
356219
  }
356212
356220
  for (i6 = 1, len = array3.length; i6 < len; ++i6) {
356213
- sn2 = toSourceNodeWhenNeeded(addIndent(array3[i6].slice(spaces)));
356214
- array3[i6] = sourceMap ? sn2.join("") : sn2;
356221
+ sn = toSourceNodeWhenNeeded(addIndent(array3[i6].slice(spaces)));
356222
+ array3[i6] = sourceMap ? sn.join("") : sn;
356215
356223
  }
356216
356224
  base4 = previousBase;
356217
356225
  return array3.join("\n");
@@ -590583,7 +590591,7 @@ var import_os = require("os");
590583
590591
  var import_path31 = __toESM(require("path"), 1);
590584
590592
  var import_promises22 = require("stream/promises");
590585
590593
 
590586
- // ../../../node_modules/.pnpm/tar@7.5.13/node_modules/tar/dist/esm/index.min.js
590594
+ // ../../../node_modules/.pnpm/tar@7.5.16/node_modules/tar/dist/esm/index.min.js
590587
590595
  var import_events2 = __toESM(require("events"), 1);
590588
590596
  var import_fs13 = __toESM(require("fs"), 1);
590589
590597
  var import_node_events6 = require("events");
@@ -590595,7 +590603,7 @@ var import_path28 = require("path");
590595
590603
  var import_events3 = require("events");
590596
590604
  var import_assert5 = __toESM(require("assert"), 1);
590597
590605
  var import_buffer = require("buffer");
590598
- var ks = __toESM(require("zlib"), 1);
590606
+ var Ms = __toESM(require("zlib"), 1);
590599
590607
  var import_zlib3 = __toESM(require("zlib"), 1);
590600
590608
  var import_node_path10 = require("path");
590601
590609
  var import_node_path11 = require("path");
@@ -590618,51 +590626,51 @@ var import_node_path15 = __toESM(require("path"), 1);
590618
590626
  var import_node_path16 = require("path");
590619
590627
  var import_node_fs11 = __toESM(require("fs"), 1);
590620
590628
  var import_node_path17 = __toESM(require("path"), 1);
590621
- var kr = Object.defineProperty;
590622
- var vr2 = (s5, t3) => {
590623
- for (var e2 in t3) kr(s5, e2, { get: t3[e2], enumerable: true });
590624
- };
590625
- var Os = typeof process == "object" && process ? process : { stdout: null, stderr: null };
590626
- var Br = (s5) => !!s5 && typeof s5 == "object" && (s5 instanceof D3 || s5 instanceof import_node_stream3.default || Pr(s5) || zr(s5));
590627
- var Pr = (s5) => !!s5 && typeof s5 == "object" && s5 instanceof import_node_events6.EventEmitter && typeof s5.pipe == "function" && s5.pipe !== import_node_stream3.default.Writable.prototype.pipe;
590628
- var zr = (s5) => !!s5 && typeof s5 == "object" && s5 instanceof import_node_events6.EventEmitter && typeof s5.write == "function" && typeof s5.end == "function";
590629
+ var Mr = Object.defineProperty;
590630
+ var Br = (s5, t3) => {
590631
+ for (var e2 in t3) Mr(s5, e2, { get: t3[e2], enumerable: true });
590632
+ };
590633
+ var xs = typeof process == "object" && process ? process : { stdout: null, stderr: null };
590634
+ var zr = (s5) => !!s5 && typeof s5 == "object" && (s5 instanceof A3 || s5 instanceof import_node_stream3.default || Ur(s5) || Hr(s5));
590635
+ var Ur = (s5) => !!s5 && typeof s5 == "object" && s5 instanceof import_node_events6.EventEmitter && typeof s5.pipe == "function" && s5.pipe !== import_node_stream3.default.Writable.prototype.pipe;
590636
+ var Hr = (s5) => !!s5 && typeof s5 == "object" && s5 instanceof import_node_events6.EventEmitter && typeof s5.write == "function" && typeof s5.end == "function";
590629
590637
  var q3 = /* @__PURE__ */ Symbol("EOF");
590630
- var j4 = /* @__PURE__ */ Symbol("maybeEmitEnd");
590638
+ var Q3 = /* @__PURE__ */ Symbol("maybeEmitEnd");
590631
590639
  var rt2 = /* @__PURE__ */ Symbol("emittedEnd");
590632
590640
  var Le2 = /* @__PURE__ */ Symbol("emittingEnd");
590633
- var jt2 = /* @__PURE__ */ Symbol("emittedError");
590641
+ var qt2 = /* @__PURE__ */ Symbol("emittedError");
590634
590642
  var Ne2 = /* @__PURE__ */ Symbol("closed");
590635
- var Ts = /* @__PURE__ */ Symbol("read");
590636
- var Ae2 = /* @__PURE__ */ Symbol("flush");
590637
- var xs = /* @__PURE__ */ Symbol("flushChunk");
590643
+ var Ls = /* @__PURE__ */ Symbol("read");
590644
+ var De2 = /* @__PURE__ */ Symbol("flush");
590645
+ var Ns = /* @__PURE__ */ Symbol("flushChunk");
590638
590646
  var z4 = /* @__PURE__ */ Symbol("encoding");
590639
590647
  var Mt2 = /* @__PURE__ */ Symbol("decoder");
590640
- var b3 = /* @__PURE__ */ Symbol("flowing");
590648
+ var g2 = /* @__PURE__ */ Symbol("flowing");
590641
590649
  var Qt2 = /* @__PURE__ */ Symbol("paused");
590642
590650
  var Bt2 = /* @__PURE__ */ Symbol("resume");
590643
- var _3 = /* @__PURE__ */ Symbol("buffer");
590644
- var A3 = /* @__PURE__ */ Symbol("pipes");
590645
- var g2 = /* @__PURE__ */ Symbol("bufferLength");
590646
- var yi = /* @__PURE__ */ Symbol("bufferPush");
590647
- var De2 = /* @__PURE__ */ Symbol("bufferShift");
590651
+ var b3 = /* @__PURE__ */ Symbol("buffer");
590652
+ var D3 = /* @__PURE__ */ Symbol("pipes");
590653
+ var _3 = /* @__PURE__ */ Symbol("bufferLength");
590654
+ var gi = /* @__PURE__ */ Symbol("bufferPush");
590655
+ var Ae2 = /* @__PURE__ */ Symbol("bufferShift");
590648
590656
  var L4 = /* @__PURE__ */ Symbol("objectMode");
590649
590657
  var w2 = /* @__PURE__ */ Symbol("destroyed");
590650
- var Ri = /* @__PURE__ */ Symbol("error");
590651
- var bi = /* @__PURE__ */ Symbol("emitData");
590652
- var Ls = /* @__PURE__ */ Symbol("emitEnd");
590653
- var _i = /* @__PURE__ */ Symbol("emitEnd2");
590658
+ var bi = /* @__PURE__ */ Symbol("error");
590659
+ var _i = /* @__PURE__ */ Symbol("emitData");
590660
+ var Ds = /* @__PURE__ */ Symbol("emitEnd");
590661
+ var Oi = /* @__PURE__ */ Symbol("emitEnd2");
590654
590662
  var Z3 = /* @__PURE__ */ Symbol("async");
590655
- var gi = /* @__PURE__ */ Symbol("abort");
590663
+ var Ti = /* @__PURE__ */ Symbol("abort");
590656
590664
  var Ie2 = /* @__PURE__ */ Symbol("aborted");
590657
590665
  var Jt2 = /* @__PURE__ */ Symbol("signal");
590658
- var yt2 = /* @__PURE__ */ Symbol("dataListeners");
590659
- var C4 = /* @__PURE__ */ Symbol("discarded");
590660
- var te2 = (s5) => Promise.resolve().then(s5);
590661
- var Ur = (s5) => s5();
590662
- var Hr = (s5) => s5 === "end" || s5 === "finish" || s5 === "prefinish";
590663
- var Wr = (s5) => s5 instanceof ArrayBuffer || !!s5 && typeof s5 == "object" && s5.constructor && s5.constructor.name === "ArrayBuffer" && s5.byteLength >= 0;
590664
- var Gr = (s5) => !Buffer.isBuffer(s5) && ArrayBuffer.isView(s5);
590665
- var Ce2 = class {
590666
+ var Rt2 = /* @__PURE__ */ Symbol("dataListeners");
590667
+ var F4 = /* @__PURE__ */ Symbol("discarded");
590668
+ var jt2 = (s5) => Promise.resolve().then(s5);
590669
+ var Wr = (s5) => s5();
590670
+ var Gr = (s5) => s5 === "end" || s5 === "finish" || s5 === "prefinish";
590671
+ var Zr = (s5) => s5 instanceof ArrayBuffer || !!s5 && typeof s5 == "object" && s5.constructor && s5.constructor.name === "ArrayBuffer" && s5.byteLength >= 0;
590672
+ var Yr = (s5) => !Buffer.isBuffer(s5) && ArrayBuffer.isView(s5);
590673
+ var Fe2 = class {
590666
590674
  src;
590667
590675
  dest;
590668
590676
  opts;
@@ -590679,7 +590687,7 @@ var Ce2 = class {
590679
590687
  this.unpipe(), this.opts.end && this.dest.end();
590680
590688
  }
590681
590689
  };
590682
- var Oi = class extends Ce2 {
590690
+ var xi = class extends Fe2 {
590683
590691
  unpipe() {
590684
590692
  this.src.removeListener("error", this.proxyErrors), super.unpipe();
590685
590693
  }
@@ -590687,13 +590695,13 @@ var Oi = class extends Ce2 {
590687
590695
  super(t3, e2, i6), this.proxyErrors = (r4) => this.dest.emit("error", r4), t3.on("error", this.proxyErrors);
590688
590696
  }
590689
590697
  };
590690
- var Zr = (s5) => !!s5.objectMode;
590691
- var Yr = (s5) => !s5.objectMode && !!s5.encoding && s5.encoding !== "buffer";
590692
- var D3 = class extends import_node_events6.EventEmitter {
590693
- [b3] = false;
590698
+ var Kr = (s5) => !!s5.objectMode;
590699
+ var Vr = (s5) => !s5.objectMode && !!s5.encoding && s5.encoding !== "buffer";
590700
+ var A3 = class extends import_node_events6.EventEmitter {
590701
+ [g2] = false;
590694
590702
  [Qt2] = false;
590695
- [A3] = [];
590696
- [_3] = [];
590703
+ [D3] = [];
590704
+ [b3] = [];
590697
590705
  [L4];
590698
590706
  [z4];
590699
590707
  [Z3];
@@ -590702,24 +590710,24 @@ var D3 = class extends import_node_events6.EventEmitter {
590702
590710
  [rt2] = false;
590703
590711
  [Le2] = false;
590704
590712
  [Ne2] = false;
590705
- [jt2] = null;
590706
- [g2] = 0;
590713
+ [qt2] = null;
590714
+ [_3] = 0;
590707
590715
  [w2] = false;
590708
590716
  [Jt2];
590709
590717
  [Ie2] = false;
590710
- [yt2] = 0;
590711
- [C4] = false;
590718
+ [Rt2] = 0;
590719
+ [F4] = false;
590712
590720
  writable = true;
590713
590721
  readable = true;
590714
590722
  constructor(...t3) {
590715
590723
  let e2 = t3[0] || {};
590716
590724
  if (super(), e2.objectMode && typeof e2.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
590717
- Zr(e2) ? (this[L4] = true, this[z4] = null) : Yr(e2) ? (this[z4] = e2.encoding, this[L4] = false) : (this[L4] = false, this[z4] = null), this[Z3] = !!e2.async, this[Mt2] = this[z4] ? new import_node_string_decoder2.StringDecoder(this[z4]) : null, e2 && e2.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_3] }), e2 && e2.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A3] });
590725
+ Kr(e2) ? (this[L4] = true, this[z4] = null) : Vr(e2) ? (this[z4] = e2.encoding, this[L4] = false) : (this[L4] = false, this[z4] = null), this[Z3] = !!e2.async, this[Mt2] = this[z4] ? new import_node_string_decoder2.StringDecoder(this[z4]) : null, e2 && e2.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[b3] }), e2 && e2.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[D3] });
590718
590726
  let { signal: i6 } = e2;
590719
- i6 && (this[Jt2] = i6, i6.aborted ? this[gi]() : i6.addEventListener("abort", () => this[gi]()));
590727
+ i6 && (this[Jt2] = i6, i6.aborted ? this[Ti]() : i6.addEventListener("abort", () => this[Ti]()));
590720
590728
  }
590721
590729
  get bufferLength() {
590722
- return this[g2];
590730
+ return this[_3];
590723
590731
  }
590724
590732
  get encoding() {
590725
590733
  return this[z4];
@@ -590742,7 +590750,7 @@ var D3 = class extends import_node_events6.EventEmitter {
590742
590750
  set async(t3) {
590743
590751
  this[Z3] = this[Z3] || !!t3;
590744
590752
  }
590745
- [gi]() {
590753
+ [Ti]() {
590746
590754
  this[Ie2] = true, this.emit("abort", this[Jt2]?.reason), this.destroy(this[Jt2]?.reason);
590747
590755
  }
590748
590756
  get aborted() {
@@ -590755,86 +590763,86 @@ var D3 = class extends import_node_events6.EventEmitter {
590755
590763
  if (this[q3]) throw new Error("write after end");
590756
590764
  if (this[w2]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
590757
590765
  typeof e2 == "function" && (i6 = e2, e2 = "utf8"), e2 || (e2 = "utf8");
590758
- let r4 = this[Z3] ? te2 : Ur;
590766
+ let r4 = this[Z3] ? jt2 : Wr;
590759
590767
  if (!this[L4] && !Buffer.isBuffer(t3)) {
590760
- if (Gr(t3)) t3 = Buffer.from(t3.buffer, t3.byteOffset, t3.byteLength);
590761
- else if (Wr(t3)) t3 = Buffer.from(t3);
590768
+ if (Yr(t3)) t3 = Buffer.from(t3.buffer, t3.byteOffset, t3.byteLength);
590769
+ else if (Zr(t3)) t3 = Buffer.from(t3);
590762
590770
  else if (typeof t3 != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
590763
590771
  }
590764
- return this[L4] ? (this[b3] && this[g2] !== 0 && this[Ae2](true), this[b3] ? this.emit("data", t3) : this[yi](t3), this[g2] !== 0 && this.emit("readable"), i6 && r4(i6), this[b3]) : t3.length ? (typeof t3 == "string" && !(e2 === this[z4] && !this[Mt2]?.lastNeed) && (t3 = Buffer.from(t3, e2)), Buffer.isBuffer(t3) && this[z4] && (t3 = this[Mt2].write(t3)), this[b3] && this[g2] !== 0 && this[Ae2](true), this[b3] ? this.emit("data", t3) : this[yi](t3), this[g2] !== 0 && this.emit("readable"), i6 && r4(i6), this[b3]) : (this[g2] !== 0 && this.emit("readable"), i6 && r4(i6), this[b3]);
590772
+ return this[L4] ? (this[g2] && this[_3] !== 0 && this[De2](true), this[g2] ? this.emit("data", t3) : this[gi](t3), this[_3] !== 0 && this.emit("readable"), i6 && r4(i6), this[g2]) : t3.length ? (typeof t3 == "string" && !(e2 === this[z4] && !this[Mt2]?.lastNeed) && (t3 = Buffer.from(t3, e2)), Buffer.isBuffer(t3) && this[z4] && (t3 = this[Mt2].write(t3)), this[g2] && this[_3] !== 0 && this[De2](true), this[g2] ? this.emit("data", t3) : this[gi](t3), this[_3] !== 0 && this.emit("readable"), i6 && r4(i6), this[g2]) : (this[_3] !== 0 && this.emit("readable"), i6 && r4(i6), this[g2]);
590765
590773
  }
590766
590774
  read(t3) {
590767
590775
  if (this[w2]) return null;
590768
- if (this[C4] = false, this[g2] === 0 || t3 === 0 || t3 && t3 > this[g2]) return this[j4](), null;
590769
- this[L4] && (t3 = null), this[_3].length > 1 && !this[L4] && (this[_3] = [this[z4] ? this[_3].join("") : Buffer.concat(this[_3], this[g2])]);
590770
- let e2 = this[Ts](t3 || null, this[_3][0]);
590771
- return this[j4](), e2;
590776
+ if (this[F4] = false, this[_3] === 0 || t3 === 0 || t3 && t3 > this[_3]) return this[Q3](), null;
590777
+ this[L4] && (t3 = null), this[b3].length > 1 && !this[L4] && (this[b3] = [this[z4] ? this[b3].join("") : Buffer.concat(this[b3], this[_3])]);
590778
+ let e2 = this[Ls](t3 || null, this[b3][0]);
590779
+ return this[Q3](), e2;
590772
590780
  }
590773
- [Ts](t3, e2) {
590774
- if (this[L4]) this[De2]();
590781
+ [Ls](t3, e2) {
590782
+ if (this[L4]) this[Ae2]();
590775
590783
  else {
590776
590784
  let i6 = e2;
590777
- t3 === i6.length || t3 === null ? this[De2]() : typeof i6 == "string" ? (this[_3][0] = i6.slice(t3), e2 = i6.slice(0, t3), this[g2] -= t3) : (this[_3][0] = i6.subarray(t3), e2 = i6.subarray(0, t3), this[g2] -= t3);
590785
+ t3 === i6.length || t3 === null ? this[Ae2]() : typeof i6 == "string" ? (this[b3][0] = i6.slice(t3), e2 = i6.slice(0, t3), this[_3] -= t3) : (this[b3][0] = i6.subarray(t3), e2 = i6.subarray(0, t3), this[_3] -= t3);
590778
590786
  }
590779
- return this.emit("data", e2), !this[_3].length && !this[q3] && this.emit("drain"), e2;
590787
+ return this.emit("data", e2), !this[b3].length && !this[q3] && this.emit("drain"), e2;
590780
590788
  }
590781
590789
  end(t3, e2, i6) {
590782
- return typeof t3 == "function" && (i6 = t3, t3 = void 0), typeof e2 == "function" && (i6 = e2, e2 = "utf8"), t3 !== void 0 && this.write(t3, e2), i6 && this.once("end", i6), this[q3] = true, this.writable = false, (this[b3] || !this[Qt2]) && this[j4](), this;
590790
+ return typeof t3 == "function" && (i6 = t3, t3 = void 0), typeof e2 == "function" && (i6 = e2, e2 = "utf8"), t3 !== void 0 && this.write(t3, e2), i6 && this.once("end", i6), this[q3] = true, this.writable = false, (this[g2] || !this[Qt2]) && this[Q3](), this;
590783
590791
  }
590784
590792
  [Bt2]() {
590785
- this[w2] || (!this[yt2] && !this[A3].length && (this[C4] = true), this[Qt2] = false, this[b3] = true, this.emit("resume"), this[_3].length ? this[Ae2]() : this[q3] ? this[j4]() : this.emit("drain"));
590793
+ this[w2] || (!this[Rt2] && !this[D3].length && (this[F4] = true), this[Qt2] = false, this[g2] = true, this.emit("resume"), this[b3].length ? this[De2]() : this[q3] ? this[Q3]() : this.emit("drain"));
590786
590794
  }
590787
590795
  resume() {
590788
590796
  return this[Bt2]();
590789
590797
  }
590790
590798
  pause() {
590791
- this[b3] = false, this[Qt2] = true, this[C4] = false;
590799
+ this[g2] = false, this[Qt2] = true, this[F4] = false;
590792
590800
  }
590793
590801
  get destroyed() {
590794
590802
  return this[w2];
590795
590803
  }
590796
590804
  get flowing() {
590797
- return this[b3];
590805
+ return this[g2];
590798
590806
  }
590799
590807
  get paused() {
590800
590808
  return this[Qt2];
590801
590809
  }
590802
- [yi](t3) {
590803
- this[L4] ? this[g2] += 1 : this[g2] += t3.length, this[_3].push(t3);
590810
+ [gi](t3) {
590811
+ this[L4] ? this[_3] += 1 : this[_3] += t3.length, this[b3].push(t3);
590804
590812
  }
590805
- [De2]() {
590806
- return this[L4] ? this[g2] -= 1 : this[g2] -= this[_3][0].length, this[_3].shift();
590813
+ [Ae2]() {
590814
+ return this[L4] ? this[_3] -= 1 : this[_3] -= this[b3][0].length, this[b3].shift();
590807
590815
  }
590808
- [Ae2](t3 = false) {
590816
+ [De2](t3 = false) {
590809
590817
  do
590810
590818
  ;
590811
- while (this[xs](this[De2]()) && this[_3].length);
590812
- !t3 && !this[_3].length && !this[q3] && this.emit("drain");
590819
+ while (this[Ns](this[Ae2]()) && this[b3].length);
590820
+ !t3 && !this[b3].length && !this[q3] && this.emit("drain");
590813
590821
  }
590814
- [xs](t3) {
590815
- return this.emit("data", t3), this[b3];
590822
+ [Ns](t3) {
590823
+ return this.emit("data", t3), this[g2];
590816
590824
  }
590817
590825
  pipe(t3, e2) {
590818
590826
  if (this[w2]) return t3;
590819
- this[C4] = false;
590827
+ this[F4] = false;
590820
590828
  let i6 = this[rt2];
590821
- return e2 = e2 || {}, t3 === Os.stdout || t3 === Os.stderr ? e2.end = false : e2.end = e2.end !== false, e2.proxyErrors = !!e2.proxyErrors, i6 ? e2.end && t3.end() : (this[A3].push(e2.proxyErrors ? new Oi(this, t3, e2) : new Ce2(this, t3, e2)), this[Z3] ? te2(() => this[Bt2]()) : this[Bt2]()), t3;
590829
+ return e2 = e2 || {}, t3 === xs.stdout || t3 === xs.stderr ? e2.end = false : e2.end = e2.end !== false, e2.proxyErrors = !!e2.proxyErrors, i6 ? e2.end && t3.end() : (this[D3].push(e2.proxyErrors ? new xi(this, t3, e2) : new Fe2(this, t3, e2)), this[Z3] ? jt2(() => this[Bt2]()) : this[Bt2]()), t3;
590822
590830
  }
590823
590831
  unpipe(t3) {
590824
- let e2 = this[A3].find((i6) => i6.dest === t3);
590825
- e2 && (this[A3].length === 1 ? (this[b3] && this[yt2] === 0 && (this[b3] = false), this[A3] = []) : this[A3].splice(this[A3].indexOf(e2), 1), e2.unpipe());
590832
+ let e2 = this[D3].find((i6) => i6.dest === t3);
590833
+ e2 && (this[D3].length === 1 ? (this[g2] && this[Rt2] === 0 && (this[g2] = false), this[D3] = []) : this[D3].splice(this[D3].indexOf(e2), 1), e2.unpipe());
590826
590834
  }
590827
590835
  addListener(t3, e2) {
590828
590836
  return this.on(t3, e2);
590829
590837
  }
590830
590838
  on(t3, e2) {
590831
590839
  let i6 = super.on(t3, e2);
590832
- if (t3 === "data") this[C4] = false, this[yt2]++, !this[A3].length && !this[b3] && this[Bt2]();
590833
- else if (t3 === "readable" && this[g2] !== 0) super.emit("readable");
590834
- else if (Hr(t3) && this[rt2]) super.emit(t3), this.removeAllListeners(t3);
590835
- else if (t3 === "error" && this[jt2]) {
590840
+ if (t3 === "data") this[F4] = false, this[Rt2]++, !this[D3].length && !this[g2] && this[Bt2]();
590841
+ else if (t3 === "readable" && this[_3] !== 0) super.emit("readable");
590842
+ else if (Gr(t3) && this[rt2]) super.emit(t3), this.removeAllListeners(t3);
590843
+ else if (t3 === "error" && this[qt2]) {
590836
590844
  let r4 = e2;
590837
- this[Z3] ? te2(() => r4.call(this, this[jt2])) : r4.call(this, this[jt2]);
590845
+ this[Z3] ? jt2(() => r4.call(this, this[qt2])) : r4.call(this, this[qt2]);
590838
590846
  }
590839
590847
  return i6;
590840
590848
  }
@@ -590843,58 +590851,58 @@ var D3 = class extends import_node_events6.EventEmitter {
590843
590851
  }
590844
590852
  off(t3, e2) {
590845
590853
  let i6 = super.off(t3, e2);
590846
- return t3 === "data" && (this[yt2] = this.listeners("data").length, this[yt2] === 0 && !this[C4] && !this[A3].length && (this[b3] = false)), i6;
590854
+ return t3 === "data" && (this[Rt2] = this.listeners("data").length, this[Rt2] === 0 && !this[F4] && !this[D3].length && (this[g2] = false)), i6;
590847
590855
  }
590848
590856
  removeAllListeners(t3) {
590849
590857
  let e2 = super.removeAllListeners(t3);
590850
- return (t3 === "data" || t3 === void 0) && (this[yt2] = 0, !this[C4] && !this[A3].length && (this[b3] = false)), e2;
590858
+ return (t3 === "data" || t3 === void 0) && (this[Rt2] = 0, !this[F4] && !this[D3].length && (this[g2] = false)), e2;
590851
590859
  }
590852
590860
  get emittedEnd() {
590853
590861
  return this[rt2];
590854
590862
  }
590855
- [j4]() {
590856
- !this[Le2] && !this[rt2] && !this[w2] && this[_3].length === 0 && this[q3] && (this[Le2] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Ne2] && this.emit("close"), this[Le2] = false);
590863
+ [Q3]() {
590864
+ !this[Le2] && !this[rt2] && !this[w2] && this[b3].length === 0 && this[q3] && (this[Le2] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Ne2] && this.emit("close"), this[Le2] = false);
590857
590865
  }
590858
590866
  emit(t3, ...e2) {
590859
590867
  let i6 = e2[0];
590860
590868
  if (t3 !== "error" && t3 !== "close" && t3 !== w2 && this[w2]) return false;
590861
- if (t3 === "data") return !this[L4] && !i6 ? false : this[Z3] ? (te2(() => this[bi](i6)), true) : this[bi](i6);
590862
- if (t3 === "end") return this[Ls]();
590869
+ if (t3 === "data") return !this[L4] && !i6 ? false : this[Z3] ? (jt2(() => this[_i](i6)), true) : this[_i](i6);
590870
+ if (t3 === "end") return this[Ds]();
590863
590871
  if (t3 === "close") {
590864
590872
  if (this[Ne2] = true, !this[rt2] && !this[w2]) return false;
590865
590873
  let n2 = super.emit("close");
590866
590874
  return this.removeAllListeners("close"), n2;
590867
590875
  } else if (t3 === "error") {
590868
- this[jt2] = i6, super.emit(Ri, i6);
590876
+ this[qt2] = i6, super.emit(bi, i6);
590869
590877
  let n2 = !this[Jt2] || this.listeners("error").length ? super.emit("error", i6) : false;
590870
- return this[j4](), n2;
590878
+ return this[Q3](), n2;
590871
590879
  } else if (t3 === "resume") {
590872
590880
  let n2 = super.emit("resume");
590873
- return this[j4](), n2;
590881
+ return this[Q3](), n2;
590874
590882
  } else if (t3 === "finish" || t3 === "prefinish") {
590875
590883
  let n2 = super.emit(t3);
590876
590884
  return this.removeAllListeners(t3), n2;
590877
590885
  }
590878
590886
  let r4 = super.emit(t3, ...e2);
590879
- return this[j4](), r4;
590887
+ return this[Q3](), r4;
590880
590888
  }
590881
- [bi](t3) {
590882
- for (let i6 of this[A3]) i6.dest.write(t3) === false && this.pause();
590883
- let e2 = this[C4] ? false : super.emit("data", t3);
590884
- return this[j4](), e2;
590889
+ [_i](t3) {
590890
+ for (let i6 of this[D3]) i6.dest.write(t3) === false && this.pause();
590891
+ let e2 = this[F4] ? false : super.emit("data", t3);
590892
+ return this[Q3](), e2;
590885
590893
  }
590886
- [Ls]() {
590887
- return this[rt2] ? false : (this[rt2] = true, this.readable = false, this[Z3] ? (te2(() => this[_i]()), true) : this[_i]());
590894
+ [Ds]() {
590895
+ return this[rt2] ? false : (this[rt2] = true, this.readable = false, this[Z3] ? (jt2(() => this[Oi]()), true) : this[Oi]());
590888
590896
  }
590889
- [_i]() {
590897
+ [Oi]() {
590890
590898
  if (this[Mt2]) {
590891
590899
  let e2 = this[Mt2].end();
590892
590900
  if (e2) {
590893
- for (let i6 of this[A3]) i6.dest.write(e2);
590894
- this[C4] || super.emit("data", e2);
590901
+ for (let i6 of this[D3]) i6.dest.write(e2);
590902
+ this[F4] || super.emit("data", e2);
590895
590903
  }
590896
590904
  }
590897
- for (let e2 of this[A3]) e2.end();
590905
+ for (let e2 of this[D3]) e2.end();
590898
590906
  let t3 = super.emit("end");
590899
590907
  return this.removeAllListeners("end"), t3;
590900
590908
  }
@@ -590917,22 +590925,22 @@ var D3 = class extends import_node_events6.EventEmitter {
590917
590925
  });
590918
590926
  }
590919
590927
  [Symbol.asyncIterator]() {
590920
- this[C4] = false;
590928
+ this[F4] = false;
590921
590929
  let t3 = false, e2 = async () => (this.pause(), t3 = true, { value: void 0, done: true });
590922
590930
  return { next: () => {
590923
590931
  if (t3) return e2();
590924
590932
  let r4 = this.read();
590925
590933
  if (r4 !== null) return Promise.resolve({ done: false, value: r4 });
590926
590934
  if (this[q3]) return e2();
590927
- let n2, o3, h4 = (d2) => {
590928
- this.off("data", a3), this.off("end", l2), this.off(w2, c5), e2(), o3(d2);
590929
- }, a3 = (d2) => {
590930
- this.off("error", h4), this.off("end", l2), this.off(w2, c5), this.pause(), n2({ value: d2, done: !!this[q3] });
590935
+ let n2, o3, a3 = (d2) => {
590936
+ this.off("data", h4), this.off("end", l2), this.off(w2, c5), e2(), o3(d2);
590937
+ }, h4 = (d2) => {
590938
+ this.off("error", a3), this.off("end", l2), this.off(w2, c5), this.pause(), n2({ value: d2, done: !!this[q3] });
590931
590939
  }, l2 = () => {
590932
- this.off("error", h4), this.off("data", a3), this.off(w2, c5), e2(), n2({ done: true, value: void 0 });
590933
- }, c5 = () => h4(new Error("stream destroyed"));
590940
+ this.off("error", a3), this.off("data", h4), this.off(w2, c5), e2(), n2({ done: true, value: void 0 });
590941
+ }, c5 = () => a3(new Error("stream destroyed"));
590934
590942
  return new Promise((d2, S6) => {
590935
- o3 = S6, n2 = d2, this.once(w2, c5), this.once("error", h4), this.once("end", l2), this.once("data", a3);
590943
+ o3 = S6, n2 = d2, this.once(w2, c5), this.once("error", a3), this.once("end", l2), this.once("data", h4);
590936
590944
  });
590937
590945
  }, throw: e2, return: e2, [Symbol.asyncIterator]() {
590938
590946
  return this;
@@ -590940,68 +590948,68 @@ var D3 = class extends import_node_events6.EventEmitter {
590940
590948
  } };
590941
590949
  }
590942
590950
  [Symbol.iterator]() {
590943
- this[C4] = false;
590944
- let t3 = false, e2 = () => (this.pause(), this.off(Ri, e2), this.off(w2, e2), this.off("end", e2), t3 = true, { done: true, value: void 0 }), i6 = () => {
590951
+ this[F4] = false;
590952
+ let t3 = false, e2 = () => (this.pause(), this.off(bi, e2), this.off(w2, e2), this.off("end", e2), t3 = true, { done: true, value: void 0 }), i6 = () => {
590945
590953
  if (t3) return e2();
590946
590954
  let r4 = this.read();
590947
590955
  return r4 === null ? e2() : { done: false, value: r4 };
590948
590956
  };
590949
- return this.once("end", e2), this.once(Ri, e2), this.once(w2, e2), { next: i6, throw: e2, return: e2, [Symbol.iterator]() {
590957
+ return this.once("end", e2), this.once(bi, e2), this.once(w2, e2), { next: i6, throw: e2, return: e2, [Symbol.iterator]() {
590950
590958
  return this;
590951
590959
  }, [Symbol.dispose]: () => {
590952
590960
  } };
590953
590961
  }
590954
590962
  destroy(t3) {
590955
590963
  if (this[w2]) return t3 ? this.emit("error", t3) : this.emit(w2), this;
590956
- this[w2] = true, this[C4] = true, this[_3].length = 0, this[g2] = 0;
590964
+ this[w2] = true, this[F4] = true, this[b3].length = 0, this[_3] = 0;
590957
590965
  let e2 = this;
590958
590966
  return typeof e2.close == "function" && !this[Ne2] && e2.close(), t3 ? this.emit("error", t3) : this.emit(w2), this;
590959
590967
  }
590960
590968
  static get isStream() {
590961
- return Br;
590969
+ return zr;
590962
590970
  }
590963
590971
  };
590964
- var Vr = import_fs13.default.writev;
590972
+ var Xr = import_fs13.default.writev;
590965
590973
  var ot2 = /* @__PURE__ */ Symbol("_autoClose");
590966
590974
  var H4 = /* @__PURE__ */ Symbol("_close");
590967
- var ee3 = /* @__PURE__ */ Symbol("_ended");
590975
+ var te2 = /* @__PURE__ */ Symbol("_ended");
590968
590976
  var m2 = /* @__PURE__ */ Symbol("_fd");
590969
- var xi = /* @__PURE__ */ Symbol("_finished");
590970
- var J3 = /* @__PURE__ */ Symbol("_flags");
590971
- var Li = /* @__PURE__ */ Symbol("_flush");
590972
- var Ii = /* @__PURE__ */ Symbol("_handleChunk");
590973
- var Ci = /* @__PURE__ */ Symbol("_makeBuf");
590974
- var se2 = /* @__PURE__ */ Symbol("_mode");
590975
- var Fe2 = /* @__PURE__ */ Symbol("_needDrain");
590977
+ var Ni = /* @__PURE__ */ Symbol("_finished");
590978
+ var j4 = /* @__PURE__ */ Symbol("_flags");
590979
+ var Di = /* @__PURE__ */ Symbol("_flush");
590980
+ var Ci = /* @__PURE__ */ Symbol("_handleChunk");
590981
+ var ki = /* @__PURE__ */ Symbol("_makeBuf");
590982
+ var ie2 = /* @__PURE__ */ Symbol("_mode");
590983
+ var Ce2 = /* @__PURE__ */ Symbol("_needDrain");
590976
590984
  var Ut2 = /* @__PURE__ */ Symbol("_onerror");
590977
590985
  var Ht2 = /* @__PURE__ */ Symbol("_onopen");
590978
- var Ni = /* @__PURE__ */ Symbol("_onread");
590986
+ var Ai = /* @__PURE__ */ Symbol("_onread");
590979
590987
  var Pt2 = /* @__PURE__ */ Symbol("_onwrite");
590980
590988
  var ht2 = /* @__PURE__ */ Symbol("_open");
590981
590989
  var U4 = /* @__PURE__ */ Symbol("_path");
590982
590990
  var nt2 = /* @__PURE__ */ Symbol("_pos");
590983
590991
  var Y3 = /* @__PURE__ */ Symbol("_queue");
590984
590992
  var zt2 = /* @__PURE__ */ Symbol("_read");
590985
- var Ai = /* @__PURE__ */ Symbol("_readSize");
590986
- var Q3 = /* @__PURE__ */ Symbol("_reading");
590987
- var ie2 = /* @__PURE__ */ Symbol("_remain");
590988
- var Di = /* @__PURE__ */ Symbol("_size");
590993
+ var Ii = /* @__PURE__ */ Symbol("_readSize");
590994
+ var J3 = /* @__PURE__ */ Symbol("_reading");
590995
+ var ee3 = /* @__PURE__ */ Symbol("_remain");
590996
+ var Fi = /* @__PURE__ */ Symbol("_size");
590989
590997
  var ke2 = /* @__PURE__ */ Symbol("_write");
590990
- var Rt2 = /* @__PURE__ */ Symbol("_writing");
590998
+ var gt2 = /* @__PURE__ */ Symbol("_writing");
590991
590999
  var ve2 = /* @__PURE__ */ Symbol("_defaultFlag");
590992
591000
  var bt2 = /* @__PURE__ */ Symbol("_errored");
590993
- var _t2 = class extends D3 {
591001
+ var _t2 = class extends A3 {
590994
591002
  [bt2] = false;
590995
591003
  [m2];
590996
591004
  [U4];
590997
- [Ai];
590998
- [Q3] = false;
590999
- [Di];
591000
- [ie2];
591005
+ [Ii];
591006
+ [J3] = false;
591007
+ [Fi];
591008
+ [ee3];
591001
591009
  [ot2];
591002
591010
  constructor(t3, e2) {
591003
591011
  if (e2 = e2 || {}, super(e2), this.readable = true, this.writable = false, typeof t3 != "string") throw new TypeError("path must be a string");
591004
- this[bt2] = false, this[m2] = typeof e2.fd == "number" ? e2.fd : void 0, this[U4] = t3, this[Ai] = e2.readSize || 16 * 1024 * 1024, this[Q3] = false, this[Di] = typeof e2.size == "number" ? e2.size : 1 / 0, this[ie2] = this[Di], this[ot2] = typeof e2.autoClose == "boolean" ? e2.autoClose : true, typeof this[m2] == "number" ? this[zt2]() : this[ht2]();
591012
+ this[bt2] = false, this[m2] = typeof e2.fd == "number" ? e2.fd : void 0, this[U4] = t3, this[Ii] = e2.readSize || 16 * 1024 * 1024, this[J3] = false, this[Fi] = typeof e2.size == "number" ? e2.size : 1 / 0, this[ee3] = this[Fi], this[ot2] = typeof e2.autoClose == "boolean" ? e2.autoClose : true, typeof this[m2] == "number" ? this[zt2]() : this[ht2]();
591005
591013
  }
591006
591014
  get fd() {
591007
591015
  return this[m2];
@@ -591021,19 +591029,19 @@ var _t2 = class extends D3 {
591021
591029
  [Ht2](t3, e2) {
591022
591030
  t3 ? this[Ut2](t3) : (this[m2] = e2, this.emit("open", e2), this[zt2]());
591023
591031
  }
591024
- [Ci]() {
591025
- return Buffer.allocUnsafe(Math.min(this[Ai], this[ie2]));
591032
+ [ki]() {
591033
+ return Buffer.allocUnsafe(Math.min(this[Ii], this[ee3]));
591026
591034
  }
591027
591035
  [zt2]() {
591028
- if (!this[Q3]) {
591029
- this[Q3] = true;
591030
- let t3 = this[Ci]();
591031
- if (t3.length === 0) return process.nextTick(() => this[Ni](null, 0, t3));
591032
- import_fs13.default.read(this[m2], t3, 0, t3.length, null, (e2, i6, r4) => this[Ni](e2, i6, r4));
591036
+ if (!this[J3]) {
591037
+ this[J3] = true;
591038
+ let t3 = this[ki]();
591039
+ if (t3.length === 0) return process.nextTick(() => this[Ai](null, 0, t3));
591040
+ import_fs13.default.read(this[m2], t3, 0, t3.length, null, (e2, i6, r4) => this[Ai](e2, i6, r4));
591033
591041
  }
591034
591042
  }
591035
- [Ni](t3, e2, i6) {
591036
- this[Q3] = false, t3 ? this[Ut2](t3) : this[Ii](e2, i6) && this[zt2]();
591043
+ [Ai](t3, e2, i6) {
591044
+ this[J3] = false, t3 ? this[Ut2](t3) : this[Ci](e2, i6) && this[zt2]();
591037
591045
  }
591038
591046
  [H4]() {
591039
591047
  if (this[ot2] && typeof this[m2] == "number") {
@@ -591042,11 +591050,11 @@ var _t2 = class extends D3 {
591042
591050
  }
591043
591051
  }
591044
591052
  [Ut2](t3) {
591045
- this[Q3] = true, this[H4](), this.emit("error", t3);
591053
+ this[J3] = true, this[H4](), this.emit("error", t3);
591046
591054
  }
591047
- [Ii](t3, e2) {
591055
+ [Ci](t3, e2) {
591048
591056
  let i6 = false;
591049
- return this[ie2] -= t3, t3 > 0 && (i6 = super.write(t3 < e2.length ? e2.subarray(0, t3) : e2)), (t3 === 0 || this[ie2] <= 0) && (i6 = false, this[H4](), super.end()), i6;
591057
+ return this[ee3] -= t3, t3 > 0 && (i6 = super.write(t3 < e2.length ? e2.subarray(0, t3) : e2)), (t3 === 0 || this[ee3] <= 0) && (i6 = false, this[H4](), super.end()), i6;
591050
591058
  }
591051
591059
  emit(t3, ...e2) {
591052
591060
  switch (t3) {
@@ -591074,13 +591082,13 @@ var Me2 = class extends _t2 {
591074
591082
  [zt2]() {
591075
591083
  let t3 = true;
591076
591084
  try {
591077
- if (!this[Q3]) {
591078
- this[Q3] = true;
591085
+ if (!this[J3]) {
591086
+ this[J3] = true;
591079
591087
  do {
591080
- let e2 = this[Ci](), i6 = e2.length === 0 ? 0 : import_fs13.default.readSync(this[m2], e2, 0, e2.length, null);
591081
- if (!this[Ii](i6, e2)) break;
591088
+ let e2 = this[ki](), i6 = e2.length === 0 ? 0 : import_fs13.default.readSync(this[m2], e2, 0, e2.length, null);
591089
+ if (!this[Ci](i6, e2)) break;
591082
591090
  } while (true);
591083
- this[Q3] = false;
591091
+ this[J3] = false;
591084
591092
  }
591085
591093
  t3 = false;
591086
591094
  } finally {
@@ -591098,22 +591106,22 @@ var tt2 = class extends import_events2.default {
591098
591106
  readable = false;
591099
591107
  writable = true;
591100
591108
  [bt2] = false;
591101
- [Rt2] = false;
591102
- [ee3] = false;
591109
+ [gt2] = false;
591110
+ [te2] = false;
591103
591111
  [Y3] = [];
591104
- [Fe2] = false;
591112
+ [Ce2] = false;
591105
591113
  [U4];
591106
- [se2];
591114
+ [ie2];
591107
591115
  [ot2];
591108
591116
  [m2];
591109
591117
  [ve2];
591110
- [J3];
591111
- [xi] = false;
591118
+ [j4];
591119
+ [Ni] = false;
591112
591120
  [nt2];
591113
591121
  constructor(t3, e2) {
591114
- e2 = e2 || {}, super(e2), this[U4] = t3, this[m2] = typeof e2.fd == "number" ? e2.fd : void 0, this[se2] = e2.mode === void 0 ? 438 : e2.mode, this[nt2] = typeof e2.start == "number" ? e2.start : void 0, this[ot2] = typeof e2.autoClose == "boolean" ? e2.autoClose : true;
591122
+ e2 = e2 || {}, super(e2), this[U4] = t3, this[m2] = typeof e2.fd == "number" ? e2.fd : void 0, this[ie2] = e2.mode === void 0 ? 438 : e2.mode, this[nt2] = typeof e2.start == "number" ? e2.start : void 0, this[ot2] = typeof e2.autoClose == "boolean" ? e2.autoClose : true;
591115
591123
  let i6 = this[nt2] !== void 0 ? "r+" : "w";
591116
- this[ve2] = e2.flags === void 0, this[J3] = e2.flags === void 0 ? i6 : e2.flags, this[m2] === void 0 && this[ht2]();
591124
+ this[ve2] = e2.flags === void 0, this[j4] = e2.flags === void 0 ? i6 : e2.flags, this[m2] === void 0 && this[ht2]();
591117
591125
  }
591118
591126
  emit(t3, ...e2) {
591119
591127
  if (t3 === "error") {
@@ -591129,32 +591137,32 @@ var tt2 = class extends import_events2.default {
591129
591137
  return this[U4];
591130
591138
  }
591131
591139
  [Ut2](t3) {
591132
- this[H4](), this[Rt2] = true, this.emit("error", t3);
591140
+ this[H4](), this[gt2] = true, this.emit("error", t3);
591133
591141
  }
591134
591142
  [ht2]() {
591135
- import_fs13.default.open(this[U4], this[J3], this[se2], (t3, e2) => this[Ht2](t3, e2));
591143
+ import_fs13.default.open(this[U4], this[j4], this[ie2], (t3, e2) => this[Ht2](t3, e2));
591136
591144
  }
591137
591145
  [Ht2](t3, e2) {
591138
- this[ve2] && this[J3] === "r+" && t3 && t3.code === "ENOENT" ? (this[J3] = "w", this[ht2]()) : t3 ? this[Ut2](t3) : (this[m2] = e2, this.emit("open", e2), this[Rt2] || this[Li]());
591146
+ this[ve2] && this[j4] === "r+" && t3 && t3.code === "ENOENT" ? (this[j4] = "w", this[ht2]()) : t3 ? this[Ut2](t3) : (this[m2] = e2, this.emit("open", e2), this[gt2] || this[Di]());
591139
591147
  }
591140
591148
  end(t3, e2) {
591141
- return t3 && this.write(t3, e2), this[ee3] = true, !this[Rt2] && !this[Y3].length && typeof this[m2] == "number" && this[Pt2](null, 0), this;
591149
+ return t3 && this.write(t3, e2), this[te2] = true, !this[gt2] && !this[Y3].length && typeof this[m2] == "number" && this[Pt2](null, 0), this;
591142
591150
  }
591143
591151
  write(t3, e2) {
591144
- return typeof t3 == "string" && (t3 = Buffer.from(t3, e2)), this[ee3] ? (this.emit("error", new Error("write() after end()")), false) : this[m2] === void 0 || this[Rt2] || this[Y3].length ? (this[Y3].push(t3), this[Fe2] = true, false) : (this[Rt2] = true, this[ke2](t3), true);
591152
+ return typeof t3 == "string" && (t3 = Buffer.from(t3, e2)), this[te2] ? (this.emit("error", new Error("write() after end()")), false) : this[m2] === void 0 || this[gt2] || this[Y3].length ? (this[Y3].push(t3), this[Ce2] = true, false) : (this[gt2] = true, this[ke2](t3), true);
591145
591153
  }
591146
591154
  [ke2](t3) {
591147
591155
  import_fs13.default.write(this[m2], t3, 0, t3.length, this[nt2], (e2, i6) => this[Pt2](e2, i6));
591148
591156
  }
591149
591157
  [Pt2](t3, e2) {
591150
- t3 ? this[Ut2](t3) : (this[nt2] !== void 0 && typeof e2 == "number" && (this[nt2] += e2), this[Y3].length ? this[Li]() : (this[Rt2] = false, this[ee3] && !this[xi] ? (this[xi] = true, this[H4](), this.emit("finish")) : this[Fe2] && (this[Fe2] = false, this.emit("drain"))));
591158
+ t3 ? this[Ut2](t3) : (this[nt2] !== void 0 && typeof e2 == "number" && (this[nt2] += e2), this[Y3].length ? this[Di]() : (this[gt2] = false, this[te2] && !this[Ni] ? (this[Ni] = true, this[H4](), this.emit("finish")) : this[Ce2] && (this[Ce2] = false, this.emit("drain"))));
591151
591159
  }
591152
- [Li]() {
591153
- if (this[Y3].length === 0) this[ee3] && this[Pt2](null, 0);
591160
+ [Di]() {
591161
+ if (this[Y3].length === 0) this[te2] && this[Pt2](null, 0);
591154
591162
  else if (this[Y3].length === 1) this[ke2](this[Y3].pop());
591155
591163
  else {
591156
591164
  let t3 = this[Y3];
591157
- this[Y3] = [], Vr(this[m2], t3, this[nt2], (e2, i6) => this[Pt2](e2, i6));
591165
+ this[Y3] = [], Xr(this[m2], t3, this[nt2], (e2, i6) => this[Pt2](e2, i6));
591158
591166
  }
591159
591167
  }
591160
591168
  [H4]() {
@@ -591167,13 +591175,13 @@ var tt2 = class extends import_events2.default {
591167
591175
  var Wt2 = class extends tt2 {
591168
591176
  [ht2]() {
591169
591177
  let t3;
591170
- if (this[ve2] && this[J3] === "r+") try {
591171
- t3 = import_fs13.default.openSync(this[U4], this[J3], this[se2]);
591178
+ if (this[ve2] && this[j4] === "r+") try {
591179
+ t3 = import_fs13.default.openSync(this[U4], this[j4], this[ie2]);
591172
591180
  } catch (e2) {
591173
- if (e2?.code === "ENOENT") return this[J3] = "w", this[ht2]();
591181
+ if (e2?.code === "ENOENT") return this[j4] = "w", this[ht2]();
591174
591182
  throw e2;
591175
591183
  }
591176
- else t3 = import_fs13.default.openSync(this[U4], this[J3], this[se2]);
591184
+ else t3 = import_fs13.default.openSync(this[U4], this[j4], this[ie2]);
591177
591185
  this[Ht2](null, t3);
591178
591186
  }
591179
591187
  [H4]() {
@@ -591194,53 +591202,53 @@ var Wt2 = class extends tt2 {
591194
591202
  }
591195
591203
  }
591196
591204
  };
591197
- var $r = /* @__PURE__ */ new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePaths"], ["U", "unlink"], ["strip-components", "strip"], ["stripComponents", "strip"], ["keep-newer", "newer"], ["keepNewer", "newer"], ["keep-newer-files", "newer"], ["keepNewerFiles", "newer"], ["k", "keep"], ["keep-existing", "keep"], ["keepExisting", "keep"], ["m", "noMtime"], ["no-mtime", "noMtime"], ["p", "preserveOwner"], ["L", "follow"], ["h", "follow"], ["onentry", "onReadEntry"]]);
591198
- var As = (s5) => !!s5.sync && !!s5.file;
591199
- var Ds = (s5) => !s5.sync && !!s5.file;
591200
- var Is = (s5) => !!s5.sync && !s5.file;
591201
- var Cs = (s5) => !s5.sync && !s5.file;
591202
- var Fs = (s5) => !!s5.file;
591203
- var Xr = (s5) => {
591204
- let t3 = $r.get(s5);
591205
+ var qr2 = /* @__PURE__ */ new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePaths"], ["U", "unlink"], ["strip-components", "strip"], ["stripComponents", "strip"], ["keep-newer", "newer"], ["keepNewer", "newer"], ["keep-newer-files", "newer"], ["keepNewerFiles", "newer"], ["k", "keep"], ["keep-existing", "keep"], ["keepExisting", "keep"], ["m", "noMtime"], ["no-mtime", "noMtime"], ["p", "preserveOwner"], ["L", "follow"], ["h", "follow"], ["onentry", "onReadEntry"]]);
591206
+ var Is = (s5) => !!s5.sync && !!s5.file;
591207
+ var Fs = (s5) => !s5.sync && !!s5.file;
591208
+ var Cs = (s5) => !!s5.sync && !s5.file;
591209
+ var ks = (s5) => !s5.sync && !s5.file;
591210
+ var vs = (s5) => !!s5.file;
591211
+ var Qr = (s5) => {
591212
+ let t3 = qr2.get(s5);
591205
591213
  return t3 || s5;
591206
591214
  };
591207
- var re3 = (s5 = {}) => {
591215
+ var se2 = (s5 = {}) => {
591208
591216
  if (!s5) return {};
591209
591217
  let t3 = {};
591210
591218
  for (let [e2, i6] of Object.entries(s5)) {
591211
- let r4 = Xr(e2);
591219
+ let r4 = Qr(e2);
591212
591220
  t3[r4] = i6;
591213
591221
  }
591214
591222
  return t3.chmod === void 0 && t3.noChmod === false && (t3.chmod = true), delete t3.noChmod, t3;
591215
591223
  };
591216
- var K3 = (s5, t3, e2, i6, r4) => Object.assign((n2 = [], o3, h4) => {
591217
- Array.isArray(n2) && (o3 = n2, n2 = {}), typeof o3 == "function" && (h4 = o3, o3 = void 0), o3 = o3 ? Array.from(o3) : [];
591218
- let a3 = re3(n2);
591219
- if (r4?.(a3, o3), As(a3)) {
591220
- if (typeof h4 == "function") throw new TypeError("callback not supported for sync tar functions");
591221
- return s5(a3, o3);
591222
- } else if (Ds(a3)) {
591223
- let l2 = t3(a3, o3);
591224
- return h4 ? l2.then(() => h4(), h4) : l2;
591225
- } else if (Is(a3)) {
591226
- if (typeof h4 == "function") throw new TypeError("callback not supported for sync tar functions");
591227
- return e2(a3, o3);
591228
- } else if (Cs(a3)) {
591229
- if (typeof h4 == "function") throw new TypeError("callback only supported with file option");
591230
- return i6(a3, o3);
591224
+ var K3 = (s5, t3, e2, i6, r4) => Object.assign((n2 = [], o3, a3) => {
591225
+ Array.isArray(n2) && (o3 = n2, n2 = {}), typeof o3 == "function" && (a3 = o3, o3 = void 0), o3 = o3 ? Array.from(o3) : [];
591226
+ let h4 = se2(n2);
591227
+ if (r4?.(h4, o3), Is(h4)) {
591228
+ if (typeof a3 == "function") throw new TypeError("callback not supported for sync tar functions");
591229
+ return s5(h4, o3);
591230
+ } else if (Fs(h4)) {
591231
+ let l2 = t3(h4, o3);
591232
+ return a3 ? l2.then(() => a3(), a3) : l2;
591233
+ } else if (Cs(h4)) {
591234
+ if (typeof a3 == "function") throw new TypeError("callback not supported for sync tar functions");
591235
+ return e2(h4, o3);
591236
+ } else if (ks(h4)) {
591237
+ if (typeof a3 == "function") throw new TypeError("callback only supported with file option");
591238
+ return i6(h4, o3);
591231
591239
  }
591232
591240
  throw new Error("impossible options??");
591233
591241
  }, { syncFile: s5, asyncFile: t3, syncNoFile: e2, asyncNoFile: i6, validate: r4 });
591234
591242
  var jr = import_zlib3.default.constants || { ZLIB_VERNUM: 4736 };
591235
591243
  var M4 = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 }, jr));
591236
- var Qr = import_buffer.Buffer.concat;
591237
- var vs = Object.getOwnPropertyDescriptor(import_buffer.Buffer, "concat");
591238
- var Jr = (s5) => s5;
591239
- var ki = vs?.writable === true || vs?.set !== void 0 ? (s5) => {
591240
- import_buffer.Buffer.concat = s5 ? Jr : Qr;
591244
+ var tn = import_buffer.Buffer.concat;
591245
+ var Bs = Object.getOwnPropertyDescriptor(import_buffer.Buffer, "concat");
591246
+ var en = (s5) => s5;
591247
+ var Mi = Bs?.writable === true || Bs?.set !== void 0 ? (s5) => {
591248
+ import_buffer.Buffer.concat = s5 ? en : tn;
591241
591249
  } : (s5) => {
591242
591250
  };
591243
- var Ot2 = /* @__PURE__ */ Symbol("_superWrite");
591251
+ var Tt2 = /* @__PURE__ */ Symbol("_superWrite");
591244
591252
  var Gt2 = class extends Error {
591245
591253
  code;
591246
591254
  errno;
@@ -591251,8 +591259,8 @@ var Gt2 = class extends Error {
591251
591259
  return "ZlibError";
591252
591260
  }
591253
591261
  };
591254
- var vi = /* @__PURE__ */ Symbol("flushFlag");
591255
- var ne3 = class extends D3 {
591262
+ var Bi = /* @__PURE__ */ Symbol("flushFlag");
591263
+ var re3 = class extends A3 {
591256
591264
  #t = false;
591257
591265
  #i = false;
591258
591266
  #s;
@@ -591271,9 +591279,9 @@ var ne3 = class extends D3 {
591271
591279
  }
591272
591280
  constructor(t3, e2) {
591273
591281
  if (!t3 || typeof t3 != "object") throw new TypeError("invalid options for ZlibBase constructor");
591274
- if (super(t3), this.#s = t3.flush ?? 0, this.#n = t3.finishFlush ?? 0, this.#r = t3.fullFlushFlag ?? 0, typeof ks[e2] != "function") throw new TypeError("Compression method not supported: " + e2);
591282
+ if (super(t3), this.#s = t3.flush ?? 0, this.#n = t3.finishFlush ?? 0, this.#r = t3.fullFlushFlag ?? 0, typeof Ms[e2] != "function") throw new TypeError("Compression method not supported: " + e2);
591275
591283
  try {
591276
- this.#e = new ks[e2](t3);
591284
+ this.#e = new Ms[e2](t3);
591277
591285
  } catch (i6) {
591278
591286
  throw new Gt2(i6, this.constructor);
591279
591287
  }
@@ -591288,7 +591296,7 @@ var ne3 = class extends D3 {
591288
591296
  if (!this.#t) return (0, import_assert5.default)(this.#e, "zlib binding closed"), this.#e.reset?.();
591289
591297
  }
591290
591298
  flush(t3) {
591291
- this.ended || (typeof t3 != "number" && (t3 = this.#r), this.write(Object.assign(import_buffer.Buffer.alloc(0), { [vi]: t3 })));
591299
+ this.ended || (typeof t3 != "number" && (t3 = this.#r), this.write(Object.assign(import_buffer.Buffer.alloc(0), { [Bi]: t3 })));
591292
591300
  }
591293
591301
  end(t3, e2, i6) {
591294
591302
  return typeof t3 == "function" && (i6 = t3, e2 = void 0, t3 = void 0), typeof e2 == "function" && (i6 = e2, e2 = void 0), t3 && (e2 ? this.write(t3, e2) : this.write(t3)), this.flush(this.#n), this.#i = true, super.end(i6);
@@ -591296,7 +591304,7 @@ var ne3 = class extends D3 {
591296
591304
  get ended() {
591297
591305
  return this.#i;
591298
591306
  }
591299
- [Ot2](t3) {
591307
+ [Tt2](t3) {
591300
591308
  return super.write(t3);
591301
591309
  }
591302
591310
  write(t3, e2, i6) {
@@ -591307,27 +591315,27 @@ var ne3 = class extends D3 {
591307
591315
  };
591308
591316
  let o3 = this.#e.close;
591309
591317
  this.#e.close = () => {
591310
- }, ki(true);
591311
- let h4;
591318
+ }, Mi(true);
591319
+ let a3;
591312
591320
  try {
591313
- let l2 = typeof t3[vi] == "number" ? t3[vi] : this.#s;
591314
- h4 = this.#e._processChunk(t3, l2), ki(false);
591321
+ let l2 = typeof t3[Bi] == "number" ? t3[Bi] : this.#s;
591322
+ a3 = this.#e._processChunk(t3, l2), Mi(false);
591315
591323
  } catch (l2) {
591316
- ki(false), this.#o(new Gt2(l2, this.write));
591324
+ Mi(false), this.#o(new Gt2(l2, this.write));
591317
591325
  } finally {
591318
591326
  this.#e && (this.#e._handle = r4, r4.close = n2, this.#e.close = o3, this.#e.removeAllListeners("error"));
591319
591327
  }
591320
591328
  this.#e && this.#e.on("error", (l2) => this.#o(new Gt2(l2, this.write)));
591321
- let a3;
591322
- if (h4) if (Array.isArray(h4) && h4.length > 0) {
591323
- let l2 = h4[0];
591324
- a3 = this[Ot2](import_buffer.Buffer.from(l2));
591325
- for (let c5 = 1; c5 < h4.length; c5++) a3 = this[Ot2](h4[c5]);
591326
- } else a3 = this[Ot2](import_buffer.Buffer.from(h4));
591327
- return i6 && i6(), a3;
591329
+ let h4;
591330
+ if (a3) if (Array.isArray(a3) && a3.length > 0) {
591331
+ let l2 = a3[0];
591332
+ h4 = this[Tt2](import_buffer.Buffer.from(l2));
591333
+ for (let c5 = 1; c5 < a3.length; c5++) h4 = this[Tt2](a3[c5]);
591334
+ } else h4 = this[Tt2](import_buffer.Buffer.from(a3));
591335
+ return i6 && i6(), h4;
591328
591336
  }
591329
591337
  };
591330
- var Be2 = class extends ne3 {
591338
+ var Be2 = class extends re3 {
591331
591339
  #t;
591332
591340
  #i;
591333
591341
  constructor(t3, e2) {
@@ -591358,8 +591366,8 @@ var Pe2 = class extends Be2 {
591358
591366
  constructor(t3) {
591359
591367
  super(t3, "Gzip"), this.#t = t3 && !!t3.portable;
591360
591368
  }
591361
- [Ot2](t3) {
591362
- return this.#t ? (this.#t = false, t3[9] = 255, super[Ot2](t3)) : super[Ot2](t3);
591369
+ [Tt2](t3) {
591370
+ return this.#t ? (this.#t = false, t3[9] = 255, super[Tt2](t3)) : super[Tt2](t3);
591363
591371
  }
591364
591372
  };
591365
591373
  var ze2 = class extends Be2 {
@@ -591367,7 +591375,7 @@ var ze2 = class extends Be2 {
591367
591375
  super(t3, "Unzip");
591368
591376
  }
591369
591377
  };
591370
- var Ue2 = class extends ne3 {
591378
+ var Ue2 = class extends re3 {
591371
591379
  constructor(t3, e2) {
591372
591380
  t3 = t3 || {}, t3.flush = t3.flush || M4.BROTLI_OPERATION_PROCESS, t3.finishFlush = t3.finishFlush || M4.BROTLI_OPERATION_FINISH, t3.fullFlushFlag = M4.BROTLI_OPERATION_FLUSH, super(t3, e2);
591373
591381
  }
@@ -591382,7 +591390,7 @@ var We2 = class extends Ue2 {
591382
591390
  super(t3, "BrotliDecompress");
591383
591391
  }
591384
591392
  };
591385
- var Ge2 = class extends ne3 {
591393
+ var Ge2 = class extends re3 {
591386
591394
  constructor(t3, e2) {
591387
591395
  t3 = t3 || {}, t3.flush = t3.flush || M4.ZSTD_e_continue, t3.finishFlush = t3.finishFlush || M4.ZSTD_e_end, t3.fullFlushFlag = M4.ZSTD_e_flush, super(t3, e2);
591388
591396
  }
@@ -591397,53 +591405,54 @@ var Ye2 = class extends Ge2 {
591397
591405
  super(t3, "ZstdDecompress");
591398
591406
  }
591399
591407
  };
591400
- var Ms = (s5, t3) => {
591401
- if (Number.isSafeInteger(s5)) s5 < 0 ? sn(s5, t3) : en(s5, t3);
591408
+ var Ps = (s5, t3) => {
591409
+ if (Number.isSafeInteger(s5)) s5 < 0 ? nn(s5, t3) : rn(s5, t3);
591402
591410
  else throw Error("cannot encode number outside of javascript safe integer range");
591403
591411
  return t3;
591404
591412
  };
591405
- var en = (s5, t3) => {
591413
+ var rn = (s5, t3) => {
591406
591414
  t3[0] = 128;
591407
591415
  for (var e2 = t3.length; e2 > 1; e2--) t3[e2 - 1] = s5 & 255, s5 = Math.floor(s5 / 256);
591408
591416
  };
591409
- var sn = (s5, t3) => {
591417
+ var nn = (s5, t3) => {
591410
591418
  t3[0] = 255;
591411
591419
  var e2 = false;
591412
591420
  s5 = s5 * -1;
591413
591421
  for (var i6 = t3.length; i6 > 1; i6--) {
591414
591422
  var r4 = s5 & 255;
591415
- s5 = Math.floor(s5 / 256), e2 ? t3[i6 - 1] = Ps(r4) : r4 === 0 ? t3[i6 - 1] = 0 : (e2 = true, t3[i6 - 1] = zs(r4));
591423
+ s5 = Math.floor(s5 / 256), e2 ? t3[i6 - 1] = Us(r4) : r4 === 0 ? t3[i6 - 1] = 0 : (e2 = true, t3[i6 - 1] = Hs(r4));
591416
591424
  }
591417
591425
  };
591418
- var Bs = (s5) => {
591419
- let t3 = s5[0], e2 = t3 === 128 ? nn(s5.subarray(1, s5.length)) : t3 === 255 ? rn(s5) : null;
591426
+ var zs = (s5) => {
591427
+ let t3 = s5[0], e2 = t3 === 128 ? hn(s5.subarray(1, s5.length)) : t3 === 255 ? on(s5) : null;
591420
591428
  if (e2 === null) throw Error("invalid base256 encoding");
591421
591429
  if (!Number.isSafeInteger(e2)) throw Error("parsed number outside of javascript safe integer range");
591422
591430
  return e2;
591423
591431
  };
591424
- var rn = (s5) => {
591432
+ var on = (s5) => {
591425
591433
  for (var t3 = s5.length, e2 = 0, i6 = false, r4 = t3 - 1; r4 > -1; r4--) {
591426
591434
  var n2 = Number(s5[r4]), o3;
591427
- i6 ? o3 = Ps(n2) : n2 === 0 ? o3 = n2 : (i6 = true, o3 = zs(n2)), o3 !== 0 && (e2 -= o3 * Math.pow(256, t3 - r4 - 1));
591435
+ i6 ? o3 = Us(n2) : n2 === 0 ? o3 = n2 : (i6 = true, o3 = Hs(n2)), o3 !== 0 && (e2 -= o3 * Math.pow(256, t3 - r4 - 1));
591428
591436
  }
591429
591437
  return e2;
591430
591438
  };
591431
- var nn = (s5) => {
591439
+ var hn = (s5) => {
591432
591440
  for (var t3 = s5.length, e2 = 0, i6 = t3 - 1; i6 > -1; i6--) {
591433
591441
  var r4 = Number(s5[i6]);
591434
591442
  r4 !== 0 && (e2 += r4 * Math.pow(256, t3 - i6 - 1));
591435
591443
  }
591436
591444
  return e2;
591437
591445
  };
591438
- var Ps = (s5) => (255 ^ s5) & 255;
591439
- var zs = (s5) => (255 ^ s5) + 1 & 255;
591440
- var Bi = {};
591441
- vr2(Bi, { code: () => Ke2, isCode: () => oe2, isName: () => hn, name: () => he2 });
591442
- var oe2 = (s5) => he2.has(s5);
591443
- var hn = (s5) => Ke2.has(s5);
591444
- var he2 = /* @__PURE__ */ new Map([["0", "File"], ["", "OldFile"], ["1", "Link"], ["2", "SymbolicLink"], ["3", "CharacterDevice"], ["4", "BlockDevice"], ["5", "Directory"], ["6", "FIFO"], ["7", "ContiguousFile"], ["g", "GlobalExtendedHeader"], ["x", "ExtendedHeader"], ["A", "SolarisACL"], ["D", "GNUDumpDir"], ["I", "Inode"], ["K", "NextFileHasLongLinkpath"], ["L", "NextFileHasLongPath"], ["M", "ContinuationFile"], ["N", "OldGnuLongPath"], ["S", "SparseFile"], ["V", "TapeVolumeHeader"], ["X", "OldExtendedHeader"]]);
591445
- var Ke2 = new Map(Array.from(he2).map((s5) => [s5[1], s5[0]]));
591446
- var F4 = class {
591446
+ var Us = (s5) => (255 ^ s5) & 255;
591447
+ var Hs = (s5) => (255 ^ s5) + 1 & 255;
591448
+ var Ui = {};
591449
+ Br(Ui, { code: () => Ke2, isCode: () => ne3, isName: () => ln, name: () => oe2, normalFsTypes: () => zi });
591450
+ var ne3 = (s5) => oe2.has(s5);
591451
+ var ln = (s5) => Ke2.has(s5);
591452
+ var zi = /* @__PURE__ */ new Set(["0", "", "1", "2", "3", "4", "5", "6", "7", "D"]);
591453
+ var oe2 = /* @__PURE__ */ new Map([["0", "File"], ["", "OldFile"], ["1", "Link"], ["2", "SymbolicLink"], ["3", "CharacterDevice"], ["4", "BlockDevice"], ["5", "Directory"], ["6", "FIFO"], ["7", "ContiguousFile"], ["g", "GlobalExtendedHeader"], ["x", "ExtendedHeader"], ["A", "SolarisACL"], ["D", "GNUDumpDir"], ["I", "Inode"], ["K", "NextFileHasLongLinkpath"], ["L", "NextFileHasLongPath"], ["M", "ContinuationFile"], ["N", "OldGnuLongPath"], ["S", "SparseFile"], ["V", "TapeVolumeHeader"], ["X", "OldExtendedHeader"]]);
591454
+ var Ke2 = new Map(Array.from(oe2).map((s5) => [s5[1], s5[0]]));
591455
+ var C4 = class {
591447
591456
  cksumValid = false;
591448
591457
  needPax = false;
591449
591458
  nullBlock = false;
@@ -591470,46 +591479,45 @@ var F4 = class {
591470
591479
  }
591471
591480
  decode(t3, e2, i6, r4) {
591472
591481
  if (e2 || (e2 = 0), !t3 || !(t3.length >= e2 + 512)) throw new Error("need 512 bytes for header");
591473
- this.path = i6?.path ?? Tt2(t3, e2, 100), this.mode = i6?.mode ?? r4?.mode ?? at2(t3, e2 + 100, 8), this.uid = i6?.uid ?? r4?.uid ?? at2(t3, e2 + 108, 8), this.gid = i6?.gid ?? r4?.gid ?? at2(t3, e2 + 116, 8), this.size = i6?.size ?? r4?.size ?? at2(t3, e2 + 124, 12), this.mtime = i6?.mtime ?? r4?.mtime ?? Pi(t3, e2 + 136, 12), this.cksum = at2(t3, e2 + 148, 12), r4 && this.#i(r4, true), i6 && this.#i(i6);
591474
- let n2 = Tt2(t3, e2 + 156, 1);
591475
- if (oe2(n2) && (this.#t = n2 || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath = Tt2(t3, e2 + 157, 100), t3.subarray(e2 + 257, e2 + 265).toString() === "ustar\x0000") if (this.uname = i6?.uname ?? r4?.uname ?? Tt2(t3, e2 + 265, 32), this.gname = i6?.gname ?? r4?.gname ?? Tt2(t3, e2 + 297, 32), this.devmaj = i6?.devmaj ?? r4?.devmaj ?? at2(t3, e2 + 329, 8) ?? 0, this.devmin = i6?.devmin ?? r4?.devmin ?? at2(t3, e2 + 337, 8) ?? 0, t3[e2 + 475] !== 0) {
591476
- let h4 = Tt2(t3, e2 + 345, 155);
591477
- this.path = h4 + "/" + this.path;
591482
+ let n2 = xt2(t3, e2 + 156, 1), o3 = zi.has(n2), a3 = o3 ? i6 : void 0, h4 = o3 ? r4 : void 0;
591483
+ if (this.path = a3?.path ?? xt2(t3, e2, 100), this.mode = a3?.mode ?? h4?.mode ?? at2(t3, e2 + 100, 8), this.uid = a3?.uid ?? h4?.uid ?? at2(t3, e2 + 108, 8), this.gid = a3?.gid ?? h4?.gid ?? at2(t3, e2 + 116, 8), this.size = a3?.size ?? h4?.size ?? at2(t3, e2 + 124, 12), this.mtime = a3?.mtime ?? h4?.mtime ?? Hi(t3, e2 + 136, 12), this.cksum = at2(t3, e2 + 148, 12), h4 && this.#i(h4, true), a3 && this.#i(a3), ne3(n2) && (this.#t = n2 || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath = xt2(t3, e2 + 157, 100), t3.subarray(e2 + 257, e2 + 265).toString() === "ustar\x0000") if (this.uname = a3?.uname ?? h4?.uname ?? xt2(t3, e2 + 265, 32), this.gname = a3?.gname ?? h4?.gname ?? xt2(t3, e2 + 297, 32), this.devmaj = a3?.devmaj ?? h4?.devmaj ?? at2(t3, e2 + 329, 8) ?? 0, this.devmin = a3?.devmin ?? h4?.devmin ?? at2(t3, e2 + 337, 8) ?? 0, t3[e2 + 475] !== 0) {
591484
+ let c5 = xt2(t3, e2 + 345, 155);
591485
+ this.path = c5 + "/" + this.path;
591478
591486
  } else {
591479
- let h4 = Tt2(t3, e2 + 345, 130);
591480
- h4 && (this.path = h4 + "/" + this.path), this.atime = i6?.atime ?? r4?.atime ?? Pi(t3, e2 + 476, 12), this.ctime = i6?.ctime ?? r4?.ctime ?? Pi(t3, e2 + 488, 12);
591487
+ let c5 = xt2(t3, e2 + 345, 130);
591488
+ c5 && (this.path = c5 + "/" + this.path), this.atime = i6?.atime ?? r4?.atime ?? Hi(t3, e2 + 476, 12), this.ctime = i6?.ctime ?? r4?.ctime ?? Hi(t3, e2 + 488, 12);
591481
591489
  }
591482
- let o3 = 256;
591483
- for (let h4 = e2; h4 < e2 + 148; h4++) o3 += t3[h4];
591484
- for (let h4 = e2 + 156; h4 < e2 + 512; h4++) o3 += t3[h4];
591485
- this.cksumValid = o3 === this.cksum, this.cksum === void 0 && o3 === 256 && (this.nullBlock = true);
591490
+ let l2 = 256;
591491
+ for (let c5 = e2; c5 < e2 + 148; c5++) l2 += t3[c5];
591492
+ for (let c5 = e2 + 156; c5 < e2 + 512; c5++) l2 += t3[c5];
591493
+ this.cksumValid = l2 === this.cksum, this.cksum === void 0 && l2 === 256 && (this.nullBlock = true);
591486
591494
  }
591487
591495
  #i(t3, e2 = false) {
591488
591496
  Object.assign(this, Object.fromEntries(Object.entries(t3).filter(([i6, r4]) => !(r4 == null || i6 === "path" && e2 || i6 === "linkpath" && e2 || i6 === "global"))));
591489
591497
  }
591490
591498
  encode(t3, e2 = 0) {
591491
591499
  if (t3 || (t3 = this.block = Buffer.alloc(512)), this.#t === "Unsupported" && (this.#t = "0"), !(t3.length >= e2 + 512)) throw new Error("need 512 bytes for header");
591492
- let i6 = this.ctime || this.atime ? 130 : 155, r4 = an(this.path || "", i6), n2 = r4[0], o3 = r4[1];
591493
- this.needPax = !!r4[2], this.needPax = xt2(t3, e2, 100, n2) || this.needPax, this.needPax = lt2(t3, e2 + 100, 8, this.mode) || this.needPax, this.needPax = lt2(t3, e2 + 108, 8, this.uid) || this.needPax, this.needPax = lt2(t3, e2 + 116, 8, this.gid) || this.needPax, this.needPax = lt2(t3, e2 + 124, 12, this.size) || this.needPax, this.needPax = zi(t3, e2 + 136, 12, this.mtime) || this.needPax, t3[e2 + 156] = Number(this.#t.codePointAt(0)), this.needPax = xt2(t3, e2 + 157, 100, this.linkpath) || this.needPax, t3.write("ustar\x0000", e2 + 257, 8), this.needPax = xt2(t3, e2 + 265, 32, this.uname) || this.needPax, this.needPax = xt2(t3, e2 + 297, 32, this.gname) || this.needPax, this.needPax = lt2(t3, e2 + 329, 8, this.devmaj) || this.needPax, this.needPax = lt2(t3, e2 + 337, 8, this.devmin) || this.needPax, this.needPax = xt2(t3, e2 + 345, i6, o3) || this.needPax, t3[e2 + 475] !== 0 ? this.needPax = xt2(t3, e2 + 345, 155, o3) || this.needPax : (this.needPax = xt2(t3, e2 + 345, 130, o3) || this.needPax, this.needPax = zi(t3, e2 + 476, 12, this.atime) || this.needPax, this.needPax = zi(t3, e2 + 488, 12, this.ctime) || this.needPax);
591494
- let h4 = 256;
591495
- for (let a3 = e2; a3 < e2 + 148; a3++) h4 += t3[a3];
591496
- for (let a3 = e2 + 156; a3 < e2 + 512; a3++) h4 += t3[a3];
591497
- return this.cksum = h4, lt2(t3, e2 + 148, 8, this.cksum), this.cksumValid = true, this.needPax;
591500
+ let i6 = this.ctime || this.atime ? 130 : 155, r4 = cn(this.path || "", i6), n2 = r4[0], o3 = r4[1];
591501
+ this.needPax = !!r4[2], this.needPax = Lt2(t3, e2, 100, n2) || this.needPax, this.needPax = lt2(t3, e2 + 100, 8, this.mode) || this.needPax, this.needPax = lt2(t3, e2 + 108, 8, this.uid) || this.needPax, this.needPax = lt2(t3, e2 + 116, 8, this.gid) || this.needPax, this.needPax = lt2(t3, e2 + 124, 12, this.size) || this.needPax, this.needPax = Wi(t3, e2 + 136, 12, this.mtime) || this.needPax, t3[e2 + 156] = Number(this.#t.codePointAt(0)), this.needPax = Lt2(t3, e2 + 157, 100, this.linkpath) || this.needPax, t3.write("ustar\x0000", e2 + 257, 8), this.needPax = Lt2(t3, e2 + 265, 32, this.uname) || this.needPax, this.needPax = Lt2(t3, e2 + 297, 32, this.gname) || this.needPax, this.needPax = lt2(t3, e2 + 329, 8, this.devmaj) || this.needPax, this.needPax = lt2(t3, e2 + 337, 8, this.devmin) || this.needPax, this.needPax = Lt2(t3, e2 + 345, i6, o3) || this.needPax, t3[e2 + 475] !== 0 ? this.needPax = Lt2(t3, e2 + 345, 155, o3) || this.needPax : (this.needPax = Lt2(t3, e2 + 345, 130, o3) || this.needPax, this.needPax = Wi(t3, e2 + 476, 12, this.atime) || this.needPax, this.needPax = Wi(t3, e2 + 488, 12, this.ctime) || this.needPax);
591502
+ let a3 = 256;
591503
+ for (let h4 = e2; h4 < e2 + 148; h4++) a3 += t3[h4];
591504
+ for (let h4 = e2 + 156; h4 < e2 + 512; h4++) a3 += t3[h4];
591505
+ return this.cksum = a3, lt2(t3, e2 + 148, 8, this.cksum), this.cksumValid = true, this.needPax;
591498
591506
  }
591499
591507
  get type() {
591500
- return this.#t === "Unsupported" ? this.#t : he2.get(this.#t);
591508
+ return this.#t === "Unsupported" ? this.#t : oe2.get(this.#t);
591501
591509
  }
591502
591510
  get typeKey() {
591503
591511
  return this.#t;
591504
591512
  }
591505
591513
  set type(t3) {
591506
591514
  let e2 = String(Ke2.get(t3));
591507
- if (oe2(e2) || e2 === "Unsupported") this.#t = e2;
591508
- else if (oe2(t3)) this.#t = t3;
591515
+ if (ne3(e2) || e2 === "Unsupported") this.#t = e2;
591516
+ else if (ne3(t3)) this.#t = t3;
591509
591517
  else throw new TypeError("invalid entry type: " + t3);
591510
591518
  }
591511
591519
  };
591512
- var an = (s5, t3) => {
591520
+ var cn = (s5, t3) => {
591513
591521
  let i6 = s5, r4 = "", n2, o3 = import_node_path10.posix.parse(s5).root || ".";
591514
591522
  if (Buffer.byteLength(i6) < 100) n2 = [i6, r4, false];
591515
591523
  else {
@@ -591521,20 +591529,20 @@ var an = (s5, t3) => {
591521
591529
  }
591522
591530
  return n2;
591523
591531
  };
591524
- var Tt2 = (s5, t3, e2) => s5.subarray(t3, t3 + e2).toString("utf8").replace(/\0.*/, "");
591525
- var Pi = (s5, t3, e2) => ln(at2(s5, t3, e2));
591526
- var ln = (s5) => s5 === void 0 ? void 0 : new Date(s5 * 1e3);
591527
- var at2 = (s5, t3, e2) => Number(s5[t3]) & 128 ? Bs(s5.subarray(t3, t3 + e2)) : fn(s5, t3, e2);
591528
- var cn = (s5) => isNaN(s5) ? void 0 : s5;
591529
- var fn = (s5, t3, e2) => cn(parseInt(s5.subarray(t3, t3 + e2).toString("utf8").replace(/\0.*$/, "").trim(), 8));
591530
- var dn = { 12: 8589934591, 8: 2097151 };
591531
- var lt2 = (s5, t3, e2, i6) => i6 === void 0 ? false : i6 > dn[e2] || i6 < 0 ? (Ms(i6, s5.subarray(t3, t3 + e2)), true) : (un(s5, t3, e2, i6), false);
591532
- var un = (s5, t3, e2, i6) => s5.write(mn(i6, e2), t3, e2, "ascii");
591533
- var mn = (s5, t3) => pn(Math.floor(s5).toString(8), t3);
591534
- var pn = (s5, t3) => (s5.length === t3 - 1 ? s5 : new Array(t3 - s5.length - 1).join("0") + s5 + " ") + "\0";
591535
- var zi = (s5, t3, e2, i6) => i6 === void 0 ? false : lt2(s5, t3, e2, i6.getTime() / 1e3);
591536
- var En = new Array(156).join("\0");
591537
- var xt2 = (s5, t3, e2, i6) => i6 === void 0 ? false : (s5.write(i6 + En, t3, e2, "utf8"), i6.length !== Buffer.byteLength(i6) || i6.length > e2);
591532
+ var xt2 = (s5, t3, e2) => s5.subarray(t3, t3 + e2).toString("utf8").replace(/\0.*/, "");
591533
+ var Hi = (s5, t3, e2) => fn(at2(s5, t3, e2));
591534
+ var fn = (s5) => s5 === void 0 ? void 0 : new Date(s5 * 1e3);
591535
+ var at2 = (s5, t3, e2) => Number(s5[t3]) & 128 ? zs(s5.subarray(t3, t3 + e2)) : un(s5, t3, e2);
591536
+ var dn = (s5) => isNaN(s5) ? void 0 : s5;
591537
+ var un = (s5, t3, e2) => dn(parseInt(s5.subarray(t3, t3 + e2).toString("utf8").replace(/\0.*$/, "").trim(), 8));
591538
+ var mn = { 12: 8589934591, 8: 2097151 };
591539
+ var lt2 = (s5, t3, e2, i6) => i6 === void 0 ? false : i6 > mn[e2] || i6 < 0 ? (Ps(i6, s5.subarray(t3, t3 + e2)), true) : (pn(s5, t3, e2, i6), false);
591540
+ var pn = (s5, t3, e2, i6) => s5.write(En(i6, e2), t3, e2, "ascii");
591541
+ var En = (s5, t3) => wn(Math.floor(s5).toString(8), t3);
591542
+ var wn = (s5, t3) => (s5.length === t3 - 1 ? s5 : new Array(t3 - s5.length - 1).join("0") + s5 + " ") + "\0";
591543
+ var Wi = (s5, t3, e2, i6) => i6 === void 0 ? false : lt2(s5, t3, e2, i6.getTime() / 1e3);
591544
+ var Sn = new Array(156).join("\0");
591545
+ var Lt2 = (s5, t3, e2, i6) => i6 === void 0 ? false : (s5.write(i6 + Sn, t3, e2, "utf8"), i6.length !== Buffer.byteLength(i6) || i6.length > e2);
591538
591546
  var ct2 = class s2 {
591539
591547
  atime;
591540
591548
  mtime;
@@ -591561,7 +591569,7 @@ var ct2 = class s2 {
591561
591569
  if (t3 === "") return Buffer.allocUnsafe(0);
591562
591570
  let e2 = Buffer.byteLength(t3), i6 = 512 * Math.ceil(1 + e2 / 512), r4 = Buffer.allocUnsafe(i6);
591563
591571
  for (let n2 = 0; n2 < 512; n2++) r4[n2] = 0;
591564
- new F4({ path: ("PaxHeader/" + (0, import_node_path11.basename)(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e2, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r4), r4.write(t3, 512, e2, "utf8");
591572
+ new C4({ path: ("PaxHeader/" + (0, import_node_path11.basename)(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e2, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r4), r4.write(t3, 512, e2, "utf8");
591565
591573
  for (let n2 = e2 + 512; n2 < r4.length; n2++) r4[n2] = 0;
591566
591574
  return r4;
591567
591575
  }
@@ -591575,13 +591583,13 @@ var ct2 = class s2 {
591575
591583
  return n2 + o3 >= Math.pow(10, o3) && (o3 += 1), o3 + n2 + r4;
591576
591584
  }
591577
591585
  static parse(t3, e2, i6 = false) {
591578
- return new s2(Sn(yn(t3), e2), i6);
591586
+ return new s2(Rn(gn(t3), e2), i6);
591579
591587
  }
591580
591588
  };
591581
- var Sn = (s5, t3) => t3 ? Object.assign({}, t3, s5) : s5;
591582
- var yn = (s5) => s5.replace(/\n$/, "").split(`
591583
- `).reduce(Rn, /* @__PURE__ */ Object.create(null));
591584
- var Rn = (s5, t3) => {
591589
+ var Rn = (s5, t3) => t3 ? Object.assign({}, t3, s5) : s5;
591590
+ var gn = (s5) => s5.replace(/\n$/, "").split(`
591591
+ `).reduce(bn, /* @__PURE__ */ Object.create(null));
591592
+ var bn = (s5, t3) => {
591585
591593
  let e2 = parseInt(t3, 10);
591586
591594
  if (e2 !== Buffer.byteLength(t3) + 1) return s5;
591587
591595
  t3 = t3.slice((e2 + " ").length);
@@ -591590,9 +591598,9 @@ var Rn = (s5, t3) => {
591590
591598
  let n2 = r4.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o3 = i6.join("=");
591591
591599
  return s5[n2] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n2) ? new Date(Number(o3) * 1e3) : /^[0-9]+$/.test(o3) ? +o3 : o3, s5;
591592
591600
  };
591593
- var bn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
591594
- var f2 = bn !== "win32" ? (s5) => s5 : (s5) => s5 && s5.replaceAll(/\\/g, "/");
591595
- var Yt2 = class extends D3 {
591601
+ var _n = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
591602
+ var f2 = _n !== "win32" ? (s5) => s5 : (s5) => s5 && s5.replaceAll(/\\/g, "/");
591603
+ var Ve2 = class extends A3 {
591596
591604
  extended;
591597
591605
  globalExtended;
591598
591606
  header;
@@ -591656,44 +591664,44 @@ var Yt2 = class extends D3 {
591656
591664
  t3.path && (t3.path = f2(t3.path)), t3.linkpath && (t3.linkpath = f2(t3.linkpath)), Object.assign(this, Object.fromEntries(Object.entries(t3).filter(([i6, r4]) => !(r4 == null || i6 === "path" && e2))));
591657
591665
  }
591658
591666
  };
591659
- var Lt2 = (s5, t3, e2, i6 = {}) => {
591667
+ var Nt2 = (s5, t3, e2, i6 = {}) => {
591660
591668
  s5.file && (i6.file = s5.file), s5.cwd && (i6.cwd = s5.cwd), i6.code = e2 instanceof Error && e2.code || t3, i6.tarCode = t3, !s5.strict && i6.recoverable !== false ? (e2 instanceof Error && (i6 = Object.assign(e2, i6), e2 = e2.message), s5.emit("warn", t3, e2, i6)) : e2 instanceof Error ? s5.emit("error", Object.assign(e2, i6)) : s5.emit("error", Object.assign(new Error(`${t3}: ${e2}`), i6));
591661
591669
  };
591662
- var gn = 1024 * 1024;
591663
- var Zi = Buffer.from([31, 139]);
591664
- var Yi = Buffer.from([40, 181, 47, 253]);
591665
- var On = Math.max(Zi.length, Yi.length);
591670
+ var Tn = 1024 * 1024;
591671
+ var Vi = Buffer.from([31, 139]);
591672
+ var $i = Buffer.from([40, 181, 47, 253]);
591673
+ var xn = Math.max(Vi.length, $i.length);
591666
591674
  var B3 = /* @__PURE__ */ Symbol("state");
591667
- var Nt2 = /* @__PURE__ */ Symbol("writeEntry");
591675
+ var Dt2 = /* @__PURE__ */ Symbol("writeEntry");
591668
591676
  var et2 = /* @__PURE__ */ Symbol("readEntry");
591669
- var Ui = /* @__PURE__ */ Symbol("nextEntry");
591670
- var Us = /* @__PURE__ */ Symbol("processEntry");
591677
+ var Gi = /* @__PURE__ */ Symbol("nextEntry");
591678
+ var Ws = /* @__PURE__ */ Symbol("processEntry");
591671
591679
  var V3 = /* @__PURE__ */ Symbol("extendedHeader");
591672
- var ae2 = /* @__PURE__ */ Symbol("globalExtendedHeader");
591680
+ var he2 = /* @__PURE__ */ Symbol("globalExtendedHeader");
591673
591681
  var ft2 = /* @__PURE__ */ Symbol("meta");
591674
- var Hs = /* @__PURE__ */ Symbol("emitMeta");
591682
+ var Gs = /* @__PURE__ */ Symbol("emitMeta");
591675
591683
  var p3 = /* @__PURE__ */ Symbol("buffer");
591676
591684
  var it2 = /* @__PURE__ */ Symbol("queue");
591677
591685
  var dt2 = /* @__PURE__ */ Symbol("ended");
591678
- var Hi = /* @__PURE__ */ Symbol("emittedEnd");
591686
+ var Zi = /* @__PURE__ */ Symbol("emittedEnd");
591679
591687
  var At2 = /* @__PURE__ */ Symbol("emit");
591680
591688
  var y3 = /* @__PURE__ */ Symbol("unzip");
591681
- var Ve2 = /* @__PURE__ */ Symbol("consumeChunk");
591682
- var $e2 = /* @__PURE__ */ Symbol("consumeChunkSub");
591683
- var Wi = /* @__PURE__ */ Symbol("consumeBody");
591684
- var Ws = /* @__PURE__ */ Symbol("consumeMeta");
591685
- var Gs = /* @__PURE__ */ Symbol("consumeHeader");
591686
- var le2 = /* @__PURE__ */ Symbol("consuming");
591687
- var Gi = /* @__PURE__ */ Symbol("bufferConcat");
591688
- var Xe2 = /* @__PURE__ */ Symbol("maybeEnd");
591689
- var Kt2 = /* @__PURE__ */ Symbol("writing");
591689
+ var $e2 = /* @__PURE__ */ Symbol("consumeChunk");
591690
+ var Xe2 = /* @__PURE__ */ Symbol("consumeChunkSub");
591691
+ var Yi = /* @__PURE__ */ Symbol("consumeBody");
591692
+ var Zs = /* @__PURE__ */ Symbol("consumeMeta");
591693
+ var Ys = /* @__PURE__ */ Symbol("consumeHeader");
591694
+ var ae2 = /* @__PURE__ */ Symbol("consuming");
591695
+ var Ki = /* @__PURE__ */ Symbol("bufferConcat");
591696
+ var qe2 = /* @__PURE__ */ Symbol("maybeEnd");
591697
+ var Yt2 = /* @__PURE__ */ Symbol("writing");
591690
591698
  var ut2 = /* @__PURE__ */ Symbol("aborted");
591691
- var qe2 = /* @__PURE__ */ Symbol("onDone");
591692
- var Dt2 = /* @__PURE__ */ Symbol("sawValidEntry");
591693
- var je2 = /* @__PURE__ */ Symbol("sawNullBlock");
591694
- var Qe2 = /* @__PURE__ */ Symbol("sawEOF");
591695
- var Zs = /* @__PURE__ */ Symbol("closeStream");
591696
- var Tn = () => true;
591699
+ var Qe2 = /* @__PURE__ */ Symbol("onDone");
591700
+ var It2 = /* @__PURE__ */ Symbol("sawValidEntry");
591701
+ var Je2 = /* @__PURE__ */ Symbol("sawNullBlock");
591702
+ var je2 = /* @__PURE__ */ Symbol("sawEOF");
591703
+ var Ks = /* @__PURE__ */ Symbol("closeStream");
591704
+ var Ln = () => true;
591697
591705
  var st2 = class extends import_events3.EventEmitter {
591698
591706
  file;
591699
591707
  strict;
@@ -591706,103 +591714,103 @@ var st2 = class extends import_events3.EventEmitter {
591706
591714
  [it2] = [];
591707
591715
  [p3];
591708
591716
  [et2];
591709
- [Nt2];
591717
+ [Dt2];
591710
591718
  [B3] = "begin";
591711
591719
  [ft2] = "";
591712
591720
  [V3];
591713
- [ae2];
591721
+ [he2];
591714
591722
  [dt2] = false;
591715
591723
  [y3];
591716
591724
  [ut2] = false;
591717
- [Dt2];
591725
+ [It2];
591726
+ [Je2] = false;
591718
591727
  [je2] = false;
591719
- [Qe2] = false;
591720
- [Kt2] = false;
591721
- [le2] = false;
591722
- [Hi] = false;
591728
+ [Yt2] = false;
591729
+ [ae2] = false;
591730
+ [Zi] = false;
591723
591731
  constructor(t3 = {}) {
591724
- super(), this.file = t3.file || "", this.on(qe2, () => {
591725
- (this[B3] === "begin" || this[Dt2] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
591726
- }), t3.ondone ? this.on(qe2, t3.ondone) : this.on(qe2, () => {
591732
+ super(), this.file = t3.file || "", this.on(Qe2, () => {
591733
+ (this[B3] === "begin" || this[It2] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
591734
+ }), t3.ondone ? this.on(Qe2, t3.ondone) : this.on(Qe2, () => {
591727
591735
  this.emit("prefinish"), this.emit("finish"), this.emit("end");
591728
- }), this.strict = !!t3.strict, this.maxMetaEntrySize = t3.maxMetaEntrySize || gn, this.filter = typeof t3.filter == "function" ? t3.filter : Tn;
591736
+ }), this.strict = !!t3.strict, this.maxMetaEntrySize = t3.maxMetaEntrySize || Tn, this.filter = typeof t3.filter == "function" ? t3.filter : Ln;
591729
591737
  let e2 = t3.file && (t3.file.endsWith(".tar.br") || t3.file.endsWith(".tbr"));
591730
591738
  this.brotli = !(t3.gzip || t3.zstd) && t3.brotli !== void 0 ? t3.brotli : e2 ? void 0 : false;
591731
591739
  let i6 = t3.file && (t3.file.endsWith(".tar.zst") || t3.file.endsWith(".tzst"));
591732
- this.zstd = !(t3.gzip || t3.brotli) && t3.zstd !== void 0 ? t3.zstd : i6 ? true : void 0, this.on("end", () => this[Zs]()), typeof t3.onwarn == "function" && this.on("warn", t3.onwarn), typeof t3.onReadEntry == "function" && this.on("entry", t3.onReadEntry);
591740
+ this.zstd = !(t3.gzip || t3.brotli) && t3.zstd !== void 0 ? t3.zstd : i6 ? true : void 0, this.on("end", () => this[Ks]()), typeof t3.onwarn == "function" && this.on("warn", t3.onwarn), typeof t3.onReadEntry == "function" && this.on("entry", t3.onReadEntry);
591733
591741
  }
591734
591742
  warn(t3, e2, i6 = {}) {
591735
- Lt2(this, t3, e2, i6);
591743
+ Nt2(this, t3, e2, i6);
591736
591744
  }
591737
- [Gs](t3, e2) {
591738
- this[Dt2] === void 0 && (this[Dt2] = false);
591745
+ [Ys](t3, e2) {
591746
+ this[It2] === void 0 && (this[It2] = false);
591739
591747
  let i6;
591740
591748
  try {
591741
- i6 = new F4(t3, e2, this[V3], this[ae2]);
591749
+ i6 = new C4(t3, e2, this[V3], this[he2]);
591742
591750
  } catch (r4) {
591743
591751
  return this.warn("TAR_ENTRY_INVALID", r4);
591744
591752
  }
591745
- if (i6.nullBlock) this[je2] ? (this[Qe2] = true, this[B3] === "begin" && (this[B3] = "header"), this[At2]("eof")) : (this[je2] = true, this[At2]("nullBlock"));
591746
- else if (this[je2] = false, !i6.cksumValid) this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: i6 });
591753
+ if (i6.nullBlock) this[Je2] ? (this[je2] = true, this[B3] === "begin" && (this[B3] = "header"), this[At2]("eof")) : (this[Je2] = true, this[At2]("nullBlock"));
591754
+ else if (this[Je2] = false, !i6.cksumValid) this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: i6 });
591747
591755
  else if (!i6.path) this.warn("TAR_ENTRY_INVALID", "path is required", { header: i6 });
591748
591756
  else {
591749
591757
  let r4 = i6.type;
591750
591758
  if (/^(Symbolic)?Link$/.test(r4) && !i6.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath required", { header: i6 });
591751
591759
  else if (!/^(Symbolic)?Link$/.test(r4) && !/^(Global)?ExtendedHeader$/.test(r4) && i6.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header: i6 });
591752
591760
  else {
591753
- let n2 = this[Nt2] = new Yt2(i6, this[V3], this[ae2]);
591754
- if (!this[Dt2]) if (n2.remain) {
591761
+ let n2 = this[Dt2] = new Ve2(i6, this[V3], this[he2]);
591762
+ if (!this[It2]) if (n2.remain) {
591755
591763
  let o3 = () => {
591756
- n2.invalid || (this[Dt2] = true);
591764
+ n2.invalid || (this[It2] = true);
591757
591765
  };
591758
591766
  n2.on("end", o3);
591759
- } else this[Dt2] = true;
591760
- n2.meta ? n2.size > this.maxMetaEntrySize ? (n2.ignore = true, this[At2]("ignoredEntry", n2), this[B3] = "ignore", n2.resume()) : n2.size > 0 && (this[ft2] = "", n2.on("data", (o3) => this[ft2] += o3), this[B3] = "meta") : (this[V3] = void 0, n2.ignore = n2.ignore || !this.filter(n2.path, n2), n2.ignore ? (this[At2]("ignoredEntry", n2), this[B3] = n2.remain ? "ignore" : "header", n2.resume()) : (n2.remain ? this[B3] = "body" : (this[B3] = "header", n2.end()), this[et2] ? this[it2].push(n2) : (this[it2].push(n2), this[Ui]())));
591767
+ } else this[It2] = true;
591768
+ n2.meta ? n2.size > this.maxMetaEntrySize ? (n2.ignore = true, this[At2]("ignoredEntry", n2), this[B3] = "ignore", n2.resume()) : n2.size > 0 && (this[ft2] = "", n2.on("data", (o3) => this[ft2] += o3), this[B3] = "meta") : (this[V3] = void 0, n2.ignore = n2.ignore || !this.filter(n2.path, n2), n2.ignore ? (this[At2]("ignoredEntry", n2), this[B3] = n2.remain ? "ignore" : "header", n2.resume()) : (n2.remain ? this[B3] = "body" : (this[B3] = "header", n2.end()), this[et2] ? this[it2].push(n2) : (this[it2].push(n2), this[Gi]())));
591761
591769
  }
591762
591770
  }
591763
591771
  }
591764
- [Zs]() {
591772
+ [Ks]() {
591765
591773
  queueMicrotask(() => this.emit("close"));
591766
591774
  }
591767
- [Us](t3) {
591775
+ [Ws](t3) {
591768
591776
  let e2 = true;
591769
591777
  if (!t3) this[et2] = void 0, e2 = false;
591770
591778
  else if (Array.isArray(t3)) {
591771
591779
  let [i6, ...r4] = t3;
591772
591780
  this.emit(i6, ...r4);
591773
- } else this[et2] = t3, this.emit("entry", t3), t3.emittedEnd || (t3.on("end", () => this[Ui]()), e2 = false);
591781
+ } else this[et2] = t3, this.emit("entry", t3), t3.emittedEnd || (t3.on("end", () => this[Gi]()), e2 = false);
591774
591782
  return e2;
591775
591783
  }
591776
- [Ui]() {
591784
+ [Gi]() {
591777
591785
  do
591778
591786
  ;
591779
- while (this[Us](this[it2].shift()));
591787
+ while (this[Ws](this[it2].shift()));
591780
591788
  if (this[it2].length === 0) {
591781
591789
  let t3 = this[et2];
591782
- !t3 || t3.flowing || t3.size === t3.remain ? this[Kt2] || this.emit("drain") : t3.once("drain", () => this.emit("drain"));
591790
+ !t3 || t3.flowing || t3.size === t3.remain ? this[Yt2] || this.emit("drain") : t3.once("drain", () => this.emit("drain"));
591783
591791
  }
591784
591792
  }
591785
- [Wi](t3, e2) {
591786
- let i6 = this[Nt2];
591793
+ [Yi](t3, e2) {
591794
+ let i6 = this[Dt2];
591787
591795
  if (!i6) throw new Error("attempt to consume body without entry??");
591788
591796
  let r4 = i6.blockRemain ?? 0, n2 = r4 >= t3.length && e2 === 0 ? t3 : t3.subarray(e2, e2 + r4);
591789
- return i6.write(n2), i6.blockRemain || (this[B3] = "header", this[Nt2] = void 0, i6.end()), n2.length;
591797
+ return i6.write(n2), i6.blockRemain || (this[B3] = "header", this[Dt2] = void 0, i6.end()), n2.length;
591790
591798
  }
591791
- [Ws](t3, e2) {
591792
- let i6 = this[Nt2], r4 = this[Wi](t3, e2);
591793
- return !this[Nt2] && i6 && this[Hs](i6), r4;
591799
+ [Zs](t3, e2) {
591800
+ let i6 = this[Dt2], r4 = this[Yi](t3, e2);
591801
+ return !this[Dt2] && i6 && this[Gs](i6), r4;
591794
591802
  }
591795
591803
  [At2](t3, e2, i6) {
591796
591804
  this[it2].length === 0 && !this[et2] ? this.emit(t3, e2, i6) : this[it2].push([t3, e2, i6]);
591797
591805
  }
591798
- [Hs](t3) {
591806
+ [Gs](t3) {
591799
591807
  switch (this[At2]("meta", this[ft2]), t3.type) {
591800
591808
  case "ExtendedHeader":
591801
591809
  case "OldExtendedHeader":
591802
591810
  this[V3] = ct2.parse(this[ft2], this[V3], false);
591803
591811
  break;
591804
591812
  case "GlobalExtendedHeader":
591805
- this[ae2] = ct2.parse(this[ft2], this[ae2], true);
591813
+ this[he2] = ct2.parse(this[ft2], this[he2], true);
591806
591814
  break;
591807
591815
  case "NextFileHasLongPath":
591808
591816
  case "OldGnuLongPath": {
@@ -591825,81 +591833,81 @@ var st2 = class extends import_events3.EventEmitter {
591825
591833
  write(t3, e2, i6) {
591826
591834
  if (typeof e2 == "function" && (i6 = e2, e2 = void 0), typeof t3 == "string" && (t3 = Buffer.from(t3, typeof e2 == "string" ? e2 : "utf8")), this[ut2]) return i6?.(), false;
591827
591835
  if ((this[y3] === void 0 || this.brotli === void 0 && this[y3] === false) && t3) {
591828
- if (this[p3] && (t3 = Buffer.concat([this[p3], t3]), this[p3] = void 0), t3.length < On) return this[p3] = t3, i6?.(), true;
591829
- for (let a3 = 0; this[y3] === void 0 && a3 < Zi.length; a3++) t3[a3] !== Zi[a3] && (this[y3] = false);
591836
+ if (this[p3] && (t3 = Buffer.concat([this[p3], t3]), this[p3] = void 0), t3.length < xn) return this[p3] = t3, i6?.(), true;
591837
+ for (let h4 = 0; this[y3] === void 0 && h4 < Vi.length; h4++) t3[h4] !== Vi[h4] && (this[y3] = false);
591830
591838
  let o3 = false;
591831
591839
  if (this[y3] === false && this.zstd !== false) {
591832
591840
  o3 = true;
591833
- for (let a3 = 0; a3 < Yi.length; a3++) if (t3[a3] !== Yi[a3]) {
591841
+ for (let h4 = 0; h4 < $i.length; h4++) if (t3[h4] !== $i[h4]) {
591834
591842
  o3 = false;
591835
591843
  break;
591836
591844
  }
591837
591845
  }
591838
- let h4 = this.brotli === void 0 && !o3;
591839
- if (this[y3] === false && h4) if (t3.length < 512) if (this[dt2]) this.brotli = true;
591846
+ let a3 = this.brotli === void 0 && !o3;
591847
+ if (this[y3] === false && a3) if (t3.length < 512) if (this[dt2]) this.brotli = true;
591840
591848
  else return this[p3] = t3, i6?.(), true;
591841
591849
  else try {
591842
- new F4(t3.subarray(0, 512)), this.brotli = false;
591850
+ new C4(t3.subarray(0, 512)), this.brotli = false;
591843
591851
  } catch {
591844
591852
  this.brotli = true;
591845
591853
  }
591846
591854
  if (this[y3] === void 0 || this[y3] === false && (this.brotli || o3)) {
591847
- let a3 = this[dt2];
591848
- this[dt2] = false, this[y3] = this[y3] === void 0 ? new ze2({}) : o3 ? new Ye2({}) : new We2({}), this[y3].on("data", (c5) => this[Ve2](c5)), this[y3].on("error", (c5) => this.abort(c5)), this[y3].on("end", () => {
591849
- this[dt2] = true, this[Ve2]();
591850
- }), this[Kt2] = true;
591851
- let l2 = !!this[y3][a3 ? "end" : "write"](t3);
591852
- return this[Kt2] = false, i6?.(), l2;
591855
+ let h4 = this[dt2];
591856
+ this[dt2] = false, this[y3] = this[y3] === void 0 ? new ze2({}) : o3 ? new Ye2({}) : new We2({}), this[y3].on("data", (c5) => this[$e2](c5)), this[y3].on("error", (c5) => this.abort(c5)), this[y3].on("end", () => {
591857
+ this[dt2] = true, this[$e2]();
591858
+ }), this[Yt2] = true;
591859
+ let l2 = !!this[y3][h4 ? "end" : "write"](t3);
591860
+ return this[Yt2] = false, i6?.(), l2;
591853
591861
  }
591854
591862
  }
591855
- this[Kt2] = true, this[y3] ? this[y3].write(t3) : this[Ve2](t3), this[Kt2] = false;
591863
+ this[Yt2] = true, this[y3] ? this[y3].write(t3) : this[$e2](t3), this[Yt2] = false;
591856
591864
  let n2 = this[it2].length > 0 ? false : this[et2] ? this[et2].flowing : true;
591857
591865
  return !n2 && this[it2].length === 0 && this[et2]?.once("drain", () => this.emit("drain")), i6?.(), n2;
591858
591866
  }
591859
- [Gi](t3) {
591867
+ [Ki](t3) {
591860
591868
  t3 && !this[ut2] && (this[p3] = this[p3] ? Buffer.concat([this[p3], t3]) : t3);
591861
591869
  }
591862
- [Xe2]() {
591863
- if (this[dt2] && !this[Hi] && !this[ut2] && !this[le2]) {
591864
- this[Hi] = true;
591865
- let t3 = this[Nt2];
591870
+ [qe2]() {
591871
+ if (this[dt2] && !this[Zi] && !this[ut2] && !this[ae2]) {
591872
+ this[Zi] = true;
591873
+ let t3 = this[Dt2];
591866
591874
  if (t3 && t3.blockRemain) {
591867
591875
  let e2 = this[p3] ? this[p3].length : 0;
591868
591876
  this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${t3.blockRemain} more bytes, only ${e2} available)`, { entry: t3 }), this[p3] && t3.write(this[p3]), t3.end();
591869
591877
  }
591870
- this[At2](qe2);
591878
+ this[At2](Qe2);
591871
591879
  }
591872
591880
  }
591873
- [Ve2](t3) {
591874
- if (this[le2] && t3) this[Gi](t3);
591875
- else if (!t3 && !this[p3]) this[Xe2]();
591881
+ [$e2](t3) {
591882
+ if (this[ae2] && t3) this[Ki](t3);
591883
+ else if (!t3 && !this[p3]) this[qe2]();
591876
591884
  else if (t3) {
591877
- if (this[le2] = true, this[p3]) {
591878
- this[Gi](t3);
591885
+ if (this[ae2] = true, this[p3]) {
591886
+ this[Ki](t3);
591879
591887
  let e2 = this[p3];
591880
- this[p3] = void 0, this[$e2](e2);
591881
- } else this[$e2](t3);
591882
- for (; this[p3] && this[p3]?.length >= 512 && !this[ut2] && !this[Qe2]; ) {
591888
+ this[p3] = void 0, this[Xe2](e2);
591889
+ } else this[Xe2](t3);
591890
+ for (; this[p3] && this[p3]?.length >= 512 && !this[ut2] && !this[je2]; ) {
591883
591891
  let e2 = this[p3];
591884
- this[p3] = void 0, this[$e2](e2);
591892
+ this[p3] = void 0, this[Xe2](e2);
591885
591893
  }
591886
- this[le2] = false;
591894
+ this[ae2] = false;
591887
591895
  }
591888
- (!this[p3] || this[dt2]) && this[Xe2]();
591896
+ (!this[p3] || this[dt2]) && this[qe2]();
591889
591897
  }
591890
- [$e2](t3) {
591898
+ [Xe2](t3) {
591891
591899
  let e2 = 0, i6 = t3.length;
591892
- for (; e2 + 512 <= i6 && !this[ut2] && !this[Qe2]; ) switch (this[B3]) {
591900
+ for (; e2 + 512 <= i6 && !this[ut2] && !this[je2]; ) switch (this[B3]) {
591893
591901
  case "begin":
591894
591902
  case "header":
591895
- this[Gs](t3, e2), e2 += 512;
591903
+ this[Ys](t3, e2), e2 += 512;
591896
591904
  break;
591897
591905
  case "ignore":
591898
591906
  case "body":
591899
- e2 += this[Wi](t3, e2);
591907
+ e2 += this[Yi](t3, e2);
591900
591908
  break;
591901
591909
  case "meta":
591902
- e2 += this[Ws](t3, e2);
591910
+ e2 += this[Zs](t3, e2);
591903
591911
  break;
591904
591912
  default:
591905
591913
  throw new Error("invalid state: " + this[B3]);
@@ -591907,7 +591915,7 @@ var st2 = class extends import_events3.EventEmitter {
591907
591915
  e2 < i6 && (this[p3] = this[p3] ? Buffer.concat([t3.subarray(e2), this[p3]]) : t3.subarray(e2));
591908
591916
  }
591909
591917
  end(t3, e2, i6) {
591910
- return typeof t3 == "function" && (i6 = t3, e2 = void 0, t3 = void 0), typeof e2 == "function" && (i6 = e2, e2 = void 0), typeof t3 == "string" && (t3 = Buffer.from(t3, e2)), i6 && this.once("finish", i6), this[ut2] || (this[y3] ? (t3 && this[y3].write(t3), this[y3].end()) : (this[dt2] = true, (this.brotli === void 0 || this.zstd === void 0) && (t3 = t3 || Buffer.alloc(0)), t3 && this.write(t3), this[Xe2]())), this;
591918
+ return typeof t3 == "function" && (i6 = t3, e2 = void 0, t3 = void 0), typeof e2 == "function" && (i6 = e2, e2 = void 0), typeof t3 == "string" && (t3 = Buffer.from(t3, e2)), i6 && this.once("finish", i6), this[ut2] || (this[y3] ? (t3 && this[y3].write(t3), this[y3].end()) : (this[dt2] = true, (this.brotli === void 0 || this.zstd === void 0) && (t3 = t3 || Buffer.alloc(0)), t3 && this.write(t3), this[qe2]())), this;
591911
591919
  }
591912
591920
  };
591913
591921
  var mt2 = (s5) => {
@@ -591915,38 +591923,38 @@ var mt2 = (s5) => {
591915
591923
  for (; t3 > -1 && s5.charAt(t3) === "/"; ) e2 = t3, t3--;
591916
591924
  return e2 === -1 ? s5 : s5.slice(0, e2);
591917
591925
  };
591918
- var Nn = (s5) => {
591926
+ var An = (s5) => {
591919
591927
  let t3 = s5.onReadEntry;
591920
591928
  s5.onReadEntry = t3 ? (e2) => {
591921
591929
  t3(e2), e2.resume();
591922
591930
  } : (e2) => e2.resume();
591923
591931
  };
591924
- var Ki = (s5, t3) => {
591932
+ var Xi = (s5, t3) => {
591925
591933
  let e2 = new Map(t3.map((n2) => [mt2(n2), true])), i6 = s5.filter, r4 = (n2, o3 = "") => {
591926
- let h4 = o3 || (0, import_path28.parse)(n2).root || ".", a3;
591927
- if (n2 === h4) a3 = false;
591934
+ let a3 = o3 || (0, import_path28.parse)(n2).root || ".", h4;
591935
+ if (n2 === a3) h4 = false;
591928
591936
  else {
591929
591937
  let l2 = e2.get(n2);
591930
- a3 = l2 !== void 0 ? l2 : r4((0, import_path28.dirname)(n2), h4);
591938
+ h4 = l2 !== void 0 ? l2 : r4((0, import_path28.dirname)(n2), a3);
591931
591939
  }
591932
- return e2.set(n2, a3), a3;
591940
+ return e2.set(n2, h4), h4;
591933
591941
  };
591934
591942
  s5.filter = i6 ? (n2, o3) => i6(n2, o3) && r4(mt2(n2)) : (n2) => r4(mt2(n2));
591935
591943
  };
591936
- var An = (s5) => {
591944
+ var In = (s5) => {
591937
591945
  let t3 = new st2(s5), e2 = s5.file, i6;
591938
591946
  try {
591939
591947
  i6 = import_node_fs6.default.openSync(e2, "r");
591940
591948
  let r4 = import_node_fs6.default.fstatSync(i6), n2 = s5.maxReadSize || 16 * 1024 * 1024;
591941
591949
  if (r4.size < n2) {
591942
- let o3 = Buffer.allocUnsafe(r4.size), h4 = import_node_fs6.default.readSync(i6, o3, 0, r4.size, 0);
591943
- t3.end(h4 === o3.byteLength ? o3 : o3.subarray(0, h4));
591950
+ let o3 = Buffer.allocUnsafe(r4.size), a3 = import_node_fs6.default.readSync(i6, o3, 0, r4.size, 0);
591951
+ t3.end(a3 === o3.byteLength ? o3 : o3.subarray(0, a3));
591944
591952
  } else {
591945
- let o3 = 0, h4 = Buffer.allocUnsafe(n2);
591953
+ let o3 = 0, a3 = Buffer.allocUnsafe(n2);
591946
591954
  for (; o3 < r4.size; ) {
591947
- let a3 = import_node_fs6.default.readSync(i6, h4, 0, n2, o3);
591948
- if (a3 === 0) break;
591949
- o3 += a3, t3.write(h4.subarray(0, a3));
591955
+ let h4 = import_node_fs6.default.readSync(i6, a3, 0, n2, o3);
591956
+ if (h4 === 0) break;
591957
+ o3 += h4, t3.write(a3.subarray(0, h4));
591950
591958
  }
591951
591959
  t3.end();
591952
591960
  }
@@ -591957,58 +591965,58 @@ var An = (s5) => {
591957
591965
  }
591958
591966
  }
591959
591967
  };
591960
- var Dn = (s5, t3) => {
591968
+ var Fn = (s5, t3) => {
591961
591969
  let e2 = new st2(s5), i6 = s5.maxReadSize || 16 * 1024 * 1024, r4 = s5.file;
591962
- return new Promise((o3, h4) => {
591963
- e2.on("error", h4), e2.on("end", o3), import_node_fs6.default.stat(r4, (a3, l2) => {
591964
- if (a3) h4(a3);
591970
+ return new Promise((o3, a3) => {
591971
+ e2.on("error", a3), e2.on("end", o3), import_node_fs6.default.stat(r4, (h4, l2) => {
591972
+ if (h4) a3(h4);
591965
591973
  else {
591966
591974
  let c5 = new _t2(r4, { readSize: i6, size: l2.size });
591967
- c5.on("error", h4), c5.pipe(e2);
591975
+ c5.on("error", a3), c5.pipe(e2);
591968
591976
  }
591969
591977
  });
591970
591978
  });
591971
591979
  };
591972
- var It2 = K3(An, Dn, (s5) => new st2(s5), (s5) => new st2(s5), (s5, t3) => {
591973
- t3?.length && Ki(s5, t3), s5.noResume || Nn(s5);
591980
+ var Ft2 = K3(In, Fn, (s5) => new st2(s5), (s5) => new st2(s5), (s5, t3) => {
591981
+ t3?.length && Xi(s5, t3), s5.noResume || An(s5);
591974
591982
  });
591975
- var Vi = (s5, t3, e2) => (s5 &= 4095, e2 && (s5 = (s5 | 384) & -19), t3 && (s5 & 256 && (s5 |= 64), s5 & 32 && (s5 |= 8), s5 & 4 && (s5 |= 1)), s5);
591976
- var { isAbsolute: Cn, parse: Ys } = import_node_path12.win32;
591977
- var ce2 = (s5) => {
591978
- let t3 = "", e2 = Ys(s5);
591979
- for (; Cn(s5) || e2.root; ) {
591983
+ var qi = (s5, t3, e2) => (s5 &= 4095, e2 && (s5 = (s5 | 384) & -19), t3 && (s5 & 256 && (s5 |= 64), s5 & 32 && (s5 |= 8), s5 & 4 && (s5 |= 1)), s5);
591984
+ var { isAbsolute: kn, parse: Vs } = import_node_path12.win32;
591985
+ var le2 = (s5) => {
591986
+ let t3 = "", e2 = Vs(s5);
591987
+ for (; kn(s5) || e2.root; ) {
591980
591988
  let i6 = s5.charAt(0) === "/" && s5.slice(0, 4) !== "//?/" ? "/" : e2.root;
591981
- s5 = s5.slice(i6.length), t3 += i6, e2 = Ys(s5);
591989
+ s5 = s5.slice(i6.length), t3 += i6, e2 = Vs(s5);
591982
591990
  }
591983
591991
  return [t3, s5];
591984
591992
  };
591985
- var Je2 = ["|", "<", ">", "?", ":"];
591986
- var $i = Je2.map((s5) => String.fromCodePoint(61440 + Number(s5.codePointAt(0))));
591987
- var Fn = new Map(Je2.map((s5, t3) => [s5, $i[t3]]));
591988
- var kn = new Map($i.map((s5, t3) => [s5, Je2[t3]]));
591989
- var Xi = (s5) => Je2.reduce((t3, e2) => t3.split(e2).join(Fn.get(e2)), s5);
591990
- var Ks = (s5) => $i.reduce((t3, e2) => t3.split(e2).join(kn.get(e2)), s5);
591991
- var Js = (s5, t3) => t3 ? (s5 = f2(s5).replace(/^\.(\/|$)/, ""), mt2(t3) + "/" + s5) : f2(s5);
591992
- var vn = 16 * 1024 * 1024;
591993
- var Xs = /* @__PURE__ */ Symbol("process");
591994
- var qs3 = /* @__PURE__ */ Symbol("file");
591993
+ var ti = ["|", "<", ">", "?", ":"];
591994
+ var Qi = ti.map((s5) => String.fromCodePoint(61440 + Number(s5.codePointAt(0))));
591995
+ var vn = new Map(ti.map((s5, t3) => [s5, Qi[t3]]));
591996
+ var Mn = new Map(Qi.map((s5, t3) => [s5, ti[t3]]));
591997
+ var Ji = (s5) => ti.reduce((t3, e2) => t3.split(e2).join(vn.get(e2)), s5);
591998
+ var $s = (s5) => Qi.reduce((t3, e2) => t3.split(e2).join(Mn.get(e2)), s5);
591999
+ var er2 = (s5, t3) => t3 ? (s5 = f2(s5).replace(/^\.(\/|$)/, ""), mt2(t3) + "/" + s5) : f2(s5);
592000
+ var Bn = 16 * 1024 * 1024;
592001
+ var Qs = /* @__PURE__ */ Symbol("process");
592002
+ var Js = /* @__PURE__ */ Symbol("file");
591995
592003
  var js = /* @__PURE__ */ Symbol("directory");
591996
- var ji = /* @__PURE__ */ Symbol("symlink");
591997
- var Qs = /* @__PURE__ */ Symbol("hardlink");
591998
- var fe2 = /* @__PURE__ */ Symbol("header");
591999
- var ti = /* @__PURE__ */ Symbol("read");
592000
- var Qi = /* @__PURE__ */ Symbol("lstat");
592001
- var ei = /* @__PURE__ */ Symbol("onlstat");
592002
- var Ji = /* @__PURE__ */ Symbol("onread");
592003
- var ts = /* @__PURE__ */ Symbol("onreadlink");
592004
- var es = /* @__PURE__ */ Symbol("openfile");
592005
- var is = /* @__PURE__ */ Symbol("onopenfile");
592004
+ var ts = /* @__PURE__ */ Symbol("symlink");
592005
+ var tr2 = /* @__PURE__ */ Symbol("hardlink");
592006
+ var ce2 = /* @__PURE__ */ Symbol("header");
592007
+ var ei = /* @__PURE__ */ Symbol("read");
592008
+ var es = /* @__PURE__ */ Symbol("lstat");
592009
+ var ii = /* @__PURE__ */ Symbol("onlstat");
592010
+ var is = /* @__PURE__ */ Symbol("onread");
592011
+ var ss = /* @__PURE__ */ Symbol("onreadlink");
592012
+ var rs = /* @__PURE__ */ Symbol("openfile");
592013
+ var ns = /* @__PURE__ */ Symbol("onopenfile");
592006
592014
  var pt2 = /* @__PURE__ */ Symbol("close");
592007
- var ii = /* @__PURE__ */ Symbol("mode");
592008
- var ss = /* @__PURE__ */ Symbol("awaitDrain");
592009
- var qi = /* @__PURE__ */ Symbol("ondrain");
592015
+ var si = /* @__PURE__ */ Symbol("mode");
592016
+ var os4 = /* @__PURE__ */ Symbol("awaitDrain");
592017
+ var ji = /* @__PURE__ */ Symbol("ondrain");
592010
592018
  var X3 = /* @__PURE__ */ Symbol("prefix");
592011
- var de2 = class extends D3 {
592019
+ var fe2 = class extends A3 {
592012
592020
  path;
592013
592021
  portable;
592014
592022
  myuid = process.getuid && process.getuid() || 0;
@@ -592040,110 +592048,110 @@ var de2 = class extends D3 {
592040
592048
  onWriteEntry;
592041
592049
  #t = false;
592042
592050
  constructor(t3, e2 = {}) {
592043
- let i6 = re3(e2);
592044
- super(), this.path = f2(t3), this.portable = !!i6.portable, this.maxReadSize = i6.maxReadSize || vn, this.linkCache = i6.linkCache || /* @__PURE__ */ new Map(), this.statCache = i6.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i6.preservePaths, this.cwd = f2(i6.cwd || process.cwd()), this.strict = !!i6.strict, this.noPax = !!i6.noPax, this.noMtime = !!i6.noMtime, this.mtime = i6.mtime, this.prefix = i6.prefix ? f2(i6.prefix) : void 0, this.onWriteEntry = i6.onWriteEntry, typeof i6.onwarn == "function" && this.on("warn", i6.onwarn);
592051
+ let i6 = se2(e2);
592052
+ super(), this.path = f2(t3), this.portable = !!i6.portable, this.maxReadSize = i6.maxReadSize || Bn, this.linkCache = i6.linkCache || /* @__PURE__ */ new Map(), this.statCache = i6.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i6.preservePaths, this.cwd = f2(i6.cwd || process.cwd()), this.strict = !!i6.strict, this.noPax = !!i6.noPax, this.noMtime = !!i6.noMtime, this.mtime = i6.mtime, this.prefix = i6.prefix ? f2(i6.prefix) : void 0, this.onWriteEntry = i6.onWriteEntry, typeof i6.onwarn == "function" && this.on("warn", i6.onwarn);
592045
592053
  let r4 = false;
592046
592054
  if (!this.preservePaths) {
592047
- let [o3, h4] = ce2(this.path);
592048
- o3 && typeof h4 == "string" && (this.path = h4, r4 = o3);
592055
+ let [o3, a3] = le2(this.path);
592056
+ o3 && typeof a3 == "string" && (this.path = a3, r4 = o3);
592049
592057
  }
592050
- this.win32 = !!i6.win32 || process.platform === "win32", this.win32 && (this.path = Ks(this.path.replaceAll(/\\/g, "/")), t3 = t3.replaceAll(/\\/g, "/")), this.absolute = f2(i6.absolute || import_path29.default.resolve(this.cwd, t3)), this.path === "" && (this.path = "./"), r4 && this.warn("TAR_ENTRY_INFO", `stripping ${r4} from absolute path`, { entry: this, path: r4 + this.path });
592058
+ this.win32 = !!i6.win32 || process.platform === "win32", this.win32 && (this.path = $s(this.path.replaceAll(/\\/g, "/")), t3 = t3.replaceAll(/\\/g, "/")), this.absolute = f2(i6.absolute || import_path29.default.resolve(this.cwd, t3)), this.path === "" && (this.path = "./"), r4 && this.warn("TAR_ENTRY_INFO", `stripping ${r4} from absolute path`, { entry: this, path: r4 + this.path });
592051
592059
  let n2 = this.statCache.get(this.absolute);
592052
- n2 ? this[ei](n2) : this[Qi]();
592060
+ n2 ? this[ii](n2) : this[es]();
592053
592061
  }
592054
592062
  warn(t3, e2, i6 = {}) {
592055
- return Lt2(this, t3, e2, i6);
592063
+ return Nt2(this, t3, e2, i6);
592056
592064
  }
592057
592065
  emit(t3, ...e2) {
592058
592066
  return t3 === "error" && (this.#t = true), super.emit(t3, ...e2);
592059
592067
  }
592060
- [Qi]() {
592068
+ [es]() {
592061
592069
  import_fs15.default.lstat(this.absolute, (t3, e2) => {
592062
592070
  if (t3) return this.emit("error", t3);
592063
- this[ei](e2);
592071
+ this[ii](e2);
592064
592072
  });
592065
592073
  }
592066
- [ei](t3) {
592067
- this.statCache.set(this.absolute, t3), this.stat = t3, t3.isFile() || (t3.size = 0), this.type = Mn(t3), this.emit("stat", t3), this[Xs]();
592074
+ [ii](t3) {
592075
+ this.statCache.set(this.absolute, t3), this.stat = t3, t3.isFile() || (t3.size = 0), this.type = Pn(t3), this.emit("stat", t3), this[Qs]();
592068
592076
  }
592069
- [Xs]() {
592077
+ [Qs]() {
592070
592078
  switch (this.type) {
592071
592079
  case "File":
592072
- return this[qs3]();
592080
+ return this[Js]();
592073
592081
  case "Directory":
592074
592082
  return this[js]();
592075
592083
  case "SymbolicLink":
592076
- return this[ji]();
592084
+ return this[ts]();
592077
592085
  default:
592078
592086
  return this.end();
592079
592087
  }
592080
592088
  }
592081
- [ii](t3) {
592082
- return Vi(t3, this.type === "Directory", this.portable);
592089
+ [si](t3) {
592090
+ return qi(t3, this.type === "Directory", this.portable);
592083
592091
  }
592084
592092
  [X3](t3) {
592085
- return Js(t3, this.prefix);
592093
+ return er2(t3, this.prefix);
592086
592094
  }
592087
- [fe2]() {
592095
+ [ce2]() {
592088
592096
  if (!this.stat) throw new Error("cannot write header before stat");
592089
- this.type === "Directory" && this.portable && (this.noMtime = true), this.onWriteEntry?.(this), this.header = new F4({ path: this[X3](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X3](this.linkpath) : this.linkpath, mode: this[ii](this.stat.mode), uid: this.portable ? void 0 : this.stat.uid, gid: this.portable ? void 0 : this.stat.gid, size: this.stat.size, mtime: this.noMtime ? void 0 : this.mtime || this.stat.mtime, type: this.type === "Unsupported" ? void 0 : this.type, uname: this.portable ? void 0 : this.stat.uid === this.myuid ? this.myuser : "", atime: this.portable ? void 0 : this.stat.atime, ctime: this.portable ? void 0 : this.stat.ctime }), this.header.encode() && !this.noPax && super.write(new ct2({ atime: this.portable ? void 0 : this.header.atime, ctime: this.portable ? void 0 : this.header.ctime, gid: this.portable ? void 0 : this.header.gid, mtime: this.noMtime ? void 0 : this.mtime || this.header.mtime, path: this[X3](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X3](this.linkpath) : this.linkpath, size: this.header.size, uid: this.portable ? void 0 : this.header.uid, uname: this.portable ? void 0 : this.header.uname, dev: this.portable ? void 0 : this.stat.dev, ino: this.portable ? void 0 : this.stat.ino, nlink: this.portable ? void 0 : this.stat.nlink }).encode());
592097
+ this.type === "Directory" && this.portable && (this.noMtime = true), this.onWriteEntry?.(this), this.header = new C4({ path: this[X3](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X3](this.linkpath) : this.linkpath, mode: this[si](this.stat.mode), uid: this.portable ? void 0 : this.stat.uid, gid: this.portable ? void 0 : this.stat.gid, size: this.stat.size, mtime: this.noMtime ? void 0 : this.mtime || this.stat.mtime, type: this.type === "Unsupported" ? void 0 : this.type, uname: this.portable ? void 0 : this.stat.uid === this.myuid ? this.myuser : "", atime: this.portable ? void 0 : this.stat.atime, ctime: this.portable ? void 0 : this.stat.ctime }), this.header.encode() && !this.noPax && super.write(new ct2({ atime: this.portable ? void 0 : this.header.atime, ctime: this.portable ? void 0 : this.header.ctime, gid: this.portable ? void 0 : this.header.gid, mtime: this.noMtime ? void 0 : this.mtime || this.header.mtime, path: this[X3](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X3](this.linkpath) : this.linkpath, size: this.header.size, uid: this.portable ? void 0 : this.header.uid, uname: this.portable ? void 0 : this.header.uname, dev: this.portable ? void 0 : this.stat.dev, ino: this.portable ? void 0 : this.stat.ino, nlink: this.portable ? void 0 : this.stat.nlink }).encode());
592090
592098
  let t3 = this.header?.block;
592091
592099
  if (!t3) throw new Error("failed to encode header");
592092
592100
  super.write(t3);
592093
592101
  }
592094
592102
  [js]() {
592095
592103
  if (!this.stat) throw new Error("cannot create directory entry without stat");
592096
- this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[fe2](), this.end();
592104
+ this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[ce2](), this.end();
592097
592105
  }
592098
- [ji]() {
592106
+ [ts]() {
592099
592107
  import_fs15.default.readlink(this.absolute, (t3, e2) => {
592100
592108
  if (t3) return this.emit("error", t3);
592101
- this[ts](e2);
592109
+ this[ss](e2);
592102
592110
  });
592103
592111
  }
592104
- [ts](t3) {
592105
- this.linkpath = f2(t3), this[fe2](), this.end();
592112
+ [ss](t3) {
592113
+ this.linkpath = f2(t3), this[ce2](), this.end();
592106
592114
  }
592107
- [Qs](t3) {
592115
+ [tr2](t3) {
592108
592116
  if (!this.stat) throw new Error("cannot create link entry without stat");
592109
- this.type = "Link", this.linkpath = f2(import_path29.default.relative(this.cwd, t3)), this.stat.size = 0, this[fe2](), this.end();
592117
+ this.type = "Link", this.linkpath = f2(import_path29.default.relative(this.cwd, t3)), this.stat.size = 0, this[ce2](), this.end();
592110
592118
  }
592111
- [qs3]() {
592119
+ [Js]() {
592112
592120
  if (!this.stat) throw new Error("cannot create file entry without stat");
592113
592121
  if (this.stat.nlink > 1) {
592114
592122
  let t3 = `${this.stat.dev}:${this.stat.ino}`, e2 = this.linkCache.get(t3);
592115
- if (e2?.indexOf(this.cwd) === 0) return this[Qs](e2);
592123
+ if (e2?.indexOf(this.cwd) === 0) return this[tr2](e2);
592116
592124
  this.linkCache.set(t3, this.absolute);
592117
592125
  }
592118
- if (this[fe2](), this.stat.size === 0) return this.end();
592119
- this[es]();
592126
+ if (this[ce2](), this.stat.size === 0) return this.end();
592127
+ this[rs]();
592120
592128
  }
592121
- [es]() {
592129
+ [rs]() {
592122
592130
  import_fs15.default.open(this.absolute, "r", (t3, e2) => {
592123
592131
  if (t3) return this.emit("error", t3);
592124
- this[is](e2);
592132
+ this[ns](e2);
592125
592133
  });
592126
592134
  }
592127
- [is](t3) {
592135
+ [ns](t3) {
592128
592136
  if (this.fd = t3, this.#t) return this[pt2]();
592129
592137
  if (!this.stat) throw new Error("should stat before calling onopenfile");
592130
592138
  this.blockLen = 512 * Math.ceil(this.stat.size / 512), this.blockRemain = this.blockLen;
592131
592139
  let e2 = Math.min(this.blockLen, this.maxReadSize);
592132
- this.buf = Buffer.allocUnsafe(e2), this.offset = 0, this.pos = 0, this.remain = this.stat.size, this.length = this.buf.length, this[ti]();
592140
+ this.buf = Buffer.allocUnsafe(e2), this.offset = 0, this.pos = 0, this.remain = this.stat.size, this.length = this.buf.length, this[ei]();
592133
592141
  }
592134
- [ti]() {
592142
+ [ei]() {
592135
592143
  let { fd: t3, buf: e2, offset: i6, length: r4, pos: n2 } = this;
592136
592144
  if (t3 === void 0 || e2 === void 0) throw new Error("cannot read file without first opening");
592137
- import_fs15.default.read(t3, e2, i6, r4, n2, (o3, h4) => {
592145
+ import_fs15.default.read(t3, e2, i6, r4, n2, (o3, a3) => {
592138
592146
  if (o3) return this[pt2](() => this.emit("error", o3));
592139
- this[Ji](h4);
592147
+ this[is](a3);
592140
592148
  });
592141
592149
  }
592142
592150
  [pt2](t3 = () => {
592143
592151
  }) {
592144
592152
  this.fd !== void 0 && import_fs15.default.close(this.fd, t3);
592145
592153
  }
592146
- [Ji](t3) {
592154
+ [is](t3) {
592147
592155
  if (t3 <= 0 && this.remain > 0) {
592148
592156
  let r4 = Object.assign(new Error("encountered unexpected EOF"), { path: this.absolute, syscall: "read", code: "EOF" });
592149
592157
  return this[pt2](() => this.emit("error", r4));
@@ -592155,9 +592163,9 @@ var de2 = class extends D3 {
592155
592163
  if (!this.buf) throw new Error("should have created buffer prior to reading");
592156
592164
  if (t3 === this.remain) for (let r4 = t3; r4 < this.length && t3 < this.blockRemain; r4++) this.buf[r4 + this.offset] = 0, t3++, this.remain++;
592157
592165
  let e2 = this.offset === 0 && t3 === this.buf.length ? this.buf : this.buf.subarray(this.offset, this.offset + t3);
592158
- this.write(e2) ? this[qi]() : this[ss](() => this[qi]());
592166
+ this.write(e2) ? this[ji]() : this[os4](() => this[ji]());
592159
592167
  }
592160
- [ss](t3) {
592168
+ [os4](t3) {
592161
592169
  this.once("drain", t3);
592162
592170
  }
592163
592171
  write(t3, e2, i6) {
@@ -592167,30 +592175,30 @@ var de2 = class extends D3 {
592167
592175
  }
592168
592176
  return this.remain -= t3.length, this.blockRemain -= t3.length, this.pos += t3.length, this.offset += t3.length, super.write(t3, null, i6);
592169
592177
  }
592170
- [qi]() {
592178
+ [ji]() {
592171
592179
  if (!this.remain) return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), this[pt2]((t3) => t3 ? this.emit("error", t3) : this.end());
592172
592180
  if (!this.buf) throw new Error("buffer lost somehow in ONDRAIN");
592173
- this.offset >= this.length && (this.buf = Buffer.allocUnsafe(Math.min(this.blockRemain, this.buf.length)), this.offset = 0), this.length = this.buf.length - this.offset, this[ti]();
592181
+ this.offset >= this.length && (this.buf = Buffer.allocUnsafe(Math.min(this.blockRemain, this.buf.length)), this.offset = 0), this.length = this.buf.length - this.offset, this[ei]();
592174
592182
  }
592175
592183
  };
592176
- var si = class extends de2 {
592184
+ var ri = class extends fe2 {
592177
592185
  sync = true;
592178
- [Qi]() {
592179
- this[ei](import_fs15.default.lstatSync(this.absolute));
592186
+ [es]() {
592187
+ this[ii](import_fs15.default.lstatSync(this.absolute));
592180
592188
  }
592181
- [ji]() {
592182
- this[ts](import_fs15.default.readlinkSync(this.absolute));
592189
+ [ts]() {
592190
+ this[ss](import_fs15.default.readlinkSync(this.absolute));
592183
592191
  }
592184
- [es]() {
592185
- this[is](import_fs15.default.openSync(this.absolute, "r"));
592192
+ [rs]() {
592193
+ this[ns](import_fs15.default.openSync(this.absolute, "r"));
592186
592194
  }
592187
- [ti]() {
592195
+ [ei]() {
592188
592196
  let t3 = true;
592189
592197
  try {
592190
592198
  let { fd: e2, buf: i6, offset: r4, length: n2, pos: o3 } = this;
592191
592199
  if (e2 === void 0 || i6 === void 0) throw new Error("fd and buf must be set in READ method");
592192
- let h4 = import_fs15.default.readSync(e2, i6, r4, n2, o3);
592193
- this[Ji](h4), t3 = false;
592200
+ let a3 = import_fs15.default.readSync(e2, i6, r4, n2, o3);
592201
+ this[is](a3), t3 = false;
592194
592202
  } finally {
592195
592203
  if (t3) try {
592196
592204
  this[pt2](() => {
@@ -592199,7 +592207,7 @@ var si = class extends de2 {
592199
592207
  }
592200
592208
  }
592201
592209
  }
592202
- [ss](t3) {
592210
+ [os4](t3) {
592203
592211
  t3();
592204
592212
  }
592205
592213
  [pt2](t3 = () => {
@@ -592207,7 +592215,7 @@ var si = class extends de2 {
592207
592215
  this.fd !== void 0 && import_fs15.default.closeSync(this.fd), t3();
592208
592216
  }
592209
592217
  };
592210
- var ri = class extends D3 {
592218
+ var ni = class extends A3 {
592211
592219
  blockLen = 0;
592212
592220
  blockRemain = 0;
592213
592221
  buf = 0;
@@ -592236,29 +592244,29 @@ var ri = class extends D3 {
592236
592244
  size;
592237
592245
  onWriteEntry;
592238
592246
  warn(t3, e2, i6 = {}) {
592239
- return Lt2(this, t3, e2, i6);
592247
+ return Nt2(this, t3, e2, i6);
592240
592248
  }
592241
592249
  constructor(t3, e2 = {}) {
592242
- let i6 = re3(e2);
592250
+ let i6 = se2(e2);
592243
592251
  super(), this.preservePaths = !!i6.preservePaths, this.portable = !!i6.portable, this.strict = !!i6.strict, this.noPax = !!i6.noPax, this.noMtime = !!i6.noMtime, this.onWriteEntry = i6.onWriteEntry, this.readEntry = t3;
592244
592252
  let { type: r4 } = t3;
592245
592253
  if (r4 === "Unsupported") throw new Error("writing entry that should be ignored");
592246
- this.type = r4, this.type === "Directory" && this.portable && (this.noMtime = true), this.prefix = i6.prefix, this.path = f2(t3.path), this.mode = t3.mode !== void 0 ? this[ii](t3.mode) : void 0, this.uid = this.portable ? void 0 : t3.uid, this.gid = this.portable ? void 0 : t3.gid, this.uname = this.portable ? void 0 : t3.uname, this.gname = this.portable ? void 0 : t3.gname, this.size = t3.size, this.mtime = this.noMtime ? void 0 : i6.mtime || t3.mtime, this.atime = this.portable ? void 0 : t3.atime, this.ctime = this.portable ? void 0 : t3.ctime, this.linkpath = t3.linkpath !== void 0 ? f2(t3.linkpath) : void 0, typeof i6.onwarn == "function" && this.on("warn", i6.onwarn);
592254
+ this.type = r4, this.type === "Directory" && this.portable && (this.noMtime = true), this.prefix = i6.prefix, this.path = f2(t3.path), this.mode = t3.mode !== void 0 ? this[si](t3.mode) : void 0, this.uid = this.portable ? void 0 : t3.uid, this.gid = this.portable ? void 0 : t3.gid, this.uname = this.portable ? void 0 : t3.uname, this.gname = this.portable ? void 0 : t3.gname, this.size = t3.size, this.mtime = this.noMtime ? void 0 : i6.mtime || t3.mtime, this.atime = this.portable ? void 0 : t3.atime, this.ctime = this.portable ? void 0 : t3.ctime, this.linkpath = t3.linkpath !== void 0 ? f2(t3.linkpath) : void 0, typeof i6.onwarn == "function" && this.on("warn", i6.onwarn);
592247
592255
  let n2 = false;
592248
592256
  if (!this.preservePaths) {
592249
- let [h4, a3] = ce2(this.path);
592250
- h4 && typeof a3 == "string" && (this.path = a3, n2 = h4);
592257
+ let [a3, h4] = le2(this.path);
592258
+ a3 && typeof h4 == "string" && (this.path = h4, n2 = a3);
592251
592259
  }
592252
- this.remain = t3.size, this.blockRemain = t3.startBlockSize, this.onWriteEntry?.(this), this.header = new F4({ path: this[X3](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X3](this.linkpath) : this.linkpath, mode: this.mode, uid: this.portable ? void 0 : this.uid, gid: this.portable ? void 0 : this.gid, size: this.size, mtime: this.noMtime ? void 0 : this.mtime, type: this.type, uname: this.portable ? void 0 : this.uname, atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime }), n2 && this.warn("TAR_ENTRY_INFO", `stripping ${n2} from absolute path`, { entry: this, path: n2 + this.path }), this.header.encode() && !this.noPax && super.write(new ct2({ atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime, gid: this.portable ? void 0 : this.gid, mtime: this.noMtime ? void 0 : this.mtime, path: this[X3](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X3](this.linkpath) : this.linkpath, size: this.size, uid: this.portable ? void 0 : this.uid, uname: this.portable ? void 0 : this.uname, dev: this.portable ? void 0 : this.readEntry.dev, ino: this.portable ? void 0 : this.readEntry.ino, nlink: this.portable ? void 0 : this.readEntry.nlink }).encode());
592260
+ this.remain = t3.size, this.blockRemain = t3.startBlockSize, this.onWriteEntry?.(this), this.header = new C4({ path: this[X3](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X3](this.linkpath) : this.linkpath, mode: this.mode, uid: this.portable ? void 0 : this.uid, gid: this.portable ? void 0 : this.gid, size: this.size, mtime: this.noMtime ? void 0 : this.mtime, type: this.type, uname: this.portable ? void 0 : this.uname, atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime }), n2 && this.warn("TAR_ENTRY_INFO", `stripping ${n2} from absolute path`, { entry: this, path: n2 + this.path }), this.header.encode() && !this.noPax && super.write(new ct2({ atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime, gid: this.portable ? void 0 : this.gid, mtime: this.noMtime ? void 0 : this.mtime, path: this[X3](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X3](this.linkpath) : this.linkpath, size: this.size, uid: this.portable ? void 0 : this.uid, uname: this.portable ? void 0 : this.uname, dev: this.portable ? void 0 : this.readEntry.dev, ino: this.portable ? void 0 : this.readEntry.ino, nlink: this.portable ? void 0 : this.readEntry.nlink }).encode());
592253
592261
  let o3 = this.header?.block;
592254
592262
  if (!o3) throw new Error("failed to encode header");
592255
592263
  super.write(o3), t3.pipe(this);
592256
592264
  }
592257
592265
  [X3](t3) {
592258
- return Js(t3, this.prefix);
592266
+ return er2(t3, this.prefix);
592259
592267
  }
592260
- [ii](t3) {
592261
- return Vi(t3, this.type === "Directory", this.portable);
592268
+ [si](t3) {
592269
+ return qi(t3, this.type === "Directory", this.portable);
592262
592270
  }
592263
592271
  write(t3, e2, i6) {
592264
592272
  typeof e2 == "function" && (i6 = e2, e2 = void 0), typeof t3 == "string" && (t3 = Buffer.from(t3, typeof e2 == "string" ? e2 : "utf8"));
@@ -592270,8 +592278,8 @@ var ri = class extends D3 {
592270
592278
  return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), typeof t3 == "function" && (i6 = t3, e2 = void 0, t3 = void 0), typeof e2 == "function" && (i6 = e2, e2 = void 0), typeof t3 == "string" && (t3 = Buffer.from(t3, e2 ?? "utf8")), i6 && this.once("finish", i6), t3 ? super.end(t3, i6) : super.end(i6), this;
592271
592279
  }
592272
592280
  };
592273
- var Mn = (s5) => s5.isFile() ? "File" : s5.isDirectory() ? "Directory" : s5.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
592274
- var ni = class s3 {
592281
+ var Pn = (s5) => s5.isFile() ? "File" : s5.isDirectory() ? "Directory" : s5.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
592282
+ var oi = class s3 {
592275
592283
  tail;
592276
592284
  head;
592277
592285
  length = 0;
@@ -592302,11 +592310,11 @@ var ni = class s3 {
592302
592310
  t3.list = this, t3.prev = e2, e2 && (e2.next = t3), this.tail = t3, this.head || (this.head = t3), this.length++;
592303
592311
  }
592304
592312
  push(...t3) {
592305
- for (let e2 = 0, i6 = t3.length; e2 < i6; e2++) Pn(this, t3[e2]);
592313
+ for (let e2 = 0, i6 = t3.length; e2 < i6; e2++) Un(this, t3[e2]);
592306
592314
  return this.length;
592307
592315
  }
592308
592316
  unshift(...t3) {
592309
- for (var e2 = 0, i6 = t3.length; e2 < i6; e2++) zn(this, t3[e2]);
592317
+ for (var e2 = 0, i6 = t3.length; e2 < i6; e2++) Hn(this, t3[e2]);
592310
592318
  return this.length;
592311
592319
  }
592312
592320
  pop() {
@@ -592402,7 +592410,7 @@ var ni = class s3 {
592402
592410
  let n2 = [];
592403
592411
  for (let o3 = 0; r4 && o3 < e2; o3++) n2.push(r4.value), r4 = this.removeNode(r4);
592404
592412
  r4 ? r4 !== this.tail && (r4 = r4.prev) : r4 = this.tail;
592405
- for (let o3 of i6) r4 = Bn(this, r4, o3);
592413
+ for (let o3 of i6) r4 = zn(this, r4, o3);
592406
592414
  return n2;
592407
592415
  }
592408
592416
  reverse() {
@@ -592414,17 +592422,17 @@ var ni = class s3 {
592414
592422
  return this.head = e2, this.tail = t3, this;
592415
592423
  }
592416
592424
  };
592417
- function Bn(s5, t3, e2) {
592418
- let i6 = t3, r4 = t3 ? t3.next : s5.head, n2 = new ue2(e2, i6, r4, s5);
592425
+ function zn(s5, t3, e2) {
592426
+ let i6 = t3, r4 = t3 ? t3.next : s5.head, n2 = new de2(e2, i6, r4, s5);
592419
592427
  return n2.next === void 0 && (s5.tail = n2), n2.prev === void 0 && (s5.head = n2), s5.length++, n2;
592420
592428
  }
592421
- function Pn(s5, t3) {
592422
- s5.tail = new ue2(t3, s5.tail, void 0, s5), s5.head || (s5.head = s5.tail), s5.length++;
592429
+ function Un(s5, t3) {
592430
+ s5.tail = new de2(t3, s5.tail, void 0, s5), s5.head || (s5.head = s5.tail), s5.length++;
592423
592431
  }
592424
- function zn(s5, t3) {
592425
- s5.head = new ue2(t3, void 0, s5.head, s5), s5.tail || (s5.tail = s5.head), s5.length++;
592432
+ function Hn(s5, t3) {
592433
+ s5.head = new de2(t3, void 0, s5.head, s5), s5.tail || (s5.tail = s5.head), s5.length++;
592426
592434
  }
592427
- var ue2 = class {
592435
+ var de2 = class {
592428
592436
  list;
592429
592437
  next;
592430
592438
  prev;
@@ -592433,41 +592441,43 @@ var ue2 = class {
592433
592441
  this.list = r4, this.value = t3, e2 ? (e2.next = this, this.prev = e2) : this.prev = void 0, i6 ? (i6.prev = this, this.next = i6) : this.next = void 0;
592434
592442
  }
592435
592443
  };
592436
- var di = class {
592444
+ var mi = class {
592437
592445
  path;
592438
592446
  absolute;
592439
592447
  entry;
592440
592448
  stat;
592441
592449
  readdir;
592442
592450
  pending = false;
592451
+ pendingLink = false;
592443
592452
  ignore = false;
592444
592453
  piped = false;
592445
592454
  constructor(t3, e2) {
592446
592455
  this.path = t3 || "./", this.absolute = e2;
592447
592456
  }
592448
592457
  };
592449
- var tr2 = Buffer.alloc(1024);
592450
- var oi = /* @__PURE__ */ Symbol("onStat");
592451
- var me2 = /* @__PURE__ */ Symbol("ended");
592458
+ var ir2 = Buffer.alloc(1024);
592459
+ var ai = /* @__PURE__ */ Symbol("onStat");
592460
+ var ue2 = /* @__PURE__ */ Symbol("ended");
592452
592461
  var W4 = /* @__PURE__ */ Symbol("queue");
592453
- var Ct2 = /* @__PURE__ */ Symbol("current");
592454
- var Ft2 = /* @__PURE__ */ Symbol("process");
592462
+ var me2 = /* @__PURE__ */ Symbol("pendingLinks");
592463
+ var Et2 = /* @__PURE__ */ Symbol("current");
592464
+ var Ct2 = /* @__PURE__ */ Symbol("process");
592455
592465
  var pe2 = /* @__PURE__ */ Symbol("processing");
592456
- var rs = /* @__PURE__ */ Symbol("processJob");
592466
+ var hi = /* @__PURE__ */ Symbol("processJob");
592457
592467
  var G5 = /* @__PURE__ */ Symbol("jobs");
592458
- var ns = /* @__PURE__ */ Symbol("jobDone");
592459
- var hi = /* @__PURE__ */ Symbol("addFSEntry");
592460
- var er2 = /* @__PURE__ */ Symbol("addTarEntry");
592461
- var as = /* @__PURE__ */ Symbol("stat");
592462
- var ls = /* @__PURE__ */ Symbol("readdir");
592463
- var ai = /* @__PURE__ */ Symbol("onreaddir");
592464
- var li = /* @__PURE__ */ Symbol("pipe");
592465
- var ir2 = /* @__PURE__ */ Symbol("entry");
592466
- var os4 = /* @__PURE__ */ Symbol("entryOpt");
592467
- var ci = /* @__PURE__ */ Symbol("writeEntryClass");
592468
- var rr2 = /* @__PURE__ */ Symbol("write");
592469
- var hs = /* @__PURE__ */ Symbol("ondrain");
592470
- var Et2 = class extends D3 {
592468
+ var hs = /* @__PURE__ */ Symbol("jobDone");
592469
+ var li = /* @__PURE__ */ Symbol("addFSEntry");
592470
+ var sr2 = /* @__PURE__ */ Symbol("addTarEntry");
592471
+ var cs = /* @__PURE__ */ Symbol("stat");
592472
+ var fs4 = /* @__PURE__ */ Symbol("readdir");
592473
+ var ci = /* @__PURE__ */ Symbol("onreaddir");
592474
+ var fi = /* @__PURE__ */ Symbol("pipe");
592475
+ var rr2 = /* @__PURE__ */ Symbol("entry");
592476
+ var as = /* @__PURE__ */ Symbol("entryOpt");
592477
+ var di = /* @__PURE__ */ Symbol("writeEntryClass");
592478
+ var or2 = /* @__PURE__ */ Symbol("write");
592479
+ var ls = /* @__PURE__ */ Symbol("ondrain");
592480
+ var wt2 = class extends A3 {
592471
592481
  sync = false;
592472
592482
  opt;
592473
592483
  cwd;
@@ -592488,123 +592498,139 @@ var Et2 = class extends D3 {
592488
592498
  mtime;
592489
592499
  filter;
592490
592500
  jobs;
592491
- [ci];
592501
+ [di];
592492
592502
  onWriteEntry;
592493
592503
  [W4];
592504
+ [me2] = /* @__PURE__ */ new Map();
592494
592505
  [G5] = 0;
592495
592506
  [pe2] = false;
592496
- [me2] = false;
592507
+ [ue2] = false;
592497
592508
  constructor(t3 = {}) {
592498
- if (super(), this.opt = t3, this.file = t3.file || "", this.cwd = t3.cwd || process.cwd(), this.maxReadSize = t3.maxReadSize, this.preservePaths = !!t3.preservePaths, this.strict = !!t3.strict, this.noPax = !!t3.noPax, this.prefix = f2(t3.prefix || ""), this.linkCache = t3.linkCache || /* @__PURE__ */ new Map(), this.statCache = t3.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t3.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t3.onWriteEntry, this[ci] = de2, typeof t3.onwarn == "function" && this.on("warn", t3.onwarn), this.portable = !!t3.portable, t3.gzip || t3.brotli || t3.zstd) {
592509
+ if (super(), this.opt = t3, this.file = t3.file || "", this.cwd = t3.cwd || process.cwd(), this.maxReadSize = t3.maxReadSize, this.preservePaths = !!t3.preservePaths, this.strict = !!t3.strict, this.noPax = !!t3.noPax, this.prefix = f2(t3.prefix || ""), this.linkCache = t3.linkCache || /* @__PURE__ */ new Map(), this.statCache = t3.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t3.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t3.onWriteEntry, this[di] = fe2, typeof t3.onwarn == "function" && this.on("warn", t3.onwarn), this.portable = !!t3.portable, t3.gzip || t3.brotli || t3.zstd) {
592499
592510
  if ((t3.gzip ? 1 : 0) + (t3.brotli ? 1 : 0) + (t3.zstd ? 1 : 0) > 1) throw new TypeError("gzip, brotli, zstd are mutually exclusive");
592500
592511
  if (t3.gzip && (typeof t3.gzip != "object" && (t3.gzip = {}), this.portable && (t3.gzip.portable = true), this.zip = new Pe2(t3.gzip)), t3.brotli && (typeof t3.brotli != "object" && (t3.brotli = {}), this.zip = new He2(t3.brotli)), t3.zstd && (typeof t3.zstd != "object" && (t3.zstd = {}), this.zip = new Ze2(t3.zstd)), !this.zip) throw new Error("impossible");
592501
592512
  let e2 = this.zip;
592502
- e2.on("data", (i6) => super.write(i6)), e2.on("end", () => super.end()), e2.on("drain", () => this[hs]()), this.on("resume", () => e2.resume());
592503
- } else this.on("drain", this[hs]);
592504
- this.noDirRecurse = !!t3.noDirRecurse, this.follow = !!t3.follow, this.noMtime = !!t3.noMtime, t3.mtime && (this.mtime = t3.mtime), this.filter = typeof t3.filter == "function" ? t3.filter : () => true, this[W4] = new ni(), this[G5] = 0, this.jobs = Number(t3.jobs) || 4, this[pe2] = false, this[me2] = false;
592513
+ e2.on("data", (i6) => super.write(i6)), e2.on("end", () => super.end()), e2.on("drain", () => this[ls]()), this.on("resume", () => e2.resume());
592514
+ } else this.on("drain", this[ls]);
592515
+ this.noDirRecurse = !!t3.noDirRecurse, this.follow = !!t3.follow, this.noMtime = !!t3.noMtime, t3.mtime && (this.mtime = t3.mtime), this.filter = typeof t3.filter == "function" ? t3.filter : () => true, this[W4] = new oi(), this[G5] = 0, this.jobs = Number(t3.jobs) || 4, this[pe2] = false, this[ue2] = false;
592505
592516
  }
592506
- [rr2](t3) {
592517
+ [or2](t3) {
592507
592518
  return super.write(t3);
592508
592519
  }
592509
592520
  add(t3) {
592510
592521
  return this.write(t3), this;
592511
592522
  }
592512
592523
  end(t3, e2, i6) {
592513
- return typeof t3 == "function" && (i6 = t3, t3 = void 0), typeof e2 == "function" && (i6 = e2, e2 = void 0), t3 && this.add(t3), this[me2] = true, this[Ft2](), i6 && i6(), this;
592524
+ return typeof t3 == "function" && (i6 = t3, t3 = void 0), typeof e2 == "function" && (i6 = e2, e2 = void 0), t3 && this.add(t3), this[ue2] = true, this[Ct2](), i6 && i6(), this;
592514
592525
  }
592515
592526
  write(t3) {
592516
- if (this[me2]) throw new Error("write after end");
592517
- return t3 instanceof Yt2 ? this[er2](t3) : this[hi](t3), this.flowing;
592527
+ if (this[ue2]) throw new Error("write after end");
592528
+ return typeof t3 == "string" ? this[li](t3) : this[sr2](t3), this.flowing;
592518
592529
  }
592519
- [er2](t3) {
592530
+ [sr2](t3) {
592520
592531
  let e2 = f2(import_path30.default.resolve(this.cwd, t3.path));
592521
592532
  if (!this.filter(t3.path, t3)) t3.resume();
592522
592533
  else {
592523
- let i6 = new di(t3.path, e2);
592524
- i6.entry = new ri(t3, this[os4](i6)), i6.entry.on("end", () => this[ns](i6)), this[G5] += 1, this[W4].push(i6);
592534
+ let i6 = new mi(t3.path, e2);
592535
+ i6.entry = new ni(t3, this[as](i6)), i6.entry.on("end", () => this[hs](i6)), this[G5] += 1, this[W4].push(i6);
592525
592536
  }
592526
- this[Ft2]();
592537
+ this[Ct2]();
592527
592538
  }
592528
- [hi](t3) {
592539
+ [li](t3) {
592529
592540
  let e2 = f2(import_path30.default.resolve(this.cwd, t3));
592530
- this[W4].push(new di(t3, e2)), this[Ft2]();
592541
+ this[W4].push(new mi(t3, e2)), this[Ct2]();
592531
592542
  }
592532
- [as](t3) {
592543
+ [cs](t3) {
592533
592544
  t3.pending = true, this[G5] += 1;
592534
592545
  let e2 = this.follow ? "stat" : "lstat";
592535
592546
  import_fs14.default[e2](t3.absolute, (i6, r4) => {
592536
- t3.pending = false, this[G5] -= 1, i6 ? this.emit("error", i6) : this[oi](t3, r4);
592547
+ t3.pending = false, this[G5] -= 1, i6 ? this.emit("error", i6) : this[ai](t3, r4);
592537
592548
  });
592538
592549
  }
592539
- [oi](t3, e2) {
592540
- this.statCache.set(t3.absolute, e2), t3.stat = e2, this.filter(t3.path, e2) ? e2.isFile() && e2.nlink > 1 && t3 === this[Ct2] && !this.linkCache.get(`${e2.dev}:${e2.ino}`) && !this.sync && this[rs](t3) : t3.ignore = true, this[Ft2]();
592550
+ [ai](t3, e2) {
592551
+ if (this.statCache.set(t3.absolute, e2), t3.stat = e2, !this.filter(t3.path, e2)) t3.ignore = true;
592552
+ else if (e2.isFile() && e2.nlink > 1 && !this.linkCache.get(`${e2.dev}:${e2.ino}`) && !this.sync) if (t3 === this[Et2]) this[hi](t3);
592553
+ else {
592554
+ let i6 = `${e2.dev}:${e2.ino}`, r4 = this[me2].get(i6);
592555
+ r4 ? r4.push(t3) : this[me2].set(i6, [t3]), t3.pendingLink = true, t3.pending = true;
592556
+ }
592557
+ this[Ct2]();
592541
592558
  }
592542
- [ls](t3) {
592559
+ [fs4](t3) {
592543
592560
  t3.pending = true, this[G5] += 1, import_fs14.default.readdir(t3.absolute, (e2, i6) => {
592544
592561
  if (t3.pending = false, this[G5] -= 1, e2) return this.emit("error", e2);
592545
- this[ai](t3, i6);
592562
+ this[ci](t3, i6);
592546
592563
  });
592547
592564
  }
592548
- [ai](t3, e2) {
592549
- this.readdirCache.set(t3.absolute, e2), t3.readdir = e2, this[Ft2]();
592565
+ [ci](t3, e2) {
592566
+ this.readdirCache.set(t3.absolute, e2), t3.readdir = e2, this[Ct2]();
592550
592567
  }
592551
- [Ft2]() {
592568
+ [Ct2]() {
592552
592569
  if (!this[pe2]) {
592553
592570
  this[pe2] = true;
592554
- for (let t3 = this[W4].head; t3 && this[G5] < this.jobs; t3 = t3.next) if (this[rs](t3.value), t3.value.ignore) {
592571
+ for (let t3 = this[W4].head; t3 && this[G5] < this.jobs; t3 = t3.next) if (this[hi](t3.value), t3.value.ignore) {
592555
592572
  let e2 = t3.next;
592556
592573
  this[W4].removeNode(t3), t3.next = e2;
592557
592574
  }
592558
- this[pe2] = false, this[me2] && this[W4].length === 0 && this[G5] === 0 && (this.zip ? this.zip.end(tr2) : (super.write(tr2), super.end()));
592575
+ this[pe2] = false, this[ue2] && this[W4].length === 0 && this[G5] === 0 && (this.zip ? this.zip.end(ir2) : (super.write(ir2), super.end()));
592559
592576
  }
592560
592577
  }
592561
- get [Ct2]() {
592578
+ get [Et2]() {
592562
592579
  return this[W4] && this[W4].head && this[W4].head.value;
592563
592580
  }
592564
- [ns](t3) {
592565
- this[W4].shift(), this[G5] -= 1, this[Ft2]();
592581
+ [hs](t3) {
592582
+ this[W4].shift(), this[G5] -= 1;
592583
+ let { stat: e2 } = t3;
592584
+ if (e2 && e2.isFile() && e2.nlink > 1) {
592585
+ let i6 = `${e2.dev}:${e2.ino}`, r4 = this[me2].get(i6);
592586
+ if (r4) {
592587
+ this[me2].delete(i6);
592588
+ for (let n2 of r4) n2.pending = false, this[hi](n2);
592589
+ }
592590
+ }
592591
+ this[Ct2]();
592566
592592
  }
592567
- [rs](t3) {
592568
- if (!t3.pending) {
592593
+ [hi](t3) {
592594
+ if (t3.pending && t3.pendingLink && t3 === this[Et2] && (t3.pending = false, t3.pendingLink = false), !t3.pending) {
592569
592595
  if (t3.entry) {
592570
- t3 === this[Ct2] && !t3.piped && this[li](t3);
592596
+ t3 === this[Et2] && !t3.piped && this[fi](t3);
592571
592597
  return;
592572
592598
  }
592573
592599
  if (!t3.stat) {
592574
592600
  let e2 = this.statCache.get(t3.absolute);
592575
- e2 ? this[oi](t3, e2) : this[as](t3);
592601
+ e2 ? this[ai](t3, e2) : this[cs](t3);
592576
592602
  }
592577
592603
  if (t3.stat && !t3.ignore) {
592578
592604
  if (!this.noDirRecurse && t3.stat.isDirectory() && !t3.readdir) {
592579
592605
  let e2 = this.readdirCache.get(t3.absolute);
592580
- if (e2 ? this[ai](t3, e2) : this[ls](t3), !t3.readdir) return;
592606
+ if (e2 ? this[ci](t3, e2) : this[fs4](t3), !t3.readdir) return;
592581
592607
  }
592582
- if (t3.entry = this[ir2](t3), !t3.entry) {
592608
+ if (t3.entry = this[rr2](t3), !t3.entry) {
592583
592609
  t3.ignore = true;
592584
592610
  return;
592585
592611
  }
592586
- t3 === this[Ct2] && !t3.piped && this[li](t3);
592612
+ t3 === this[Et2] && !t3.piped && this[fi](t3);
592587
592613
  }
592588
592614
  }
592589
592615
  }
592590
- [os4](t3) {
592616
+ [as](t3) {
592591
592617
  return { onwarn: (e2, i6, r4) => this.warn(e2, i6, r4), noPax: this.noPax, cwd: this.cwd, absolute: t3.absolute, preservePaths: this.preservePaths, maxReadSize: this.maxReadSize, strict: this.strict, portable: this.portable, linkCache: this.linkCache, statCache: this.statCache, noMtime: this.noMtime, mtime: this.mtime, prefix: this.prefix, onWriteEntry: this.onWriteEntry };
592592
592618
  }
592593
- [ir2](t3) {
592619
+ [rr2](t3) {
592594
592620
  this[G5] += 1;
592595
592621
  try {
592596
- return new this[ci](t3.path, this[os4](t3)).on("end", () => this[ns](t3)).on("error", (i6) => this.emit("error", i6));
592622
+ return new this[di](t3.path, this[as](t3)).on("end", () => this[hs](t3)).on("error", (i6) => this.emit("error", i6));
592597
592623
  } catch (e2) {
592598
592624
  this.emit("error", e2);
592599
592625
  }
592600
592626
  }
592601
- [hs]() {
592602
- this[Ct2] && this[Ct2].entry && this[Ct2].entry.resume();
592627
+ [ls]() {
592628
+ this[Et2] && this[Et2].entry && this[Et2].entry.resume();
592603
592629
  }
592604
- [li](t3) {
592630
+ [fi](t3) {
592605
592631
  t3.piped = true, t3.readdir && t3.readdir.forEach((r4) => {
592606
592632
  let n2 = t3.path, o3 = n2 === "./" ? "" : n2.replace(/\/*$/, "/");
592607
- this[hi](o3 + r4);
592633
+ this[li](o3 + r4);
592608
592634
  });
592609
592635
  let e2 = t3.entry, i6 = this.zip;
592610
592636
  if (!e2) throw new Error("cannot pipe without source");
@@ -592618,135 +592644,135 @@ var Et2 = class extends D3 {
592618
592644
  return this.zip && this.zip.pause(), super.pause();
592619
592645
  }
592620
592646
  warn(t3, e2, i6 = {}) {
592621
- Lt2(this, t3, e2, i6);
592647
+ Nt2(this, t3, e2, i6);
592622
592648
  }
592623
592649
  };
592624
- var kt2 = class extends Et2 {
592650
+ var kt2 = class extends wt2 {
592625
592651
  sync = true;
592626
592652
  constructor(t3) {
592627
- super(t3), this[ci] = si;
592653
+ super(t3), this[di] = ri;
592628
592654
  }
592629
592655
  pause() {
592630
592656
  }
592631
592657
  resume() {
592632
592658
  }
592633
- [as](t3) {
592659
+ [cs](t3) {
592634
592660
  let e2 = this.follow ? "statSync" : "lstatSync";
592635
- this[oi](t3, import_fs14.default[e2](t3.absolute));
592661
+ this[ai](t3, import_fs14.default[e2](t3.absolute));
592636
592662
  }
592637
- [ls](t3) {
592638
- this[ai](t3, import_fs14.default.readdirSync(t3.absolute));
592663
+ [fs4](t3) {
592664
+ this[ci](t3, import_fs14.default.readdirSync(t3.absolute));
592639
592665
  }
592640
- [li](t3) {
592666
+ [fi](t3) {
592641
592667
  let e2 = t3.entry, i6 = this.zip;
592642
592668
  if (t3.readdir && t3.readdir.forEach((r4) => {
592643
592669
  let n2 = t3.path, o3 = n2 === "./" ? "" : n2.replace(/\/*$/, "/");
592644
- this[hi](o3 + r4);
592670
+ this[li](o3 + r4);
592645
592671
  }), !e2) throw new Error("Cannot pipe without source");
592646
592672
  i6 ? e2.on("data", (r4) => {
592647
592673
  i6.write(r4);
592648
592674
  }) : e2.on("data", (r4) => {
592649
- super[rr2](r4);
592675
+ super[or2](r4);
592650
592676
  });
592651
592677
  }
592652
592678
  };
592653
- var Un = (s5, t3) => {
592679
+ var Wn = (s5, t3) => {
592654
592680
  let e2 = new kt2(s5), i6 = new Wt2(s5.file, { mode: s5.mode || 438 });
592655
- e2.pipe(i6), or2(e2, t3);
592681
+ e2.pipe(i6), ar2(e2, t3);
592656
592682
  };
592657
- var Hn = (s5, t3) => {
592658
- let e2 = new Et2(s5), i6 = new tt2(s5.file, { mode: s5.mode || 438 });
592683
+ var Gn = (s5, t3) => {
592684
+ let e2 = new wt2(s5), i6 = new tt2(s5.file, { mode: s5.mode || 438 });
592659
592685
  e2.pipe(i6);
592660
592686
  let r4 = new Promise((n2, o3) => {
592661
592687
  i6.on("error", o3), i6.on("close", n2), e2.on("error", o3);
592662
592688
  });
592663
- return hr2(e2, t3).catch((n2) => e2.emit("error", n2)), r4;
592689
+ return lr2(e2, t3).catch((n2) => e2.emit("error", n2)), r4;
592664
592690
  };
592665
- var or2 = (s5, t3) => {
592691
+ var ar2 = (s5, t3) => {
592666
592692
  t3.forEach((e2) => {
592667
- e2.charAt(0) === "@" ? It2({ file: import_node_path9.default.resolve(s5.cwd, e2.slice(1)), sync: true, noResume: true, onReadEntry: (i6) => s5.add(i6) }) : s5.add(e2);
592693
+ e2.charAt(0) === "@" ? Ft2({ file: import_node_path9.default.resolve(s5.cwd, e2.slice(1)), sync: true, noResume: true, onReadEntry: (i6) => s5.add(i6) }) : s5.add(e2);
592668
592694
  }), s5.end();
592669
592695
  };
592670
- var hr2 = async (s5, t3) => {
592671
- for (let e2 of t3) e2.charAt(0) === "@" ? await It2({ file: import_node_path9.default.resolve(String(s5.cwd), e2.slice(1)), noResume: true, onReadEntry: (i6) => {
592696
+ var lr2 = async (s5, t3) => {
592697
+ for (let e2 of t3) e2.charAt(0) === "@" ? await Ft2({ file: import_node_path9.default.resolve(String(s5.cwd), e2.slice(1)), noResume: true, onReadEntry: (i6) => {
592672
592698
  s5.add(i6);
592673
592699
  } }) : s5.add(e2);
592674
592700
  s5.end();
592675
592701
  };
592676
- var Wn = (s5, t3) => {
592702
+ var Zn = (s5, t3) => {
592677
592703
  let e2 = new kt2(s5);
592678
- return or2(e2, t3), e2;
592704
+ return ar2(e2, t3), e2;
592679
592705
  };
592680
- var Gn = (s5, t3) => {
592681
- let e2 = new Et2(s5);
592682
- return hr2(e2, t3).catch((i6) => e2.emit("error", i6)), e2;
592706
+ var Yn = (s5, t3) => {
592707
+ let e2 = new wt2(s5);
592708
+ return lr2(e2, t3).catch((i6) => e2.emit("error", i6)), e2;
592683
592709
  };
592684
- var Zn = K3(Un, Hn, Wn, Gn, (s5, t3) => {
592710
+ var Kn = K3(Wn, Gn, Zn, Yn, (s5, t3) => {
592685
592711
  if (!t3?.length) throw new TypeError("no paths specified to add to archive");
592686
592712
  });
592687
- var Yn = process.env.__FAKE_PLATFORM__ || process.platform;
592688
- var fr2 = Yn === "win32";
592689
- var { O_CREAT: dr2, O_NOFOLLOW: ar2, O_TRUNC: ur2, O_WRONLY: mr2 } = import_fs16.default.constants;
592690
- var pr2 = Number(process.env.__FAKE_FS_O_FILENAME__) || import_fs16.default.constants.UV_FS_O_FILEMAP || 0;
592691
- var Kn = fr2 && !!pr2;
592692
- var Vn = 512 * 1024;
592693
- var $n = pr2 | ur2 | dr2 | mr2;
592694
- var lr2 = !fr2 && typeof ar2 == "number" ? ar2 | ur2 | dr2 | mr2 : null;
592695
- var cs = lr2 !== null ? () => lr2 : Kn ? (s5) => s5 < Vn ? $n : "w" : () => "w";
592696
- var fs4 = (s5, t3, e2) => {
592713
+ var Vn = process.env.__FAKE_PLATFORM__ || process.platform;
592714
+ var ur2 = Vn === "win32";
592715
+ var { O_CREAT: mr2, O_NOFOLLOW: cr2, O_TRUNC: pr2, O_WRONLY: Er } = import_fs16.default.constants;
592716
+ var wr2 = Number(process.env.__FAKE_FS_O_FILENAME__) || import_fs16.default.constants.UV_FS_O_FILEMAP || 0;
592717
+ var $n = ur2 && !!wr2;
592718
+ var Xn = 512 * 1024;
592719
+ var qn = wr2 | pr2 | mr2 | Er;
592720
+ var fr2 = !ur2 && typeof cr2 == "number" ? cr2 | pr2 | mr2 | Er : null;
592721
+ var ds = fr2 !== null ? () => fr2 : $n ? (s5) => s5 < Xn ? qn : "w" : () => "w";
592722
+ var us = (s5, t3, e2) => {
592697
592723
  try {
592698
592724
  return import_node_fs9.default.lchownSync(s5, t3, e2);
592699
592725
  } catch (i6) {
592700
592726
  if (i6?.code !== "ENOENT") throw i6;
592701
592727
  }
592702
592728
  };
592703
- var ui2 = (s5, t3, e2, i6) => {
592729
+ var pi = (s5, t3, e2, i6) => {
592704
592730
  import_node_fs9.default.lchown(s5, t3, e2, (r4) => {
592705
592731
  i6(r4 && r4?.code !== "ENOENT" ? r4 : null);
592706
592732
  });
592707
592733
  };
592708
- var Xn = (s5, t3, e2, i6, r4) => {
592709
- if (t3.isDirectory()) ds(import_node_path14.default.resolve(s5, t3.name), e2, i6, (n2) => {
592734
+ var Qn = (s5, t3, e2, i6, r4) => {
592735
+ if (t3.isDirectory()) ms(import_node_path14.default.resolve(s5, t3.name), e2, i6, (n2) => {
592710
592736
  if (n2) return r4(n2);
592711
592737
  let o3 = import_node_path14.default.resolve(s5, t3.name);
592712
- ui2(o3, e2, i6, r4);
592738
+ pi(o3, e2, i6, r4);
592713
592739
  });
592714
592740
  else {
592715
592741
  let n2 = import_node_path14.default.resolve(s5, t3.name);
592716
- ui2(n2, e2, i6, r4);
592742
+ pi(n2, e2, i6, r4);
592717
592743
  }
592718
592744
  };
592719
- var ds = (s5, t3, e2, i6) => {
592745
+ var ms = (s5, t3, e2, i6) => {
592720
592746
  import_node_fs9.default.readdir(s5, { withFileTypes: true }, (r4, n2) => {
592721
592747
  if (r4) {
592722
592748
  if (r4.code === "ENOENT") return i6();
592723
592749
  if (r4.code !== "ENOTDIR" && r4.code !== "ENOTSUP") return i6(r4);
592724
592750
  }
592725
- if (r4 || !n2.length) return ui2(s5, t3, e2, i6);
592726
- let o3 = n2.length, h4 = null, a3 = (l2) => {
592727
- if (!h4) {
592728
- if (l2) return i6(h4 = l2);
592729
- if (--o3 === 0) return ui2(s5, t3, e2, i6);
592751
+ if (r4 || !n2.length) return pi(s5, t3, e2, i6);
592752
+ let o3 = n2.length, a3 = null, h4 = (l2) => {
592753
+ if (!a3) {
592754
+ if (l2) return i6(a3 = l2);
592755
+ if (--o3 === 0) return pi(s5, t3, e2, i6);
592730
592756
  }
592731
592757
  };
592732
- for (let l2 of n2) Xn(s5, l2, t3, e2, a3);
592758
+ for (let l2 of n2) Qn(s5, l2, t3, e2, h4);
592733
592759
  });
592734
592760
  };
592735
- var qn = (s5, t3, e2, i6) => {
592736
- t3.isDirectory() && us(import_node_path14.default.resolve(s5, t3.name), e2, i6), fs4(import_node_path14.default.resolve(s5, t3.name), e2, i6);
592761
+ var Jn = (s5, t3, e2, i6) => {
592762
+ t3.isDirectory() && ps(import_node_path14.default.resolve(s5, t3.name), e2, i6), us(import_node_path14.default.resolve(s5, t3.name), e2, i6);
592737
592763
  };
592738
- var us = (s5, t3, e2) => {
592764
+ var ps = (s5, t3, e2) => {
592739
592765
  let i6;
592740
592766
  try {
592741
592767
  i6 = import_node_fs9.default.readdirSync(s5, { withFileTypes: true });
592742
592768
  } catch (r4) {
592743
592769
  let n2 = r4;
592744
592770
  if (n2?.code === "ENOENT") return;
592745
- if (n2?.code === "ENOTDIR" || n2?.code === "ENOTSUP") return fs4(s5, t3, e2);
592771
+ if (n2?.code === "ENOTDIR" || n2?.code === "ENOTSUP") return us(s5, t3, e2);
592746
592772
  throw n2;
592747
592773
  }
592748
- for (let r4 of i6) qn(s5, r4, t3, e2);
592749
- return fs4(s5, t3, e2);
592774
+ for (let r4 of i6) Jn(s5, r4, t3, e2);
592775
+ return us(s5, t3, e2);
592750
592776
  };
592751
592777
  var we2 = class extends Error {
592752
592778
  path;
@@ -592759,7 +592785,7 @@ var we2 = class extends Error {
592759
592785
  return "CwdError";
592760
592786
  }
592761
592787
  };
592762
- var wt2 = class extends Error {
592788
+ var St2 = class extends Error {
592763
592789
  path;
592764
592790
  symlink;
592765
592791
  syscall = "symlink";
@@ -592771,41 +592797,41 @@ var wt2 = class extends Error {
592771
592797
  return "SymlinkError";
592772
592798
  }
592773
592799
  };
592774
- var Qn = (s5, t3) => {
592800
+ var to = (s5, t3) => {
592775
592801
  import_node_fs10.default.stat(s5, (e2, i6) => {
592776
592802
  (e2 || !i6.isDirectory()) && (e2 = new we2(s5, e2?.code || "ENOTDIR")), t3(e2);
592777
592803
  });
592778
592804
  };
592779
- var Er = (s5, t3, e2) => {
592805
+ var Sr2 = (s5, t3, e2) => {
592780
592806
  s5 = f2(s5);
592781
- let i6 = t3.umask ?? 18, r4 = t3.mode | 448, n2 = (r4 & i6) !== 0, o3 = t3.uid, h4 = t3.gid, a3 = typeof o3 == "number" && typeof h4 == "number" && (o3 !== t3.processUid || h4 !== t3.processGid), l2 = t3.preserve, c5 = t3.unlink, d2 = f2(t3.cwd), S6 = (E3, x4) => {
592782
- E3 ? e2(E3) : x4 && a3 ? ds(x4, o3, h4, (xe2) => S6(xe2)) : n2 ? import_node_fs10.default.chmod(s5, r4, e2) : e2();
592807
+ let i6 = t3.umask ?? 18, r4 = t3.mode | 448, n2 = (r4 & i6) !== 0, o3 = t3.uid, a3 = t3.gid, h4 = typeof o3 == "number" && typeof a3 == "number" && (o3 !== t3.processUid || a3 !== t3.processGid), l2 = t3.preserve, c5 = t3.unlink, d2 = f2(t3.cwd), S6 = (E3, x4) => {
592808
+ E3 ? e2(E3) : x4 && h4 ? ms(x4, o3, a3, (xe2) => S6(xe2)) : n2 ? import_node_fs10.default.chmod(s5, r4, e2) : e2();
592783
592809
  };
592784
- if (s5 === d2) return Qn(s5, S6);
592810
+ if (s5 === d2) return to(s5, S6);
592785
592811
  if (l2) return import_promises20.default.mkdir(s5, { mode: r4, recursive: true }).then((E3) => S6(null, E3 ?? void 0), S6);
592786
592812
  let N3 = f2(import_node_path15.default.relative(d2, s5)).split("/");
592787
- ms(d2, N3, r4, c5, d2, void 0, S6);
592813
+ Es(d2, N3, r4, c5, d2, void 0, S6);
592788
592814
  };
592789
- var ms = (s5, t3, e2, i6, r4, n2, o3) => {
592815
+ var Es = (s5, t3, e2, i6, r4, n2, o3) => {
592790
592816
  if (t3.length === 0) return o3(null, n2);
592791
- let h4 = t3.shift(), a3 = f2(import_node_path15.default.resolve(s5 + "/" + h4));
592792
- import_node_fs10.default.mkdir(a3, e2, wr2(a3, t3, e2, i6, r4, n2, o3));
592817
+ let a3 = t3.shift(), h4 = f2(import_node_path15.default.resolve(s5 + "/" + a3));
592818
+ import_node_fs10.default.mkdir(h4, e2, yr2(h4, t3, e2, i6, r4, n2, o3));
592793
592819
  };
592794
- var wr2 = (s5, t3, e2, i6, r4, n2, o3) => (h4) => {
592795
- h4 ? import_node_fs10.default.lstat(s5, (a3, l2) => {
592796
- if (a3) a3.path = a3.path && f2(a3.path), o3(a3);
592797
- else if (l2.isDirectory()) ms(s5, t3, e2, i6, r4, n2, o3);
592820
+ var yr2 = (s5, t3, e2, i6, r4, n2, o3) => (a3) => {
592821
+ a3 ? import_node_fs10.default.lstat(s5, (h4, l2) => {
592822
+ if (h4) h4.path = h4.path && f2(h4.path), o3(h4);
592823
+ else if (l2.isDirectory()) Es(s5, t3, e2, i6, r4, n2, o3);
592798
592824
  else if (i6) import_node_fs10.default.unlink(s5, (c5) => {
592799
592825
  if (c5) return o3(c5);
592800
- import_node_fs10.default.mkdir(s5, e2, wr2(s5, t3, e2, i6, r4, n2, o3));
592826
+ import_node_fs10.default.mkdir(s5, e2, yr2(s5, t3, e2, i6, r4, n2, o3));
592801
592827
  });
592802
592828
  else {
592803
- if (l2.isSymbolicLink()) return o3(new wt2(s5, s5 + "/" + t3.join("/")));
592804
- o3(h4);
592829
+ if (l2.isSymbolicLink()) return o3(new St2(s5, s5 + "/" + t3.join("/")));
592830
+ o3(a3);
592805
592831
  }
592806
- }) : (n2 = n2 || s5, ms(s5, t3, e2, i6, r4, n2, o3));
592832
+ }) : (n2 = n2 || s5, Es(s5, t3, e2, i6, r4, n2, o3));
592807
592833
  };
592808
- var Jn = (s5) => {
592834
+ var eo = (s5) => {
592809
592835
  let t3 = false, e2;
592810
592836
  try {
592811
592837
  t3 = import_node_fs10.default.statSync(s5).isDirectory();
@@ -592815,13 +592841,13 @@ var Jn = (s5) => {
592815
592841
  if (!t3) throw new we2(s5, e2 ?? "ENOTDIR");
592816
592842
  }
592817
592843
  };
592818
- var Sr2 = (s5, t3) => {
592844
+ var Rr2 = (s5, t3) => {
592819
592845
  s5 = f2(s5);
592820
- let e2 = t3.umask ?? 18, i6 = t3.mode | 448, r4 = (i6 & e2) !== 0, n2 = t3.uid, o3 = t3.gid, h4 = typeof n2 == "number" && typeof o3 == "number" && (n2 !== t3.processUid || o3 !== t3.processGid), a3 = t3.preserve, l2 = t3.unlink, c5 = f2(t3.cwd), d2 = (E3) => {
592821
- E3 && h4 && us(E3, n2, o3), r4 && import_node_fs10.default.chmodSync(s5, i6);
592846
+ let e2 = t3.umask ?? 18, i6 = t3.mode | 448, r4 = (i6 & e2) !== 0, n2 = t3.uid, o3 = t3.gid, a3 = typeof n2 == "number" && typeof o3 == "number" && (n2 !== t3.processUid || o3 !== t3.processGid), h4 = t3.preserve, l2 = t3.unlink, c5 = f2(t3.cwd), d2 = (E3) => {
592847
+ E3 && a3 && ps(E3, n2, o3), r4 && import_node_fs10.default.chmodSync(s5, i6);
592822
592848
  };
592823
- if (s5 === c5) return Jn(c5), d2();
592824
- if (a3) return d2(import_node_fs10.default.mkdirSync(s5, { mode: i6, recursive: true }) ?? void 0);
592849
+ if (s5 === c5) return eo(c5), d2();
592850
+ if (h4) return d2(import_node_fs10.default.mkdirSync(s5, { mode: i6, recursive: true }) ?? void 0);
592825
592851
  let T4 = f2(import_node_path15.default.relative(c5, s5)).split("/"), N3;
592826
592852
  for (let E3 = T4.shift(), x4 = c5; E3 && (x4 += "/" + E3); E3 = T4.shift()) {
592827
592853
  x4 = f2(import_node_path15.default.resolve(x4));
@@ -592833,35 +592859,35 @@ var Sr2 = (s5, t3) => {
592833
592859
  if (l2) {
592834
592860
  import_node_fs10.default.unlinkSync(x4), import_node_fs10.default.mkdirSync(x4, i6), N3 = N3 || x4;
592835
592861
  continue;
592836
- } else if (xe2.isSymbolicLink()) return new wt2(x4, x4 + "/" + T4.join("/"));
592862
+ } else if (xe2.isSymbolicLink()) return new St2(x4, x4 + "/" + T4.join("/"));
592837
592863
  }
592838
592864
  }
592839
592865
  return d2(N3);
592840
592866
  };
592841
- var ps = /* @__PURE__ */ Object.create(null);
592842
- var yr2 = 1e4;
592843
- var $t2 = /* @__PURE__ */ new Set();
592844
- var Rr2 = (s5) => {
592845
- $t2.has(s5) ? $t2.delete(s5) : ps[s5] = s5.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), $t2.add(s5);
592846
- let t3 = ps[s5], e2 = $t2.size - yr2;
592847
- if (e2 > yr2 / 10) {
592848
- for (let i6 of $t2) if ($t2.delete(i6), delete ps[i6], --e2 <= 0) break;
592867
+ var ws = /* @__PURE__ */ Object.create(null);
592868
+ var gr2 = 1e4;
592869
+ var Vt2 = /* @__PURE__ */ new Set();
592870
+ var br2 = (s5) => {
592871
+ Vt2.has(s5) ? Vt2.delete(s5) : ws[s5] = s5.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), Vt2.add(s5);
592872
+ let t3 = ws[s5], e2 = Vt2.size - gr2;
592873
+ if (e2 > gr2 / 10) {
592874
+ for (let i6 of Vt2) if (Vt2.delete(i6), delete ws[i6], --e2 <= 0) break;
592849
592875
  }
592850
592876
  return t3;
592851
592877
  };
592852
- var to = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
592853
- var eo = to === "win32";
592854
- var io = (s5) => s5.split("/").slice(0, -1).reduce((e2, i6) => {
592878
+ var io = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
592879
+ var so = io === "win32";
592880
+ var ro = (s5) => s5.split("/").slice(0, -1).reduce((e2, i6) => {
592855
592881
  let r4 = e2.at(-1);
592856
592882
  return r4 !== void 0 && (i6 = (0, import_node_path16.join)(r4, i6)), e2.push(i6 || "/"), e2;
592857
592883
  }, []);
592858
- var Ei = class {
592884
+ var Si = class {
592859
592885
  #t = /* @__PURE__ */ new Map();
592860
592886
  #i = /* @__PURE__ */ new Map();
592861
592887
  #s = /* @__PURE__ */ new Set();
592862
592888
  reserve(t3, e2) {
592863
- t3 = eo ? ["win32 parallelization disabled"] : t3.map((r4) => mt2((0, import_node_path16.join)(Rr2(r4))));
592864
- let i6 = new Set(t3.map((r4) => io(r4)).reduce((r4, n2) => r4.concat(n2)));
592889
+ t3 = so ? ["win32 parallelization disabled"] : t3.map((r4) => mt2((0, import_node_path16.join)(br2(r4))));
592890
+ let i6 = new Set(t3.map((r4) => ro(r4)).reduce((r4, n2) => r4.concat(n2)));
592865
592891
  this.#i.set(e2, { dirs: i6, paths: t3 });
592866
592892
  for (let r4 of t3) {
592867
592893
  let n2 = this.#t.get(r4);
@@ -592895,61 +592921,61 @@ var Ei = class {
592895
592921
  if (!e2) throw new Error("invalid reservation");
592896
592922
  let { paths: i6, dirs: r4 } = e2, n2 = /* @__PURE__ */ new Set();
592897
592923
  for (let o3 of i6) {
592898
- let h4 = this.#t.get(o3);
592899
- if (!h4 || h4?.[0] !== t3) continue;
592900
- let a3 = h4[1];
592901
- if (!a3) {
592924
+ let a3 = this.#t.get(o3);
592925
+ if (!a3 || a3?.[0] !== t3) continue;
592926
+ let h4 = a3[1];
592927
+ if (!h4) {
592902
592928
  this.#t.delete(o3);
592903
592929
  continue;
592904
592930
  }
592905
- if (h4.shift(), typeof a3 == "function") n2.add(a3);
592906
- else for (let l2 of a3) n2.add(l2);
592931
+ if (a3.shift(), typeof h4 == "function") n2.add(h4);
592932
+ else for (let l2 of h4) n2.add(l2);
592907
592933
  }
592908
592934
  for (let o3 of r4) {
592909
- let h4 = this.#t.get(o3), a3 = h4?.[0];
592910
- if (!(!h4 || !(a3 instanceof Set))) if (a3.size === 1 && h4.length === 1) {
592935
+ let a3 = this.#t.get(o3), h4 = a3?.[0];
592936
+ if (!(!a3 || !(h4 instanceof Set))) if (h4.size === 1 && a3.length === 1) {
592911
592937
  this.#t.delete(o3);
592912
592938
  continue;
592913
- } else if (a3.size === 1) {
592914
- h4.shift();
592915
- let l2 = h4[0];
592939
+ } else if (h4.size === 1) {
592940
+ a3.shift();
592941
+ let l2 = a3[0];
592916
592942
  typeof l2 == "function" && n2.add(l2);
592917
- } else a3.delete(t3);
592943
+ } else h4.delete(t3);
592918
592944
  }
592919
592945
  return this.#s.delete(t3), n2.forEach((o3) => this.#r(o3)), true;
592920
592946
  }
592921
592947
  };
592922
- var _r2 = () => process.umask();
592923
- var gr2 = /* @__PURE__ */ Symbol("onEntry");
592924
- var ys = /* @__PURE__ */ Symbol("checkFs");
592925
- var Or = /* @__PURE__ */ Symbol("checkFs2");
592926
- var Rs = /* @__PURE__ */ Symbol("isReusable");
592948
+ var Or = () => process.umask();
592949
+ var Tr2 = /* @__PURE__ */ Symbol("onEntry");
592950
+ var gs = /* @__PURE__ */ Symbol("checkFs");
592951
+ var xr = /* @__PURE__ */ Symbol("checkFs2");
592952
+ var bs = /* @__PURE__ */ Symbol("isReusable");
592927
592953
  var P4 = /* @__PURE__ */ Symbol("makeFs");
592928
- var bs = /* @__PURE__ */ Symbol("file");
592929
- var _s = /* @__PURE__ */ Symbol("directory");
592930
- var Si = /* @__PURE__ */ Symbol("link");
592931
- var Tr2 = /* @__PURE__ */ Symbol("symlink");
592932
- var xr = /* @__PURE__ */ Symbol("hardlink");
592954
+ var _s = /* @__PURE__ */ Symbol("file");
592955
+ var Os = /* @__PURE__ */ Symbol("directory");
592956
+ var Ri = /* @__PURE__ */ Symbol("link");
592957
+ var Lr = /* @__PURE__ */ Symbol("symlink");
592958
+ var Nr = /* @__PURE__ */ Symbol("hardlink");
592933
592959
  var ye2 = /* @__PURE__ */ Symbol("ensureNoSymlink");
592934
- var Lr = /* @__PURE__ */ Symbol("unsupported");
592935
- var Nr = /* @__PURE__ */ Symbol("checkPath");
592936
- var Es = /* @__PURE__ */ Symbol("stripAbsolutePath");
592937
- var St2 = /* @__PURE__ */ Symbol("mkdir");
592960
+ var Dr = /* @__PURE__ */ Symbol("unsupported");
592961
+ var Ar = /* @__PURE__ */ Symbol("checkPath");
592962
+ var Ss = /* @__PURE__ */ Symbol("stripAbsolutePath");
592963
+ var yt2 = /* @__PURE__ */ Symbol("mkdir");
592938
592964
  var O4 = /* @__PURE__ */ Symbol("onError");
592939
- var wi = /* @__PURE__ */ Symbol("pending");
592940
- var Ar = /* @__PURE__ */ Symbol("pend");
592941
- var Xt2 = /* @__PURE__ */ Symbol("unpend");
592942
- var ws = /* @__PURE__ */ Symbol("ended");
592943
- var Ss = /* @__PURE__ */ Symbol("maybeClose");
592944
- var gs = /* @__PURE__ */ Symbol("skip");
592965
+ var yi = /* @__PURE__ */ Symbol("pending");
592966
+ var Ir = /* @__PURE__ */ Symbol("pend");
592967
+ var $t2 = /* @__PURE__ */ Symbol("unpend");
592968
+ var ys = /* @__PURE__ */ Symbol("ended");
592969
+ var Rs = /* @__PURE__ */ Symbol("maybeClose");
592970
+ var Ts = /* @__PURE__ */ Symbol("skip");
592945
592971
  var Re2 = /* @__PURE__ */ Symbol("doChown");
592946
- var be2 = /* @__PURE__ */ Symbol("uid");
592947
- var _e2 = /* @__PURE__ */ Symbol("gid");
592948
- var ge2 = /* @__PURE__ */ Symbol("checkedCwd");
592949
- var ro = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
592950
- var Oe2 = ro === "win32";
592951
- var no = 1024;
592952
- var oo = (s5, t3) => {
592972
+ var ge2 = /* @__PURE__ */ Symbol("uid");
592973
+ var be2 = /* @__PURE__ */ Symbol("gid");
592974
+ var _e2 = /* @__PURE__ */ Symbol("checkedCwd");
592975
+ var oo = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
592976
+ var Oe2 = oo === "win32";
592977
+ var ho = 1024;
592978
+ var ao = (s5, t3) => {
592953
592979
  if (!Oe2) return import_node_fs8.default.unlink(s5, t3);
592954
592980
  let e2 = s5 + ".DELETE." + (0, import_node_crypto5.randomBytes)(16).toString("hex");
592955
592981
  import_node_fs8.default.rename(s5, e2, (i6) => {
@@ -592957,17 +592983,17 @@ var oo = (s5, t3) => {
592957
592983
  import_node_fs8.default.unlink(e2, t3);
592958
592984
  });
592959
592985
  };
592960
- var ho = (s5) => {
592986
+ var lo = (s5) => {
592961
592987
  if (!Oe2) return import_node_fs8.default.unlinkSync(s5);
592962
592988
  let t3 = s5 + ".DELETE." + (0, import_node_crypto5.randomBytes)(16).toString("hex");
592963
592989
  import_node_fs8.default.renameSync(s5, t3), import_node_fs8.default.unlinkSync(t3);
592964
592990
  };
592965
- var Dr = (s5, t3, e2) => s5 !== void 0 && s5 === s5 >>> 0 ? s5 : t3 !== void 0 && t3 === t3 >>> 0 ? t3 : e2;
592966
- var qt2 = class extends st2 {
592967
- [ws] = false;
592968
- [ge2] = false;
592969
- [wi] = 0;
592970
- reservations = new Ei();
592991
+ var Fr = (s5, t3, e2) => s5 !== void 0 && s5 === s5 >>> 0 ? s5 : t3 !== void 0 && t3 === t3 >>> 0 ? t3 : e2;
592992
+ var Xt2 = class extends st2 {
592993
+ [ys] = false;
592994
+ [_e2] = false;
592995
+ [yi] = 0;
592996
+ reservations = new Si();
592971
592997
  transform;
592972
592998
  writable = true;
592973
592999
  readable = false;
@@ -592994,32 +593020,32 @@ var qt2 = class extends st2 {
592994
593020
  chmod;
592995
593021
  constructor(t3 = {}) {
592996
593022
  if (t3.ondone = () => {
592997
- this[ws] = true, this[Ss]();
593023
+ this[ys] = true, this[Rs]();
592998
593024
  }, super(t3), this.transform = t3.transform, this.chmod = !!t3.chmod, typeof t3.uid == "number" || typeof t3.gid == "number") {
592999
593025
  if (typeof t3.uid != "number" || typeof t3.gid != "number") throw new TypeError("cannot set owner without number uid and gid");
593000
593026
  if (t3.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
593001
593027
  this.uid = t3.uid, this.gid = t3.gid, this.setOwner = true;
593002
593028
  } else this.uid = void 0, this.gid = void 0, this.setOwner = false;
593003
- this.preserveOwner = t3.preserveOwner === void 0 && typeof t3.uid != "number" ? !!(process.getuid && process.getuid() === 0) : !!t3.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t3.maxDepth == "number" ? t3.maxDepth : no, this.forceChown = t3.forceChown === true, this.win32 = !!t3.win32 || Oe2, this.newer = !!t3.newer, this.keep = !!t3.keep, this.noMtime = !!t3.noMtime, this.preservePaths = !!t3.preservePaths, this.unlink = !!t3.unlink, this.cwd = f2(import_node_path13.default.resolve(t3.cwd || process.cwd())), this.strip = Number(t3.strip) || 0, this.processUmask = this.chmod ? typeof t3.processUmask == "number" ? t3.processUmask : _r2() : 0, this.umask = typeof t3.umask == "number" ? t3.umask : this.processUmask, this.dmode = t3.dmode || 511 & ~this.umask, this.fmode = t3.fmode || 438 & ~this.umask, this.on("entry", (e2) => this[gr2](e2));
593029
+ this.preserveOwner = t3.preserveOwner === void 0 && typeof t3.uid != "number" ? !!(process.getuid && process.getuid() === 0) : !!t3.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t3.maxDepth == "number" ? t3.maxDepth : ho, this.forceChown = t3.forceChown === true, this.win32 = !!t3.win32 || Oe2, this.newer = !!t3.newer, this.keep = !!t3.keep, this.noMtime = !!t3.noMtime, this.preservePaths = !!t3.preservePaths, this.unlink = !!t3.unlink, this.cwd = f2(import_node_path13.default.resolve(t3.cwd || process.cwd())), this.strip = Number(t3.strip) || 0, this.processUmask = this.chmod ? typeof t3.processUmask == "number" ? t3.processUmask : Or() : 0, this.umask = typeof t3.umask == "number" ? t3.umask : this.processUmask, this.dmode = t3.dmode || 511 & ~this.umask, this.fmode = t3.fmode || 438 & ~this.umask, this.on("entry", (e2) => this[Tr2](e2));
593004
593030
  }
593005
593031
  warn(t3, e2, i6 = {}) {
593006
593032
  return (t3 === "TAR_BAD_ARCHIVE" || t3 === "TAR_ABORT") && (i6.recoverable = false), super.warn(t3, e2, i6);
593007
593033
  }
593008
- [Ss]() {
593009
- this[ws] && this[wi] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
593034
+ [Rs]() {
593035
+ this[ys] && this[yi] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
593010
593036
  }
593011
- [Es](t3, e2) {
593037
+ [Ss](t3, e2) {
593012
593038
  let i6 = t3[e2], { type: r4 } = t3;
593013
593039
  if (!i6 || this.preservePaths) return true;
593014
- let [n2, o3] = ce2(i6), h4 = o3.replaceAll(/\\/g, "/").split("/");
593015
- if (h4.includes("..") || Oe2 && /^[a-z]:\.\.$/i.test(h4[0] ?? "")) {
593040
+ let [n2, o3] = le2(i6), a3 = o3.replaceAll(/\\/g, "/").split("/");
593041
+ if (a3.includes("..") || Oe2 && /^[a-z]:\.\.$/i.test(a3[0] ?? "")) {
593016
593042
  if (e2 === "path" || r4 === "Link") return this.warn("TAR_ENTRY_ERROR", `${e2} contains '..'`, { entry: t3, [e2]: i6 }), false;
593017
- let a3 = import_node_path13.default.posix.dirname(t3.path), l2 = import_node_path13.default.posix.normalize(import_node_path13.default.posix.join(a3, h4.join("/")));
593043
+ let h4 = import_node_path13.default.posix.dirname(t3.path), l2 = import_node_path13.default.posix.normalize(import_node_path13.default.posix.join(h4, a3.join("/")));
593018
593044
  if (l2.startsWith("../") || l2 === "..") return this.warn("TAR_ENTRY_ERROR", `${e2} escapes extraction directory`, { entry: t3, [e2]: i6 }), false;
593019
593045
  }
593020
593046
  return n2 && (t3[e2] = String(o3), this.warn("TAR_ENTRY_INFO", `stripping ${n2} from absolute ${e2}`, { entry: t3, [e2]: i6 })), true;
593021
593047
  }
593022
- [Nr](t3) {
593048
+ [Ar](t3) {
593023
593049
  let e2 = f2(t3.path), i6 = e2.split("/");
593024
593050
  if (this.strip) {
593025
593051
  if (i6.length < this.strip) return false;
@@ -593031,19 +593057,19 @@ var qt2 = class extends st2 {
593031
593057
  i6.splice(0, this.strip), t3.path = i6.join("/");
593032
593058
  }
593033
593059
  if (isFinite(this.maxDepth) && i6.length > this.maxDepth) return this.warn("TAR_ENTRY_ERROR", "path excessively deep", { entry: t3, path: e2, depth: i6.length, maxDepth: this.maxDepth }), false;
593034
- if (!this[Es](t3, "path") || !this[Es](t3, "linkpath")) return false;
593060
+ if (!this[Ss](t3, "path") || !this[Ss](t3, "linkpath")) return false;
593035
593061
  if (t3.absolute = import_node_path13.default.isAbsolute(t3.path) ? f2(import_node_path13.default.resolve(t3.path)) : f2(import_node_path13.default.resolve(this.cwd, t3.path)), !this.preservePaths && typeof t3.absolute == "string" && t3.absolute.indexOf(this.cwd + "/") !== 0 && t3.absolute !== this.cwd) return this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", { entry: t3, path: f2(t3.path), resolvedPath: t3.absolute, cwd: this.cwd }), false;
593036
593062
  if (t3.absolute === this.cwd && t3.type !== "Directory" && t3.type !== "GNUDumpDir") return false;
593037
593063
  if (this.win32) {
593038
593064
  let { root: r4 } = import_node_path13.default.win32.parse(String(t3.absolute));
593039
- t3.absolute = r4 + Xi(String(t3.absolute).slice(r4.length));
593065
+ t3.absolute = r4 + Ji(String(t3.absolute).slice(r4.length));
593040
593066
  let { root: n2 } = import_node_path13.default.win32.parse(t3.path);
593041
- t3.path = n2 + Xi(t3.path.slice(n2.length));
593067
+ t3.path = n2 + Ji(t3.path.slice(n2.length));
593042
593068
  }
593043
593069
  return true;
593044
593070
  }
593045
- [gr2](t3) {
593046
- if (!this[Nr](t3)) return t3.resume();
593071
+ [Tr2](t3) {
593072
+ if (!this[Ar](t3)) return t3.resume();
593047
593073
  switch (import_node_assert.default.equal(typeof t3.absolute, "string"), t3.type) {
593048
593074
  case "Directory":
593049
593075
  case "GNUDumpDir":
@@ -593053,133 +593079,133 @@ var qt2 = class extends st2 {
593053
593079
  case "ContiguousFile":
593054
593080
  case "Link":
593055
593081
  case "SymbolicLink":
593056
- return this[ys](t3);
593082
+ return this[gs](t3);
593057
593083
  default:
593058
- return this[Lr](t3);
593084
+ return this[Dr](t3);
593059
593085
  }
593060
593086
  }
593061
593087
  [O4](t3, e2) {
593062
- t3.name === "CwdError" ? this.emit("error", t3) : (this.warn("TAR_ENTRY_ERROR", t3, { entry: e2 }), this[Xt2](), e2.resume());
593088
+ t3.name === "CwdError" ? this.emit("error", t3) : (this.warn("TAR_ENTRY_ERROR", t3, { entry: e2 }), this[$t2](), e2.resume());
593063
593089
  }
593064
- [St2](t3, e2, i6) {
593065
- Er(f2(t3), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e2 }, i6);
593090
+ [yt2](t3, e2, i6) {
593091
+ Sr2(f2(t3), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e2 }, i6);
593066
593092
  }
593067
593093
  [Re2](t3) {
593068
593094
  return this.forceChown || this.preserveOwner && (typeof t3.uid == "number" && t3.uid !== this.processUid || typeof t3.gid == "number" && t3.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
593069
593095
  }
593070
- [be2](t3) {
593071
- return Dr(this.uid, t3.uid, this.processUid);
593096
+ [ge2](t3) {
593097
+ return Fr(this.uid, t3.uid, this.processUid);
593072
593098
  }
593073
- [_e2](t3) {
593074
- return Dr(this.gid, t3.gid, this.processGid);
593099
+ [be2](t3) {
593100
+ return Fr(this.gid, t3.gid, this.processGid);
593075
593101
  }
593076
- [bs](t3, e2) {
593077
- let i6 = typeof t3.mode == "number" ? t3.mode & 4095 : this.fmode, r4 = new tt2(String(t3.absolute), { flags: cs(t3.size), mode: i6, autoClose: false });
593078
- r4.on("error", (a3) => {
593102
+ [_s](t3, e2) {
593103
+ let i6 = typeof t3.mode == "number" ? t3.mode & 4095 : this.fmode, r4 = new tt2(String(t3.absolute), { flags: ds(t3.size), mode: i6, autoClose: false });
593104
+ r4.on("error", (h4) => {
593079
593105
  r4.fd && import_node_fs8.default.close(r4.fd, () => {
593080
- }), r4.write = () => true, this[O4](a3, t3), e2();
593106
+ }), r4.write = () => true, this[O4](h4, t3), e2();
593081
593107
  });
593082
- let n2 = 1, o3 = (a3) => {
593083
- if (a3) {
593108
+ let n2 = 1, o3 = (h4) => {
593109
+ if (h4) {
593084
593110
  r4.fd && import_node_fs8.default.close(r4.fd, () => {
593085
- }), this[O4](a3, t3), e2();
593111
+ }), this[O4](h4, t3), e2();
593086
593112
  return;
593087
593113
  }
593088
593114
  --n2 === 0 && r4.fd !== void 0 && import_node_fs8.default.close(r4.fd, (l2) => {
593089
- l2 ? this[O4](l2, t3) : this[Xt2](), e2();
593115
+ l2 ? this[O4](l2, t3) : this[$t2](), e2();
593090
593116
  });
593091
593117
  };
593092
593118
  r4.on("finish", () => {
593093
- let a3 = String(t3.absolute), l2 = r4.fd;
593119
+ let h4 = String(t3.absolute), l2 = r4.fd;
593094
593120
  if (typeof l2 == "number" && t3.mtime && !this.noMtime) {
593095
593121
  n2++;
593096
593122
  let c5 = t3.atime || /* @__PURE__ */ new Date(), d2 = t3.mtime;
593097
- import_node_fs8.default.futimes(l2, c5, d2, (S6) => S6 ? import_node_fs8.default.utimes(a3, c5, d2, (T4) => o3(T4 && S6)) : o3());
593123
+ import_node_fs8.default.futimes(l2, c5, d2, (S6) => S6 ? import_node_fs8.default.utimes(h4, c5, d2, (T4) => o3(T4 && S6)) : o3());
593098
593124
  }
593099
593125
  if (typeof l2 == "number" && this[Re2](t3)) {
593100
593126
  n2++;
593101
- let c5 = this[be2](t3), d2 = this[_e2](t3);
593102
- typeof c5 == "number" && typeof d2 == "number" && import_node_fs8.default.fchown(l2, c5, d2, (S6) => S6 ? import_node_fs8.default.chown(a3, c5, d2, (T4) => o3(T4 && S6)) : o3());
593127
+ let c5 = this[ge2](t3), d2 = this[be2](t3);
593128
+ typeof c5 == "number" && typeof d2 == "number" && import_node_fs8.default.fchown(l2, c5, d2, (S6) => S6 ? import_node_fs8.default.chown(h4, c5, d2, (T4) => o3(T4 && S6)) : o3());
593103
593129
  }
593104
593130
  o3();
593105
593131
  });
593106
- let h4 = this.transform && this.transform(t3) || t3;
593107
- h4 !== t3 && (h4.on("error", (a3) => {
593108
- this[O4](a3, t3), e2();
593109
- }), t3.pipe(h4)), h4.pipe(r4);
593132
+ let a3 = this.transform && this.transform(t3) || t3;
593133
+ a3 !== t3 && (a3.on("error", (h4) => {
593134
+ this[O4](h4, t3), e2();
593135
+ }), t3.pipe(a3)), a3.pipe(r4);
593110
593136
  }
593111
- [_s](t3, e2) {
593137
+ [Os](t3, e2) {
593112
593138
  let i6 = typeof t3.mode == "number" ? t3.mode & 4095 : this.dmode;
593113
- this[St2](String(t3.absolute), i6, (r4) => {
593139
+ this[yt2](String(t3.absolute), i6, (r4) => {
593114
593140
  if (r4) {
593115
593141
  this[O4](r4, t3), e2();
593116
593142
  return;
593117
593143
  }
593118
593144
  let n2 = 1, o3 = () => {
593119
- --n2 === 0 && (e2(), this[Xt2](), t3.resume());
593145
+ --n2 === 0 && (e2(), this[$t2](), t3.resume());
593120
593146
  };
593121
- t3.mtime && !this.noMtime && (n2++, import_node_fs8.default.utimes(String(t3.absolute), t3.atime || /* @__PURE__ */ new Date(), t3.mtime, o3)), this[Re2](t3) && (n2++, import_node_fs8.default.chown(String(t3.absolute), Number(this[be2](t3)), Number(this[_e2](t3)), o3)), o3();
593147
+ t3.mtime && !this.noMtime && (n2++, import_node_fs8.default.utimes(String(t3.absolute), t3.atime || /* @__PURE__ */ new Date(), t3.mtime, o3)), this[Re2](t3) && (n2++, import_node_fs8.default.chown(String(t3.absolute), Number(this[ge2](t3)), Number(this[be2](t3)), o3)), o3();
593122
593148
  });
593123
593149
  }
593124
- [Lr](t3) {
593150
+ [Dr](t3) {
593125
593151
  t3.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t3.type}`, { entry: t3 }), t3.resume();
593126
593152
  }
593127
- [Tr2](t3, e2) {
593153
+ [Lr](t3, e2) {
593128
593154
  let i6 = f2(import_node_path13.default.relative(this.cwd, import_node_path13.default.resolve(import_node_path13.default.dirname(String(t3.absolute)), String(t3.linkpath)))).split("/");
593129
- this[ye2](t3, this.cwd, i6, () => this[Si](t3, String(t3.linkpath), "symlink", e2), (r4) => {
593155
+ this[ye2](t3, this.cwd, i6, () => this[Ri](t3, String(t3.linkpath), "symlink", e2), (r4) => {
593130
593156
  this[O4](r4, t3), e2();
593131
593157
  });
593132
593158
  }
593133
- [xr](t3, e2) {
593159
+ [Nr](t3, e2) {
593134
593160
  let i6 = f2(import_node_path13.default.resolve(this.cwd, String(t3.linkpath))), r4 = f2(String(t3.linkpath)).split("/");
593135
- this[ye2](t3, this.cwd, r4, () => this[Si](t3, i6, "link", e2), (n2) => {
593161
+ this[ye2](t3, this.cwd, r4, () => this[Ri](t3, i6, "link", e2), (n2) => {
593136
593162
  this[O4](n2, t3), e2();
593137
593163
  });
593138
593164
  }
593139
593165
  [ye2](t3, e2, i6, r4, n2) {
593140
593166
  let o3 = i6.shift();
593141
593167
  if (this.preservePaths || o3 === void 0) return r4();
593142
- let h4 = import_node_path13.default.resolve(e2, o3);
593143
- import_node_fs8.default.lstat(h4, (a3, l2) => {
593144
- if (a3) return r4();
593145
- if (l2?.isSymbolicLink()) return n2(new wt2(h4, import_node_path13.default.resolve(h4, i6.join("/"))));
593146
- this[ye2](t3, h4, i6, r4, n2);
593168
+ let a3 = import_node_path13.default.resolve(e2, o3);
593169
+ import_node_fs8.default.lstat(a3, (h4, l2) => {
593170
+ if (h4) return r4();
593171
+ if (l2?.isSymbolicLink()) return n2(new St2(a3, import_node_path13.default.resolve(a3, i6.join("/"))));
593172
+ this[ye2](t3, a3, i6, r4, n2);
593147
593173
  });
593148
593174
  }
593149
- [Ar]() {
593150
- this[wi]++;
593175
+ [Ir]() {
593176
+ this[yi]++;
593151
593177
  }
593152
- [Xt2]() {
593153
- this[wi]--, this[Ss]();
593178
+ [$t2]() {
593179
+ this[yi]--, this[Rs]();
593154
593180
  }
593155
- [gs](t3) {
593156
- this[Xt2](), t3.resume();
593181
+ [Ts](t3) {
593182
+ this[$t2](), t3.resume();
593157
593183
  }
593158
- [Rs](t3, e2) {
593184
+ [bs](t3, e2) {
593159
593185
  return t3.type === "File" && !this.unlink && e2.isFile() && e2.nlink <= 1 && !Oe2;
593160
593186
  }
593161
- [ys](t3) {
593162
- this[Ar]();
593187
+ [gs](t3) {
593188
+ this[Ir]();
593163
593189
  let e2 = [t3.path];
593164
- t3.linkpath && e2.push(t3.linkpath), this.reservations.reserve(e2, (i6) => this[Or](t3, i6));
593190
+ t3.linkpath && e2.push(t3.linkpath), this.reservations.reserve(e2, (i6) => this[xr](t3, i6));
593165
593191
  }
593166
- [Or](t3, e2) {
593167
- let i6 = (h4) => {
593168
- e2(h4);
593192
+ [xr](t3, e2) {
593193
+ let i6 = (a3) => {
593194
+ e2(a3);
593169
593195
  }, r4 = () => {
593170
- this[St2](this.cwd, this.dmode, (h4) => {
593171
- if (h4) {
593172
- this[O4](h4, t3), i6();
593196
+ this[yt2](this.cwd, this.dmode, (a3) => {
593197
+ if (a3) {
593198
+ this[O4](a3, t3), i6();
593173
593199
  return;
593174
593200
  }
593175
- this[ge2] = true, n2();
593201
+ this[_e2] = true, n2();
593176
593202
  });
593177
593203
  }, n2 = () => {
593178
593204
  if (t3.absolute !== this.cwd) {
593179
- let h4 = f2(import_node_path13.default.dirname(String(t3.absolute)));
593180
- if (h4 !== this.cwd) return this[St2](h4, this.dmode, (a3) => {
593181
- if (a3) {
593182
- this[O4](a3, t3), i6();
593205
+ let a3 = f2(import_node_path13.default.dirname(String(t3.absolute)));
593206
+ if (a3 !== this.cwd) return this[yt2](a3, this.dmode, (h4) => {
593207
+ if (h4) {
593208
+ this[O4](h4, t3), i6();
593183
593209
  return;
593184
593210
  }
593185
593211
  o3();
@@ -593187,24 +593213,24 @@ var qt2 = class extends st2 {
593187
593213
  }
593188
593214
  o3();
593189
593215
  }, o3 = () => {
593190
- import_node_fs8.default.lstat(String(t3.absolute), (h4, a3) => {
593191
- if (a3 && (this.keep || this.newer && a3.mtime > (t3.mtime ?? a3.mtime))) {
593192
- this[gs](t3), i6();
593216
+ import_node_fs8.default.lstat(String(t3.absolute), (a3, h4) => {
593217
+ if (h4 && (this.keep || this.newer && h4.mtime > (t3.mtime ?? h4.mtime))) {
593218
+ this[Ts](t3), i6();
593193
593219
  return;
593194
593220
  }
593195
- if (h4 || this[Rs](t3, a3)) return this[P4](null, t3, i6);
593196
- if (a3.isDirectory()) {
593221
+ if (a3 || this[bs](t3, h4)) return this[P4](null, t3, i6);
593222
+ if (h4.isDirectory()) {
593197
593223
  if (t3.type === "Directory") {
593198
- let l2 = this.chmod && t3.mode && (a3.mode & 4095) !== t3.mode, c5 = (d2) => this[P4](d2 ?? null, t3, i6);
593224
+ let l2 = this.chmod && t3.mode && (h4.mode & 4095) !== t3.mode, c5 = (d2) => this[P4](d2 ?? null, t3, i6);
593199
593225
  return l2 ? import_node_fs8.default.chmod(String(t3.absolute), Number(t3.mode), c5) : c5();
593200
593226
  }
593201
593227
  if (t3.absolute !== this.cwd) return import_node_fs8.default.rmdir(String(t3.absolute), (l2) => this[P4](l2 ?? null, t3, i6));
593202
593228
  }
593203
593229
  if (t3.absolute === this.cwd) return this[P4](null, t3, i6);
593204
- oo(String(t3.absolute), (l2) => this[P4](l2 ?? null, t3, i6));
593230
+ ao(String(t3.absolute), (l2) => this[P4](l2 ?? null, t3, i6));
593205
593231
  });
593206
593232
  };
593207
- this[ge2] ? n2() : r4();
593233
+ this[_e2] ? n2() : r4();
593208
593234
  }
593209
593235
  [P4](t3, e2, i6) {
593210
593236
  if (t3) {
@@ -593215,19 +593241,19 @@ var qt2 = class extends st2 {
593215
593241
  case "File":
593216
593242
  case "OldFile":
593217
593243
  case "ContiguousFile":
593218
- return this[bs](e2, i6);
593244
+ return this[_s](e2, i6);
593219
593245
  case "Link":
593220
- return this[xr](e2, i6);
593246
+ return this[Nr](e2, i6);
593221
593247
  case "SymbolicLink":
593222
- return this[Tr2](e2, i6);
593248
+ return this[Lr](e2, i6);
593223
593249
  case "Directory":
593224
593250
  case "GNUDumpDir":
593225
- return this[_s](e2, i6);
593251
+ return this[Os](e2, i6);
593226
593252
  }
593227
593253
  }
593228
- [Si](t3, e2, i6, r4) {
593254
+ [Ri](t3, e2, i6, r4) {
593229
593255
  import_node_fs8.default[i6](e2, String(t3.absolute), (n2) => {
593230
- n2 ? this[O4](n2, t3) : (this[Xt2](), t3.resume()), r4();
593256
+ n2 ? this[O4](n2, t3) : (this[$t2](), t3.resume()), r4();
593231
593257
  });
593232
593258
  }
593233
593259
  };
@@ -593238,94 +593264,94 @@ var Se2 = (s5) => {
593238
593264
  return [t3, null];
593239
593265
  }
593240
593266
  };
593241
- var Te2 = class extends qt2 {
593267
+ var Te2 = class extends Xt2 {
593242
593268
  sync = true;
593243
593269
  [P4](t3, e2) {
593244
593270
  return super[P4](t3, e2, () => {
593245
593271
  });
593246
593272
  }
593247
- [ys](t3) {
593248
- if (!this[ge2]) {
593249
- let n2 = this[St2](this.cwd, this.dmode);
593273
+ [gs](t3) {
593274
+ if (!this[_e2]) {
593275
+ let n2 = this[yt2](this.cwd, this.dmode);
593250
593276
  if (n2) return this[O4](n2, t3);
593251
- this[ge2] = true;
593277
+ this[_e2] = true;
593252
593278
  }
593253
593279
  if (t3.absolute !== this.cwd) {
593254
593280
  let n2 = f2(import_node_path13.default.dirname(String(t3.absolute)));
593255
593281
  if (n2 !== this.cwd) {
593256
- let o3 = this[St2](n2, this.dmode);
593282
+ let o3 = this[yt2](n2, this.dmode);
593257
593283
  if (o3) return this[O4](o3, t3);
593258
593284
  }
593259
593285
  }
593260
593286
  let [e2, i6] = Se2(() => import_node_fs8.default.lstatSync(String(t3.absolute)));
593261
- if (i6 && (this.keep || this.newer && i6.mtime > (t3.mtime ?? i6.mtime))) return this[gs](t3);
593262
- if (e2 || this[Rs](t3, i6)) return this[P4](null, t3);
593287
+ if (i6 && (this.keep || this.newer && i6.mtime > (t3.mtime ?? i6.mtime))) return this[Ts](t3);
593288
+ if (e2 || this[bs](t3, i6)) return this[P4](null, t3);
593263
593289
  if (i6.isDirectory()) {
593264
593290
  if (t3.type === "Directory") {
593265
- let o3 = this.chmod && t3.mode && (i6.mode & 4095) !== t3.mode, [h4] = o3 ? Se2(() => {
593291
+ let o3 = this.chmod && t3.mode && (i6.mode & 4095) !== t3.mode, [a3] = o3 ? Se2(() => {
593266
593292
  import_node_fs8.default.chmodSync(String(t3.absolute), Number(t3.mode));
593267
593293
  }) : [];
593268
- return this[P4](h4, t3);
593294
+ return this[P4](a3, t3);
593269
593295
  }
593270
593296
  let [n2] = Se2(() => import_node_fs8.default.rmdirSync(String(t3.absolute)));
593271
593297
  this[P4](n2, t3);
593272
593298
  }
593273
- let [r4] = t3.absolute === this.cwd ? [] : Se2(() => ho(String(t3.absolute)));
593299
+ let [r4] = t3.absolute === this.cwd ? [] : Se2(() => lo(String(t3.absolute)));
593274
593300
  this[P4](r4, t3);
593275
593301
  }
593276
- [bs](t3, e2) {
593277
- let i6 = typeof t3.mode == "number" ? t3.mode & 4095 : this.fmode, r4 = (h4) => {
593278
- let a3;
593302
+ [_s](t3, e2) {
593303
+ let i6 = typeof t3.mode == "number" ? t3.mode & 4095 : this.fmode, r4 = (a3) => {
593304
+ let h4;
593279
593305
  try {
593280
593306
  import_node_fs8.default.closeSync(n2);
593281
593307
  } catch (l2) {
593282
- a3 = l2;
593308
+ h4 = l2;
593283
593309
  }
593284
- (h4 || a3) && this[O4](h4 || a3, t3), e2();
593310
+ (a3 || h4) && this[O4](a3 || h4, t3), e2();
593285
593311
  }, n2;
593286
593312
  try {
593287
- n2 = import_node_fs8.default.openSync(String(t3.absolute), cs(t3.size), i6);
593288
- } catch (h4) {
593289
- return r4(h4);
593313
+ n2 = import_node_fs8.default.openSync(String(t3.absolute), ds(t3.size), i6);
593314
+ } catch (a3) {
593315
+ return r4(a3);
593290
593316
  }
593291
593317
  let o3 = this.transform && this.transform(t3) || t3;
593292
- o3 !== t3 && (o3.on("error", (h4) => this[O4](h4, t3)), t3.pipe(o3)), o3.on("data", (h4) => {
593318
+ o3 !== t3 && (o3.on("error", (a3) => this[O4](a3, t3)), t3.pipe(o3)), o3.on("data", (a3) => {
593293
593319
  try {
593294
- import_node_fs8.default.writeSync(n2, h4, 0, h4.length);
593295
- } catch (a3) {
593296
- r4(a3);
593320
+ import_node_fs8.default.writeSync(n2, a3, 0, a3.length);
593321
+ } catch (h4) {
593322
+ r4(h4);
593297
593323
  }
593298
593324
  }), o3.on("end", () => {
593299
- let h4 = null;
593325
+ let a3 = null;
593300
593326
  if (t3.mtime && !this.noMtime) {
593301
- let a3 = t3.atime || /* @__PURE__ */ new Date(), l2 = t3.mtime;
593327
+ let h4 = t3.atime || /* @__PURE__ */ new Date(), l2 = t3.mtime;
593302
593328
  try {
593303
- import_node_fs8.default.futimesSync(n2, a3, l2);
593329
+ import_node_fs8.default.futimesSync(n2, h4, l2);
593304
593330
  } catch (c5) {
593305
593331
  try {
593306
- import_node_fs8.default.utimesSync(String(t3.absolute), a3, l2);
593332
+ import_node_fs8.default.utimesSync(String(t3.absolute), h4, l2);
593307
593333
  } catch {
593308
- h4 = c5;
593334
+ a3 = c5;
593309
593335
  }
593310
593336
  }
593311
593337
  }
593312
593338
  if (this[Re2](t3)) {
593313
- let a3 = this[be2](t3), l2 = this[_e2](t3);
593339
+ let h4 = this[ge2](t3), l2 = this[be2](t3);
593314
593340
  try {
593315
- import_node_fs8.default.fchownSync(n2, Number(a3), Number(l2));
593341
+ import_node_fs8.default.fchownSync(n2, Number(h4), Number(l2));
593316
593342
  } catch (c5) {
593317
593343
  try {
593318
- import_node_fs8.default.chownSync(String(t3.absolute), Number(a3), Number(l2));
593344
+ import_node_fs8.default.chownSync(String(t3.absolute), Number(h4), Number(l2));
593319
593345
  } catch {
593320
- h4 = h4 || c5;
593346
+ a3 = a3 || c5;
593321
593347
  }
593322
593348
  }
593323
593349
  }
593324
- r4(h4);
593350
+ r4(a3);
593325
593351
  });
593326
593352
  }
593327
- [_s](t3, e2) {
593328
- let i6 = typeof t3.mode == "number" ? t3.mode & 4095 : this.dmode, r4 = this[St2](String(t3.absolute), i6);
593353
+ [Os](t3, e2) {
593354
+ let i6 = typeof t3.mode == "number" ? t3.mode & 4095 : this.dmode, r4 = this[yt2](String(t3.absolute), i6);
593329
593355
  if (r4) {
593330
593356
  this[O4](r4, t3), e2();
593331
593357
  return;
@@ -593335,14 +593361,14 @@ var Te2 = class extends qt2 {
593335
593361
  } catch {
593336
593362
  }
593337
593363
  if (this[Re2](t3)) try {
593338
- import_node_fs8.default.chownSync(String(t3.absolute), Number(this[be2](t3)), Number(this[_e2](t3)));
593364
+ import_node_fs8.default.chownSync(String(t3.absolute), Number(this[ge2](t3)), Number(this[be2](t3)));
593339
593365
  } catch {
593340
593366
  }
593341
593367
  e2(), t3.resume();
593342
593368
  }
593343
- [St2](t3, e2) {
593369
+ [yt2](t3, e2) {
593344
593370
  try {
593345
- return Sr2(f2(t3), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e2 });
593371
+ return Rr2(f2(t3), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e2 });
593346
593372
  } catch (i6) {
593347
593373
  return i6;
593348
593374
  }
@@ -593350,15 +593376,15 @@ var Te2 = class extends qt2 {
593350
593376
  [ye2](t3, e2, i6, r4, n2) {
593351
593377
  if (this.preservePaths || i6.length === 0) return r4();
593352
593378
  let o3 = e2;
593353
- for (let h4 of i6) {
593354
- o3 = import_node_path13.default.resolve(o3, h4);
593355
- let [a3, l2] = Se2(() => import_node_fs8.default.lstatSync(o3));
593356
- if (a3) return r4();
593357
- if (l2.isSymbolicLink()) return n2(new wt2(o3, import_node_path13.default.resolve(e2, i6.join("/"))));
593379
+ for (let a3 of i6) {
593380
+ o3 = import_node_path13.default.resolve(o3, a3);
593381
+ let [h4, l2] = Se2(() => import_node_fs8.default.lstatSync(o3));
593382
+ if (h4) return r4();
593383
+ if (l2.isSymbolicLink()) return n2(new St2(o3, import_node_path13.default.resolve(e2, i6.join("/"))));
593358
593384
  }
593359
593385
  r4();
593360
593386
  }
593361
- [Si](t3, e2, i6, r4) {
593387
+ [Ri](t3, e2, i6, r4) {
593362
593388
  let n2 = `${i6}Sync`;
593363
593389
  try {
593364
593390
  import_node_fs8.default[n2](e2, String(t3.absolute)), r4(), t3.resume();
@@ -593367,47 +593393,47 @@ var Te2 = class extends qt2 {
593367
593393
  }
593368
593394
  }
593369
593395
  };
593370
- var ao = (s5) => {
593396
+ var co = (s5) => {
593371
593397
  let t3 = new Te2(s5), e2 = s5.file, i6 = import_node_fs7.default.statSync(e2), r4 = s5.maxReadSize || 16 * 1024 * 1024;
593372
593398
  new Me2(e2, { readSize: r4, size: i6.size }).pipe(t3);
593373
593399
  };
593374
- var lo = (s5, t3) => {
593375
- let e2 = new qt2(s5), i6 = s5.maxReadSize || 16 * 1024 * 1024, r4 = s5.file;
593376
- return new Promise((o3, h4) => {
593377
- e2.on("error", h4), e2.on("close", o3), import_node_fs7.default.stat(r4, (a3, l2) => {
593378
- if (a3) h4(a3);
593400
+ var fo = (s5, t3) => {
593401
+ let e2 = new Xt2(s5), i6 = s5.maxReadSize || 16 * 1024 * 1024, r4 = s5.file;
593402
+ return new Promise((o3, a3) => {
593403
+ e2.on("error", a3), e2.on("close", o3), import_node_fs7.default.stat(r4, (h4, l2) => {
593404
+ if (h4) a3(h4);
593379
593405
  else {
593380
593406
  let c5 = new _t2(r4, { readSize: i6, size: l2.size });
593381
- c5.on("error", h4), c5.pipe(e2);
593407
+ c5.on("error", a3), c5.pipe(e2);
593382
593408
  }
593383
593409
  });
593384
593410
  });
593385
593411
  };
593386
- var co = K3(ao, lo, (s5) => new Te2(s5), (s5) => new qt2(s5), (s5, t3) => {
593387
- t3?.length && Ki(s5, t3);
593412
+ var uo = K3(co, fo, (s5) => new Te2(s5), (s5) => new Xt2(s5), (s5, t3) => {
593413
+ t3?.length && Xi(s5, t3);
593388
593414
  });
593389
- var fo = (s5, t3) => {
593415
+ var mo = (s5, t3) => {
593390
593416
  let e2 = new kt2(s5), i6 = true, r4, n2;
593391
593417
  try {
593392
593418
  try {
593393
593419
  r4 = import_node_fs11.default.openSync(s5.file, "r+");
593394
- } catch (a3) {
593395
- if (a3?.code === "ENOENT") r4 = import_node_fs11.default.openSync(s5.file, "w+");
593396
- else throw a3;
593420
+ } catch (h4) {
593421
+ if (h4?.code === "ENOENT") r4 = import_node_fs11.default.openSync(s5.file, "w+");
593422
+ else throw h4;
593397
593423
  }
593398
- let o3 = import_node_fs11.default.fstatSync(r4), h4 = Buffer.alloc(512);
593424
+ let o3 = import_node_fs11.default.fstatSync(r4), a3 = Buffer.alloc(512);
593399
593425
  t: for (n2 = 0; n2 < o3.size; n2 += 512) {
593400
593426
  for (let c5 = 0, d2 = 0; c5 < 512; c5 += d2) {
593401
- if (d2 = import_node_fs11.default.readSync(r4, h4, c5, h4.length - c5, n2 + c5), n2 === 0 && h4[0] === 31 && h4[1] === 139) throw new Error("cannot append to compressed archives");
593427
+ if (d2 = import_node_fs11.default.readSync(r4, a3, c5, a3.length - c5, n2 + c5), n2 === 0 && a3[0] === 31 && a3[1] === 139) throw new Error("cannot append to compressed archives");
593402
593428
  if (!d2) break t;
593403
593429
  }
593404
- let a3 = new F4(h4);
593405
- if (!a3.cksumValid) break;
593406
- let l2 = 512 * Math.ceil((a3.size || 0) / 512);
593430
+ let h4 = new C4(a3);
593431
+ if (!h4.cksumValid) break;
593432
+ let l2 = 512 * Math.ceil((h4.size || 0) / 512);
593407
593433
  if (n2 + l2 + 512 > o3.size) break;
593408
- n2 += l2, s5.mtimeCache && a3.mtime && s5.mtimeCache.set(String(a3.path), a3.mtime);
593434
+ n2 += l2, s5.mtimeCache && h4.mtime && s5.mtimeCache.set(String(h4.path), h4.mtime);
593409
593435
  }
593410
- i6 = false, uo(s5, e2, n2, r4, t3);
593436
+ i6 = false, po(s5, e2, n2, r4, t3);
593411
593437
  } finally {
593412
593438
  if (i6) try {
593413
593439
  import_node_fs11.default.closeSync(r4);
@@ -593415,69 +593441,69 @@ var fo = (s5, t3) => {
593415
593441
  }
593416
593442
  }
593417
593443
  };
593418
- var uo = (s5, t3, e2, i6, r4) => {
593444
+ var po = (s5, t3, e2, i6, r4) => {
593419
593445
  let n2 = new Wt2(s5.file, { fd: i6, start: e2 });
593420
- t3.pipe(n2), po(t3, r4);
593446
+ t3.pipe(n2), wo(t3, r4);
593421
593447
  };
593422
- var mo = (s5, t3) => {
593448
+ var Eo = (s5, t3) => {
593423
593449
  t3 = Array.from(t3);
593424
- let e2 = new Et2(s5), i6 = (n2, o3, h4) => {
593425
- let a3 = (T4, N3) => {
593426
- T4 ? import_node_fs11.default.close(n2, (E3) => h4(T4)) : h4(null, N3);
593450
+ let e2 = new wt2(s5), i6 = (n2, o3, a3) => {
593451
+ let h4 = (T4, N3) => {
593452
+ T4 ? import_node_fs11.default.close(n2, (E3) => a3(T4)) : a3(null, N3);
593427
593453
  }, l2 = 0;
593428
- if (o3 === 0) return a3(null, 0);
593454
+ if (o3 === 0) return h4(null, 0);
593429
593455
  let c5 = 0, d2 = Buffer.alloc(512), S6 = (T4, N3) => {
593430
- if (T4 || N3 === void 0) return a3(T4);
593456
+ if (T4 || N3 === void 0) return h4(T4);
593431
593457
  if (c5 += N3, c5 < 512 && N3) return import_node_fs11.default.read(n2, d2, c5, d2.length - c5, l2 + c5, S6);
593432
- if (l2 === 0 && d2[0] === 31 && d2[1] === 139) return a3(new Error("cannot append to compressed archives"));
593433
- if (c5 < 512) return a3(null, l2);
593434
- let E3 = new F4(d2);
593435
- if (!E3.cksumValid) return a3(null, l2);
593458
+ if (l2 === 0 && d2[0] === 31 && d2[1] === 139) return h4(new Error("cannot append to compressed archives"));
593459
+ if (c5 < 512) return h4(null, l2);
593460
+ let E3 = new C4(d2);
593461
+ if (!E3.cksumValid) return h4(null, l2);
593436
593462
  let x4 = 512 * Math.ceil((E3.size ?? 0) / 512);
593437
- if (l2 + x4 + 512 > o3 || (l2 += x4 + 512, l2 >= o3)) return a3(null, l2);
593463
+ if (l2 + x4 + 512 > o3 || (l2 += x4 + 512, l2 >= o3)) return h4(null, l2);
593438
593464
  s5.mtimeCache && E3.mtime && s5.mtimeCache.set(String(E3.path), E3.mtime), c5 = 0, import_node_fs11.default.read(n2, d2, 0, 512, l2, S6);
593439
593465
  };
593440
593466
  import_node_fs11.default.read(n2, d2, 0, 512, l2, S6);
593441
593467
  };
593442
593468
  return new Promise((n2, o3) => {
593443
593469
  e2.on("error", o3);
593444
- let h4 = "r+", a3 = (l2, c5) => {
593445
- if (l2 && l2.code === "ENOENT" && h4 === "r+") return h4 = "w+", import_node_fs11.default.open(s5.file, h4, a3);
593470
+ let a3 = "r+", h4 = (l2, c5) => {
593471
+ if (l2 && l2.code === "ENOENT" && a3 === "r+") return a3 = "w+", import_node_fs11.default.open(s5.file, a3, h4);
593446
593472
  if (l2 || !c5) return o3(l2);
593447
593473
  import_node_fs11.default.fstat(c5, (d2, S6) => {
593448
593474
  if (d2) return import_node_fs11.default.close(c5, () => o3(d2));
593449
593475
  i6(c5, S6.size, (T4, N3) => {
593450
593476
  if (T4) return o3(T4);
593451
593477
  let E3 = new tt2(s5.file, { fd: c5, start: N3 });
593452
- e2.pipe(E3), E3.on("error", o3), E3.on("close", n2), Eo(e2, t3);
593478
+ e2.pipe(E3), E3.on("error", o3), E3.on("close", n2), So(e2, t3);
593453
593479
  });
593454
593480
  });
593455
593481
  };
593456
- import_node_fs11.default.open(s5.file, h4, a3);
593482
+ import_node_fs11.default.open(s5.file, a3, h4);
593457
593483
  });
593458
593484
  };
593459
- var po = (s5, t3) => {
593485
+ var wo = (s5, t3) => {
593460
593486
  t3.forEach((e2) => {
593461
- e2.charAt(0) === "@" ? It2({ file: import_node_path17.default.resolve(s5.cwd, e2.slice(1)), sync: true, noResume: true, onReadEntry: (i6) => s5.add(i6) }) : s5.add(e2);
593487
+ e2.charAt(0) === "@" ? Ft2({ file: import_node_path17.default.resolve(s5.cwd, e2.slice(1)), sync: true, noResume: true, onReadEntry: (i6) => s5.add(i6) }) : s5.add(e2);
593462
593488
  }), s5.end();
593463
593489
  };
593464
- var Eo = async (s5, t3) => {
593465
- for (let e2 of t3) e2.charAt(0) === "@" ? await It2({ file: import_node_path17.default.resolve(String(s5.cwd), e2.slice(1)), noResume: true, onReadEntry: (i6) => s5.add(i6) }) : s5.add(e2);
593490
+ var So = async (s5, t3) => {
593491
+ for (let e2 of t3) e2.charAt(0) === "@" ? await Ft2({ file: import_node_path17.default.resolve(String(s5.cwd), e2.slice(1)), noResume: true, onReadEntry: (i6) => s5.add(i6) }) : s5.add(e2);
593466
593492
  s5.end();
593467
593493
  };
593468
- var vt2 = K3(fo, mo, () => {
593494
+ var vt2 = K3(mo, Eo, () => {
593469
593495
  throw new TypeError("file is required");
593470
593496
  }, () => {
593471
593497
  throw new TypeError("file is required");
593472
593498
  }, (s5, t3) => {
593473
- if (!Fs(s5)) throw new TypeError("file is required");
593499
+ if (!vs(s5)) throw new TypeError("file is required");
593474
593500
  if (s5.gzip || s5.brotli || s5.zstd || s5.file.endsWith(".br") || s5.file.endsWith(".tbr")) throw new TypeError("cannot append to compressed archives");
593475
593501
  if (!t3?.length) throw new TypeError("no paths specified to add/replace");
593476
593502
  });
593477
- var wo = K3(vt2.syncFile, vt2.asyncFile, vt2.syncNoFile, vt2.asyncNoFile, (s5, t3 = []) => {
593478
- vt2.validate?.(s5, t3), So(s5);
593503
+ var yo = K3(vt2.syncFile, vt2.asyncFile, vt2.syncNoFile, vt2.asyncNoFile, (s5, t3 = []) => {
593504
+ vt2.validate?.(s5, t3), Ro(s5);
593479
593505
  });
593480
- var So = (s5) => {
593506
+ var Ro = (s5) => {
593481
593507
  let t3 = s5.filter;
593482
593508
  s5.mtimeCache || (s5.mtimeCache = /* @__PURE__ */ new Map()), s5.filter = t3 ? (e2, i6) => t3(e2, i6) && !((s5.mtimeCache?.get(e2) ?? i6.mtime ?? 0) > (i6.mtime ?? 0)) : (e2, i6) => !((s5.mtimeCache?.get(e2) ?? i6.mtime ?? 0) > (i6.mtime ?? 0));
593483
593509
  };
@@ -593672,7 +593698,7 @@ async function downloadDependency({ s3PreSignedReadUrl, absolutePathToLocalOutpu
593672
593698
  const tmpDir = await import_tmp_promise3.default.dir();
593673
593699
  const outputTarPath = import_path31.default.join(tmpDir.path, "api.tgz");
593674
593700
  await (0, import_promises22.pipeline)(request7.data, (0, import_fs17.createWriteStream)(outputTarPath));
593675
- await co({ file: outputTarPath, cwd: absolutePathToLocalOutput });
593701
+ await uo({ file: outputTarPath, cwd: absolutePathToLocalOutput });
593676
593702
  }
593677
593703
  function stringifyDependency(dependency) {
593678
593704
  switch (dependency.type) {
@@ -628667,7 +628693,7 @@ var AccessTokenPosthogManager = class {
628667
628693
  properties: {
628668
628694
  ...event,
628669
628695
  ...event.properties,
628670
- version: "5.23.3-764-g07d84856196",
628696
+ version: "5.23.3-767-gd576140fb68",
628671
628697
  usingAccessToken: true,
628672
628698
  ...getRunIdProperties()
628673
628699
  }
@@ -628731,7 +628757,7 @@ var UserPosthogManager = class {
628731
628757
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
628732
628758
  event: "CLI",
628733
628759
  properties: {
628734
- version: "5.23.3-764-g07d84856196",
628760
+ version: "5.23.3-767-gd576140fb68",
628735
628761
  ...event,
628736
628762
  ...event.properties,
628737
628763
  usingAccessToken: false,
@@ -810165,22 +810191,22 @@ var OpenElementStack = class {
810165
810191
  //Element in scope
810166
810192
  hasInDynamicScope(tagName, htmlScope) {
810167
810193
  for (let i6 = this.stackTop; i6 >= 0; i6--) {
810168
- const tn = this.tagIDs[i6];
810194
+ const tn2 = this.tagIDs[i6];
810169
810195
  switch (this.treeAdapter.getNamespaceURI(this.items[i6])) {
810170
810196
  case NS.HTML: {
810171
- if (tn === tagName)
810197
+ if (tn2 === tagName)
810172
810198
  return true;
810173
- if (htmlScope.has(tn))
810199
+ if (htmlScope.has(tn2))
810174
810200
  return false;
810175
810201
  break;
810176
810202
  }
810177
810203
  case NS.SVG: {
810178
- if (SCOPING_ELEMENTS_SVG.has(tn))
810204
+ if (SCOPING_ELEMENTS_SVG.has(tn2))
810179
810205
  return false;
810180
810206
  break;
810181
810207
  }
810182
810208
  case NS.MATHML: {
810183
- if (SCOPING_ELEMENTS_MATHML.has(tn))
810209
+ if (SCOPING_ELEMENTS_MATHML.has(tn2))
810184
810210
  return false;
810185
810211
  break;
810186
810212
  }
@@ -810199,22 +810225,22 @@ var OpenElementStack = class {
810199
810225
  }
810200
810226
  hasNumberedHeaderInScope() {
810201
810227
  for (let i6 = this.stackTop; i6 >= 0; i6--) {
810202
- const tn = this.tagIDs[i6];
810228
+ const tn2 = this.tagIDs[i6];
810203
810229
  switch (this.treeAdapter.getNamespaceURI(this.items[i6])) {
810204
810230
  case NS.HTML: {
810205
- if (NUMBERED_HEADERS.has(tn))
810231
+ if (NUMBERED_HEADERS.has(tn2))
810206
810232
  return true;
810207
- if (SCOPING_ELEMENTS_HTML.has(tn))
810233
+ if (SCOPING_ELEMENTS_HTML.has(tn2))
810208
810234
  return false;
810209
810235
  break;
810210
810236
  }
810211
810237
  case NS.SVG: {
810212
- if (SCOPING_ELEMENTS_SVG.has(tn))
810238
+ if (SCOPING_ELEMENTS_SVG.has(tn2))
810213
810239
  return false;
810214
810240
  break;
810215
810241
  }
810216
810242
  case NS.MATHML: {
810217
- if (SCOPING_ELEMENTS_MATHML.has(tn))
810243
+ if (SCOPING_ELEMENTS_MATHML.has(tn2))
810218
810244
  return false;
810219
810245
  break;
810220
810246
  }
@@ -810799,7 +810825,7 @@ var SVG_TAG_NAMES_ADJUSTMENT_MAP = new Map([
810799
810825
  "linearGradient",
810800
810826
  "radialGradient",
810801
810827
  "textPath"
810802
- ].map((tn) => [tn.toLowerCase(), tn]));
810828
+ ].map((tn2) => [tn2.toLowerCase(), tn2]));
810803
810829
  var EXITS_FOREIGN_CONTENT = /* @__PURE__ */ new Set([
810804
810830
  TAG_ID.B,
810805
810831
  TAG_ID.BIG,
@@ -810847,9 +810873,9 @@ var EXITS_FOREIGN_CONTENT = /* @__PURE__ */ new Set([
810847
810873
  TAG_ID.VAR
810848
810874
  ]);
810849
810875
  function causesExit(startTagToken) {
810850
- const tn = startTagToken.tagID;
810851
- const isFontWithAttrs = tn === TAG_ID.FONT && startTagToken.attrs.some(({ name: name2 }) => name2 === ATTRS.COLOR || name2 === ATTRS.SIZE || name2 === ATTRS.FACE);
810852
- return isFontWithAttrs || EXITS_FOREIGN_CONTENT.has(tn);
810876
+ const tn2 = startTagToken.tagID;
810877
+ const isFontWithAttrs = tn2 === TAG_ID.FONT && startTagToken.attrs.some(({ name: name2 }) => name2 === ATTRS.COLOR || name2 === ATTRS.SIZE || name2 === ATTRS.FACE);
810878
+ return isFontWithAttrs || EXITS_FOREIGN_CONTENT.has(tn2);
810853
810879
  }
810854
810880
  function adjustTokenMathMLAttrs(token) {
810855
810881
  for (let i6 = 0; i6 < token.attrs.length; i6++) {
@@ -810884,11 +810910,11 @@ function adjustTokenSVGTagName(token) {
810884
810910
  token.tagID = getTagID(token.tagName);
810885
810911
  }
810886
810912
  }
810887
- function isMathMLTextIntegrationPoint(tn, ns2) {
810888
- return ns2 === NS.MATHML && (tn === TAG_ID.MI || tn === TAG_ID.MO || tn === TAG_ID.MN || tn === TAG_ID.MS || tn === TAG_ID.MTEXT);
810913
+ function isMathMLTextIntegrationPoint(tn2, ns2) {
810914
+ return ns2 === NS.MATHML && (tn2 === TAG_ID.MI || tn2 === TAG_ID.MO || tn2 === TAG_ID.MN || tn2 === TAG_ID.MS || tn2 === TAG_ID.MTEXT);
810889
810915
  }
810890
- function isHtmlIntegrationPoint(tn, ns2, attrs) {
810891
- if (ns2 === NS.MATHML && tn === TAG_ID.ANNOTATION_XML) {
810916
+ function isHtmlIntegrationPoint(tn2, ns2, attrs) {
810917
+ if (ns2 === NS.MATHML && tn2 === TAG_ID.ANNOTATION_XML) {
810892
810918
  for (let i6 = 0; i6 < attrs.length; i6++) {
810893
810919
  if (attrs[i6].name === ATTRS.ENCODING) {
810894
810920
  const value2 = attrs[i6].value.toLowerCase();
@@ -810896,10 +810922,10 @@ function isHtmlIntegrationPoint(tn, ns2, attrs) {
810896
810922
  }
810897
810923
  }
810898
810924
  }
810899
- return ns2 === NS.SVG && (tn === TAG_ID.FOREIGN_OBJECT || tn === TAG_ID.DESC || tn === TAG_ID.TITLE);
810925
+ return ns2 === NS.SVG && (tn2 === TAG_ID.FOREIGN_OBJECT || tn2 === TAG_ID.DESC || tn2 === TAG_ID.TITLE);
810900
810926
  }
810901
- function isIntegrationPoint(tn, ns2, attrs, foreignNS) {
810902
- return (!foreignNS || foreignNS === NS.HTML) && isHtmlIntegrationPoint(tn, ns2, attrs) || (!foreignNS || foreignNS === NS.MATHML) && isMathMLTextIntegrationPoint(tn, ns2);
810927
+ function isIntegrationPoint(tn2, ns2, attrs, foreignNS) {
810928
+ return (!foreignNS || foreignNS === NS.HTML) && isHtmlIntegrationPoint(tn2, ns2, attrs) || (!foreignNS || foreignNS === NS.MATHML) && isMathMLTextIntegrationPoint(tn2, ns2);
810903
810929
  }
810904
810930
 
810905
810931
  // ../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.js
@@ -811234,11 +811260,11 @@ var Parser6 = class {
811234
811260
  _setEndLocation(element4, closingToken) {
811235
811261
  if (this.treeAdapter.getNodeSourceCodeLocation(element4) && closingToken.location) {
811236
811262
  const ctLoc = closingToken.location;
811237
- const tn = this.treeAdapter.getTagName(element4);
811263
+ const tn2 = this.treeAdapter.getTagName(element4);
811238
811264
  const endLoc = (
811239
811265
  // NOTE: For cases like <p> <p> </p> - First 'p' closes without a closing
811240
811266
  // tag and for cases like <td> <p> </td> - 'p' closes without a closing tag.
811241
- closingToken.type === TokenType3.END_TAG && tn === closingToken.tagName ? {
811267
+ closingToken.type === TokenType3.END_TAG && tn2 === closingToken.tagName ? {
811242
811268
  endTag: { ...ctLoc },
811243
811269
  endLine: ctLoc.endLine,
811244
811270
  endCol: ctLoc.endCol,
@@ -811415,10 +811441,10 @@ var Parser6 = class {
811415
811441
  _resetInsertionModeForSelect(selectIdx) {
811416
811442
  if (selectIdx > 0) {
811417
811443
  for (let i6 = selectIdx - 1; i6 > 0; i6--) {
811418
- const tn = this.openElements.tagIDs[i6];
811419
- if (tn === TAG_ID.TEMPLATE) {
811444
+ const tn2 = this.openElements.tagIDs[i6];
811445
+ if (tn2 === TAG_ID.TEMPLATE) {
811420
811446
  break;
811421
- } else if (tn === TAG_ID.TABLE) {
811447
+ } else if (tn2 === TAG_ID.TABLE) {
811422
811448
  this.insertionMode = InsertionMode.IN_SELECT_IN_TABLE;
811423
811449
  return;
811424
811450
  }
@@ -811428,8 +811454,8 @@ var Parser6 = class {
811428
811454
  }
811429
811455
  //Foster parenting
811430
811456
  /** @protected */
811431
- _isElementCausesFosterParenting(tn) {
811432
- return TABLE_STRUCTURE_TAGS.has(tn);
811457
+ _isElementCausesFosterParenting(tn2) {
811458
+ return TABLE_STRUCTURE_TAGS.has(tn2);
811433
811459
  }
811434
811460
  /** @protected */
811435
811461
  _shouldFosterParentOnInsertion() {
@@ -812071,8 +812097,8 @@ function aaRecreateElementFromEntry(p6, elementEntry) {
812071
812097
  return newElement;
812072
812098
  }
812073
812099
  function aaInsertLastNodeInCommonAncestor(p6, commonAncestor, lastElement) {
812074
- const tn = p6.treeAdapter.getTagName(commonAncestor);
812075
- const tid = getTagID(tn);
812100
+ const tn2 = p6.treeAdapter.getTagName(commonAncestor);
812101
+ const tid = getTagID(tn2);
812076
812102
  if (p6._isElementCausesFosterParenting(tid)) {
812077
812103
  p6._fosterParentElement(lastElement);
812078
812104
  } else {
@@ -812169,8 +812195,8 @@ function startTagBeforeHtml(p6, token) {
812169
812195
  }
812170
812196
  }
812171
812197
  function endTagBeforeHtml(p6, token) {
812172
- const tn = token.tagID;
812173
- if (tn === TAG_ID.HTML || tn === TAG_ID.HEAD || tn === TAG_ID.BODY || tn === TAG_ID.BR) {
812198
+ const tn2 = token.tagID;
812199
+ if (tn2 === TAG_ID.HTML || tn2 === TAG_ID.HEAD || tn2 === TAG_ID.BODY || tn2 === TAG_ID.BR) {
812174
812200
  tokenBeforeHtml(p6, token);
812175
812201
  }
812176
812202
  }
@@ -812197,8 +812223,8 @@ function startTagBeforeHead(p6, token) {
812197
812223
  }
812198
812224
  }
812199
812225
  function endTagBeforeHead(p6, token) {
812200
- const tn = token.tagID;
812201
- if (tn === TAG_ID.HEAD || tn === TAG_ID.BODY || tn === TAG_ID.HTML || tn === TAG_ID.BR) {
812226
+ const tn2 = token.tagID;
812227
+ if (tn2 === TAG_ID.HEAD || tn2 === TAG_ID.BODY || tn2 === TAG_ID.HTML || tn2 === TAG_ID.BR) {
812202
812228
  tokenBeforeHead(p6, token);
812203
812229
  } else {
812204
812230
  p6._err(token, ERR.endTagWithoutMatchingOpenElement);
@@ -812513,10 +812539,10 @@ function formStartTagInBody(p6, token) {
812513
812539
  }
812514
812540
  function listItemStartTagInBody(p6, token) {
812515
812541
  p6.framesetOk = false;
812516
- const tn = token.tagID;
812542
+ const tn2 = token.tagID;
812517
812543
  for (let i6 = p6.openElements.stackTop; i6 >= 0; i6--) {
812518
812544
  const elementId = p6.openElements.tagIDs[i6];
812519
- if (tn === TAG_ID.LI && elementId === TAG_ID.LI || (tn === TAG_ID.DD || tn === TAG_ID.DT) && (elementId === TAG_ID.DD || elementId === TAG_ID.DT)) {
812545
+ if (tn2 === TAG_ID.LI && elementId === TAG_ID.LI || (tn2 === TAG_ID.DD || tn2 === TAG_ID.DT) && (elementId === TAG_ID.DD || elementId === TAG_ID.DT)) {
812520
812546
  p6.openElements.generateImpliedEndTagsWithExclusion(elementId);
812521
812547
  p6.openElements.popUntilTagNamePopped(elementId);
812522
812548
  break;
@@ -812928,10 +812954,10 @@ function htmlEndTagInBody(p6, token) {
812928
812954
  }
812929
812955
  }
812930
812956
  function addressEndTagInBody(p6, token) {
812931
- const tn = token.tagID;
812932
- if (p6.openElements.hasInScope(tn)) {
812957
+ const tn2 = token.tagID;
812958
+ if (p6.openElements.hasInScope(tn2)) {
812933
812959
  p6.openElements.generateImpliedEndTags();
812934
- p6.openElements.popUntilTagNamePopped(tn);
812960
+ p6.openElements.popUntilTagNamePopped(tn2);
812935
812961
  }
812936
812962
  }
812937
812963
  function formEndTagInBody(p6) {
@@ -812962,10 +812988,10 @@ function liEndTagInBody(p6) {
812962
812988
  }
812963
812989
  }
812964
812990
  function ddEndTagInBody(p6, token) {
812965
- const tn = token.tagID;
812966
- if (p6.openElements.hasInScope(tn)) {
812967
- p6.openElements.generateImpliedEndTagsWithExclusion(tn);
812968
- p6.openElements.popUntilTagNamePopped(tn);
812991
+ const tn2 = token.tagID;
812992
+ if (p6.openElements.hasInScope(tn2)) {
812993
+ p6.openElements.generateImpliedEndTagsWithExclusion(tn2);
812994
+ p6.openElements.popUntilTagNamePopped(tn2);
812969
812995
  }
812970
812996
  }
812971
812997
  function numberedHeaderEndTagInBody(p6) {
@@ -812975,10 +813001,10 @@ function numberedHeaderEndTagInBody(p6) {
812975
813001
  }
812976
813002
  }
812977
813003
  function appletEndTagInBody(p6, token) {
812978
- const tn = token.tagID;
812979
- if (p6.openElements.hasInScope(tn)) {
813004
+ const tn2 = token.tagID;
813005
+ if (p6.openElements.hasInScope(tn2)) {
812980
813006
  p6.openElements.generateImpliedEndTags();
812981
- p6.openElements.popUntilTagNamePopped(tn);
813007
+ p6.openElements.popUntilTagNamePopped(tn2);
812982
813008
  p6.activeFormattingElements.clearToLastMarker();
812983
813009
  }
812984
813010
  }
@@ -812989,12 +813015,12 @@ function brEndTagInBody(p6) {
812989
813015
  p6.framesetOk = false;
812990
813016
  }
812991
813017
  function genericEndTagInBody(p6, token) {
812992
- const tn = token.tagName;
813018
+ const tn2 = token.tagName;
812993
813019
  const tid = token.tagID;
812994
813020
  for (let i6 = p6.openElements.stackTop; i6 > 0; i6--) {
812995
813021
  const element4 = p6.openElements.items[i6];
812996
813022
  const elementId = p6.openElements.tagIDs[i6];
812997
- if (tid === elementId && (tid !== TAG_ID.UNKNOWN || p6.treeAdapter.getTagName(element4) === tn)) {
813023
+ if (tid === elementId && (tid !== TAG_ID.UNKNOWN || p6.treeAdapter.getTagName(element4) === tn2)) {
812998
813024
  p6.openElements.generateImpliedEndTagsWithExclusion(tid);
812999
813025
  if (p6.openElements.stackTop >= i6)
813000
813026
  p6.openElements.shortenToLength(i6);
@@ -813307,8 +813333,8 @@ function tokenInTableText(p6, token) {
813307
813333
  }
813308
813334
  var TABLE_VOID_ELEMENTS = /* @__PURE__ */ new Set([TAG_ID.CAPTION, TAG_ID.COL, TAG_ID.COLGROUP, TAG_ID.TBODY, TAG_ID.TD, TAG_ID.TFOOT, TAG_ID.TH, TAG_ID.THEAD, TAG_ID.TR]);
813309
813335
  function startTagInCaption(p6, token) {
813310
- const tn = token.tagID;
813311
- if (TABLE_VOID_ELEMENTS.has(tn)) {
813336
+ const tn2 = token.tagID;
813337
+ if (TABLE_VOID_ELEMENTS.has(tn2)) {
813312
813338
  if (p6.openElements.hasInTableScope(TAG_ID.CAPTION)) {
813313
813339
  p6.openElements.generateImpliedEndTags();
813314
813340
  p6.openElements.popUntilTagNamePopped(TAG_ID.CAPTION);
@@ -813321,8 +813347,8 @@ function startTagInCaption(p6, token) {
813321
813347
  }
813322
813348
  }
813323
813349
  function endTagInCaption(p6, token) {
813324
- const tn = token.tagID;
813325
- switch (tn) {
813350
+ const tn2 = token.tagID;
813351
+ switch (tn2) {
813326
813352
  case TAG_ID.CAPTION:
813327
813353
  case TAG_ID.TABLE: {
813328
813354
  if (p6.openElements.hasInTableScope(TAG_ID.CAPTION)) {
@@ -813330,7 +813356,7 @@ function endTagInCaption(p6, token) {
813330
813356
  p6.openElements.popUntilTagNamePopped(TAG_ID.CAPTION);
813331
813357
  p6.activeFormattingElements.clearToLastMarker();
813332
813358
  p6.insertionMode = InsertionMode.IN_TABLE;
813333
- if (tn === TAG_ID.TABLE) {
813359
+ if (tn2 === TAG_ID.TABLE) {
813334
813360
  endTagInTable(p6, token);
813335
813361
  }
813336
813362
  }
@@ -813437,12 +813463,12 @@ function startTagInTableBody(p6, token) {
813437
813463
  }
813438
813464
  }
813439
813465
  function endTagInTableBody(p6, token) {
813440
- const tn = token.tagID;
813466
+ const tn2 = token.tagID;
813441
813467
  switch (token.tagID) {
813442
813468
  case TAG_ID.TBODY:
813443
813469
  case TAG_ID.TFOOT:
813444
813470
  case TAG_ID.THEAD: {
813445
- if (p6.openElements.hasInTableScope(tn)) {
813471
+ if (p6.openElements.hasInTableScope(tn2)) {
813446
813472
  p6.openElements.clearBackToTableBodyContext();
813447
813473
  p6.openElements.pop();
813448
813474
  p6.insertionMode = InsertionMode.IN_TABLE;
@@ -813548,8 +813574,8 @@ function endTagInRow(p6, token) {
813548
813574
  }
813549
813575
  }
813550
813576
  function startTagInCell(p6, token) {
813551
- const tn = token.tagID;
813552
- if (TABLE_VOID_ELEMENTS.has(tn)) {
813577
+ const tn2 = token.tagID;
813578
+ if (TABLE_VOID_ELEMENTS.has(tn2)) {
813553
813579
  if (p6.openElements.hasInTableScope(TAG_ID.TD) || p6.openElements.hasInTableScope(TAG_ID.TH)) {
813554
813580
  p6._closeTableCell();
813555
813581
  startTagInRow(p6, token);
@@ -813559,13 +813585,13 @@ function startTagInCell(p6, token) {
813559
813585
  }
813560
813586
  }
813561
813587
  function endTagInCell(p6, token) {
813562
- const tn = token.tagID;
813563
- switch (tn) {
813588
+ const tn2 = token.tagID;
813589
+ switch (tn2) {
813564
813590
  case TAG_ID.TD:
813565
813591
  case TAG_ID.TH: {
813566
- if (p6.openElements.hasInTableScope(tn)) {
813592
+ if (p6.openElements.hasInTableScope(tn2)) {
813567
813593
  p6.openElements.generateImpliedEndTags();
813568
- p6.openElements.popUntilTagNamePopped(tn);
813594
+ p6.openElements.popUntilTagNamePopped(tn2);
813569
813595
  p6.activeFormattingElements.clearToLastMarker();
813570
813596
  p6.insertionMode = InsertionMode.IN_ROW;
813571
813597
  }
@@ -813576,7 +813602,7 @@ function endTagInCell(p6, token) {
813576
813602
  case TAG_ID.TFOOT:
813577
813603
  case TAG_ID.THEAD:
813578
813604
  case TAG_ID.TR: {
813579
- if (p6.openElements.hasInTableScope(tn)) {
813605
+ if (p6.openElements.hasInTableScope(tn2)) {
813580
813606
  p6._closeTableCell();
813581
813607
  endTagInRow(p6, token);
813582
813608
  }
@@ -813681,8 +813707,8 @@ function endTagInSelect(p6, token) {
813681
813707
  }
813682
813708
  }
813683
813709
  function startTagInSelectInTable(p6, token) {
813684
- const tn = token.tagID;
813685
- if (tn === TAG_ID.CAPTION || tn === TAG_ID.TABLE || tn === TAG_ID.TBODY || tn === TAG_ID.TFOOT || tn === TAG_ID.THEAD || tn === TAG_ID.TR || tn === TAG_ID.TD || tn === TAG_ID.TH) {
813710
+ const tn2 = token.tagID;
813711
+ if (tn2 === TAG_ID.CAPTION || tn2 === TAG_ID.TABLE || tn2 === TAG_ID.TBODY || tn2 === TAG_ID.TFOOT || tn2 === TAG_ID.THEAD || tn2 === TAG_ID.TR || tn2 === TAG_ID.TD || tn2 === TAG_ID.TH) {
813686
813712
  p6.openElements.popUntilTagNamePopped(TAG_ID.SELECT);
813687
813713
  p6._resetInsertionMode();
813688
813714
  p6._processStartTag(token);
@@ -813691,9 +813717,9 @@ function startTagInSelectInTable(p6, token) {
813691
813717
  }
813692
813718
  }
813693
813719
  function endTagInSelectInTable(p6, token) {
813694
- const tn = token.tagID;
813695
- if (tn === TAG_ID.CAPTION || tn === TAG_ID.TABLE || tn === TAG_ID.TBODY || tn === TAG_ID.TFOOT || tn === TAG_ID.THEAD || tn === TAG_ID.TR || tn === TAG_ID.TD || tn === TAG_ID.TH) {
813696
- if (p6.openElements.hasInTableScope(tn)) {
813720
+ const tn2 = token.tagID;
813721
+ if (tn2 === TAG_ID.CAPTION || tn2 === TAG_ID.TABLE || tn2 === TAG_ID.TBODY || tn2 === TAG_ID.TFOOT || tn2 === TAG_ID.THEAD || tn2 === TAG_ID.TR || tn2 === TAG_ID.TD || tn2 === TAG_ID.TH) {
813722
+ if (p6.openElements.hasInTableScope(tn2)) {
813697
813723
  p6.openElements.popUntilTagNamePopped(TAG_ID.SELECT);
813698
813724
  p6._resetInsertionMode();
813699
813725
  p6.onEndTag(token);
@@ -820746,7 +820772,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
820746
820772
  var LOGS_FOLDER_NAME = "logs";
820747
820773
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
820748
820774
  function getCliSource() {
820749
- const version7 = "5.23.3-764-g07d84856196";
820775
+ const version7 = "5.23.3-767-gd576140fb68";
820750
820776
  return `cli@${version7}`;
820751
820777
  }
820752
820778
  var DebugLogger = class {
@@ -852079,7 +852105,7 @@ var LegacyDocsPublisher = class {
852079
852105
  previewId,
852080
852106
  disableTemplates: void 0,
852081
852107
  skipUpload,
852082
- cliVersion: "5.23.3-764-g07d84856196",
852108
+ cliVersion: "5.23.3-767-gd576140fb68",
852083
852109
  loginCommand: "fern auth login"
852084
852110
  });
852085
852111
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -864020,11 +864046,11 @@ var MethodInvocation = class extends AstNode {
864020
864046
  configureAwait;
864021
864047
  generics;
864022
864048
  multiline;
864023
- constructor({ method: method8, arguments_, on, async: async2, configureAwait, generics, multiline, isAsyncEnumerable }, generation) {
864049
+ constructor({ method: method8, arguments_, on: on2, async: async2, configureAwait, generics, multiline, isAsyncEnumerable }, generation) {
864024
864050
  super(generation);
864025
864051
  this.method = method8;
864026
864052
  this.arguments = arguments_;
864027
- this.on = on;
864053
+ this.on = on2;
864028
864054
  this.async = async2 ?? false;
864029
864055
  this.configureAwait = configureAwait ?? false;
864030
864056
  this.generics = generics ?? [];
@@ -874839,9 +874865,9 @@ var MethodInvocation2 = class extends AstNode2 {
874839
874865
  method;
874840
874866
  arguments_;
874841
874867
  multiline;
874842
- constructor({ method: method8, arguments_, on, multiline }) {
874868
+ constructor({ method: method8, arguments_, on: on2, multiline }) {
874843
874869
  super();
874844
- this.on = on;
874870
+ this.on = on2;
874845
874871
  this.method = method8;
874846
874872
  this.arguments_ = arguments_;
874847
874873
  this.multiline = multiline;
@@ -875548,9 +875574,9 @@ var Pointer = class extends AstNode2 {
875548
875574
  var Selector = class extends AstNode2 {
875549
875575
  on;
875550
875576
  selector;
875551
- constructor({ on, selector: selector2 }) {
875577
+ constructor({ on: on2, selector: selector2 }) {
875552
875578
  super();
875553
- this.on = on;
875579
+ this.on = on2;
875554
875580
  this.selector = selector2;
875555
875581
  }
875556
875582
  write(writer2) {
@@ -875668,9 +875694,9 @@ var Switch2 = class extends AstNode2 {
875668
875694
  on;
875669
875695
  cases;
875670
875696
  default;
875671
- constructor({ on, cases, default: default_ }) {
875697
+ constructor({ on: on2, cases, default: default_ }) {
875672
875698
  super();
875673
- this.on = on;
875699
+ this.on = on2;
875674
875700
  this.cases = cases;
875675
875701
  this.default = default_;
875676
875702
  }
@@ -879180,9 +879206,9 @@ var MethodInvocation3 = class extends AstNode3 {
879180
879206
  on;
879181
879207
  method;
879182
879208
  arguments_;
879183
- constructor({ method: method8, arguments_, on }) {
879209
+ constructor({ method: method8, arguments_, on: on2 }) {
879184
879210
  super();
879185
- this.on = on;
879211
+ this.on = on2;
879186
879212
  this.method = method8;
879187
879213
  this.arguments_ = arguments_;
879188
879214
  }
@@ -882057,13 +882083,13 @@ var MethodInvocation4 = class extends AstNode4 {
882057
882083
  multiline;
882058
882084
  static_;
882059
882085
  on;
882060
- constructor({ method: method8, arguments_, static_, multiline, on }) {
882086
+ constructor({ method: method8, arguments_, static_, multiline, on: on2 }) {
882061
882087
  super();
882062
882088
  this.method = method8;
882063
882089
  this.arguments_ = arguments_;
882064
882090
  this.static_ = static_ ?? false;
882065
882091
  this.multiline = multiline ?? false;
882066
- this.on = on;
882092
+ this.on = on2;
882067
882093
  }
882068
882094
  write(writer2) {
882069
882095
  if (this.on != null) {
@@ -885549,13 +885575,13 @@ var MethodInvocation5 = class extends AstNode5 {
885549
885575
  method;
885550
885576
  arguments;
885551
885577
  multiline;
885552
- constructor({ on, method: method8, arguments_, multiline }) {
885578
+ constructor({ on: on2, method: method8, arguments_, multiline }) {
885553
885579
  super();
885554
- this.on = on;
885580
+ this.on = on2;
885555
885581
  this.method = method8;
885556
885582
  this.arguments = arguments_;
885557
885583
  this.multiline = multiline ?? false;
885558
- this.inheritReferences(on);
885584
+ this.inheritReferences(on2);
885559
885585
  this.arguments.forEach((arg) => {
885560
885586
  this.inheritReferences(arg);
885561
885587
  });
@@ -889438,9 +889464,9 @@ var MethodInvocation6 = class extends AstNode6 {
889438
889464
  arguments_;
889439
889465
  keywordArguments;
889440
889466
  block;
889441
- constructor({ on, method: method8, arguments_, keywordArguments, block: block2 }) {
889467
+ constructor({ on: on2, method: method8, arguments_, keywordArguments, block: block2 }) {
889442
889468
  super();
889443
- this.on = on;
889469
+ this.on = on2;
889444
889470
  this.method = method8;
889445
889471
  this.arguments_ = arguments_;
889446
889472
  this.keywordArguments = keywordArguments;
@@ -901684,9 +901710,9 @@ var MethodInvocation7 = class extends AstNode9 {
901684
901710
  method;
901685
901711
  arguments_;
901686
901712
  ["async"];
901687
- constructor({ on, method: method8, arguments_, async: async2 }) {
901713
+ constructor({ on: on2, method: method8, arguments_, async: async2 }) {
901688
901714
  super();
901689
- this.on = on;
901715
+ this.on = on2;
901690
901716
  this.method = method8;
901691
901717
  this.arguments_ = arguments_;
901692
901718
  this.async = async2;
@@ -905149,7 +905175,7 @@ async function createSpecsTarGzBuffer({ specs, context: context3, audiences }) {
905149
905175
  });
905150
905176
  await (0, import_promises132.writeFile)(join8(AbsoluteFilePath2.of(tmpDir.path), RelativeFilePath2.of(SPECS_MANIFEST_FILENAME)), JSON.stringify(manifest, void 0, 4));
905151
905177
  const tarGzPath = join8(AbsoluteFilePath2.of(tmpDir.path), RelativeFilePath2.of("specs.tar.gz"));
905152
- await Zn({
905178
+ await Kn({
905153
905179
  gzip: true,
905154
905180
  cwd: tmpDir.path,
905155
905181
  file: tarGzPath,
@@ -917465,7 +917491,7 @@ function getAutomationContextFromEnv() {
917465
917491
  config_branch: process.env.FERN_CONFIG_BRANCH,
917466
917492
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
917467
917493
  trigger: process.env.GITHUB_EVENT_NAME,
917468
- cli_version: "5.23.3-764-g07d84856196"
917494
+ cli_version: "5.23.3-767-gd576140fb68"
917469
917495
  };
917470
917496
  }
917471
917497
  function isAutomationMode() {
@@ -918291,7 +918317,7 @@ var CliContext = class _CliContext {
918291
918317
  if (false) {
918292
918318
  this.logger.error("CLI_VERSION is not defined");
918293
918319
  }
918294
- return "5.23.3-764-g07d84856196";
918320
+ return "5.23.3-767-gd576140fb68";
918295
918321
  }
918296
918322
  getCliName() {
918297
918323
  if (false) {
@@ -931317,7 +931343,7 @@ async function registerWorkspacesV1({
931317
931343
  const tmpDir = await import_tmp_promise19.default.dir();
931318
931344
  const tarPath = import_path114.default.join(tmpDir.path, "definition.tgz");
931319
931345
  context3.logger.debug(`Compressing definition at ${tmpDir.path}`);
931320
- await Zn({ file: tarPath, cwd: resolvedWorkspace.absoluteFilePath }, ["."]);
931346
+ await Kn({ file: tarPath, cwd: resolvedWorkspace.absoluteFilePath }, ["."]);
931321
931347
  context3.logger.info("Uploading definition...");
931322
931348
  await axios_default.put(registerApiResponse.body.definitionS3UploadUrl, await (0, import_promises202.readFile)(tarPath));
931323
931349
  context3.logger.info(