@fern-api/fern-api-dev 5.23.3-765-gc7c3e4796f9 → 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.
- package/cli.cjs +1018 -1000
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -213403,16 +213403,16 @@ var require_share = __commonJS({
|
|
|
213403
213403
|
};
|
|
213404
213404
|
}
|
|
213405
213405
|
exports2.share = share3;
|
|
213406
|
-
function handleReset(reset2,
|
|
213406
|
+
function handleReset(reset2, on2) {
|
|
213407
213407
|
var args = [];
|
|
213408
213408
|
for (var _i6 = 2; _i6 < arguments.length; _i6++) {
|
|
213409
213409
|
args[_i6 - 2] = arguments[_i6];
|
|
213410
213410
|
}
|
|
213411
|
-
if (
|
|
213411
|
+
if (on2 === true) {
|
|
213412
213412
|
reset2();
|
|
213413
213413
|
return;
|
|
213414
213414
|
}
|
|
213415
|
-
if (
|
|
213415
|
+
if (on2 === false) {
|
|
213416
213416
|
return;
|
|
213417
213417
|
}
|
|
213418
213418
|
var onSubscriber = new Subscriber_1.SafeSubscriber({
|
|
@@ -213421,7 +213421,7 @@ var require_share = __commonJS({
|
|
|
213421
213421
|
reset2();
|
|
213422
213422
|
}
|
|
213423
213423
|
});
|
|
213424
|
-
return innerFrom_1.innerFrom(
|
|
213424
|
+
return innerFrom_1.innerFrom(on2.apply(void 0, __spreadArray4([], __read4(args)))).subscribe(onSubscriber);
|
|
213425
213425
|
}
|
|
213426
213426
|
}
|
|
213427
213427
|
});
|
|
@@ -228087,7 +228087,7 @@ var require_directives = __commonJS({
|
|
|
228087
228087
|
"{": "%7B",
|
|
228088
228088
|
"}": "%7D"
|
|
228089
228089
|
};
|
|
228090
|
-
var escapeTagName = (
|
|
228090
|
+
var escapeTagName = (tn2) => tn2.replace(/[!,[\]{}]/g, (ch2) => escapeChars[ch2]);
|
|
228091
228091
|
var Directives = class _Directives {
|
|
228092
228092
|
constructor(yaml3, tags) {
|
|
228093
228093
|
this.docStart = null;
|
|
@@ -228232,7 +228232,7 @@ var require_directives = __commonJS({
|
|
|
228232
228232
|
for (const [handle3, prefix2] of tagEntries) {
|
|
228233
228233
|
if (handle3 === "!!" && prefix2 === "tag:yaml.org,2002:")
|
|
228234
228234
|
continue;
|
|
228235
|
-
if (!doc || tagNames.some((
|
|
228235
|
+
if (!doc || tagNames.some((tn2) => tn2.startsWith(prefix2)))
|
|
228236
228236
|
lines.push(`%TAG ${handle3} ${prefix2}`);
|
|
228237
228237
|
}
|
|
228238
228238
|
return lines.join("\n");
|
|
@@ -356192,7 +356192,7 @@ var require_escodegen = __commonJS({
|
|
|
356192
356192
|
return str3.length - 1 - i6;
|
|
356193
356193
|
}
|
|
356194
356194
|
function adjustMultilineComment(value2, specialBase) {
|
|
356195
|
-
var array3, i6, len, line, j5, spaces, previousBase,
|
|
356195
|
+
var array3, i6, len, line, j5, spaces, previousBase, sn;
|
|
356196
356196
|
array3 = value2.split(/\r\n|[\r\n]/);
|
|
356197
356197
|
spaces = Number.MAX_VALUE;
|
|
356198
356198
|
for (i6 = 1, len = array3.length; i6 < len; ++i6) {
|
|
@@ -356218,8 +356218,8 @@ var require_escodegen = __commonJS({
|
|
|
356218
356218
|
previousBase = base4;
|
|
356219
356219
|
}
|
|
356220
356220
|
for (i6 = 1, len = array3.length; i6 < len; ++i6) {
|
|
356221
|
-
|
|
356222
|
-
array3[i6] = sourceMap ?
|
|
356221
|
+
sn = toSourceNodeWhenNeeded(addIndent(array3[i6].slice(spaces)));
|
|
356222
|
+
array3[i6] = sourceMap ? sn.join("") : sn;
|
|
356223
356223
|
}
|
|
356224
356224
|
base4 = previousBase;
|
|
356225
356225
|
return array3.join("\n");
|
|
@@ -590591,7 +590591,7 @@ var import_os = require("os");
|
|
|
590591
590591
|
var import_path31 = __toESM(require("path"), 1);
|
|
590592
590592
|
var import_promises22 = require("stream/promises");
|
|
590593
590593
|
|
|
590594
|
-
// ../../../node_modules/.pnpm/tar@7.5.
|
|
590594
|
+
// ../../../node_modules/.pnpm/tar@7.5.16/node_modules/tar/dist/esm/index.min.js
|
|
590595
590595
|
var import_events2 = __toESM(require("events"), 1);
|
|
590596
590596
|
var import_fs13 = __toESM(require("fs"), 1);
|
|
590597
590597
|
var import_node_events6 = require("events");
|
|
@@ -590603,7 +590603,7 @@ var import_path28 = require("path");
|
|
|
590603
590603
|
var import_events3 = require("events");
|
|
590604
590604
|
var import_assert5 = __toESM(require("assert"), 1);
|
|
590605
590605
|
var import_buffer = require("buffer");
|
|
590606
|
-
var
|
|
590606
|
+
var Ms = __toESM(require("zlib"), 1);
|
|
590607
590607
|
var import_zlib3 = __toESM(require("zlib"), 1);
|
|
590608
590608
|
var import_node_path10 = require("path");
|
|
590609
590609
|
var import_node_path11 = require("path");
|
|
@@ -590626,51 +590626,51 @@ var import_node_path15 = __toESM(require("path"), 1);
|
|
|
590626
590626
|
var import_node_path16 = require("path");
|
|
590627
590627
|
var import_node_fs11 = __toESM(require("fs"), 1);
|
|
590628
590628
|
var import_node_path17 = __toESM(require("path"), 1);
|
|
590629
|
-
var
|
|
590630
|
-
var
|
|
590631
|
-
for (var e2 in t3)
|
|
590632
|
-
};
|
|
590633
|
-
var
|
|
590634
|
-
var
|
|
590635
|
-
var
|
|
590636
|
-
var
|
|
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";
|
|
590637
590637
|
var q3 = /* @__PURE__ */ Symbol("EOF");
|
|
590638
|
-
var
|
|
590638
|
+
var Q3 = /* @__PURE__ */ Symbol("maybeEmitEnd");
|
|
590639
590639
|
var rt2 = /* @__PURE__ */ Symbol("emittedEnd");
|
|
590640
590640
|
var Le2 = /* @__PURE__ */ Symbol("emittingEnd");
|
|
590641
|
-
var
|
|
590641
|
+
var qt2 = /* @__PURE__ */ Symbol("emittedError");
|
|
590642
590642
|
var Ne2 = /* @__PURE__ */ Symbol("closed");
|
|
590643
|
-
var
|
|
590644
|
-
var
|
|
590645
|
-
var
|
|
590643
|
+
var Ls = /* @__PURE__ */ Symbol("read");
|
|
590644
|
+
var De2 = /* @__PURE__ */ Symbol("flush");
|
|
590645
|
+
var Ns = /* @__PURE__ */ Symbol("flushChunk");
|
|
590646
590646
|
var z4 = /* @__PURE__ */ Symbol("encoding");
|
|
590647
590647
|
var Mt2 = /* @__PURE__ */ Symbol("decoder");
|
|
590648
|
-
var
|
|
590648
|
+
var g2 = /* @__PURE__ */ Symbol("flowing");
|
|
590649
590649
|
var Qt2 = /* @__PURE__ */ Symbol("paused");
|
|
590650
590650
|
var Bt2 = /* @__PURE__ */ Symbol("resume");
|
|
590651
|
-
var
|
|
590652
|
-
var
|
|
590653
|
-
var
|
|
590654
|
-
var
|
|
590655
|
-
var
|
|
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");
|
|
590656
590656
|
var L4 = /* @__PURE__ */ Symbol("objectMode");
|
|
590657
590657
|
var w2 = /* @__PURE__ */ Symbol("destroyed");
|
|
590658
|
-
var
|
|
590659
|
-
var
|
|
590660
|
-
var
|
|
590661
|
-
var
|
|
590658
|
+
var bi = /* @__PURE__ */ Symbol("error");
|
|
590659
|
+
var _i = /* @__PURE__ */ Symbol("emitData");
|
|
590660
|
+
var Ds = /* @__PURE__ */ Symbol("emitEnd");
|
|
590661
|
+
var Oi = /* @__PURE__ */ Symbol("emitEnd2");
|
|
590662
590662
|
var Z3 = /* @__PURE__ */ Symbol("async");
|
|
590663
|
-
var
|
|
590663
|
+
var Ti = /* @__PURE__ */ Symbol("abort");
|
|
590664
590664
|
var Ie2 = /* @__PURE__ */ Symbol("aborted");
|
|
590665
590665
|
var Jt2 = /* @__PURE__ */ Symbol("signal");
|
|
590666
|
-
var
|
|
590667
|
-
var
|
|
590668
|
-
var
|
|
590669
|
-
var
|
|
590670
|
-
var
|
|
590671
|
-
var
|
|
590672
|
-
var
|
|
590673
|
-
var
|
|
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 {
|
|
590674
590674
|
src;
|
|
590675
590675
|
dest;
|
|
590676
590676
|
opts;
|
|
@@ -590687,7 +590687,7 @@ var Ce2 = class {
|
|
|
590687
590687
|
this.unpipe(), this.opts.end && this.dest.end();
|
|
590688
590688
|
}
|
|
590689
590689
|
};
|
|
590690
|
-
var
|
|
590690
|
+
var xi = class extends Fe2 {
|
|
590691
590691
|
unpipe() {
|
|
590692
590692
|
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
590693
590693
|
}
|
|
@@ -590695,13 +590695,13 @@ var Oi = class extends Ce2 {
|
|
|
590695
590695
|
super(t3, e2, i6), this.proxyErrors = (r4) => this.dest.emit("error", r4), t3.on("error", this.proxyErrors);
|
|
590696
590696
|
}
|
|
590697
590697
|
};
|
|
590698
|
-
var
|
|
590699
|
-
var
|
|
590700
|
-
var
|
|
590701
|
-
[
|
|
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;
|
|
590702
590702
|
[Qt2] = false;
|
|
590703
|
-
[
|
|
590704
|
-
[
|
|
590703
|
+
[D3] = [];
|
|
590704
|
+
[b3] = [];
|
|
590705
590705
|
[L4];
|
|
590706
590706
|
[z4];
|
|
590707
590707
|
[Z3];
|
|
@@ -590710,24 +590710,24 @@ var D3 = class extends import_node_events6.EventEmitter {
|
|
|
590710
590710
|
[rt2] = false;
|
|
590711
590711
|
[Le2] = false;
|
|
590712
590712
|
[Ne2] = false;
|
|
590713
|
-
[
|
|
590714
|
-
[
|
|
590713
|
+
[qt2] = null;
|
|
590714
|
+
[_3] = 0;
|
|
590715
590715
|
[w2] = false;
|
|
590716
590716
|
[Jt2];
|
|
590717
590717
|
[Ie2] = false;
|
|
590718
|
-
[
|
|
590719
|
-
[
|
|
590718
|
+
[Rt2] = 0;
|
|
590719
|
+
[F4] = false;
|
|
590720
590720
|
writable = true;
|
|
590721
590721
|
readable = true;
|
|
590722
590722
|
constructor(...t3) {
|
|
590723
590723
|
let e2 = t3[0] || {};
|
|
590724
590724
|
if (super(), e2.objectMode && typeof e2.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
|
|
590725
|
-
|
|
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] });
|
|
590726
590726
|
let { signal: i6 } = e2;
|
|
590727
|
-
i6 && (this[Jt2] = i6, i6.aborted ? this[
|
|
590727
|
+
i6 && (this[Jt2] = i6, i6.aborted ? this[Ti]() : i6.addEventListener("abort", () => this[Ti]()));
|
|
590728
590728
|
}
|
|
590729
590729
|
get bufferLength() {
|
|
590730
|
-
return this[
|
|
590730
|
+
return this[_3];
|
|
590731
590731
|
}
|
|
590732
590732
|
get encoding() {
|
|
590733
590733
|
return this[z4];
|
|
@@ -590750,7 +590750,7 @@ var D3 = class extends import_node_events6.EventEmitter {
|
|
|
590750
590750
|
set async(t3) {
|
|
590751
590751
|
this[Z3] = this[Z3] || !!t3;
|
|
590752
590752
|
}
|
|
590753
|
-
[
|
|
590753
|
+
[Ti]() {
|
|
590754
590754
|
this[Ie2] = true, this.emit("abort", this[Jt2]?.reason), this.destroy(this[Jt2]?.reason);
|
|
590755
590755
|
}
|
|
590756
590756
|
get aborted() {
|
|
@@ -590763,86 +590763,86 @@ var D3 = class extends import_node_events6.EventEmitter {
|
|
|
590763
590763
|
if (this[q3]) throw new Error("write after end");
|
|
590764
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;
|
|
590765
590765
|
typeof e2 == "function" && (i6 = e2, e2 = "utf8"), e2 || (e2 = "utf8");
|
|
590766
|
-
let r4 = this[Z3] ?
|
|
590766
|
+
let r4 = this[Z3] ? jt2 : Wr;
|
|
590767
590767
|
if (!this[L4] && !Buffer.isBuffer(t3)) {
|
|
590768
|
-
if (
|
|
590769
|
-
else if (
|
|
590768
|
+
if (Yr(t3)) t3 = Buffer.from(t3.buffer, t3.byteOffset, t3.byteLength);
|
|
590769
|
+
else if (Zr(t3)) t3 = Buffer.from(t3);
|
|
590770
590770
|
else if (typeof t3 != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
590771
590771
|
}
|
|
590772
|
-
return this[L4] ? (this[
|
|
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]);
|
|
590773
590773
|
}
|
|
590774
590774
|
read(t3) {
|
|
590775
590775
|
if (this[w2]) return null;
|
|
590776
|
-
if (this[
|
|
590777
|
-
this[L4] && (t3 = null), this[
|
|
590778
|
-
let e2 = this[
|
|
590779
|
-
return this[
|
|
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;
|
|
590780
590780
|
}
|
|
590781
|
-
[
|
|
590782
|
-
if (this[L4]) this[
|
|
590781
|
+
[Ls](t3, e2) {
|
|
590782
|
+
if (this[L4]) this[Ae2]();
|
|
590783
590783
|
else {
|
|
590784
590784
|
let i6 = e2;
|
|
590785
|
-
t3 === i6.length || t3 === null ? this[
|
|
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);
|
|
590786
590786
|
}
|
|
590787
|
-
return this.emit("data", e2), !this[
|
|
590787
|
+
return this.emit("data", e2), !this[b3].length && !this[q3] && this.emit("drain"), e2;
|
|
590788
590788
|
}
|
|
590789
590789
|
end(t3, e2, i6) {
|
|
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[
|
|
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;
|
|
590791
590791
|
}
|
|
590792
590792
|
[Bt2]() {
|
|
590793
|
-
this[w2] || (!this[
|
|
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"));
|
|
590794
590794
|
}
|
|
590795
590795
|
resume() {
|
|
590796
590796
|
return this[Bt2]();
|
|
590797
590797
|
}
|
|
590798
590798
|
pause() {
|
|
590799
|
-
this[
|
|
590799
|
+
this[g2] = false, this[Qt2] = true, this[F4] = false;
|
|
590800
590800
|
}
|
|
590801
590801
|
get destroyed() {
|
|
590802
590802
|
return this[w2];
|
|
590803
590803
|
}
|
|
590804
590804
|
get flowing() {
|
|
590805
|
-
return this[
|
|
590805
|
+
return this[g2];
|
|
590806
590806
|
}
|
|
590807
590807
|
get paused() {
|
|
590808
590808
|
return this[Qt2];
|
|
590809
590809
|
}
|
|
590810
|
-
[
|
|
590811
|
-
this[L4] ? this[
|
|
590810
|
+
[gi](t3) {
|
|
590811
|
+
this[L4] ? this[_3] += 1 : this[_3] += t3.length, this[b3].push(t3);
|
|
590812
590812
|
}
|
|
590813
|
-
[
|
|
590814
|
-
return this[L4] ? this[
|
|
590813
|
+
[Ae2]() {
|
|
590814
|
+
return this[L4] ? this[_3] -= 1 : this[_3] -= this[b3][0].length, this[b3].shift();
|
|
590815
590815
|
}
|
|
590816
|
-
[
|
|
590816
|
+
[De2](t3 = false) {
|
|
590817
590817
|
do
|
|
590818
590818
|
;
|
|
590819
|
-
while (this[
|
|
590820
|
-
!t3 && !this[
|
|
590819
|
+
while (this[Ns](this[Ae2]()) && this[b3].length);
|
|
590820
|
+
!t3 && !this[b3].length && !this[q3] && this.emit("drain");
|
|
590821
590821
|
}
|
|
590822
|
-
[
|
|
590823
|
-
return this.emit("data", t3), this[
|
|
590822
|
+
[Ns](t3) {
|
|
590823
|
+
return this.emit("data", t3), this[g2];
|
|
590824
590824
|
}
|
|
590825
590825
|
pipe(t3, e2) {
|
|
590826
590826
|
if (this[w2]) return t3;
|
|
590827
|
-
this[
|
|
590827
|
+
this[F4] = false;
|
|
590828
590828
|
let i6 = this[rt2];
|
|
590829
|
-
return e2 = e2 || {}, 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;
|
|
590830
590830
|
}
|
|
590831
590831
|
unpipe(t3) {
|
|
590832
|
-
let e2 = this[
|
|
590833
|
-
e2 && (this[
|
|
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());
|
|
590834
590834
|
}
|
|
590835
590835
|
addListener(t3, e2) {
|
|
590836
590836
|
return this.on(t3, e2);
|
|
590837
590837
|
}
|
|
590838
590838
|
on(t3, e2) {
|
|
590839
590839
|
let i6 = super.on(t3, e2);
|
|
590840
|
-
if (t3 === "data") this[
|
|
590841
|
-
else if (t3 === "readable" && this[
|
|
590842
|
-
else if (
|
|
590843
|
-
else if (t3 === "error" && this[
|
|
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]) {
|
|
590844
590844
|
let r4 = e2;
|
|
590845
|
-
this[Z3] ?
|
|
590845
|
+
this[Z3] ? jt2(() => r4.call(this, this[qt2])) : r4.call(this, this[qt2]);
|
|
590846
590846
|
}
|
|
590847
590847
|
return i6;
|
|
590848
590848
|
}
|
|
@@ -590851,58 +590851,58 @@ var D3 = class extends import_node_events6.EventEmitter {
|
|
|
590851
590851
|
}
|
|
590852
590852
|
off(t3, e2) {
|
|
590853
590853
|
let i6 = super.off(t3, e2);
|
|
590854
|
-
return t3 === "data" && (this[
|
|
590854
|
+
return t3 === "data" && (this[Rt2] = this.listeners("data").length, this[Rt2] === 0 && !this[F4] && !this[D3].length && (this[g2] = false)), i6;
|
|
590855
590855
|
}
|
|
590856
590856
|
removeAllListeners(t3) {
|
|
590857
590857
|
let e2 = super.removeAllListeners(t3);
|
|
590858
|
-
return (t3 === "data" || t3 === void 0) && (this[
|
|
590858
|
+
return (t3 === "data" || t3 === void 0) && (this[Rt2] = 0, !this[F4] && !this[D3].length && (this[g2] = false)), e2;
|
|
590859
590859
|
}
|
|
590860
590860
|
get emittedEnd() {
|
|
590861
590861
|
return this[rt2];
|
|
590862
590862
|
}
|
|
590863
|
-
[
|
|
590864
|
-
!this[Le2] && !this[rt2] && !this[w2] && this[
|
|
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);
|
|
590865
590865
|
}
|
|
590866
590866
|
emit(t3, ...e2) {
|
|
590867
590867
|
let i6 = e2[0];
|
|
590868
590868
|
if (t3 !== "error" && t3 !== "close" && t3 !== w2 && this[w2]) return false;
|
|
590869
|
-
if (t3 === "data") return !this[L4] && !i6 ? false : this[Z3] ? (
|
|
590870
|
-
if (t3 === "end") return this[
|
|
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]();
|
|
590871
590871
|
if (t3 === "close") {
|
|
590872
590872
|
if (this[Ne2] = true, !this[rt2] && !this[w2]) return false;
|
|
590873
590873
|
let n2 = super.emit("close");
|
|
590874
590874
|
return this.removeAllListeners("close"), n2;
|
|
590875
590875
|
} else if (t3 === "error") {
|
|
590876
|
-
this[
|
|
590876
|
+
this[qt2] = i6, super.emit(bi, i6);
|
|
590877
590877
|
let n2 = !this[Jt2] || this.listeners("error").length ? super.emit("error", i6) : false;
|
|
590878
|
-
return this[
|
|
590878
|
+
return this[Q3](), n2;
|
|
590879
590879
|
} else if (t3 === "resume") {
|
|
590880
590880
|
let n2 = super.emit("resume");
|
|
590881
|
-
return this[
|
|
590881
|
+
return this[Q3](), n2;
|
|
590882
590882
|
} else if (t3 === "finish" || t3 === "prefinish") {
|
|
590883
590883
|
let n2 = super.emit(t3);
|
|
590884
590884
|
return this.removeAllListeners(t3), n2;
|
|
590885
590885
|
}
|
|
590886
590886
|
let r4 = super.emit(t3, ...e2);
|
|
590887
|
-
return this[
|
|
590887
|
+
return this[Q3](), r4;
|
|
590888
590888
|
}
|
|
590889
|
-
[
|
|
590890
|
-
for (let i6 of this[
|
|
590891
|
-
let e2 = this[
|
|
590892
|
-
return this[
|
|
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;
|
|
590893
590893
|
}
|
|
590894
|
-
[
|
|
590895
|
-
return this[rt2] ? false : (this[rt2] = true, this.readable = false, this[Z3] ? (
|
|
590894
|
+
[Ds]() {
|
|
590895
|
+
return this[rt2] ? false : (this[rt2] = true, this.readable = false, this[Z3] ? (jt2(() => this[Oi]()), true) : this[Oi]());
|
|
590896
590896
|
}
|
|
590897
|
-
[
|
|
590897
|
+
[Oi]() {
|
|
590898
590898
|
if (this[Mt2]) {
|
|
590899
590899
|
let e2 = this[Mt2].end();
|
|
590900
590900
|
if (e2) {
|
|
590901
|
-
for (let i6 of this[
|
|
590902
|
-
this[
|
|
590901
|
+
for (let i6 of this[D3]) i6.dest.write(e2);
|
|
590902
|
+
this[F4] || super.emit("data", e2);
|
|
590903
590903
|
}
|
|
590904
590904
|
}
|
|
590905
|
-
for (let e2 of this[
|
|
590905
|
+
for (let e2 of this[D3]) e2.end();
|
|
590906
590906
|
let t3 = super.emit("end");
|
|
590907
590907
|
return this.removeAllListeners("end"), t3;
|
|
590908
590908
|
}
|
|
@@ -590925,22 +590925,22 @@ var D3 = class extends import_node_events6.EventEmitter {
|
|
|
590925
590925
|
});
|
|
590926
590926
|
}
|
|
590927
590927
|
[Symbol.asyncIterator]() {
|
|
590928
|
-
this[
|
|
590928
|
+
this[F4] = false;
|
|
590929
590929
|
let t3 = false, e2 = async () => (this.pause(), t3 = true, { value: void 0, done: true });
|
|
590930
590930
|
return { next: () => {
|
|
590931
590931
|
if (t3) return e2();
|
|
590932
590932
|
let r4 = this.read();
|
|
590933
590933
|
if (r4 !== null) return Promise.resolve({ done: false, value: r4 });
|
|
590934
590934
|
if (this[q3]) return e2();
|
|
590935
|
-
let n2, o3,
|
|
590936
|
-
this.off("data",
|
|
590937
|
-
},
|
|
590938
|
-
this.off("error",
|
|
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] });
|
|
590939
590939
|
}, l2 = () => {
|
|
590940
|
-
this.off("error",
|
|
590941
|
-
}, c5 = () =>
|
|
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"));
|
|
590942
590942
|
return new Promise((d2, S6) => {
|
|
590943
|
-
o3 = S6, n2 = d2, this.once(w2, c5), this.once("error",
|
|
590943
|
+
o3 = S6, n2 = d2, this.once(w2, c5), this.once("error", a3), this.once("end", l2), this.once("data", h4);
|
|
590944
590944
|
});
|
|
590945
590945
|
}, throw: e2, return: e2, [Symbol.asyncIterator]() {
|
|
590946
590946
|
return this;
|
|
@@ -590948,68 +590948,68 @@ var D3 = class extends import_node_events6.EventEmitter {
|
|
|
590948
590948
|
} };
|
|
590949
590949
|
}
|
|
590950
590950
|
[Symbol.iterator]() {
|
|
590951
|
-
this[
|
|
590952
|
-
let t3 = false, e2 = () => (this.pause(), this.off(
|
|
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 = () => {
|
|
590953
590953
|
if (t3) return e2();
|
|
590954
590954
|
let r4 = this.read();
|
|
590955
590955
|
return r4 === null ? e2() : { done: false, value: r4 };
|
|
590956
590956
|
};
|
|
590957
|
-
return this.once("end", e2), this.once(
|
|
590957
|
+
return this.once("end", e2), this.once(bi, e2), this.once(w2, e2), { next: i6, throw: e2, return: e2, [Symbol.iterator]() {
|
|
590958
590958
|
return this;
|
|
590959
590959
|
}, [Symbol.dispose]: () => {
|
|
590960
590960
|
} };
|
|
590961
590961
|
}
|
|
590962
590962
|
destroy(t3) {
|
|
590963
590963
|
if (this[w2]) return t3 ? this.emit("error", t3) : this.emit(w2), this;
|
|
590964
|
-
this[w2] = true, this[
|
|
590964
|
+
this[w2] = true, this[F4] = true, this[b3].length = 0, this[_3] = 0;
|
|
590965
590965
|
let e2 = this;
|
|
590966
590966
|
return typeof e2.close == "function" && !this[Ne2] && e2.close(), t3 ? this.emit("error", t3) : this.emit(w2), this;
|
|
590967
590967
|
}
|
|
590968
590968
|
static get isStream() {
|
|
590969
|
-
return
|
|
590969
|
+
return zr;
|
|
590970
590970
|
}
|
|
590971
590971
|
};
|
|
590972
|
-
var
|
|
590972
|
+
var Xr = import_fs13.default.writev;
|
|
590973
590973
|
var ot2 = /* @__PURE__ */ Symbol("_autoClose");
|
|
590974
590974
|
var H4 = /* @__PURE__ */ Symbol("_close");
|
|
590975
|
-
var
|
|
590975
|
+
var te2 = /* @__PURE__ */ Symbol("_ended");
|
|
590976
590976
|
var m2 = /* @__PURE__ */ Symbol("_fd");
|
|
590977
|
-
var
|
|
590978
|
-
var
|
|
590979
|
-
var
|
|
590980
|
-
var
|
|
590981
|
-
var
|
|
590982
|
-
var
|
|
590983
|
-
var
|
|
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");
|
|
590984
590984
|
var Ut2 = /* @__PURE__ */ Symbol("_onerror");
|
|
590985
590985
|
var Ht2 = /* @__PURE__ */ Symbol("_onopen");
|
|
590986
|
-
var
|
|
590986
|
+
var Ai = /* @__PURE__ */ Symbol("_onread");
|
|
590987
590987
|
var Pt2 = /* @__PURE__ */ Symbol("_onwrite");
|
|
590988
590988
|
var ht2 = /* @__PURE__ */ Symbol("_open");
|
|
590989
590989
|
var U4 = /* @__PURE__ */ Symbol("_path");
|
|
590990
590990
|
var nt2 = /* @__PURE__ */ Symbol("_pos");
|
|
590991
590991
|
var Y3 = /* @__PURE__ */ Symbol("_queue");
|
|
590992
590992
|
var zt2 = /* @__PURE__ */ Symbol("_read");
|
|
590993
|
-
var
|
|
590994
|
-
var
|
|
590995
|
-
var
|
|
590996
|
-
var
|
|
590993
|
+
var Ii = /* @__PURE__ */ Symbol("_readSize");
|
|
590994
|
+
var J3 = /* @__PURE__ */ Symbol("_reading");
|
|
590995
|
+
var ee3 = /* @__PURE__ */ Symbol("_remain");
|
|
590996
|
+
var Fi = /* @__PURE__ */ Symbol("_size");
|
|
590997
590997
|
var ke2 = /* @__PURE__ */ Symbol("_write");
|
|
590998
|
-
var
|
|
590998
|
+
var gt2 = /* @__PURE__ */ Symbol("_writing");
|
|
590999
590999
|
var ve2 = /* @__PURE__ */ Symbol("_defaultFlag");
|
|
591000
591000
|
var bt2 = /* @__PURE__ */ Symbol("_errored");
|
|
591001
|
-
var _t2 = class extends
|
|
591001
|
+
var _t2 = class extends A3 {
|
|
591002
591002
|
[bt2] = false;
|
|
591003
591003
|
[m2];
|
|
591004
591004
|
[U4];
|
|
591005
|
-
[
|
|
591006
|
-
[
|
|
591007
|
-
[
|
|
591008
|
-
[
|
|
591005
|
+
[Ii];
|
|
591006
|
+
[J3] = false;
|
|
591007
|
+
[Fi];
|
|
591008
|
+
[ee3];
|
|
591009
591009
|
[ot2];
|
|
591010
591010
|
constructor(t3, e2) {
|
|
591011
591011
|
if (e2 = e2 || {}, super(e2), this.readable = true, this.writable = false, typeof t3 != "string") throw new TypeError("path must be a string");
|
|
591012
|
-
this[bt2] = false, this[m2] = typeof e2.fd == "number" ? e2.fd : void 0, this[U4] = t3, this[
|
|
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]();
|
|
591013
591013
|
}
|
|
591014
591014
|
get fd() {
|
|
591015
591015
|
return this[m2];
|
|
@@ -591029,19 +591029,19 @@ var _t2 = class extends D3 {
|
|
|
591029
591029
|
[Ht2](t3, e2) {
|
|
591030
591030
|
t3 ? this[Ut2](t3) : (this[m2] = e2, this.emit("open", e2), this[zt2]());
|
|
591031
591031
|
}
|
|
591032
|
-
[
|
|
591033
|
-
return Buffer.allocUnsafe(Math.min(this[
|
|
591032
|
+
[ki]() {
|
|
591033
|
+
return Buffer.allocUnsafe(Math.min(this[Ii], this[ee3]));
|
|
591034
591034
|
}
|
|
591035
591035
|
[zt2]() {
|
|
591036
|
-
if (!this[
|
|
591037
|
-
this[
|
|
591038
|
-
let t3 = this[
|
|
591039
|
-
if (t3.length === 0) return process.nextTick(() => this[
|
|
591040
|
-
import_fs13.default.read(this[m2], t3, 0, t3.length, null, (e2, i6, r4) => this[
|
|
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));
|
|
591041
591041
|
}
|
|
591042
591042
|
}
|
|
591043
|
-
[
|
|
591044
|
-
this[
|
|
591043
|
+
[Ai](t3, e2, i6) {
|
|
591044
|
+
this[J3] = false, t3 ? this[Ut2](t3) : this[Ci](e2, i6) && this[zt2]();
|
|
591045
591045
|
}
|
|
591046
591046
|
[H4]() {
|
|
591047
591047
|
if (this[ot2] && typeof this[m2] == "number") {
|
|
@@ -591050,11 +591050,11 @@ var _t2 = class extends D3 {
|
|
|
591050
591050
|
}
|
|
591051
591051
|
}
|
|
591052
591052
|
[Ut2](t3) {
|
|
591053
|
-
this[
|
|
591053
|
+
this[J3] = true, this[H4](), this.emit("error", t3);
|
|
591054
591054
|
}
|
|
591055
|
-
[
|
|
591055
|
+
[Ci](t3, e2) {
|
|
591056
591056
|
let i6 = false;
|
|
591057
|
-
return this[
|
|
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;
|
|
591058
591058
|
}
|
|
591059
591059
|
emit(t3, ...e2) {
|
|
591060
591060
|
switch (t3) {
|
|
@@ -591082,13 +591082,13 @@ var Me2 = class extends _t2 {
|
|
|
591082
591082
|
[zt2]() {
|
|
591083
591083
|
let t3 = true;
|
|
591084
591084
|
try {
|
|
591085
|
-
if (!this[
|
|
591086
|
-
this[
|
|
591085
|
+
if (!this[J3]) {
|
|
591086
|
+
this[J3] = true;
|
|
591087
591087
|
do {
|
|
591088
|
-
let e2 = this[
|
|
591089
|
-
if (!this[
|
|
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;
|
|
591090
591090
|
} while (true);
|
|
591091
|
-
this[
|
|
591091
|
+
this[J3] = false;
|
|
591092
591092
|
}
|
|
591093
591093
|
t3 = false;
|
|
591094
591094
|
} finally {
|
|
@@ -591106,22 +591106,22 @@ var tt2 = class extends import_events2.default {
|
|
|
591106
591106
|
readable = false;
|
|
591107
591107
|
writable = true;
|
|
591108
591108
|
[bt2] = false;
|
|
591109
|
-
[
|
|
591110
|
-
[
|
|
591109
|
+
[gt2] = false;
|
|
591110
|
+
[te2] = false;
|
|
591111
591111
|
[Y3] = [];
|
|
591112
|
-
[
|
|
591112
|
+
[Ce2] = false;
|
|
591113
591113
|
[U4];
|
|
591114
|
-
[
|
|
591114
|
+
[ie2];
|
|
591115
591115
|
[ot2];
|
|
591116
591116
|
[m2];
|
|
591117
591117
|
[ve2];
|
|
591118
|
-
[
|
|
591119
|
-
[
|
|
591118
|
+
[j4];
|
|
591119
|
+
[Ni] = false;
|
|
591120
591120
|
[nt2];
|
|
591121
591121
|
constructor(t3, e2) {
|
|
591122
|
-
e2 = e2 || {}, super(e2), this[U4] = t3, this[m2] = typeof e2.fd == "number" ? e2.fd : void 0, this[
|
|
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;
|
|
591123
591123
|
let i6 = this[nt2] !== void 0 ? "r+" : "w";
|
|
591124
|
-
this[ve2] = e2.flags === void 0, this[
|
|
591124
|
+
this[ve2] = e2.flags === void 0, this[j4] = e2.flags === void 0 ? i6 : e2.flags, this[m2] === void 0 && this[ht2]();
|
|
591125
591125
|
}
|
|
591126
591126
|
emit(t3, ...e2) {
|
|
591127
591127
|
if (t3 === "error") {
|
|
@@ -591137,32 +591137,32 @@ var tt2 = class extends import_events2.default {
|
|
|
591137
591137
|
return this[U4];
|
|
591138
591138
|
}
|
|
591139
591139
|
[Ut2](t3) {
|
|
591140
|
-
this[H4](), this[
|
|
591140
|
+
this[H4](), this[gt2] = true, this.emit("error", t3);
|
|
591141
591141
|
}
|
|
591142
591142
|
[ht2]() {
|
|
591143
|
-
import_fs13.default.open(this[U4], this[
|
|
591143
|
+
import_fs13.default.open(this[U4], this[j4], this[ie2], (t3, e2) => this[Ht2](t3, e2));
|
|
591144
591144
|
}
|
|
591145
591145
|
[Ht2](t3, e2) {
|
|
591146
|
-
this[ve2] && this[
|
|
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]());
|
|
591147
591147
|
}
|
|
591148
591148
|
end(t3, e2) {
|
|
591149
|
-
return t3 && this.write(t3, e2), 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;
|
|
591150
591150
|
}
|
|
591151
591151
|
write(t3, e2) {
|
|
591152
|
-
return typeof t3 == "string" && (t3 = Buffer.from(t3, e2)), this[
|
|
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);
|
|
591153
591153
|
}
|
|
591154
591154
|
[ke2](t3) {
|
|
591155
591155
|
import_fs13.default.write(this[m2], t3, 0, t3.length, this[nt2], (e2, i6) => this[Pt2](e2, i6));
|
|
591156
591156
|
}
|
|
591157
591157
|
[Pt2](t3, e2) {
|
|
591158
|
-
t3 ? this[Ut2](t3) : (this[nt2] !== void 0 && typeof e2 == "number" && (this[nt2] += e2), this[Y3].length ? this[
|
|
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"))));
|
|
591159
591159
|
}
|
|
591160
|
-
[
|
|
591161
|
-
if (this[Y3].length === 0) this[
|
|
591160
|
+
[Di]() {
|
|
591161
|
+
if (this[Y3].length === 0) this[te2] && this[Pt2](null, 0);
|
|
591162
591162
|
else if (this[Y3].length === 1) this[ke2](this[Y3].pop());
|
|
591163
591163
|
else {
|
|
591164
591164
|
let t3 = this[Y3];
|
|
591165
|
-
this[Y3] = [],
|
|
591165
|
+
this[Y3] = [], Xr(this[m2], t3, this[nt2], (e2, i6) => this[Pt2](e2, i6));
|
|
591166
591166
|
}
|
|
591167
591167
|
}
|
|
591168
591168
|
[H4]() {
|
|
@@ -591175,13 +591175,13 @@ var tt2 = class extends import_events2.default {
|
|
|
591175
591175
|
var Wt2 = class extends tt2 {
|
|
591176
591176
|
[ht2]() {
|
|
591177
591177
|
let t3;
|
|
591178
|
-
if (this[ve2] && this[
|
|
591179
|
-
t3 = import_fs13.default.openSync(this[U4], this[
|
|
591178
|
+
if (this[ve2] && this[j4] === "r+") try {
|
|
591179
|
+
t3 = import_fs13.default.openSync(this[U4], this[j4], this[ie2]);
|
|
591180
591180
|
} catch (e2) {
|
|
591181
|
-
if (e2?.code === "ENOENT") return this[
|
|
591181
|
+
if (e2?.code === "ENOENT") return this[j4] = "w", this[ht2]();
|
|
591182
591182
|
throw e2;
|
|
591183
591183
|
}
|
|
591184
|
-
else t3 = import_fs13.default.openSync(this[U4], this[
|
|
591184
|
+
else t3 = import_fs13.default.openSync(this[U4], this[j4], this[ie2]);
|
|
591185
591185
|
this[Ht2](null, t3);
|
|
591186
591186
|
}
|
|
591187
591187
|
[H4]() {
|
|
@@ -591202,53 +591202,53 @@ var Wt2 = class extends tt2 {
|
|
|
591202
591202
|
}
|
|
591203
591203
|
}
|
|
591204
591204
|
};
|
|
591205
|
-
var
|
|
591206
|
-
var
|
|
591207
|
-
var
|
|
591208
|
-
var
|
|
591209
|
-
var
|
|
591210
|
-
var
|
|
591211
|
-
var
|
|
591212
|
-
let t3 =
|
|
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);
|
|
591213
591213
|
return t3 || s5;
|
|
591214
591214
|
};
|
|
591215
|
-
var
|
|
591215
|
+
var se2 = (s5 = {}) => {
|
|
591216
591216
|
if (!s5) return {};
|
|
591217
591217
|
let t3 = {};
|
|
591218
591218
|
for (let [e2, i6] of Object.entries(s5)) {
|
|
591219
|
-
let r4 =
|
|
591219
|
+
let r4 = Qr(e2);
|
|
591220
591220
|
t3[r4] = i6;
|
|
591221
591221
|
}
|
|
591222
591222
|
return t3.chmod === void 0 && t3.noChmod === false && (t3.chmod = true), delete t3.noChmod, t3;
|
|
591223
591223
|
};
|
|
591224
|
-
var K3 = (s5, t3, e2, i6, r4) => Object.assign((n2 = [], o3,
|
|
591225
|
-
Array.isArray(n2) && (o3 = n2, n2 = {}), typeof o3 == "function" && (
|
|
591226
|
-
let
|
|
591227
|
-
if (r4?.(
|
|
591228
|
-
if (typeof
|
|
591229
|
-
return s5(
|
|
591230
|
-
} else if (
|
|
591231
|
-
let l2 = t3(
|
|
591232
|
-
return
|
|
591233
|
-
} else if (
|
|
591234
|
-
if (typeof
|
|
591235
|
-
return e2(
|
|
591236
|
-
} else if (
|
|
591237
|
-
if (typeof
|
|
591238
|
-
return i6(
|
|
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);
|
|
591239
591239
|
}
|
|
591240
591240
|
throw new Error("impossible options??");
|
|
591241
591241
|
}, { syncFile: s5, asyncFile: t3, syncNoFile: e2, asyncNoFile: i6, validate: r4 });
|
|
591242
591242
|
var jr = import_zlib3.default.constants || { ZLIB_VERNUM: 4736 };
|
|
591243
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));
|
|
591244
|
-
var
|
|
591245
|
-
var
|
|
591246
|
-
var
|
|
591247
|
-
var
|
|
591248
|
-
import_buffer.Buffer.concat = s5 ?
|
|
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;
|
|
591249
591249
|
} : (s5) => {
|
|
591250
591250
|
};
|
|
591251
|
-
var
|
|
591251
|
+
var Tt2 = /* @__PURE__ */ Symbol("_superWrite");
|
|
591252
591252
|
var Gt2 = class extends Error {
|
|
591253
591253
|
code;
|
|
591254
591254
|
errno;
|
|
@@ -591259,8 +591259,8 @@ var Gt2 = class extends Error {
|
|
|
591259
591259
|
return "ZlibError";
|
|
591260
591260
|
}
|
|
591261
591261
|
};
|
|
591262
|
-
var
|
|
591263
|
-
var
|
|
591262
|
+
var Bi = /* @__PURE__ */ Symbol("flushFlag");
|
|
591263
|
+
var re3 = class extends A3 {
|
|
591264
591264
|
#t = false;
|
|
591265
591265
|
#i = false;
|
|
591266
591266
|
#s;
|
|
@@ -591279,9 +591279,9 @@ var ne3 = class extends D3 {
|
|
|
591279
591279
|
}
|
|
591280
591280
|
constructor(t3, e2) {
|
|
591281
591281
|
if (!t3 || typeof t3 != "object") throw new TypeError("invalid options for ZlibBase constructor");
|
|
591282
|
-
if (super(t3), this.#s = t3.flush ?? 0, this.#n = t3.finishFlush ?? 0, this.#r = t3.fullFlushFlag ?? 0, typeof
|
|
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);
|
|
591283
591283
|
try {
|
|
591284
|
-
this.#e = new
|
|
591284
|
+
this.#e = new Ms[e2](t3);
|
|
591285
591285
|
} catch (i6) {
|
|
591286
591286
|
throw new Gt2(i6, this.constructor);
|
|
591287
591287
|
}
|
|
@@ -591296,7 +591296,7 @@ var ne3 = class extends D3 {
|
|
|
591296
591296
|
if (!this.#t) return (0, import_assert5.default)(this.#e, "zlib binding closed"), this.#e.reset?.();
|
|
591297
591297
|
}
|
|
591298
591298
|
flush(t3) {
|
|
591299
|
-
this.ended || (typeof t3 != "number" && (t3 = this.#r), this.write(Object.assign(import_buffer.Buffer.alloc(0), { [
|
|
591299
|
+
this.ended || (typeof t3 != "number" && (t3 = this.#r), this.write(Object.assign(import_buffer.Buffer.alloc(0), { [Bi]: t3 })));
|
|
591300
591300
|
}
|
|
591301
591301
|
end(t3, e2, i6) {
|
|
591302
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);
|
|
@@ -591304,7 +591304,7 @@ var ne3 = class extends D3 {
|
|
|
591304
591304
|
get ended() {
|
|
591305
591305
|
return this.#i;
|
|
591306
591306
|
}
|
|
591307
|
-
[
|
|
591307
|
+
[Tt2](t3) {
|
|
591308
591308
|
return super.write(t3);
|
|
591309
591309
|
}
|
|
591310
591310
|
write(t3, e2, i6) {
|
|
@@ -591315,27 +591315,27 @@ var ne3 = class extends D3 {
|
|
|
591315
591315
|
};
|
|
591316
591316
|
let o3 = this.#e.close;
|
|
591317
591317
|
this.#e.close = () => {
|
|
591318
|
-
},
|
|
591319
|
-
let
|
|
591318
|
+
}, Mi(true);
|
|
591319
|
+
let a3;
|
|
591320
591320
|
try {
|
|
591321
|
-
let l2 = typeof t3[
|
|
591322
|
-
|
|
591321
|
+
let l2 = typeof t3[Bi] == "number" ? t3[Bi] : this.#s;
|
|
591322
|
+
a3 = this.#e._processChunk(t3, l2), Mi(false);
|
|
591323
591323
|
} catch (l2) {
|
|
591324
|
-
|
|
591324
|
+
Mi(false), this.#o(new Gt2(l2, this.write));
|
|
591325
591325
|
} finally {
|
|
591326
591326
|
this.#e && (this.#e._handle = r4, r4.close = n2, this.#e.close = o3, this.#e.removeAllListeners("error"));
|
|
591327
591327
|
}
|
|
591328
591328
|
this.#e && this.#e.on("error", (l2) => this.#o(new Gt2(l2, this.write)));
|
|
591329
|
-
let
|
|
591330
|
-
if (
|
|
591331
|
-
let l2 =
|
|
591332
|
-
|
|
591333
|
-
for (let c5 = 1; c5 <
|
|
591334
|
-
} else
|
|
591335
|
-
return i6 && i6(),
|
|
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;
|
|
591336
591336
|
}
|
|
591337
591337
|
};
|
|
591338
|
-
var Be2 = class extends
|
|
591338
|
+
var Be2 = class extends re3 {
|
|
591339
591339
|
#t;
|
|
591340
591340
|
#i;
|
|
591341
591341
|
constructor(t3, e2) {
|
|
@@ -591366,8 +591366,8 @@ var Pe2 = class extends Be2 {
|
|
|
591366
591366
|
constructor(t3) {
|
|
591367
591367
|
super(t3, "Gzip"), this.#t = t3 && !!t3.portable;
|
|
591368
591368
|
}
|
|
591369
|
-
[
|
|
591370
|
-
return this.#t ? (this.#t = false, t3[9] = 255, super[
|
|
591369
|
+
[Tt2](t3) {
|
|
591370
|
+
return this.#t ? (this.#t = false, t3[9] = 255, super[Tt2](t3)) : super[Tt2](t3);
|
|
591371
591371
|
}
|
|
591372
591372
|
};
|
|
591373
591373
|
var ze2 = class extends Be2 {
|
|
@@ -591375,7 +591375,7 @@ var ze2 = class extends Be2 {
|
|
|
591375
591375
|
super(t3, "Unzip");
|
|
591376
591376
|
}
|
|
591377
591377
|
};
|
|
591378
|
-
var Ue2 = class extends
|
|
591378
|
+
var Ue2 = class extends re3 {
|
|
591379
591379
|
constructor(t3, e2) {
|
|
591380
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);
|
|
591381
591381
|
}
|
|
@@ -591390,7 +591390,7 @@ var We2 = class extends Ue2 {
|
|
|
591390
591390
|
super(t3, "BrotliDecompress");
|
|
591391
591391
|
}
|
|
591392
591392
|
};
|
|
591393
|
-
var Ge2 = class extends
|
|
591393
|
+
var Ge2 = class extends re3 {
|
|
591394
591394
|
constructor(t3, e2) {
|
|
591395
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);
|
|
591396
591396
|
}
|
|
@@ -591405,53 +591405,54 @@ var Ye2 = class extends Ge2 {
|
|
|
591405
591405
|
super(t3, "ZstdDecompress");
|
|
591406
591406
|
}
|
|
591407
591407
|
};
|
|
591408
|
-
var
|
|
591409
|
-
if (Number.isSafeInteger(s5)) s5 < 0 ?
|
|
591408
|
+
var Ps = (s5, t3) => {
|
|
591409
|
+
if (Number.isSafeInteger(s5)) s5 < 0 ? nn(s5, t3) : rn(s5, t3);
|
|
591410
591410
|
else throw Error("cannot encode number outside of javascript safe integer range");
|
|
591411
591411
|
return t3;
|
|
591412
591412
|
};
|
|
591413
|
-
var
|
|
591413
|
+
var rn = (s5, t3) => {
|
|
591414
591414
|
t3[0] = 128;
|
|
591415
591415
|
for (var e2 = t3.length; e2 > 1; e2--) t3[e2 - 1] = s5 & 255, s5 = Math.floor(s5 / 256);
|
|
591416
591416
|
};
|
|
591417
|
-
var
|
|
591417
|
+
var nn = (s5, t3) => {
|
|
591418
591418
|
t3[0] = 255;
|
|
591419
591419
|
var e2 = false;
|
|
591420
591420
|
s5 = s5 * -1;
|
|
591421
591421
|
for (var i6 = t3.length; i6 > 1; i6--) {
|
|
591422
591422
|
var r4 = s5 & 255;
|
|
591423
|
-
s5 = Math.floor(s5 / 256), e2 ? t3[i6 - 1] =
|
|
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));
|
|
591424
591424
|
}
|
|
591425
591425
|
};
|
|
591426
|
-
var
|
|
591427
|
-
let t3 = s5[0], e2 = t3 === 128 ?
|
|
591426
|
+
var zs = (s5) => {
|
|
591427
|
+
let t3 = s5[0], e2 = t3 === 128 ? hn(s5.subarray(1, s5.length)) : t3 === 255 ? on(s5) : null;
|
|
591428
591428
|
if (e2 === null) throw Error("invalid base256 encoding");
|
|
591429
591429
|
if (!Number.isSafeInteger(e2)) throw Error("parsed number outside of javascript safe integer range");
|
|
591430
591430
|
return e2;
|
|
591431
591431
|
};
|
|
591432
|
-
var
|
|
591432
|
+
var on = (s5) => {
|
|
591433
591433
|
for (var t3 = s5.length, e2 = 0, i6 = false, r4 = t3 - 1; r4 > -1; r4--) {
|
|
591434
591434
|
var n2 = Number(s5[r4]), o3;
|
|
591435
|
-
i6 ? o3 =
|
|
591435
|
+
i6 ? o3 = Us(n2) : n2 === 0 ? o3 = n2 : (i6 = true, o3 = Hs(n2)), o3 !== 0 && (e2 -= o3 * Math.pow(256, t3 - r4 - 1));
|
|
591436
591436
|
}
|
|
591437
591437
|
return e2;
|
|
591438
591438
|
};
|
|
591439
|
-
var
|
|
591439
|
+
var hn = (s5) => {
|
|
591440
591440
|
for (var t3 = s5.length, e2 = 0, i6 = t3 - 1; i6 > -1; i6--) {
|
|
591441
591441
|
var r4 = Number(s5[i6]);
|
|
591442
591442
|
r4 !== 0 && (e2 += r4 * Math.pow(256, t3 - i6 - 1));
|
|
591443
591443
|
}
|
|
591444
591444
|
return e2;
|
|
591445
591445
|
};
|
|
591446
|
-
var
|
|
591447
|
-
var
|
|
591448
|
-
var
|
|
591449
|
-
|
|
591450
|
-
var
|
|
591451
|
-
var
|
|
591452
|
-
var
|
|
591453
|
-
var
|
|
591454
|
-
var
|
|
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 {
|
|
591455
591456
|
cksumValid = false;
|
|
591456
591457
|
needPax = false;
|
|
591457
591458
|
nullBlock = false;
|
|
@@ -591478,46 +591479,45 @@ var F4 = class {
|
|
|
591478
591479
|
}
|
|
591479
591480
|
decode(t3, e2, i6, r4) {
|
|
591480
591481
|
if (e2 || (e2 = 0), !t3 || !(t3.length >= e2 + 512)) throw new Error("need 512 bytes for header");
|
|
591481
|
-
|
|
591482
|
-
|
|
591483
|
-
|
|
591484
|
-
|
|
591485
|
-
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;
|
|
591486
591486
|
} else {
|
|
591487
|
-
let
|
|
591488
|
-
|
|
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);
|
|
591489
591489
|
}
|
|
591490
|
-
let
|
|
591491
|
-
for (let
|
|
591492
|
-
for (let
|
|
591493
|
-
this.cksumValid =
|
|
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);
|
|
591494
591494
|
}
|
|
591495
591495
|
#i(t3, e2 = false) {
|
|
591496
591496
|
Object.assign(this, Object.fromEntries(Object.entries(t3).filter(([i6, r4]) => !(r4 == null || i6 === "path" && e2 || i6 === "linkpath" && e2 || i6 === "global"))));
|
|
591497
591497
|
}
|
|
591498
591498
|
encode(t3, e2 = 0) {
|
|
591499
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");
|
|
591500
|
-
let i6 = this.ctime || this.atime ? 130 : 155, r4 =
|
|
591501
|
-
this.needPax = !!r4[2], this.needPax =
|
|
591502
|
-
let
|
|
591503
|
-
for (let
|
|
591504
|
-
for (let
|
|
591505
|
-
return this.cksum =
|
|
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;
|
|
591506
591506
|
}
|
|
591507
591507
|
get type() {
|
|
591508
|
-
return this.#t === "Unsupported" ? this.#t :
|
|
591508
|
+
return this.#t === "Unsupported" ? this.#t : oe2.get(this.#t);
|
|
591509
591509
|
}
|
|
591510
591510
|
get typeKey() {
|
|
591511
591511
|
return this.#t;
|
|
591512
591512
|
}
|
|
591513
591513
|
set type(t3) {
|
|
591514
591514
|
let e2 = String(Ke2.get(t3));
|
|
591515
|
-
if (
|
|
591516
|
-
else if (
|
|
591515
|
+
if (ne3(e2) || e2 === "Unsupported") this.#t = e2;
|
|
591516
|
+
else if (ne3(t3)) this.#t = t3;
|
|
591517
591517
|
else throw new TypeError("invalid entry type: " + t3);
|
|
591518
591518
|
}
|
|
591519
591519
|
};
|
|
591520
|
-
var
|
|
591520
|
+
var cn = (s5, t3) => {
|
|
591521
591521
|
let i6 = s5, r4 = "", n2, o3 = import_node_path10.posix.parse(s5).root || ".";
|
|
591522
591522
|
if (Buffer.byteLength(i6) < 100) n2 = [i6, r4, false];
|
|
591523
591523
|
else {
|
|
@@ -591529,20 +591529,20 @@ var an = (s5, t3) => {
|
|
|
591529
591529
|
}
|
|
591530
591530
|
return n2;
|
|
591531
591531
|
};
|
|
591532
|
-
var
|
|
591533
|
-
var
|
|
591534
|
-
var
|
|
591535
|
-
var at2 = (s5, t3, e2) => Number(s5[t3]) & 128 ?
|
|
591536
|
-
var
|
|
591537
|
-
var
|
|
591538
|
-
var
|
|
591539
|
-
var lt2 = (s5, t3, e2, i6) => i6 === void 0 ? false : i6 >
|
|
591540
|
-
var
|
|
591541
|
-
var
|
|
591542
|
-
var
|
|
591543
|
-
var
|
|
591544
|
-
var
|
|
591545
|
-
var
|
|
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);
|
|
591546
591546
|
var ct2 = class s2 {
|
|
591547
591547
|
atime;
|
|
591548
591548
|
mtime;
|
|
@@ -591569,7 +591569,7 @@ var ct2 = class s2 {
|
|
|
591569
591569
|
if (t3 === "") return Buffer.allocUnsafe(0);
|
|
591570
591570
|
let e2 = Buffer.byteLength(t3), i6 = 512 * Math.ceil(1 + e2 / 512), r4 = Buffer.allocUnsafe(i6);
|
|
591571
591571
|
for (let n2 = 0; n2 < 512; n2++) r4[n2] = 0;
|
|
591572
|
-
new
|
|
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");
|
|
591573
591573
|
for (let n2 = e2 + 512; n2 < r4.length; n2++) r4[n2] = 0;
|
|
591574
591574
|
return r4;
|
|
591575
591575
|
}
|
|
@@ -591583,13 +591583,13 @@ var ct2 = class s2 {
|
|
|
591583
591583
|
return n2 + o3 >= Math.pow(10, o3) && (o3 += 1), o3 + n2 + r4;
|
|
591584
591584
|
}
|
|
591585
591585
|
static parse(t3, e2, i6 = false) {
|
|
591586
|
-
return new s2(
|
|
591586
|
+
return new s2(Rn(gn(t3), e2), i6);
|
|
591587
591587
|
}
|
|
591588
591588
|
};
|
|
591589
|
-
var
|
|
591590
|
-
var
|
|
591591
|
-
`).reduce(
|
|
591592
|
-
var
|
|
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) => {
|
|
591593
591593
|
let e2 = parseInt(t3, 10);
|
|
591594
591594
|
if (e2 !== Buffer.byteLength(t3) + 1) return s5;
|
|
591595
591595
|
t3 = t3.slice((e2 + " ").length);
|
|
@@ -591598,9 +591598,9 @@ var Rn = (s5, t3) => {
|
|
|
591598
591598
|
let n2 = r4.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o3 = i6.join("=");
|
|
591599
591599
|
return s5[n2] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n2) ? new Date(Number(o3) * 1e3) : /^[0-9]+$/.test(o3) ? +o3 : o3, s5;
|
|
591600
591600
|
};
|
|
591601
|
-
var
|
|
591602
|
-
var f2 =
|
|
591603
|
-
var
|
|
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 {
|
|
591604
591604
|
extended;
|
|
591605
591605
|
globalExtended;
|
|
591606
591606
|
header;
|
|
@@ -591664,44 +591664,44 @@ var Yt2 = class extends D3 {
|
|
|
591664
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))));
|
|
591665
591665
|
}
|
|
591666
591666
|
};
|
|
591667
|
-
var
|
|
591667
|
+
var Nt2 = (s5, t3, e2, i6 = {}) => {
|
|
591668
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));
|
|
591669
591669
|
};
|
|
591670
|
-
var
|
|
591671
|
-
var
|
|
591672
|
-
var
|
|
591673
|
-
var
|
|
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);
|
|
591674
591674
|
var B3 = /* @__PURE__ */ Symbol("state");
|
|
591675
|
-
var
|
|
591675
|
+
var Dt2 = /* @__PURE__ */ Symbol("writeEntry");
|
|
591676
591676
|
var et2 = /* @__PURE__ */ Symbol("readEntry");
|
|
591677
|
-
var
|
|
591678
|
-
var
|
|
591677
|
+
var Gi = /* @__PURE__ */ Symbol("nextEntry");
|
|
591678
|
+
var Ws = /* @__PURE__ */ Symbol("processEntry");
|
|
591679
591679
|
var V3 = /* @__PURE__ */ Symbol("extendedHeader");
|
|
591680
|
-
var
|
|
591680
|
+
var he2 = /* @__PURE__ */ Symbol("globalExtendedHeader");
|
|
591681
591681
|
var ft2 = /* @__PURE__ */ Symbol("meta");
|
|
591682
|
-
var
|
|
591682
|
+
var Gs = /* @__PURE__ */ Symbol("emitMeta");
|
|
591683
591683
|
var p3 = /* @__PURE__ */ Symbol("buffer");
|
|
591684
591684
|
var it2 = /* @__PURE__ */ Symbol("queue");
|
|
591685
591685
|
var dt2 = /* @__PURE__ */ Symbol("ended");
|
|
591686
|
-
var
|
|
591686
|
+
var Zi = /* @__PURE__ */ Symbol("emittedEnd");
|
|
591687
591687
|
var At2 = /* @__PURE__ */ Symbol("emit");
|
|
591688
591688
|
var y3 = /* @__PURE__ */ Symbol("unzip");
|
|
591689
|
-
var
|
|
591690
|
-
var
|
|
591691
|
-
var
|
|
591692
|
-
var
|
|
591693
|
-
var
|
|
591694
|
-
var
|
|
591695
|
-
var
|
|
591696
|
-
var
|
|
591697
|
-
var
|
|
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");
|
|
591698
591698
|
var ut2 = /* @__PURE__ */ Symbol("aborted");
|
|
591699
|
-
var
|
|
591700
|
-
var
|
|
591701
|
-
var
|
|
591702
|
-
var
|
|
591703
|
-
var
|
|
591704
|
-
var
|
|
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;
|
|
591705
591705
|
var st2 = class extends import_events3.EventEmitter {
|
|
591706
591706
|
file;
|
|
591707
591707
|
strict;
|
|
@@ -591714,103 +591714,103 @@ var st2 = class extends import_events3.EventEmitter {
|
|
|
591714
591714
|
[it2] = [];
|
|
591715
591715
|
[p3];
|
|
591716
591716
|
[et2];
|
|
591717
|
-
[
|
|
591717
|
+
[Dt2];
|
|
591718
591718
|
[B3] = "begin";
|
|
591719
591719
|
[ft2] = "";
|
|
591720
591720
|
[V3];
|
|
591721
|
-
[
|
|
591721
|
+
[he2];
|
|
591722
591722
|
[dt2] = false;
|
|
591723
591723
|
[y3];
|
|
591724
591724
|
[ut2] = false;
|
|
591725
|
-
[
|
|
591725
|
+
[It2];
|
|
591726
|
+
[Je2] = false;
|
|
591726
591727
|
[je2] = false;
|
|
591727
|
-
[
|
|
591728
|
-
[
|
|
591729
|
-
[
|
|
591730
|
-
[Hi] = false;
|
|
591728
|
+
[Yt2] = false;
|
|
591729
|
+
[ae2] = false;
|
|
591730
|
+
[Zi] = false;
|
|
591731
591731
|
constructor(t3 = {}) {
|
|
591732
|
-
super(), this.file = t3.file || "", this.on(
|
|
591733
|
-
(this[B3] === "begin" || this[
|
|
591734
|
-
}), t3.ondone ? this.on(
|
|
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, () => {
|
|
591735
591735
|
this.emit("prefinish"), this.emit("finish"), this.emit("end");
|
|
591736
|
-
}), this.strict = !!t3.strict, this.maxMetaEntrySize = t3.maxMetaEntrySize ||
|
|
591736
|
+
}), this.strict = !!t3.strict, this.maxMetaEntrySize = t3.maxMetaEntrySize || Tn, this.filter = typeof t3.filter == "function" ? t3.filter : Ln;
|
|
591737
591737
|
let e2 = t3.file && (t3.file.endsWith(".tar.br") || t3.file.endsWith(".tbr"));
|
|
591738
591738
|
this.brotli = !(t3.gzip || t3.zstd) && t3.brotli !== void 0 ? t3.brotli : e2 ? void 0 : false;
|
|
591739
591739
|
let i6 = t3.file && (t3.file.endsWith(".tar.zst") || t3.file.endsWith(".tzst"));
|
|
591740
|
-
this.zstd = !(t3.gzip || t3.brotli) && t3.zstd !== void 0 ? t3.zstd : i6 ? true : void 0, this.on("end", () => this[
|
|
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);
|
|
591741
591741
|
}
|
|
591742
591742
|
warn(t3, e2, i6 = {}) {
|
|
591743
|
-
|
|
591743
|
+
Nt2(this, t3, e2, i6);
|
|
591744
591744
|
}
|
|
591745
|
-
[
|
|
591746
|
-
this[
|
|
591745
|
+
[Ys](t3, e2) {
|
|
591746
|
+
this[It2] === void 0 && (this[It2] = false);
|
|
591747
591747
|
let i6;
|
|
591748
591748
|
try {
|
|
591749
|
-
i6 = new
|
|
591749
|
+
i6 = new C4(t3, e2, this[V3], this[he2]);
|
|
591750
591750
|
} catch (r4) {
|
|
591751
591751
|
return this.warn("TAR_ENTRY_INVALID", r4);
|
|
591752
591752
|
}
|
|
591753
|
-
if (i6.nullBlock) this[
|
|
591754
|
-
else if (this[
|
|
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 });
|
|
591755
591755
|
else if (!i6.path) this.warn("TAR_ENTRY_INVALID", "path is required", { header: i6 });
|
|
591756
591756
|
else {
|
|
591757
591757
|
let r4 = i6.type;
|
|
591758
591758
|
if (/^(Symbolic)?Link$/.test(r4) && !i6.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath required", { header: i6 });
|
|
591759
591759
|
else if (!/^(Symbolic)?Link$/.test(r4) && !/^(Global)?ExtendedHeader$/.test(r4) && i6.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header: i6 });
|
|
591760
591760
|
else {
|
|
591761
|
-
let n2 = this[
|
|
591762
|
-
if (!this[
|
|
591761
|
+
let n2 = this[Dt2] = new Ve2(i6, this[V3], this[he2]);
|
|
591762
|
+
if (!this[It2]) if (n2.remain) {
|
|
591763
591763
|
let o3 = () => {
|
|
591764
|
-
n2.invalid || (this[
|
|
591764
|
+
n2.invalid || (this[It2] = true);
|
|
591765
591765
|
};
|
|
591766
591766
|
n2.on("end", o3);
|
|
591767
|
-
} else this[
|
|
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[
|
|
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]())));
|
|
591769
591769
|
}
|
|
591770
591770
|
}
|
|
591771
591771
|
}
|
|
591772
|
-
[
|
|
591772
|
+
[Ks]() {
|
|
591773
591773
|
queueMicrotask(() => this.emit("close"));
|
|
591774
591774
|
}
|
|
591775
|
-
[
|
|
591775
|
+
[Ws](t3) {
|
|
591776
591776
|
let e2 = true;
|
|
591777
591777
|
if (!t3) this[et2] = void 0, e2 = false;
|
|
591778
591778
|
else if (Array.isArray(t3)) {
|
|
591779
591779
|
let [i6, ...r4] = t3;
|
|
591780
591780
|
this.emit(i6, ...r4);
|
|
591781
|
-
} else this[et2] = t3, this.emit("entry", t3), t3.emittedEnd || (t3.on("end", () => this[
|
|
591781
|
+
} else this[et2] = t3, this.emit("entry", t3), t3.emittedEnd || (t3.on("end", () => this[Gi]()), e2 = false);
|
|
591782
591782
|
return e2;
|
|
591783
591783
|
}
|
|
591784
|
-
[
|
|
591784
|
+
[Gi]() {
|
|
591785
591785
|
do
|
|
591786
591786
|
;
|
|
591787
|
-
while (this[
|
|
591787
|
+
while (this[Ws](this[it2].shift()));
|
|
591788
591788
|
if (this[it2].length === 0) {
|
|
591789
591789
|
let t3 = this[et2];
|
|
591790
|
-
!t3 || t3.flowing || t3.size === t3.remain ? this[
|
|
591790
|
+
!t3 || t3.flowing || t3.size === t3.remain ? this[Yt2] || this.emit("drain") : t3.once("drain", () => this.emit("drain"));
|
|
591791
591791
|
}
|
|
591792
591792
|
}
|
|
591793
|
-
[
|
|
591794
|
-
let i6 = this[
|
|
591793
|
+
[Yi](t3, e2) {
|
|
591794
|
+
let i6 = this[Dt2];
|
|
591795
591795
|
if (!i6) throw new Error("attempt to consume body without entry??");
|
|
591796
591796
|
let r4 = i6.blockRemain ?? 0, n2 = r4 >= t3.length && e2 === 0 ? t3 : t3.subarray(e2, e2 + r4);
|
|
591797
|
-
return i6.write(n2), i6.blockRemain || (this[B3] = "header", this[
|
|
591797
|
+
return i6.write(n2), i6.blockRemain || (this[B3] = "header", this[Dt2] = void 0, i6.end()), n2.length;
|
|
591798
591798
|
}
|
|
591799
|
-
[
|
|
591800
|
-
let i6 = this[
|
|
591801
|
-
return !this[
|
|
591799
|
+
[Zs](t3, e2) {
|
|
591800
|
+
let i6 = this[Dt2], r4 = this[Yi](t3, e2);
|
|
591801
|
+
return !this[Dt2] && i6 && this[Gs](i6), r4;
|
|
591802
591802
|
}
|
|
591803
591803
|
[At2](t3, e2, i6) {
|
|
591804
591804
|
this[it2].length === 0 && !this[et2] ? this.emit(t3, e2, i6) : this[it2].push([t3, e2, i6]);
|
|
591805
591805
|
}
|
|
591806
|
-
[
|
|
591806
|
+
[Gs](t3) {
|
|
591807
591807
|
switch (this[At2]("meta", this[ft2]), t3.type) {
|
|
591808
591808
|
case "ExtendedHeader":
|
|
591809
591809
|
case "OldExtendedHeader":
|
|
591810
591810
|
this[V3] = ct2.parse(this[ft2], this[V3], false);
|
|
591811
591811
|
break;
|
|
591812
591812
|
case "GlobalExtendedHeader":
|
|
591813
|
-
this[
|
|
591813
|
+
this[he2] = ct2.parse(this[ft2], this[he2], true);
|
|
591814
591814
|
break;
|
|
591815
591815
|
case "NextFileHasLongPath":
|
|
591816
591816
|
case "OldGnuLongPath": {
|
|
@@ -591833,81 +591833,81 @@ var st2 = class extends import_events3.EventEmitter {
|
|
|
591833
591833
|
write(t3, e2, i6) {
|
|
591834
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;
|
|
591835
591835
|
if ((this[y3] === void 0 || this.brotli === void 0 && this[y3] === false) && t3) {
|
|
591836
|
-
if (this[p3] && (t3 = Buffer.concat([this[p3], t3]), this[p3] = void 0), t3.length <
|
|
591837
|
-
for (let
|
|
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);
|
|
591838
591838
|
let o3 = false;
|
|
591839
591839
|
if (this[y3] === false && this.zstd !== false) {
|
|
591840
591840
|
o3 = true;
|
|
591841
|
-
for (let
|
|
591841
|
+
for (let h4 = 0; h4 < $i.length; h4++) if (t3[h4] !== $i[h4]) {
|
|
591842
591842
|
o3 = false;
|
|
591843
591843
|
break;
|
|
591844
591844
|
}
|
|
591845
591845
|
}
|
|
591846
|
-
let
|
|
591847
|
-
if (this[y3] === false &&
|
|
591846
|
+
let a3 = this.brotli === void 0 && !o3;
|
|
591847
|
+
if (this[y3] === false && a3) if (t3.length < 512) if (this[dt2]) this.brotli = true;
|
|
591848
591848
|
else return this[p3] = t3, i6?.(), true;
|
|
591849
591849
|
else try {
|
|
591850
|
-
new
|
|
591850
|
+
new C4(t3.subarray(0, 512)), this.brotli = false;
|
|
591851
591851
|
} catch {
|
|
591852
591852
|
this.brotli = true;
|
|
591853
591853
|
}
|
|
591854
591854
|
if (this[y3] === void 0 || this[y3] === false && (this.brotli || o3)) {
|
|
591855
|
-
let
|
|
591856
|
-
this[dt2] = false, this[y3] = this[y3] === void 0 ? new ze2({}) : o3 ? new Ye2({}) : new We2({}), this[y3].on("data", (c5) => this[
|
|
591857
|
-
this[dt2] = true, this[
|
|
591858
|
-
}), this[
|
|
591859
|
-
let l2 = !!this[y3][
|
|
591860
|
-
return this[
|
|
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;
|
|
591861
591861
|
}
|
|
591862
591862
|
}
|
|
591863
|
-
this[
|
|
591863
|
+
this[Yt2] = true, this[y3] ? this[y3].write(t3) : this[$e2](t3), this[Yt2] = false;
|
|
591864
591864
|
let n2 = this[it2].length > 0 ? false : this[et2] ? this[et2].flowing : true;
|
|
591865
591865
|
return !n2 && this[it2].length === 0 && this[et2]?.once("drain", () => this.emit("drain")), i6?.(), n2;
|
|
591866
591866
|
}
|
|
591867
|
-
[
|
|
591867
|
+
[Ki](t3) {
|
|
591868
591868
|
t3 && !this[ut2] && (this[p3] = this[p3] ? Buffer.concat([this[p3], t3]) : t3);
|
|
591869
591869
|
}
|
|
591870
|
-
[
|
|
591871
|
-
if (this[dt2] && !this[
|
|
591872
|
-
this[
|
|
591873
|
-
let t3 = this[
|
|
591870
|
+
[qe2]() {
|
|
591871
|
+
if (this[dt2] && !this[Zi] && !this[ut2] && !this[ae2]) {
|
|
591872
|
+
this[Zi] = true;
|
|
591873
|
+
let t3 = this[Dt2];
|
|
591874
591874
|
if (t3 && t3.blockRemain) {
|
|
591875
591875
|
let e2 = this[p3] ? this[p3].length : 0;
|
|
591876
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();
|
|
591877
591877
|
}
|
|
591878
|
-
this[At2](
|
|
591878
|
+
this[At2](Qe2);
|
|
591879
591879
|
}
|
|
591880
591880
|
}
|
|
591881
|
-
[
|
|
591882
|
-
if (this[
|
|
591883
|
-
else if (!t3 && !this[p3]) this[
|
|
591881
|
+
[$e2](t3) {
|
|
591882
|
+
if (this[ae2] && t3) this[Ki](t3);
|
|
591883
|
+
else if (!t3 && !this[p3]) this[qe2]();
|
|
591884
591884
|
else if (t3) {
|
|
591885
|
-
if (this[
|
|
591886
|
-
this[
|
|
591885
|
+
if (this[ae2] = true, this[p3]) {
|
|
591886
|
+
this[Ki](t3);
|
|
591887
591887
|
let e2 = this[p3];
|
|
591888
|
-
this[p3] = void 0, this[
|
|
591889
|
-
} else this[
|
|
591890
|
-
for (; this[p3] && this[p3]?.length >= 512 && !this[ut2] && !this[
|
|
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]; ) {
|
|
591891
591891
|
let e2 = this[p3];
|
|
591892
|
-
this[p3] = void 0, this[
|
|
591892
|
+
this[p3] = void 0, this[Xe2](e2);
|
|
591893
591893
|
}
|
|
591894
|
-
this[
|
|
591894
|
+
this[ae2] = false;
|
|
591895
591895
|
}
|
|
591896
|
-
(!this[p3] || this[dt2]) && this[
|
|
591896
|
+
(!this[p3] || this[dt2]) && this[qe2]();
|
|
591897
591897
|
}
|
|
591898
|
-
[
|
|
591898
|
+
[Xe2](t3) {
|
|
591899
591899
|
let e2 = 0, i6 = t3.length;
|
|
591900
|
-
for (; e2 + 512 <= i6 && !this[ut2] && !this[
|
|
591900
|
+
for (; e2 + 512 <= i6 && !this[ut2] && !this[je2]; ) switch (this[B3]) {
|
|
591901
591901
|
case "begin":
|
|
591902
591902
|
case "header":
|
|
591903
|
-
this[
|
|
591903
|
+
this[Ys](t3, e2), e2 += 512;
|
|
591904
591904
|
break;
|
|
591905
591905
|
case "ignore":
|
|
591906
591906
|
case "body":
|
|
591907
|
-
e2 += this[
|
|
591907
|
+
e2 += this[Yi](t3, e2);
|
|
591908
591908
|
break;
|
|
591909
591909
|
case "meta":
|
|
591910
|
-
e2 += this[
|
|
591910
|
+
e2 += this[Zs](t3, e2);
|
|
591911
591911
|
break;
|
|
591912
591912
|
default:
|
|
591913
591913
|
throw new Error("invalid state: " + this[B3]);
|
|
@@ -591915,7 +591915,7 @@ var st2 = class extends import_events3.EventEmitter {
|
|
|
591915
591915
|
e2 < i6 && (this[p3] = this[p3] ? Buffer.concat([t3.subarray(e2), this[p3]]) : t3.subarray(e2));
|
|
591916
591916
|
}
|
|
591917
591917
|
end(t3, e2, i6) {
|
|
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[
|
|
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;
|
|
591919
591919
|
}
|
|
591920
591920
|
};
|
|
591921
591921
|
var mt2 = (s5) => {
|
|
@@ -591923,38 +591923,38 @@ var mt2 = (s5) => {
|
|
|
591923
591923
|
for (; t3 > -1 && s5.charAt(t3) === "/"; ) e2 = t3, t3--;
|
|
591924
591924
|
return e2 === -1 ? s5 : s5.slice(0, e2);
|
|
591925
591925
|
};
|
|
591926
|
-
var
|
|
591926
|
+
var An = (s5) => {
|
|
591927
591927
|
let t3 = s5.onReadEntry;
|
|
591928
591928
|
s5.onReadEntry = t3 ? (e2) => {
|
|
591929
591929
|
t3(e2), e2.resume();
|
|
591930
591930
|
} : (e2) => e2.resume();
|
|
591931
591931
|
};
|
|
591932
|
-
var
|
|
591932
|
+
var Xi = (s5, t3) => {
|
|
591933
591933
|
let e2 = new Map(t3.map((n2) => [mt2(n2), true])), i6 = s5.filter, r4 = (n2, o3 = "") => {
|
|
591934
|
-
let
|
|
591935
|
-
if (n2 ===
|
|
591934
|
+
let a3 = o3 || (0, import_path28.parse)(n2).root || ".", h4;
|
|
591935
|
+
if (n2 === a3) h4 = false;
|
|
591936
591936
|
else {
|
|
591937
591937
|
let l2 = e2.get(n2);
|
|
591938
|
-
|
|
591938
|
+
h4 = l2 !== void 0 ? l2 : r4((0, import_path28.dirname)(n2), a3);
|
|
591939
591939
|
}
|
|
591940
|
-
return e2.set(n2,
|
|
591940
|
+
return e2.set(n2, h4), h4;
|
|
591941
591941
|
};
|
|
591942
591942
|
s5.filter = i6 ? (n2, o3) => i6(n2, o3) && r4(mt2(n2)) : (n2) => r4(mt2(n2));
|
|
591943
591943
|
};
|
|
591944
|
-
var
|
|
591944
|
+
var In = (s5) => {
|
|
591945
591945
|
let t3 = new st2(s5), e2 = s5.file, i6;
|
|
591946
591946
|
try {
|
|
591947
591947
|
i6 = import_node_fs6.default.openSync(e2, "r");
|
|
591948
591948
|
let r4 = import_node_fs6.default.fstatSync(i6), n2 = s5.maxReadSize || 16 * 1024 * 1024;
|
|
591949
591949
|
if (r4.size < n2) {
|
|
591950
|
-
let o3 = Buffer.allocUnsafe(r4.size),
|
|
591951
|
-
t3.end(
|
|
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));
|
|
591952
591952
|
} else {
|
|
591953
|
-
let o3 = 0,
|
|
591953
|
+
let o3 = 0, a3 = Buffer.allocUnsafe(n2);
|
|
591954
591954
|
for (; o3 < r4.size; ) {
|
|
591955
|
-
let
|
|
591956
|
-
if (
|
|
591957
|
-
o3 +=
|
|
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));
|
|
591958
591958
|
}
|
|
591959
591959
|
t3.end();
|
|
591960
591960
|
}
|
|
@@ -591965,58 +591965,58 @@ var An = (s5) => {
|
|
|
591965
591965
|
}
|
|
591966
591966
|
}
|
|
591967
591967
|
};
|
|
591968
|
-
var
|
|
591968
|
+
var Fn = (s5, t3) => {
|
|
591969
591969
|
let e2 = new st2(s5), i6 = s5.maxReadSize || 16 * 1024 * 1024, r4 = s5.file;
|
|
591970
|
-
return new Promise((o3,
|
|
591971
|
-
e2.on("error",
|
|
591972
|
-
if (
|
|
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);
|
|
591973
591973
|
else {
|
|
591974
591974
|
let c5 = new _t2(r4, { readSize: i6, size: l2.size });
|
|
591975
|
-
c5.on("error",
|
|
591975
|
+
c5.on("error", a3), c5.pipe(e2);
|
|
591976
591976
|
}
|
|
591977
591977
|
});
|
|
591978
591978
|
});
|
|
591979
591979
|
};
|
|
591980
|
-
var
|
|
591981
|
-
t3?.length &&
|
|
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);
|
|
591982
591982
|
});
|
|
591983
|
-
var
|
|
591984
|
-
var { isAbsolute:
|
|
591985
|
-
var
|
|
591986
|
-
let t3 = "", e2 =
|
|
591987
|
-
for (;
|
|
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; ) {
|
|
591988
591988
|
let i6 = s5.charAt(0) === "/" && s5.slice(0, 4) !== "//?/" ? "/" : e2.root;
|
|
591989
|
-
s5 = s5.slice(i6.length), t3 += i6, e2 =
|
|
591989
|
+
s5 = s5.slice(i6.length), t3 += i6, e2 = Vs(s5);
|
|
591990
591990
|
}
|
|
591991
591991
|
return [t3, s5];
|
|
591992
591992
|
};
|
|
591993
|
-
var
|
|
591994
|
-
var
|
|
591995
|
-
var
|
|
591996
|
-
var
|
|
591997
|
-
var
|
|
591998
|
-
var
|
|
591999
|
-
var
|
|
592000
|
-
var
|
|
592001
|
-
var
|
|
592002
|
-
var
|
|
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");
|
|
592003
592003
|
var js = /* @__PURE__ */ Symbol("directory");
|
|
592004
|
-
var
|
|
592005
|
-
var
|
|
592006
|
-
var
|
|
592007
|
-
var
|
|
592008
|
-
var
|
|
592009
|
-
var
|
|
592010
|
-
var
|
|
592011
|
-
var
|
|
592012
|
-
var
|
|
592013
|
-
var
|
|
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");
|
|
592014
592014
|
var pt2 = /* @__PURE__ */ Symbol("close");
|
|
592015
|
-
var
|
|
592016
|
-
var
|
|
592017
|
-
var
|
|
592015
|
+
var si = /* @__PURE__ */ Symbol("mode");
|
|
592016
|
+
var os4 = /* @__PURE__ */ Symbol("awaitDrain");
|
|
592017
|
+
var ji = /* @__PURE__ */ Symbol("ondrain");
|
|
592018
592018
|
var X3 = /* @__PURE__ */ Symbol("prefix");
|
|
592019
|
-
var
|
|
592019
|
+
var fe2 = class extends A3 {
|
|
592020
592020
|
path;
|
|
592021
592021
|
portable;
|
|
592022
592022
|
myuid = process.getuid && process.getuid() || 0;
|
|
@@ -592048,110 +592048,110 @@ var de2 = class extends D3 {
|
|
|
592048
592048
|
onWriteEntry;
|
|
592049
592049
|
#t = false;
|
|
592050
592050
|
constructor(t3, e2 = {}) {
|
|
592051
|
-
let i6 =
|
|
592052
|
-
super(), this.path = f2(t3), this.portable = !!i6.portable, this.maxReadSize = i6.maxReadSize ||
|
|
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);
|
|
592053
592053
|
let r4 = false;
|
|
592054
592054
|
if (!this.preservePaths) {
|
|
592055
|
-
let [o3,
|
|
592056
|
-
o3 && typeof
|
|
592055
|
+
let [o3, a3] = le2(this.path);
|
|
592056
|
+
o3 && typeof a3 == "string" && (this.path = a3, r4 = o3);
|
|
592057
592057
|
}
|
|
592058
|
-
this.win32 = !!i6.win32 || process.platform === "win32", this.win32 && (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 });
|
|
592059
592059
|
let n2 = this.statCache.get(this.absolute);
|
|
592060
|
-
n2 ? this[
|
|
592060
|
+
n2 ? this[ii](n2) : this[es]();
|
|
592061
592061
|
}
|
|
592062
592062
|
warn(t3, e2, i6 = {}) {
|
|
592063
|
-
return
|
|
592063
|
+
return Nt2(this, t3, e2, i6);
|
|
592064
592064
|
}
|
|
592065
592065
|
emit(t3, ...e2) {
|
|
592066
592066
|
return t3 === "error" && (this.#t = true), super.emit(t3, ...e2);
|
|
592067
592067
|
}
|
|
592068
|
-
[
|
|
592068
|
+
[es]() {
|
|
592069
592069
|
import_fs15.default.lstat(this.absolute, (t3, e2) => {
|
|
592070
592070
|
if (t3) return this.emit("error", t3);
|
|
592071
|
-
this[
|
|
592071
|
+
this[ii](e2);
|
|
592072
592072
|
});
|
|
592073
592073
|
}
|
|
592074
|
-
[
|
|
592075
|
-
this.statCache.set(this.absolute, t3), this.stat = t3, t3.isFile() || (t3.size = 0), this.type =
|
|
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]();
|
|
592076
592076
|
}
|
|
592077
|
-
[
|
|
592077
|
+
[Qs]() {
|
|
592078
592078
|
switch (this.type) {
|
|
592079
592079
|
case "File":
|
|
592080
|
-
return this[
|
|
592080
|
+
return this[Js]();
|
|
592081
592081
|
case "Directory":
|
|
592082
592082
|
return this[js]();
|
|
592083
592083
|
case "SymbolicLink":
|
|
592084
|
-
return this[
|
|
592084
|
+
return this[ts]();
|
|
592085
592085
|
default:
|
|
592086
592086
|
return this.end();
|
|
592087
592087
|
}
|
|
592088
592088
|
}
|
|
592089
|
-
[
|
|
592090
|
-
return
|
|
592089
|
+
[si](t3) {
|
|
592090
|
+
return qi(t3, this.type === "Directory", this.portable);
|
|
592091
592091
|
}
|
|
592092
592092
|
[X3](t3) {
|
|
592093
|
-
return
|
|
592093
|
+
return er2(t3, this.prefix);
|
|
592094
592094
|
}
|
|
592095
|
-
[
|
|
592095
|
+
[ce2]() {
|
|
592096
592096
|
if (!this.stat) throw new Error("cannot write header before stat");
|
|
592097
|
-
this.type === "Directory" && this.portable && (this.noMtime = true), this.onWriteEntry?.(this), this.header = new
|
|
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());
|
|
592098
592098
|
let t3 = this.header?.block;
|
|
592099
592099
|
if (!t3) throw new Error("failed to encode header");
|
|
592100
592100
|
super.write(t3);
|
|
592101
592101
|
}
|
|
592102
592102
|
[js]() {
|
|
592103
592103
|
if (!this.stat) throw new Error("cannot create directory entry without stat");
|
|
592104
|
-
this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[
|
|
592104
|
+
this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[ce2](), this.end();
|
|
592105
592105
|
}
|
|
592106
|
-
[
|
|
592106
|
+
[ts]() {
|
|
592107
592107
|
import_fs15.default.readlink(this.absolute, (t3, e2) => {
|
|
592108
592108
|
if (t3) return this.emit("error", t3);
|
|
592109
|
-
this[
|
|
592109
|
+
this[ss](e2);
|
|
592110
592110
|
});
|
|
592111
592111
|
}
|
|
592112
|
-
[
|
|
592113
|
-
this.linkpath = f2(t3), this[
|
|
592112
|
+
[ss](t3) {
|
|
592113
|
+
this.linkpath = f2(t3), this[ce2](), this.end();
|
|
592114
592114
|
}
|
|
592115
|
-
[
|
|
592115
|
+
[tr2](t3) {
|
|
592116
592116
|
if (!this.stat) throw new Error("cannot create link entry without stat");
|
|
592117
|
-
this.type = "Link", this.linkpath = f2(import_path29.default.relative(this.cwd, t3)), this.stat.size = 0, this[
|
|
592117
|
+
this.type = "Link", this.linkpath = f2(import_path29.default.relative(this.cwd, t3)), this.stat.size = 0, this[ce2](), this.end();
|
|
592118
592118
|
}
|
|
592119
|
-
[
|
|
592119
|
+
[Js]() {
|
|
592120
592120
|
if (!this.stat) throw new Error("cannot create file entry without stat");
|
|
592121
592121
|
if (this.stat.nlink > 1) {
|
|
592122
592122
|
let t3 = `${this.stat.dev}:${this.stat.ino}`, e2 = this.linkCache.get(t3);
|
|
592123
|
-
if (e2?.indexOf(this.cwd) === 0) return this[
|
|
592123
|
+
if (e2?.indexOf(this.cwd) === 0) return this[tr2](e2);
|
|
592124
592124
|
this.linkCache.set(t3, this.absolute);
|
|
592125
592125
|
}
|
|
592126
|
-
if (this[
|
|
592127
|
-
this[
|
|
592126
|
+
if (this[ce2](), this.stat.size === 0) return this.end();
|
|
592127
|
+
this[rs]();
|
|
592128
592128
|
}
|
|
592129
|
-
[
|
|
592129
|
+
[rs]() {
|
|
592130
592130
|
import_fs15.default.open(this.absolute, "r", (t3, e2) => {
|
|
592131
592131
|
if (t3) return this.emit("error", t3);
|
|
592132
|
-
this[
|
|
592132
|
+
this[ns](e2);
|
|
592133
592133
|
});
|
|
592134
592134
|
}
|
|
592135
|
-
[
|
|
592135
|
+
[ns](t3) {
|
|
592136
592136
|
if (this.fd = t3, this.#t) return this[pt2]();
|
|
592137
592137
|
if (!this.stat) throw new Error("should stat before calling onopenfile");
|
|
592138
592138
|
this.blockLen = 512 * Math.ceil(this.stat.size / 512), this.blockRemain = this.blockLen;
|
|
592139
592139
|
let e2 = Math.min(this.blockLen, this.maxReadSize);
|
|
592140
|
-
this.buf = Buffer.allocUnsafe(e2), this.offset = 0, this.pos = 0, this.remain = this.stat.size, this.length = this.buf.length, this[
|
|
592140
|
+
this.buf = Buffer.allocUnsafe(e2), this.offset = 0, this.pos = 0, this.remain = this.stat.size, this.length = this.buf.length, this[ei]();
|
|
592141
592141
|
}
|
|
592142
|
-
[
|
|
592142
|
+
[ei]() {
|
|
592143
592143
|
let { fd: t3, buf: e2, offset: i6, length: r4, pos: n2 } = this;
|
|
592144
592144
|
if (t3 === void 0 || e2 === void 0) throw new Error("cannot read file without first opening");
|
|
592145
|
-
import_fs15.default.read(t3, e2, i6, r4, n2, (o3,
|
|
592145
|
+
import_fs15.default.read(t3, e2, i6, r4, n2, (o3, a3) => {
|
|
592146
592146
|
if (o3) return this[pt2](() => this.emit("error", o3));
|
|
592147
|
-
this[
|
|
592147
|
+
this[is](a3);
|
|
592148
592148
|
});
|
|
592149
592149
|
}
|
|
592150
592150
|
[pt2](t3 = () => {
|
|
592151
592151
|
}) {
|
|
592152
592152
|
this.fd !== void 0 && import_fs15.default.close(this.fd, t3);
|
|
592153
592153
|
}
|
|
592154
|
-
[
|
|
592154
|
+
[is](t3) {
|
|
592155
592155
|
if (t3 <= 0 && this.remain > 0) {
|
|
592156
592156
|
let r4 = Object.assign(new Error("encountered unexpected EOF"), { path: this.absolute, syscall: "read", code: "EOF" });
|
|
592157
592157
|
return this[pt2](() => this.emit("error", r4));
|
|
@@ -592163,9 +592163,9 @@ var de2 = class extends D3 {
|
|
|
592163
592163
|
if (!this.buf) throw new Error("should have created buffer prior to reading");
|
|
592164
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++;
|
|
592165
592165
|
let e2 = this.offset === 0 && t3 === this.buf.length ? this.buf : this.buf.subarray(this.offset, this.offset + t3);
|
|
592166
|
-
this.write(e2) ? this[
|
|
592166
|
+
this.write(e2) ? this[ji]() : this[os4](() => this[ji]());
|
|
592167
592167
|
}
|
|
592168
|
-
[
|
|
592168
|
+
[os4](t3) {
|
|
592169
592169
|
this.once("drain", t3);
|
|
592170
592170
|
}
|
|
592171
592171
|
write(t3, e2, i6) {
|
|
@@ -592175,30 +592175,30 @@ var de2 = class extends D3 {
|
|
|
592175
592175
|
}
|
|
592176
592176
|
return this.remain -= t3.length, this.blockRemain -= t3.length, this.pos += t3.length, this.offset += t3.length, super.write(t3, null, i6);
|
|
592177
592177
|
}
|
|
592178
|
-
[
|
|
592178
|
+
[ji]() {
|
|
592179
592179
|
if (!this.remain) return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), this[pt2]((t3) => t3 ? this.emit("error", t3) : this.end());
|
|
592180
592180
|
if (!this.buf) throw new Error("buffer lost somehow in ONDRAIN");
|
|
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[
|
|
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]();
|
|
592182
592182
|
}
|
|
592183
592183
|
};
|
|
592184
|
-
var
|
|
592184
|
+
var ri = class extends fe2 {
|
|
592185
592185
|
sync = true;
|
|
592186
|
-
[
|
|
592187
|
-
this[
|
|
592186
|
+
[es]() {
|
|
592187
|
+
this[ii](import_fs15.default.lstatSync(this.absolute));
|
|
592188
592188
|
}
|
|
592189
|
-
[
|
|
592190
|
-
this[
|
|
592189
|
+
[ts]() {
|
|
592190
|
+
this[ss](import_fs15.default.readlinkSync(this.absolute));
|
|
592191
592191
|
}
|
|
592192
|
-
[
|
|
592193
|
-
this[
|
|
592192
|
+
[rs]() {
|
|
592193
|
+
this[ns](import_fs15.default.openSync(this.absolute, "r"));
|
|
592194
592194
|
}
|
|
592195
|
-
[
|
|
592195
|
+
[ei]() {
|
|
592196
592196
|
let t3 = true;
|
|
592197
592197
|
try {
|
|
592198
592198
|
let { fd: e2, buf: i6, offset: r4, length: n2, pos: o3 } = this;
|
|
592199
592199
|
if (e2 === void 0 || i6 === void 0) throw new Error("fd and buf must be set in READ method");
|
|
592200
|
-
let
|
|
592201
|
-
this[
|
|
592200
|
+
let a3 = import_fs15.default.readSync(e2, i6, r4, n2, o3);
|
|
592201
|
+
this[is](a3), t3 = false;
|
|
592202
592202
|
} finally {
|
|
592203
592203
|
if (t3) try {
|
|
592204
592204
|
this[pt2](() => {
|
|
@@ -592207,7 +592207,7 @@ var si = class extends de2 {
|
|
|
592207
592207
|
}
|
|
592208
592208
|
}
|
|
592209
592209
|
}
|
|
592210
|
-
[
|
|
592210
|
+
[os4](t3) {
|
|
592211
592211
|
t3();
|
|
592212
592212
|
}
|
|
592213
592213
|
[pt2](t3 = () => {
|
|
@@ -592215,7 +592215,7 @@ var si = class extends de2 {
|
|
|
592215
592215
|
this.fd !== void 0 && import_fs15.default.closeSync(this.fd), t3();
|
|
592216
592216
|
}
|
|
592217
592217
|
};
|
|
592218
|
-
var
|
|
592218
|
+
var ni = class extends A3 {
|
|
592219
592219
|
blockLen = 0;
|
|
592220
592220
|
blockRemain = 0;
|
|
592221
592221
|
buf = 0;
|
|
@@ -592244,29 +592244,29 @@ var ri = class extends D3 {
|
|
|
592244
592244
|
size;
|
|
592245
592245
|
onWriteEntry;
|
|
592246
592246
|
warn(t3, e2, i6 = {}) {
|
|
592247
|
-
return
|
|
592247
|
+
return Nt2(this, t3, e2, i6);
|
|
592248
592248
|
}
|
|
592249
592249
|
constructor(t3, e2 = {}) {
|
|
592250
|
-
let i6 =
|
|
592250
|
+
let i6 = se2(e2);
|
|
592251
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;
|
|
592252
592252
|
let { type: r4 } = t3;
|
|
592253
592253
|
if (r4 === "Unsupported") throw new Error("writing entry that should be ignored");
|
|
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[
|
|
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);
|
|
592255
592255
|
let n2 = false;
|
|
592256
592256
|
if (!this.preservePaths) {
|
|
592257
|
-
let [
|
|
592258
|
-
|
|
592257
|
+
let [a3, h4] = le2(this.path);
|
|
592258
|
+
a3 && typeof h4 == "string" && (this.path = h4, n2 = a3);
|
|
592259
592259
|
}
|
|
592260
|
-
this.remain = t3.size, this.blockRemain = t3.startBlockSize, this.onWriteEntry?.(this), this.header = new
|
|
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());
|
|
592261
592261
|
let o3 = this.header?.block;
|
|
592262
592262
|
if (!o3) throw new Error("failed to encode header");
|
|
592263
592263
|
super.write(o3), t3.pipe(this);
|
|
592264
592264
|
}
|
|
592265
592265
|
[X3](t3) {
|
|
592266
|
-
return
|
|
592266
|
+
return er2(t3, this.prefix);
|
|
592267
592267
|
}
|
|
592268
|
-
[
|
|
592269
|
-
return
|
|
592268
|
+
[si](t3) {
|
|
592269
|
+
return qi(t3, this.type === "Directory", this.portable);
|
|
592270
592270
|
}
|
|
592271
592271
|
write(t3, e2, i6) {
|
|
592272
592272
|
typeof e2 == "function" && (i6 = e2, e2 = void 0), typeof t3 == "string" && (t3 = Buffer.from(t3, typeof e2 == "string" ? e2 : "utf8"));
|
|
@@ -592278,8 +592278,8 @@ var ri = class extends D3 {
|
|
|
592278
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;
|
|
592279
592279
|
}
|
|
592280
592280
|
};
|
|
592281
|
-
var
|
|
592282
|
-
var
|
|
592281
|
+
var Pn = (s5) => s5.isFile() ? "File" : s5.isDirectory() ? "Directory" : s5.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
|
|
592282
|
+
var oi = class s3 {
|
|
592283
592283
|
tail;
|
|
592284
592284
|
head;
|
|
592285
592285
|
length = 0;
|
|
@@ -592310,11 +592310,11 @@ var ni = class s3 {
|
|
|
592310
592310
|
t3.list = this, t3.prev = e2, e2 && (e2.next = t3), this.tail = t3, this.head || (this.head = t3), this.length++;
|
|
592311
592311
|
}
|
|
592312
592312
|
push(...t3) {
|
|
592313
|
-
for (let e2 = 0, i6 = t3.length; e2 < i6; e2++)
|
|
592313
|
+
for (let e2 = 0, i6 = t3.length; e2 < i6; e2++) Un(this, t3[e2]);
|
|
592314
592314
|
return this.length;
|
|
592315
592315
|
}
|
|
592316
592316
|
unshift(...t3) {
|
|
592317
|
-
for (var e2 = 0, i6 = t3.length; e2 < i6; e2++)
|
|
592317
|
+
for (var e2 = 0, i6 = t3.length; e2 < i6; e2++) Hn(this, t3[e2]);
|
|
592318
592318
|
return this.length;
|
|
592319
592319
|
}
|
|
592320
592320
|
pop() {
|
|
@@ -592410,7 +592410,7 @@ var ni = class s3 {
|
|
|
592410
592410
|
let n2 = [];
|
|
592411
592411
|
for (let o3 = 0; r4 && o3 < e2; o3++) n2.push(r4.value), r4 = this.removeNode(r4);
|
|
592412
592412
|
r4 ? r4 !== this.tail && (r4 = r4.prev) : r4 = this.tail;
|
|
592413
|
-
for (let o3 of i6) r4 =
|
|
592413
|
+
for (let o3 of i6) r4 = zn(this, r4, o3);
|
|
592414
592414
|
return n2;
|
|
592415
592415
|
}
|
|
592416
592416
|
reverse() {
|
|
@@ -592422,17 +592422,17 @@ var ni = class s3 {
|
|
|
592422
592422
|
return this.head = e2, this.tail = t3, this;
|
|
592423
592423
|
}
|
|
592424
592424
|
};
|
|
592425
|
-
function
|
|
592426
|
-
let i6 = t3, r4 = t3 ? t3.next : s5.head, n2 = new
|
|
592425
|
+
function zn(s5, t3, e2) {
|
|
592426
|
+
let i6 = t3, r4 = t3 ? t3.next : s5.head, n2 = new de2(e2, i6, r4, s5);
|
|
592427
592427
|
return n2.next === void 0 && (s5.tail = n2), n2.prev === void 0 && (s5.head = n2), s5.length++, n2;
|
|
592428
592428
|
}
|
|
592429
|
-
function
|
|
592430
|
-
s5.tail = new
|
|
592429
|
+
function Un(s5, t3) {
|
|
592430
|
+
s5.tail = new de2(t3, s5.tail, void 0, s5), s5.head || (s5.head = s5.tail), s5.length++;
|
|
592431
592431
|
}
|
|
592432
|
-
function
|
|
592433
|
-
s5.head = new
|
|
592432
|
+
function Hn(s5, t3) {
|
|
592433
|
+
s5.head = new de2(t3, void 0, s5.head, s5), s5.tail || (s5.tail = s5.head), s5.length++;
|
|
592434
592434
|
}
|
|
592435
|
-
var
|
|
592435
|
+
var de2 = class {
|
|
592436
592436
|
list;
|
|
592437
592437
|
next;
|
|
592438
592438
|
prev;
|
|
@@ -592441,41 +592441,43 @@ var ue2 = class {
|
|
|
592441
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;
|
|
592442
592442
|
}
|
|
592443
592443
|
};
|
|
592444
|
-
var
|
|
592444
|
+
var mi = class {
|
|
592445
592445
|
path;
|
|
592446
592446
|
absolute;
|
|
592447
592447
|
entry;
|
|
592448
592448
|
stat;
|
|
592449
592449
|
readdir;
|
|
592450
592450
|
pending = false;
|
|
592451
|
+
pendingLink = false;
|
|
592451
592452
|
ignore = false;
|
|
592452
592453
|
piped = false;
|
|
592453
592454
|
constructor(t3, e2) {
|
|
592454
592455
|
this.path = t3 || "./", this.absolute = e2;
|
|
592455
592456
|
}
|
|
592456
592457
|
};
|
|
592457
|
-
var
|
|
592458
|
-
var
|
|
592459
|
-
var
|
|
592458
|
+
var ir2 = Buffer.alloc(1024);
|
|
592459
|
+
var ai = /* @__PURE__ */ Symbol("onStat");
|
|
592460
|
+
var ue2 = /* @__PURE__ */ Symbol("ended");
|
|
592460
592461
|
var W4 = /* @__PURE__ */ Symbol("queue");
|
|
592461
|
-
var
|
|
592462
|
-
var
|
|
592462
|
+
var me2 = /* @__PURE__ */ Symbol("pendingLinks");
|
|
592463
|
+
var Et2 = /* @__PURE__ */ Symbol("current");
|
|
592464
|
+
var Ct2 = /* @__PURE__ */ Symbol("process");
|
|
592463
592465
|
var pe2 = /* @__PURE__ */ Symbol("processing");
|
|
592464
|
-
var
|
|
592466
|
+
var hi = /* @__PURE__ */ Symbol("processJob");
|
|
592465
592467
|
var G5 = /* @__PURE__ */ Symbol("jobs");
|
|
592466
|
-
var
|
|
592467
|
-
var
|
|
592468
|
-
var
|
|
592469
|
-
var
|
|
592470
|
-
var
|
|
592471
|
-
var
|
|
592472
|
-
var
|
|
592473
|
-
var
|
|
592474
|
-
var
|
|
592475
|
-
var
|
|
592476
|
-
var
|
|
592477
|
-
var
|
|
592478
|
-
var
|
|
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 {
|
|
592479
592481
|
sync = false;
|
|
592480
592482
|
opt;
|
|
592481
592483
|
cwd;
|
|
@@ -592496,123 +592498,139 @@ var Et2 = class extends D3 {
|
|
|
592496
592498
|
mtime;
|
|
592497
592499
|
filter;
|
|
592498
592500
|
jobs;
|
|
592499
|
-
[
|
|
592501
|
+
[di];
|
|
592500
592502
|
onWriteEntry;
|
|
592501
592503
|
[W4];
|
|
592504
|
+
[me2] = /* @__PURE__ */ new Map();
|
|
592502
592505
|
[G5] = 0;
|
|
592503
592506
|
[pe2] = false;
|
|
592504
|
-
[
|
|
592507
|
+
[ue2] = false;
|
|
592505
592508
|
constructor(t3 = {}) {
|
|
592506
|
-
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[
|
|
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) {
|
|
592507
592510
|
if ((t3.gzip ? 1 : 0) + (t3.brotli ? 1 : 0) + (t3.zstd ? 1 : 0) > 1) throw new TypeError("gzip, brotli, zstd are mutually exclusive");
|
|
592508
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");
|
|
592509
592512
|
let e2 = this.zip;
|
|
592510
|
-
e2.on("data", (i6) => super.write(i6)), e2.on("end", () => super.end()), e2.on("drain", () => this[
|
|
592511
|
-
} else this.on("drain", this[
|
|
592512
|
-
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
|
|
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;
|
|
592513
592516
|
}
|
|
592514
|
-
[
|
|
592517
|
+
[or2](t3) {
|
|
592515
592518
|
return super.write(t3);
|
|
592516
592519
|
}
|
|
592517
592520
|
add(t3) {
|
|
592518
592521
|
return this.write(t3), this;
|
|
592519
592522
|
}
|
|
592520
592523
|
end(t3, e2, i6) {
|
|
592521
|
-
return typeof t3 == "function" && (i6 = t3, t3 = void 0), typeof e2 == "function" && (i6 = e2, e2 = void 0), t3 && this.add(t3), 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;
|
|
592522
592525
|
}
|
|
592523
592526
|
write(t3) {
|
|
592524
|
-
if (this[
|
|
592525
|
-
return t3
|
|
592527
|
+
if (this[ue2]) throw new Error("write after end");
|
|
592528
|
+
return typeof t3 == "string" ? this[li](t3) : this[sr2](t3), this.flowing;
|
|
592526
592529
|
}
|
|
592527
|
-
[
|
|
592530
|
+
[sr2](t3) {
|
|
592528
592531
|
let e2 = f2(import_path30.default.resolve(this.cwd, t3.path));
|
|
592529
592532
|
if (!this.filter(t3.path, t3)) t3.resume();
|
|
592530
592533
|
else {
|
|
592531
|
-
let i6 = new
|
|
592532
|
-
i6.entry = new
|
|
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);
|
|
592533
592536
|
}
|
|
592534
|
-
this[
|
|
592537
|
+
this[Ct2]();
|
|
592535
592538
|
}
|
|
592536
|
-
[
|
|
592539
|
+
[li](t3) {
|
|
592537
592540
|
let e2 = f2(import_path30.default.resolve(this.cwd, t3));
|
|
592538
|
-
this[W4].push(new
|
|
592541
|
+
this[W4].push(new mi(t3, e2)), this[Ct2]();
|
|
592539
592542
|
}
|
|
592540
|
-
[
|
|
592543
|
+
[cs](t3) {
|
|
592541
592544
|
t3.pending = true, this[G5] += 1;
|
|
592542
592545
|
let e2 = this.follow ? "stat" : "lstat";
|
|
592543
592546
|
import_fs14.default[e2](t3.absolute, (i6, r4) => {
|
|
592544
|
-
t3.pending = false, this[G5] -= 1, i6 ? this.emit("error", i6) : this[
|
|
592547
|
+
t3.pending = false, this[G5] -= 1, i6 ? this.emit("error", i6) : this[ai](t3, r4);
|
|
592545
592548
|
});
|
|
592546
592549
|
}
|
|
592547
|
-
[
|
|
592548
|
-
this.statCache.set(t3.absolute, e2), t3.stat = e2, this.filter(t3.path, e2)
|
|
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]();
|
|
592549
592558
|
}
|
|
592550
|
-
[
|
|
592559
|
+
[fs4](t3) {
|
|
592551
592560
|
t3.pending = true, this[G5] += 1, import_fs14.default.readdir(t3.absolute, (e2, i6) => {
|
|
592552
592561
|
if (t3.pending = false, this[G5] -= 1, e2) return this.emit("error", e2);
|
|
592553
|
-
this[
|
|
592562
|
+
this[ci](t3, i6);
|
|
592554
592563
|
});
|
|
592555
592564
|
}
|
|
592556
|
-
[
|
|
592557
|
-
this.readdirCache.set(t3.absolute, e2), t3.readdir = e2, this[
|
|
592565
|
+
[ci](t3, e2) {
|
|
592566
|
+
this.readdirCache.set(t3.absolute, e2), t3.readdir = e2, this[Ct2]();
|
|
592558
592567
|
}
|
|
592559
|
-
[
|
|
592568
|
+
[Ct2]() {
|
|
592560
592569
|
if (!this[pe2]) {
|
|
592561
592570
|
this[pe2] = true;
|
|
592562
|
-
for (let t3 = this[W4].head; t3 && this[G5] < this.jobs; t3 = t3.next) if (this[
|
|
592571
|
+
for (let t3 = this[W4].head; t3 && this[G5] < this.jobs; t3 = t3.next) if (this[hi](t3.value), t3.value.ignore) {
|
|
592563
592572
|
let e2 = t3.next;
|
|
592564
592573
|
this[W4].removeNode(t3), t3.next = e2;
|
|
592565
592574
|
}
|
|
592566
|
-
this[pe2] = false, this[
|
|
592575
|
+
this[pe2] = false, this[ue2] && this[W4].length === 0 && this[G5] === 0 && (this.zip ? this.zip.end(ir2) : (super.write(ir2), super.end()));
|
|
592567
592576
|
}
|
|
592568
592577
|
}
|
|
592569
|
-
get [
|
|
592578
|
+
get [Et2]() {
|
|
592570
592579
|
return this[W4] && this[W4].head && this[W4].head.value;
|
|
592571
592580
|
}
|
|
592572
|
-
[
|
|
592573
|
-
this[W4].shift(), this[G5] -= 1
|
|
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]();
|
|
592574
592592
|
}
|
|
592575
|
-
[
|
|
592576
|
-
if (!t3.pending) {
|
|
592593
|
+
[hi](t3) {
|
|
592594
|
+
if (t3.pending && t3.pendingLink && t3 === this[Et2] && (t3.pending = false, t3.pendingLink = false), !t3.pending) {
|
|
592577
592595
|
if (t3.entry) {
|
|
592578
|
-
t3 === this[
|
|
592596
|
+
t3 === this[Et2] && !t3.piped && this[fi](t3);
|
|
592579
592597
|
return;
|
|
592580
592598
|
}
|
|
592581
592599
|
if (!t3.stat) {
|
|
592582
592600
|
let e2 = this.statCache.get(t3.absolute);
|
|
592583
|
-
e2 ? this[
|
|
592601
|
+
e2 ? this[ai](t3, e2) : this[cs](t3);
|
|
592584
592602
|
}
|
|
592585
592603
|
if (t3.stat && !t3.ignore) {
|
|
592586
592604
|
if (!this.noDirRecurse && t3.stat.isDirectory() && !t3.readdir) {
|
|
592587
592605
|
let e2 = this.readdirCache.get(t3.absolute);
|
|
592588
|
-
if (e2 ? this[
|
|
592606
|
+
if (e2 ? this[ci](t3, e2) : this[fs4](t3), !t3.readdir) return;
|
|
592589
592607
|
}
|
|
592590
|
-
if (t3.entry = this[
|
|
592608
|
+
if (t3.entry = this[rr2](t3), !t3.entry) {
|
|
592591
592609
|
t3.ignore = true;
|
|
592592
592610
|
return;
|
|
592593
592611
|
}
|
|
592594
|
-
t3 === this[
|
|
592612
|
+
t3 === this[Et2] && !t3.piped && this[fi](t3);
|
|
592595
592613
|
}
|
|
592596
592614
|
}
|
|
592597
592615
|
}
|
|
592598
|
-
[
|
|
592616
|
+
[as](t3) {
|
|
592599
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 };
|
|
592600
592618
|
}
|
|
592601
|
-
[
|
|
592619
|
+
[rr2](t3) {
|
|
592602
592620
|
this[G5] += 1;
|
|
592603
592621
|
try {
|
|
592604
|
-
return new this[
|
|
592622
|
+
return new this[di](t3.path, this[as](t3)).on("end", () => this[hs](t3)).on("error", (i6) => this.emit("error", i6));
|
|
592605
592623
|
} catch (e2) {
|
|
592606
592624
|
this.emit("error", e2);
|
|
592607
592625
|
}
|
|
592608
592626
|
}
|
|
592609
|
-
[
|
|
592610
|
-
this[
|
|
592627
|
+
[ls]() {
|
|
592628
|
+
this[Et2] && this[Et2].entry && this[Et2].entry.resume();
|
|
592611
592629
|
}
|
|
592612
|
-
[
|
|
592630
|
+
[fi](t3) {
|
|
592613
592631
|
t3.piped = true, t3.readdir && t3.readdir.forEach((r4) => {
|
|
592614
592632
|
let n2 = t3.path, o3 = n2 === "./" ? "" : n2.replace(/\/*$/, "/");
|
|
592615
|
-
this[
|
|
592633
|
+
this[li](o3 + r4);
|
|
592616
592634
|
});
|
|
592617
592635
|
let e2 = t3.entry, i6 = this.zip;
|
|
592618
592636
|
if (!e2) throw new Error("cannot pipe without source");
|
|
@@ -592626,135 +592644,135 @@ var Et2 = class extends D3 {
|
|
|
592626
592644
|
return this.zip && this.zip.pause(), super.pause();
|
|
592627
592645
|
}
|
|
592628
592646
|
warn(t3, e2, i6 = {}) {
|
|
592629
|
-
|
|
592647
|
+
Nt2(this, t3, e2, i6);
|
|
592630
592648
|
}
|
|
592631
592649
|
};
|
|
592632
|
-
var kt2 = class extends
|
|
592650
|
+
var kt2 = class extends wt2 {
|
|
592633
592651
|
sync = true;
|
|
592634
592652
|
constructor(t3) {
|
|
592635
|
-
super(t3), this[
|
|
592653
|
+
super(t3), this[di] = ri;
|
|
592636
592654
|
}
|
|
592637
592655
|
pause() {
|
|
592638
592656
|
}
|
|
592639
592657
|
resume() {
|
|
592640
592658
|
}
|
|
592641
|
-
[
|
|
592659
|
+
[cs](t3) {
|
|
592642
592660
|
let e2 = this.follow ? "statSync" : "lstatSync";
|
|
592643
|
-
this[
|
|
592661
|
+
this[ai](t3, import_fs14.default[e2](t3.absolute));
|
|
592644
592662
|
}
|
|
592645
|
-
[
|
|
592646
|
-
this[
|
|
592663
|
+
[fs4](t3) {
|
|
592664
|
+
this[ci](t3, import_fs14.default.readdirSync(t3.absolute));
|
|
592647
592665
|
}
|
|
592648
|
-
[
|
|
592666
|
+
[fi](t3) {
|
|
592649
592667
|
let e2 = t3.entry, i6 = this.zip;
|
|
592650
592668
|
if (t3.readdir && t3.readdir.forEach((r4) => {
|
|
592651
592669
|
let n2 = t3.path, o3 = n2 === "./" ? "" : n2.replace(/\/*$/, "/");
|
|
592652
|
-
this[
|
|
592670
|
+
this[li](o3 + r4);
|
|
592653
592671
|
}), !e2) throw new Error("Cannot pipe without source");
|
|
592654
592672
|
i6 ? e2.on("data", (r4) => {
|
|
592655
592673
|
i6.write(r4);
|
|
592656
592674
|
}) : e2.on("data", (r4) => {
|
|
592657
|
-
super[
|
|
592675
|
+
super[or2](r4);
|
|
592658
592676
|
});
|
|
592659
592677
|
}
|
|
592660
592678
|
};
|
|
592661
|
-
var
|
|
592679
|
+
var Wn = (s5, t3) => {
|
|
592662
592680
|
let e2 = new kt2(s5), i6 = new Wt2(s5.file, { mode: s5.mode || 438 });
|
|
592663
|
-
e2.pipe(i6),
|
|
592681
|
+
e2.pipe(i6), ar2(e2, t3);
|
|
592664
592682
|
};
|
|
592665
|
-
var
|
|
592666
|
-
let e2 = new
|
|
592683
|
+
var Gn = (s5, t3) => {
|
|
592684
|
+
let e2 = new wt2(s5), i6 = new tt2(s5.file, { mode: s5.mode || 438 });
|
|
592667
592685
|
e2.pipe(i6);
|
|
592668
592686
|
let r4 = new Promise((n2, o3) => {
|
|
592669
592687
|
i6.on("error", o3), i6.on("close", n2), e2.on("error", o3);
|
|
592670
592688
|
});
|
|
592671
|
-
return
|
|
592689
|
+
return lr2(e2, t3).catch((n2) => e2.emit("error", n2)), r4;
|
|
592672
592690
|
};
|
|
592673
|
-
var
|
|
592691
|
+
var ar2 = (s5, t3) => {
|
|
592674
592692
|
t3.forEach((e2) => {
|
|
592675
|
-
e2.charAt(0) === "@" ?
|
|
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);
|
|
592676
592694
|
}), s5.end();
|
|
592677
592695
|
};
|
|
592678
|
-
var
|
|
592679
|
-
for (let e2 of t3) e2.charAt(0) === "@" ? await
|
|
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) => {
|
|
592680
592698
|
s5.add(i6);
|
|
592681
592699
|
} }) : s5.add(e2);
|
|
592682
592700
|
s5.end();
|
|
592683
592701
|
};
|
|
592684
|
-
var
|
|
592702
|
+
var Zn = (s5, t3) => {
|
|
592685
592703
|
let e2 = new kt2(s5);
|
|
592686
|
-
return
|
|
592704
|
+
return ar2(e2, t3), e2;
|
|
592687
592705
|
};
|
|
592688
|
-
var
|
|
592689
|
-
let e2 = new
|
|
592690
|
-
return
|
|
592706
|
+
var Yn = (s5, t3) => {
|
|
592707
|
+
let e2 = new wt2(s5);
|
|
592708
|
+
return lr2(e2, t3).catch((i6) => e2.emit("error", i6)), e2;
|
|
592691
592709
|
};
|
|
592692
|
-
var
|
|
592710
|
+
var Kn = K3(Wn, Gn, Zn, Yn, (s5, t3) => {
|
|
592693
592711
|
if (!t3?.length) throw new TypeError("no paths specified to add to archive");
|
|
592694
592712
|
});
|
|
592695
|
-
var
|
|
592696
|
-
var
|
|
592697
|
-
var { O_CREAT:
|
|
592698
|
-
var
|
|
592699
|
-
var
|
|
592700
|
-
var
|
|
592701
|
-
var
|
|
592702
|
-
var
|
|
592703
|
-
var
|
|
592704
|
-
var
|
|
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) => {
|
|
592705
592723
|
try {
|
|
592706
592724
|
return import_node_fs9.default.lchownSync(s5, t3, e2);
|
|
592707
592725
|
} catch (i6) {
|
|
592708
592726
|
if (i6?.code !== "ENOENT") throw i6;
|
|
592709
592727
|
}
|
|
592710
592728
|
};
|
|
592711
|
-
var
|
|
592729
|
+
var pi = (s5, t3, e2, i6) => {
|
|
592712
592730
|
import_node_fs9.default.lchown(s5, t3, e2, (r4) => {
|
|
592713
592731
|
i6(r4 && r4?.code !== "ENOENT" ? r4 : null);
|
|
592714
592732
|
});
|
|
592715
592733
|
};
|
|
592716
|
-
var
|
|
592717
|
-
if (t3.isDirectory())
|
|
592734
|
+
var Qn = (s5, t3, e2, i6, r4) => {
|
|
592735
|
+
if (t3.isDirectory()) ms(import_node_path14.default.resolve(s5, t3.name), e2, i6, (n2) => {
|
|
592718
592736
|
if (n2) return r4(n2);
|
|
592719
592737
|
let o3 = import_node_path14.default.resolve(s5, t3.name);
|
|
592720
|
-
|
|
592738
|
+
pi(o3, e2, i6, r4);
|
|
592721
592739
|
});
|
|
592722
592740
|
else {
|
|
592723
592741
|
let n2 = import_node_path14.default.resolve(s5, t3.name);
|
|
592724
|
-
|
|
592742
|
+
pi(n2, e2, i6, r4);
|
|
592725
592743
|
}
|
|
592726
592744
|
};
|
|
592727
|
-
var
|
|
592745
|
+
var ms = (s5, t3, e2, i6) => {
|
|
592728
592746
|
import_node_fs9.default.readdir(s5, { withFileTypes: true }, (r4, n2) => {
|
|
592729
592747
|
if (r4) {
|
|
592730
592748
|
if (r4.code === "ENOENT") return i6();
|
|
592731
592749
|
if (r4.code !== "ENOTDIR" && r4.code !== "ENOTSUP") return i6(r4);
|
|
592732
592750
|
}
|
|
592733
|
-
if (r4 || !n2.length) return
|
|
592734
|
-
let o3 = n2.length,
|
|
592735
|
-
if (!
|
|
592736
|
-
if (l2) return i6(
|
|
592737
|
-
if (--o3 === 0) return
|
|
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);
|
|
592738
592756
|
}
|
|
592739
592757
|
};
|
|
592740
|
-
for (let l2 of n2)
|
|
592758
|
+
for (let l2 of n2) Qn(s5, l2, t3, e2, h4);
|
|
592741
592759
|
});
|
|
592742
592760
|
};
|
|
592743
|
-
var
|
|
592744
|
-
t3.isDirectory() &&
|
|
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);
|
|
592745
592763
|
};
|
|
592746
|
-
var
|
|
592764
|
+
var ps = (s5, t3, e2) => {
|
|
592747
592765
|
let i6;
|
|
592748
592766
|
try {
|
|
592749
592767
|
i6 = import_node_fs9.default.readdirSync(s5, { withFileTypes: true });
|
|
592750
592768
|
} catch (r4) {
|
|
592751
592769
|
let n2 = r4;
|
|
592752
592770
|
if (n2?.code === "ENOENT") return;
|
|
592753
|
-
if (n2?.code === "ENOTDIR" || n2?.code === "ENOTSUP") return
|
|
592771
|
+
if (n2?.code === "ENOTDIR" || n2?.code === "ENOTSUP") return us(s5, t3, e2);
|
|
592754
592772
|
throw n2;
|
|
592755
592773
|
}
|
|
592756
|
-
for (let r4 of i6)
|
|
592757
|
-
return
|
|
592774
|
+
for (let r4 of i6) Jn(s5, r4, t3, e2);
|
|
592775
|
+
return us(s5, t3, e2);
|
|
592758
592776
|
};
|
|
592759
592777
|
var we2 = class extends Error {
|
|
592760
592778
|
path;
|
|
@@ -592767,7 +592785,7 @@ var we2 = class extends Error {
|
|
|
592767
592785
|
return "CwdError";
|
|
592768
592786
|
}
|
|
592769
592787
|
};
|
|
592770
|
-
var
|
|
592788
|
+
var St2 = class extends Error {
|
|
592771
592789
|
path;
|
|
592772
592790
|
symlink;
|
|
592773
592791
|
syscall = "symlink";
|
|
@@ -592779,41 +592797,41 @@ var wt2 = class extends Error {
|
|
|
592779
592797
|
return "SymlinkError";
|
|
592780
592798
|
}
|
|
592781
592799
|
};
|
|
592782
|
-
var
|
|
592800
|
+
var to = (s5, t3) => {
|
|
592783
592801
|
import_node_fs10.default.stat(s5, (e2, i6) => {
|
|
592784
592802
|
(e2 || !i6.isDirectory()) && (e2 = new we2(s5, e2?.code || "ENOTDIR")), t3(e2);
|
|
592785
592803
|
});
|
|
592786
592804
|
};
|
|
592787
|
-
var
|
|
592805
|
+
var Sr2 = (s5, t3, e2) => {
|
|
592788
592806
|
s5 = f2(s5);
|
|
592789
|
-
let i6 = t3.umask ?? 18, r4 = t3.mode | 448, n2 = (r4 & i6) !== 0, o3 = t3.uid,
|
|
592790
|
-
E3 ? e2(E3) : x4 &&
|
|
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();
|
|
592791
592809
|
};
|
|
592792
|
-
if (s5 === d2) return
|
|
592810
|
+
if (s5 === d2) return to(s5, S6);
|
|
592793
592811
|
if (l2) return import_promises20.default.mkdir(s5, { mode: r4, recursive: true }).then((E3) => S6(null, E3 ?? void 0), S6);
|
|
592794
592812
|
let N3 = f2(import_node_path15.default.relative(d2, s5)).split("/");
|
|
592795
|
-
|
|
592813
|
+
Es(d2, N3, r4, c5, d2, void 0, S6);
|
|
592796
592814
|
};
|
|
592797
|
-
var
|
|
592815
|
+
var Es = (s5, t3, e2, i6, r4, n2, o3) => {
|
|
592798
592816
|
if (t3.length === 0) return o3(null, n2);
|
|
592799
|
-
let
|
|
592800
|
-
import_node_fs10.default.mkdir(
|
|
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));
|
|
592801
592819
|
};
|
|
592802
|
-
var
|
|
592803
|
-
|
|
592804
|
-
if (
|
|
592805
|
-
else if (l2.isDirectory())
|
|
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);
|
|
592806
592824
|
else if (i6) import_node_fs10.default.unlink(s5, (c5) => {
|
|
592807
592825
|
if (c5) return o3(c5);
|
|
592808
|
-
import_node_fs10.default.mkdir(s5, e2,
|
|
592826
|
+
import_node_fs10.default.mkdir(s5, e2, yr2(s5, t3, e2, i6, r4, n2, o3));
|
|
592809
592827
|
});
|
|
592810
592828
|
else {
|
|
592811
|
-
if (l2.isSymbolicLink()) return o3(new
|
|
592812
|
-
o3(
|
|
592829
|
+
if (l2.isSymbolicLink()) return o3(new St2(s5, s5 + "/" + t3.join("/")));
|
|
592830
|
+
o3(a3);
|
|
592813
592831
|
}
|
|
592814
|
-
}) : (n2 = n2 || s5,
|
|
592832
|
+
}) : (n2 = n2 || s5, Es(s5, t3, e2, i6, r4, n2, o3));
|
|
592815
592833
|
};
|
|
592816
|
-
var
|
|
592834
|
+
var eo = (s5) => {
|
|
592817
592835
|
let t3 = false, e2;
|
|
592818
592836
|
try {
|
|
592819
592837
|
t3 = import_node_fs10.default.statSync(s5).isDirectory();
|
|
@@ -592823,13 +592841,13 @@ var Jn = (s5) => {
|
|
|
592823
592841
|
if (!t3) throw new we2(s5, e2 ?? "ENOTDIR");
|
|
592824
592842
|
}
|
|
592825
592843
|
};
|
|
592826
|
-
var
|
|
592844
|
+
var Rr2 = (s5, t3) => {
|
|
592827
592845
|
s5 = f2(s5);
|
|
592828
|
-
let e2 = t3.umask ?? 18, i6 = t3.mode | 448, r4 = (i6 & e2) !== 0, n2 = t3.uid, o3 = t3.gid,
|
|
592829
|
-
E3 &&
|
|
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);
|
|
592830
592848
|
};
|
|
592831
|
-
if (s5 === c5) return
|
|
592832
|
-
if (
|
|
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);
|
|
592833
592851
|
let T4 = f2(import_node_path15.default.relative(c5, s5)).split("/"), N3;
|
|
592834
592852
|
for (let E3 = T4.shift(), x4 = c5; E3 && (x4 += "/" + E3); E3 = T4.shift()) {
|
|
592835
592853
|
x4 = f2(import_node_path15.default.resolve(x4));
|
|
@@ -592841,35 +592859,35 @@ var Sr2 = (s5, t3) => {
|
|
|
592841
592859
|
if (l2) {
|
|
592842
592860
|
import_node_fs10.default.unlinkSync(x4), import_node_fs10.default.mkdirSync(x4, i6), N3 = N3 || x4;
|
|
592843
592861
|
continue;
|
|
592844
|
-
} else if (xe2.isSymbolicLink()) return new
|
|
592862
|
+
} else if (xe2.isSymbolicLink()) return new St2(x4, x4 + "/" + T4.join("/"));
|
|
592845
592863
|
}
|
|
592846
592864
|
}
|
|
592847
592865
|
return d2(N3);
|
|
592848
592866
|
};
|
|
592849
|
-
var
|
|
592850
|
-
var
|
|
592851
|
-
var
|
|
592852
|
-
var
|
|
592853
|
-
|
|
592854
|
-
let t3 =
|
|
592855
|
-
if (e2 >
|
|
592856
|
-
for (let i6 of
|
|
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;
|
|
592857
592875
|
}
|
|
592858
592876
|
return t3;
|
|
592859
592877
|
};
|
|
592860
|
-
var
|
|
592861
|
-
var
|
|
592862
|
-
var
|
|
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) => {
|
|
592863
592881
|
let r4 = e2.at(-1);
|
|
592864
592882
|
return r4 !== void 0 && (i6 = (0, import_node_path16.join)(r4, i6)), e2.push(i6 || "/"), e2;
|
|
592865
592883
|
}, []);
|
|
592866
|
-
var
|
|
592884
|
+
var Si = class {
|
|
592867
592885
|
#t = /* @__PURE__ */ new Map();
|
|
592868
592886
|
#i = /* @__PURE__ */ new Map();
|
|
592869
592887
|
#s = /* @__PURE__ */ new Set();
|
|
592870
592888
|
reserve(t3, e2) {
|
|
592871
|
-
t3 =
|
|
592872
|
-
let i6 = new Set(t3.map((r4) =>
|
|
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)));
|
|
592873
592891
|
this.#i.set(e2, { dirs: i6, paths: t3 });
|
|
592874
592892
|
for (let r4 of t3) {
|
|
592875
592893
|
let n2 = this.#t.get(r4);
|
|
@@ -592903,61 +592921,61 @@ var Ei = class {
|
|
|
592903
592921
|
if (!e2) throw new Error("invalid reservation");
|
|
592904
592922
|
let { paths: i6, dirs: r4 } = e2, n2 = /* @__PURE__ */ new Set();
|
|
592905
592923
|
for (let o3 of i6) {
|
|
592906
|
-
let
|
|
592907
|
-
if (!
|
|
592908
|
-
let
|
|
592909
|
-
if (!
|
|
592924
|
+
let a3 = this.#t.get(o3);
|
|
592925
|
+
if (!a3 || a3?.[0] !== t3) continue;
|
|
592926
|
+
let h4 = a3[1];
|
|
592927
|
+
if (!h4) {
|
|
592910
592928
|
this.#t.delete(o3);
|
|
592911
592929
|
continue;
|
|
592912
592930
|
}
|
|
592913
|
-
if (
|
|
592914
|
-
else for (let l2 of
|
|
592931
|
+
if (a3.shift(), typeof h4 == "function") n2.add(h4);
|
|
592932
|
+
else for (let l2 of h4) n2.add(l2);
|
|
592915
592933
|
}
|
|
592916
592934
|
for (let o3 of r4) {
|
|
592917
|
-
let
|
|
592918
|
-
if (!(!
|
|
592935
|
+
let a3 = this.#t.get(o3), h4 = a3?.[0];
|
|
592936
|
+
if (!(!a3 || !(h4 instanceof Set))) if (h4.size === 1 && a3.length === 1) {
|
|
592919
592937
|
this.#t.delete(o3);
|
|
592920
592938
|
continue;
|
|
592921
|
-
} else if (
|
|
592922
|
-
|
|
592923
|
-
let l2 =
|
|
592939
|
+
} else if (h4.size === 1) {
|
|
592940
|
+
a3.shift();
|
|
592941
|
+
let l2 = a3[0];
|
|
592924
592942
|
typeof l2 == "function" && n2.add(l2);
|
|
592925
|
-
} else
|
|
592943
|
+
} else h4.delete(t3);
|
|
592926
592944
|
}
|
|
592927
592945
|
return this.#s.delete(t3), n2.forEach((o3) => this.#r(o3)), true;
|
|
592928
592946
|
}
|
|
592929
592947
|
};
|
|
592930
|
-
var
|
|
592931
|
-
var
|
|
592932
|
-
var
|
|
592933
|
-
var
|
|
592934
|
-
var
|
|
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");
|
|
592935
592953
|
var P4 = /* @__PURE__ */ Symbol("makeFs");
|
|
592936
|
-
var
|
|
592937
|
-
var
|
|
592938
|
-
var
|
|
592939
|
-
var
|
|
592940
|
-
var
|
|
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");
|
|
592941
592959
|
var ye2 = /* @__PURE__ */ Symbol("ensureNoSymlink");
|
|
592942
|
-
var
|
|
592943
|
-
var
|
|
592944
|
-
var
|
|
592945
|
-
var
|
|
592960
|
+
var Dr = /* @__PURE__ */ Symbol("unsupported");
|
|
592961
|
+
var Ar = /* @__PURE__ */ Symbol("checkPath");
|
|
592962
|
+
var Ss = /* @__PURE__ */ Symbol("stripAbsolutePath");
|
|
592963
|
+
var yt2 = /* @__PURE__ */ Symbol("mkdir");
|
|
592946
592964
|
var O4 = /* @__PURE__ */ Symbol("onError");
|
|
592947
|
-
var
|
|
592948
|
-
var
|
|
592949
|
-
var
|
|
592950
|
-
var
|
|
592951
|
-
var
|
|
592952
|
-
var
|
|
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");
|
|
592953
592971
|
var Re2 = /* @__PURE__ */ Symbol("doChown");
|
|
592954
|
-
var
|
|
592955
|
-
var
|
|
592956
|
-
var
|
|
592957
|
-
var
|
|
592958
|
-
var Oe2 =
|
|
592959
|
-
var
|
|
592960
|
-
var
|
|
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) => {
|
|
592961
592979
|
if (!Oe2) return import_node_fs8.default.unlink(s5, t3);
|
|
592962
592980
|
let e2 = s5 + ".DELETE." + (0, import_node_crypto5.randomBytes)(16).toString("hex");
|
|
592963
592981
|
import_node_fs8.default.rename(s5, e2, (i6) => {
|
|
@@ -592965,17 +592983,17 @@ var oo = (s5, t3) => {
|
|
|
592965
592983
|
import_node_fs8.default.unlink(e2, t3);
|
|
592966
592984
|
});
|
|
592967
592985
|
};
|
|
592968
|
-
var
|
|
592986
|
+
var lo = (s5) => {
|
|
592969
592987
|
if (!Oe2) return import_node_fs8.default.unlinkSync(s5);
|
|
592970
592988
|
let t3 = s5 + ".DELETE." + (0, import_node_crypto5.randomBytes)(16).toString("hex");
|
|
592971
592989
|
import_node_fs8.default.renameSync(s5, t3), import_node_fs8.default.unlinkSync(t3);
|
|
592972
592990
|
};
|
|
592973
|
-
var
|
|
592974
|
-
var
|
|
592975
|
-
[
|
|
592976
|
-
[
|
|
592977
|
-
[
|
|
592978
|
-
reservations = new
|
|
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();
|
|
592979
592997
|
transform;
|
|
592980
592998
|
writable = true;
|
|
592981
592999
|
readable = false;
|
|
@@ -593002,32 +593020,32 @@ var qt2 = class extends st2 {
|
|
|
593002
593020
|
chmod;
|
|
593003
593021
|
constructor(t3 = {}) {
|
|
593004
593022
|
if (t3.ondone = () => {
|
|
593005
|
-
this[
|
|
593023
|
+
this[ys] = true, this[Rs]();
|
|
593006
593024
|
}, super(t3), this.transform = t3.transform, this.chmod = !!t3.chmod, typeof t3.uid == "number" || typeof t3.gid == "number") {
|
|
593007
593025
|
if (typeof t3.uid != "number" || typeof t3.gid != "number") throw new TypeError("cannot set owner without number uid and gid");
|
|
593008
593026
|
if (t3.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
|
|
593009
593027
|
this.uid = t3.uid, this.gid = t3.gid, this.setOwner = true;
|
|
593010
593028
|
} else this.uid = void 0, this.gid = void 0, this.setOwner = false;
|
|
593011
|
-
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 :
|
|
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));
|
|
593012
593030
|
}
|
|
593013
593031
|
warn(t3, e2, i6 = {}) {
|
|
593014
593032
|
return (t3 === "TAR_BAD_ARCHIVE" || t3 === "TAR_ABORT") && (i6.recoverable = false), super.warn(t3, e2, i6);
|
|
593015
593033
|
}
|
|
593016
|
-
[
|
|
593017
|
-
this[
|
|
593034
|
+
[Rs]() {
|
|
593035
|
+
this[ys] && this[yi] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
|
|
593018
593036
|
}
|
|
593019
|
-
[
|
|
593037
|
+
[Ss](t3, e2) {
|
|
593020
593038
|
let i6 = t3[e2], { type: r4 } = t3;
|
|
593021
593039
|
if (!i6 || this.preservePaths) return true;
|
|
593022
|
-
let [n2, o3] =
|
|
593023
|
-
if (
|
|
593040
|
+
let [n2, o3] = le2(i6), a3 = o3.replaceAll(/\\/g, "/").split("/");
|
|
593041
|
+
if (a3.includes("..") || Oe2 && /^[a-z]:\.\.$/i.test(a3[0] ?? "")) {
|
|
593024
593042
|
if (e2 === "path" || r4 === "Link") return this.warn("TAR_ENTRY_ERROR", `${e2} contains '..'`, { entry: t3, [e2]: i6 }), false;
|
|
593025
|
-
let
|
|
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("/")));
|
|
593026
593044
|
if (l2.startsWith("../") || l2 === "..") return this.warn("TAR_ENTRY_ERROR", `${e2} escapes extraction directory`, { entry: t3, [e2]: i6 }), false;
|
|
593027
593045
|
}
|
|
593028
593046
|
return n2 && (t3[e2] = String(o3), this.warn("TAR_ENTRY_INFO", `stripping ${n2} from absolute ${e2}`, { entry: t3, [e2]: i6 })), true;
|
|
593029
593047
|
}
|
|
593030
|
-
[
|
|
593048
|
+
[Ar](t3) {
|
|
593031
593049
|
let e2 = f2(t3.path), i6 = e2.split("/");
|
|
593032
593050
|
if (this.strip) {
|
|
593033
593051
|
if (i6.length < this.strip) return false;
|
|
@@ -593039,19 +593057,19 @@ var qt2 = class extends st2 {
|
|
|
593039
593057
|
i6.splice(0, this.strip), t3.path = i6.join("/");
|
|
593040
593058
|
}
|
|
593041
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;
|
|
593042
|
-
if (!this[
|
|
593060
|
+
if (!this[Ss](t3, "path") || !this[Ss](t3, "linkpath")) return false;
|
|
593043
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;
|
|
593044
593062
|
if (t3.absolute === this.cwd && t3.type !== "Directory" && t3.type !== "GNUDumpDir") return false;
|
|
593045
593063
|
if (this.win32) {
|
|
593046
593064
|
let { root: r4 } = import_node_path13.default.win32.parse(String(t3.absolute));
|
|
593047
|
-
t3.absolute = r4 +
|
|
593065
|
+
t3.absolute = r4 + Ji(String(t3.absolute).slice(r4.length));
|
|
593048
593066
|
let { root: n2 } = import_node_path13.default.win32.parse(t3.path);
|
|
593049
|
-
t3.path = n2 +
|
|
593067
|
+
t3.path = n2 + Ji(t3.path.slice(n2.length));
|
|
593050
593068
|
}
|
|
593051
593069
|
return true;
|
|
593052
593070
|
}
|
|
593053
|
-
[
|
|
593054
|
-
if (!this[
|
|
593071
|
+
[Tr2](t3) {
|
|
593072
|
+
if (!this[Ar](t3)) return t3.resume();
|
|
593055
593073
|
switch (import_node_assert.default.equal(typeof t3.absolute, "string"), t3.type) {
|
|
593056
593074
|
case "Directory":
|
|
593057
593075
|
case "GNUDumpDir":
|
|
@@ -593061,133 +593079,133 @@ var qt2 = class extends st2 {
|
|
|
593061
593079
|
case "ContiguousFile":
|
|
593062
593080
|
case "Link":
|
|
593063
593081
|
case "SymbolicLink":
|
|
593064
|
-
return this[
|
|
593082
|
+
return this[gs](t3);
|
|
593065
593083
|
default:
|
|
593066
|
-
return this[
|
|
593084
|
+
return this[Dr](t3);
|
|
593067
593085
|
}
|
|
593068
593086
|
}
|
|
593069
593087
|
[O4](t3, e2) {
|
|
593070
|
-
t3.name === "CwdError" ? this.emit("error", t3) : (this.warn("TAR_ENTRY_ERROR", t3, { entry: e2 }), this[
|
|
593088
|
+
t3.name === "CwdError" ? this.emit("error", t3) : (this.warn("TAR_ENTRY_ERROR", t3, { entry: e2 }), this[$t2](), e2.resume());
|
|
593071
593089
|
}
|
|
593072
|
-
[
|
|
593073
|
-
|
|
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);
|
|
593074
593092
|
}
|
|
593075
593093
|
[Re2](t3) {
|
|
593076
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;
|
|
593077
593095
|
}
|
|
593078
|
-
[
|
|
593079
|
-
return
|
|
593096
|
+
[ge2](t3) {
|
|
593097
|
+
return Fr(this.uid, t3.uid, this.processUid);
|
|
593080
593098
|
}
|
|
593081
|
-
[
|
|
593082
|
-
return
|
|
593099
|
+
[be2](t3) {
|
|
593100
|
+
return Fr(this.gid, t3.gid, this.processGid);
|
|
593083
593101
|
}
|
|
593084
|
-
[
|
|
593085
|
-
let i6 = typeof t3.mode == "number" ? t3.mode & 4095 : this.fmode, r4 = new tt2(String(t3.absolute), { flags:
|
|
593086
|
-
r4.on("error", (
|
|
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) => {
|
|
593087
593105
|
r4.fd && import_node_fs8.default.close(r4.fd, () => {
|
|
593088
|
-
}), r4.write = () => true, this[O4](
|
|
593106
|
+
}), r4.write = () => true, this[O4](h4, t3), e2();
|
|
593089
593107
|
});
|
|
593090
|
-
let n2 = 1, o3 = (
|
|
593091
|
-
if (
|
|
593108
|
+
let n2 = 1, o3 = (h4) => {
|
|
593109
|
+
if (h4) {
|
|
593092
593110
|
r4.fd && import_node_fs8.default.close(r4.fd, () => {
|
|
593093
|
-
}), this[O4](
|
|
593111
|
+
}), this[O4](h4, t3), e2();
|
|
593094
593112
|
return;
|
|
593095
593113
|
}
|
|
593096
593114
|
--n2 === 0 && r4.fd !== void 0 && import_node_fs8.default.close(r4.fd, (l2) => {
|
|
593097
|
-
l2 ? this[O4](l2, t3) : this[
|
|
593115
|
+
l2 ? this[O4](l2, t3) : this[$t2](), e2();
|
|
593098
593116
|
});
|
|
593099
593117
|
};
|
|
593100
593118
|
r4.on("finish", () => {
|
|
593101
|
-
let
|
|
593119
|
+
let h4 = String(t3.absolute), l2 = r4.fd;
|
|
593102
593120
|
if (typeof l2 == "number" && t3.mtime && !this.noMtime) {
|
|
593103
593121
|
n2++;
|
|
593104
593122
|
let c5 = t3.atime || /* @__PURE__ */ new Date(), d2 = t3.mtime;
|
|
593105
|
-
import_node_fs8.default.futimes(l2, c5, d2, (S6) => S6 ? import_node_fs8.default.utimes(
|
|
593123
|
+
import_node_fs8.default.futimes(l2, c5, d2, (S6) => S6 ? import_node_fs8.default.utimes(h4, c5, d2, (T4) => o3(T4 && S6)) : o3());
|
|
593106
593124
|
}
|
|
593107
593125
|
if (typeof l2 == "number" && this[Re2](t3)) {
|
|
593108
593126
|
n2++;
|
|
593109
|
-
let c5 = this[
|
|
593110
|
-
typeof c5 == "number" && typeof d2 == "number" && import_node_fs8.default.fchown(l2, c5, d2, (S6) => S6 ? import_node_fs8.default.chown(
|
|
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());
|
|
593111
593129
|
}
|
|
593112
593130
|
o3();
|
|
593113
593131
|
});
|
|
593114
|
-
let
|
|
593115
|
-
|
|
593116
|
-
this[O4](
|
|
593117
|
-
}), t3.pipe(
|
|
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);
|
|
593118
593136
|
}
|
|
593119
|
-
[
|
|
593137
|
+
[Os](t3, e2) {
|
|
593120
593138
|
let i6 = typeof t3.mode == "number" ? t3.mode & 4095 : this.dmode;
|
|
593121
|
-
this[
|
|
593139
|
+
this[yt2](String(t3.absolute), i6, (r4) => {
|
|
593122
593140
|
if (r4) {
|
|
593123
593141
|
this[O4](r4, t3), e2();
|
|
593124
593142
|
return;
|
|
593125
593143
|
}
|
|
593126
593144
|
let n2 = 1, o3 = () => {
|
|
593127
|
-
--n2 === 0 && (e2(), this[
|
|
593145
|
+
--n2 === 0 && (e2(), this[$t2](), t3.resume());
|
|
593128
593146
|
};
|
|
593129
|
-
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[
|
|
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();
|
|
593130
593148
|
});
|
|
593131
593149
|
}
|
|
593132
|
-
[
|
|
593150
|
+
[Dr](t3) {
|
|
593133
593151
|
t3.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t3.type}`, { entry: t3 }), t3.resume();
|
|
593134
593152
|
}
|
|
593135
|
-
[
|
|
593153
|
+
[Lr](t3, e2) {
|
|
593136
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("/");
|
|
593137
|
-
this[ye2](t3, this.cwd, i6, () => this[
|
|
593155
|
+
this[ye2](t3, this.cwd, i6, () => this[Ri](t3, String(t3.linkpath), "symlink", e2), (r4) => {
|
|
593138
593156
|
this[O4](r4, t3), e2();
|
|
593139
593157
|
});
|
|
593140
593158
|
}
|
|
593141
|
-
[
|
|
593159
|
+
[Nr](t3, e2) {
|
|
593142
593160
|
let i6 = f2(import_node_path13.default.resolve(this.cwd, String(t3.linkpath))), r4 = f2(String(t3.linkpath)).split("/");
|
|
593143
|
-
this[ye2](t3, this.cwd, r4, () => this[
|
|
593161
|
+
this[ye2](t3, this.cwd, r4, () => this[Ri](t3, i6, "link", e2), (n2) => {
|
|
593144
593162
|
this[O4](n2, t3), e2();
|
|
593145
593163
|
});
|
|
593146
593164
|
}
|
|
593147
593165
|
[ye2](t3, e2, i6, r4, n2) {
|
|
593148
593166
|
let o3 = i6.shift();
|
|
593149
593167
|
if (this.preservePaths || o3 === void 0) return r4();
|
|
593150
|
-
let
|
|
593151
|
-
import_node_fs8.default.lstat(
|
|
593152
|
-
if (
|
|
593153
|
-
if (l2?.isSymbolicLink()) return n2(new
|
|
593154
|
-
this[ye2](t3,
|
|
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);
|
|
593155
593173
|
});
|
|
593156
593174
|
}
|
|
593157
|
-
[
|
|
593158
|
-
this[
|
|
593175
|
+
[Ir]() {
|
|
593176
|
+
this[yi]++;
|
|
593159
593177
|
}
|
|
593160
|
-
[
|
|
593161
|
-
this[
|
|
593178
|
+
[$t2]() {
|
|
593179
|
+
this[yi]--, this[Rs]();
|
|
593162
593180
|
}
|
|
593163
|
-
[
|
|
593164
|
-
this[
|
|
593181
|
+
[Ts](t3) {
|
|
593182
|
+
this[$t2](), t3.resume();
|
|
593165
593183
|
}
|
|
593166
|
-
[
|
|
593184
|
+
[bs](t3, e2) {
|
|
593167
593185
|
return t3.type === "File" && !this.unlink && e2.isFile() && e2.nlink <= 1 && !Oe2;
|
|
593168
593186
|
}
|
|
593169
|
-
[
|
|
593170
|
-
this[
|
|
593187
|
+
[gs](t3) {
|
|
593188
|
+
this[Ir]();
|
|
593171
593189
|
let e2 = [t3.path];
|
|
593172
|
-
t3.linkpath && e2.push(t3.linkpath), this.reservations.reserve(e2, (i6) => this[
|
|
593190
|
+
t3.linkpath && e2.push(t3.linkpath), this.reservations.reserve(e2, (i6) => this[xr](t3, i6));
|
|
593173
593191
|
}
|
|
593174
|
-
[
|
|
593175
|
-
let i6 = (
|
|
593176
|
-
e2(
|
|
593192
|
+
[xr](t3, e2) {
|
|
593193
|
+
let i6 = (a3) => {
|
|
593194
|
+
e2(a3);
|
|
593177
593195
|
}, r4 = () => {
|
|
593178
|
-
this[
|
|
593179
|
-
if (
|
|
593180
|
-
this[O4](
|
|
593196
|
+
this[yt2](this.cwd, this.dmode, (a3) => {
|
|
593197
|
+
if (a3) {
|
|
593198
|
+
this[O4](a3, t3), i6();
|
|
593181
593199
|
return;
|
|
593182
593200
|
}
|
|
593183
|
-
this[
|
|
593201
|
+
this[_e2] = true, n2();
|
|
593184
593202
|
});
|
|
593185
593203
|
}, n2 = () => {
|
|
593186
593204
|
if (t3.absolute !== this.cwd) {
|
|
593187
|
-
let
|
|
593188
|
-
if (
|
|
593189
|
-
if (
|
|
593190
|
-
this[O4](
|
|
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();
|
|
593191
593209
|
return;
|
|
593192
593210
|
}
|
|
593193
593211
|
o3();
|
|
@@ -593195,24 +593213,24 @@ var qt2 = class extends st2 {
|
|
|
593195
593213
|
}
|
|
593196
593214
|
o3();
|
|
593197
593215
|
}, o3 = () => {
|
|
593198
|
-
import_node_fs8.default.lstat(String(t3.absolute), (
|
|
593199
|
-
if (
|
|
593200
|
-
this[
|
|
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();
|
|
593201
593219
|
return;
|
|
593202
593220
|
}
|
|
593203
|
-
if (
|
|
593204
|
-
if (
|
|
593221
|
+
if (a3 || this[bs](t3, h4)) return this[P4](null, t3, i6);
|
|
593222
|
+
if (h4.isDirectory()) {
|
|
593205
593223
|
if (t3.type === "Directory") {
|
|
593206
|
-
let l2 = this.chmod && t3.mode && (
|
|
593224
|
+
let l2 = this.chmod && t3.mode && (h4.mode & 4095) !== t3.mode, c5 = (d2) => this[P4](d2 ?? null, t3, i6);
|
|
593207
593225
|
return l2 ? import_node_fs8.default.chmod(String(t3.absolute), Number(t3.mode), c5) : c5();
|
|
593208
593226
|
}
|
|
593209
593227
|
if (t3.absolute !== this.cwd) return import_node_fs8.default.rmdir(String(t3.absolute), (l2) => this[P4](l2 ?? null, t3, i6));
|
|
593210
593228
|
}
|
|
593211
593229
|
if (t3.absolute === this.cwd) return this[P4](null, t3, i6);
|
|
593212
|
-
|
|
593230
|
+
ao(String(t3.absolute), (l2) => this[P4](l2 ?? null, t3, i6));
|
|
593213
593231
|
});
|
|
593214
593232
|
};
|
|
593215
|
-
this[
|
|
593233
|
+
this[_e2] ? n2() : r4();
|
|
593216
593234
|
}
|
|
593217
593235
|
[P4](t3, e2, i6) {
|
|
593218
593236
|
if (t3) {
|
|
@@ -593223,19 +593241,19 @@ var qt2 = class extends st2 {
|
|
|
593223
593241
|
case "File":
|
|
593224
593242
|
case "OldFile":
|
|
593225
593243
|
case "ContiguousFile":
|
|
593226
|
-
return this[
|
|
593244
|
+
return this[_s](e2, i6);
|
|
593227
593245
|
case "Link":
|
|
593228
|
-
return this[
|
|
593246
|
+
return this[Nr](e2, i6);
|
|
593229
593247
|
case "SymbolicLink":
|
|
593230
|
-
return this[
|
|
593248
|
+
return this[Lr](e2, i6);
|
|
593231
593249
|
case "Directory":
|
|
593232
593250
|
case "GNUDumpDir":
|
|
593233
|
-
return this[
|
|
593251
|
+
return this[Os](e2, i6);
|
|
593234
593252
|
}
|
|
593235
593253
|
}
|
|
593236
|
-
[
|
|
593254
|
+
[Ri](t3, e2, i6, r4) {
|
|
593237
593255
|
import_node_fs8.default[i6](e2, String(t3.absolute), (n2) => {
|
|
593238
|
-
n2 ? this[O4](n2, t3) : (this[
|
|
593256
|
+
n2 ? this[O4](n2, t3) : (this[$t2](), t3.resume()), r4();
|
|
593239
593257
|
});
|
|
593240
593258
|
}
|
|
593241
593259
|
};
|
|
@@ -593246,94 +593264,94 @@ var Se2 = (s5) => {
|
|
|
593246
593264
|
return [t3, null];
|
|
593247
593265
|
}
|
|
593248
593266
|
};
|
|
593249
|
-
var Te2 = class extends
|
|
593267
|
+
var Te2 = class extends Xt2 {
|
|
593250
593268
|
sync = true;
|
|
593251
593269
|
[P4](t3, e2) {
|
|
593252
593270
|
return super[P4](t3, e2, () => {
|
|
593253
593271
|
});
|
|
593254
593272
|
}
|
|
593255
|
-
[
|
|
593256
|
-
if (!this[
|
|
593257
|
-
let n2 = this[
|
|
593273
|
+
[gs](t3) {
|
|
593274
|
+
if (!this[_e2]) {
|
|
593275
|
+
let n2 = this[yt2](this.cwd, this.dmode);
|
|
593258
593276
|
if (n2) return this[O4](n2, t3);
|
|
593259
|
-
this[
|
|
593277
|
+
this[_e2] = true;
|
|
593260
593278
|
}
|
|
593261
593279
|
if (t3.absolute !== this.cwd) {
|
|
593262
593280
|
let n2 = f2(import_node_path13.default.dirname(String(t3.absolute)));
|
|
593263
593281
|
if (n2 !== this.cwd) {
|
|
593264
|
-
let o3 = this[
|
|
593282
|
+
let o3 = this[yt2](n2, this.dmode);
|
|
593265
593283
|
if (o3) return this[O4](o3, t3);
|
|
593266
593284
|
}
|
|
593267
593285
|
}
|
|
593268
593286
|
let [e2, i6] = Se2(() => import_node_fs8.default.lstatSync(String(t3.absolute)));
|
|
593269
|
-
if (i6 && (this.keep || this.newer && i6.mtime > (t3.mtime ?? i6.mtime))) return this[
|
|
593270
|
-
if (e2 || this[
|
|
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);
|
|
593271
593289
|
if (i6.isDirectory()) {
|
|
593272
593290
|
if (t3.type === "Directory") {
|
|
593273
|
-
let o3 = this.chmod && t3.mode && (i6.mode & 4095) !== t3.mode, [
|
|
593291
|
+
let o3 = this.chmod && t3.mode && (i6.mode & 4095) !== t3.mode, [a3] = o3 ? Se2(() => {
|
|
593274
593292
|
import_node_fs8.default.chmodSync(String(t3.absolute), Number(t3.mode));
|
|
593275
593293
|
}) : [];
|
|
593276
|
-
return this[P4](
|
|
593294
|
+
return this[P4](a3, t3);
|
|
593277
593295
|
}
|
|
593278
593296
|
let [n2] = Se2(() => import_node_fs8.default.rmdirSync(String(t3.absolute)));
|
|
593279
593297
|
this[P4](n2, t3);
|
|
593280
593298
|
}
|
|
593281
|
-
let [r4] = t3.absolute === this.cwd ? [] : Se2(() =>
|
|
593299
|
+
let [r4] = t3.absolute === this.cwd ? [] : Se2(() => lo(String(t3.absolute)));
|
|
593282
593300
|
this[P4](r4, t3);
|
|
593283
593301
|
}
|
|
593284
|
-
[
|
|
593285
|
-
let i6 = typeof t3.mode == "number" ? t3.mode & 4095 : this.fmode, r4 = (
|
|
593286
|
-
let
|
|
593302
|
+
[_s](t3, e2) {
|
|
593303
|
+
let i6 = typeof t3.mode == "number" ? t3.mode & 4095 : this.fmode, r4 = (a3) => {
|
|
593304
|
+
let h4;
|
|
593287
593305
|
try {
|
|
593288
593306
|
import_node_fs8.default.closeSync(n2);
|
|
593289
593307
|
} catch (l2) {
|
|
593290
|
-
|
|
593308
|
+
h4 = l2;
|
|
593291
593309
|
}
|
|
593292
|
-
(
|
|
593310
|
+
(a3 || h4) && this[O4](a3 || h4, t3), e2();
|
|
593293
593311
|
}, n2;
|
|
593294
593312
|
try {
|
|
593295
|
-
n2 = import_node_fs8.default.openSync(String(t3.absolute),
|
|
593296
|
-
} catch (
|
|
593297
|
-
return r4(
|
|
593313
|
+
n2 = import_node_fs8.default.openSync(String(t3.absolute), ds(t3.size), i6);
|
|
593314
|
+
} catch (a3) {
|
|
593315
|
+
return r4(a3);
|
|
593298
593316
|
}
|
|
593299
593317
|
let o3 = this.transform && this.transform(t3) || t3;
|
|
593300
|
-
o3 !== t3 && (o3.on("error", (
|
|
593318
|
+
o3 !== t3 && (o3.on("error", (a3) => this[O4](a3, t3)), t3.pipe(o3)), o3.on("data", (a3) => {
|
|
593301
593319
|
try {
|
|
593302
|
-
import_node_fs8.default.writeSync(n2,
|
|
593303
|
-
} catch (
|
|
593304
|
-
r4(
|
|
593320
|
+
import_node_fs8.default.writeSync(n2, a3, 0, a3.length);
|
|
593321
|
+
} catch (h4) {
|
|
593322
|
+
r4(h4);
|
|
593305
593323
|
}
|
|
593306
593324
|
}), o3.on("end", () => {
|
|
593307
|
-
let
|
|
593325
|
+
let a3 = null;
|
|
593308
593326
|
if (t3.mtime && !this.noMtime) {
|
|
593309
|
-
let
|
|
593327
|
+
let h4 = t3.atime || /* @__PURE__ */ new Date(), l2 = t3.mtime;
|
|
593310
593328
|
try {
|
|
593311
|
-
import_node_fs8.default.futimesSync(n2,
|
|
593329
|
+
import_node_fs8.default.futimesSync(n2, h4, l2);
|
|
593312
593330
|
} catch (c5) {
|
|
593313
593331
|
try {
|
|
593314
|
-
import_node_fs8.default.utimesSync(String(t3.absolute),
|
|
593332
|
+
import_node_fs8.default.utimesSync(String(t3.absolute), h4, l2);
|
|
593315
593333
|
} catch {
|
|
593316
|
-
|
|
593334
|
+
a3 = c5;
|
|
593317
593335
|
}
|
|
593318
593336
|
}
|
|
593319
593337
|
}
|
|
593320
593338
|
if (this[Re2](t3)) {
|
|
593321
|
-
let
|
|
593339
|
+
let h4 = this[ge2](t3), l2 = this[be2](t3);
|
|
593322
593340
|
try {
|
|
593323
|
-
import_node_fs8.default.fchownSync(n2, Number(
|
|
593341
|
+
import_node_fs8.default.fchownSync(n2, Number(h4), Number(l2));
|
|
593324
593342
|
} catch (c5) {
|
|
593325
593343
|
try {
|
|
593326
|
-
import_node_fs8.default.chownSync(String(t3.absolute), Number(
|
|
593344
|
+
import_node_fs8.default.chownSync(String(t3.absolute), Number(h4), Number(l2));
|
|
593327
593345
|
} catch {
|
|
593328
|
-
|
|
593346
|
+
a3 = a3 || c5;
|
|
593329
593347
|
}
|
|
593330
593348
|
}
|
|
593331
593349
|
}
|
|
593332
|
-
r4(
|
|
593350
|
+
r4(a3);
|
|
593333
593351
|
});
|
|
593334
593352
|
}
|
|
593335
|
-
[
|
|
593336
|
-
let i6 = typeof t3.mode == "number" ? t3.mode & 4095 : this.dmode, r4 = this[
|
|
593353
|
+
[Os](t3, e2) {
|
|
593354
|
+
let i6 = typeof t3.mode == "number" ? t3.mode & 4095 : this.dmode, r4 = this[yt2](String(t3.absolute), i6);
|
|
593337
593355
|
if (r4) {
|
|
593338
593356
|
this[O4](r4, t3), e2();
|
|
593339
593357
|
return;
|
|
@@ -593343,14 +593361,14 @@ var Te2 = class extends qt2 {
|
|
|
593343
593361
|
} catch {
|
|
593344
593362
|
}
|
|
593345
593363
|
if (this[Re2](t3)) try {
|
|
593346
|
-
import_node_fs8.default.chownSync(String(t3.absolute), Number(this[
|
|
593364
|
+
import_node_fs8.default.chownSync(String(t3.absolute), Number(this[ge2](t3)), Number(this[be2](t3)));
|
|
593347
593365
|
} catch {
|
|
593348
593366
|
}
|
|
593349
593367
|
e2(), t3.resume();
|
|
593350
593368
|
}
|
|
593351
|
-
[
|
|
593369
|
+
[yt2](t3, e2) {
|
|
593352
593370
|
try {
|
|
593353
|
-
return
|
|
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 });
|
|
593354
593372
|
} catch (i6) {
|
|
593355
593373
|
return i6;
|
|
593356
593374
|
}
|
|
@@ -593358,15 +593376,15 @@ var Te2 = class extends qt2 {
|
|
|
593358
593376
|
[ye2](t3, e2, i6, r4, n2) {
|
|
593359
593377
|
if (this.preservePaths || i6.length === 0) return r4();
|
|
593360
593378
|
let o3 = e2;
|
|
593361
|
-
for (let
|
|
593362
|
-
o3 = import_node_path13.default.resolve(o3,
|
|
593363
|
-
let [
|
|
593364
|
-
if (
|
|
593365
|
-
if (l2.isSymbolicLink()) return n2(new
|
|
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("/"))));
|
|
593366
593384
|
}
|
|
593367
593385
|
r4();
|
|
593368
593386
|
}
|
|
593369
|
-
[
|
|
593387
|
+
[Ri](t3, e2, i6, r4) {
|
|
593370
593388
|
let n2 = `${i6}Sync`;
|
|
593371
593389
|
try {
|
|
593372
593390
|
import_node_fs8.default[n2](e2, String(t3.absolute)), r4(), t3.resume();
|
|
@@ -593375,47 +593393,47 @@ var Te2 = class extends qt2 {
|
|
|
593375
593393
|
}
|
|
593376
593394
|
}
|
|
593377
593395
|
};
|
|
593378
|
-
var
|
|
593396
|
+
var co = (s5) => {
|
|
593379
593397
|
let t3 = new Te2(s5), e2 = s5.file, i6 = import_node_fs7.default.statSync(e2), r4 = s5.maxReadSize || 16 * 1024 * 1024;
|
|
593380
593398
|
new Me2(e2, { readSize: r4, size: i6.size }).pipe(t3);
|
|
593381
593399
|
};
|
|
593382
|
-
var
|
|
593383
|
-
let e2 = new
|
|
593384
|
-
return new Promise((o3,
|
|
593385
|
-
e2.on("error",
|
|
593386
|
-
if (
|
|
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);
|
|
593387
593405
|
else {
|
|
593388
593406
|
let c5 = new _t2(r4, { readSize: i6, size: l2.size });
|
|
593389
|
-
c5.on("error",
|
|
593407
|
+
c5.on("error", a3), c5.pipe(e2);
|
|
593390
593408
|
}
|
|
593391
593409
|
});
|
|
593392
593410
|
});
|
|
593393
593411
|
};
|
|
593394
|
-
var
|
|
593395
|
-
t3?.length &&
|
|
593412
|
+
var uo = K3(co, fo, (s5) => new Te2(s5), (s5) => new Xt2(s5), (s5, t3) => {
|
|
593413
|
+
t3?.length && Xi(s5, t3);
|
|
593396
593414
|
});
|
|
593397
|
-
var
|
|
593415
|
+
var mo = (s5, t3) => {
|
|
593398
593416
|
let e2 = new kt2(s5), i6 = true, r4, n2;
|
|
593399
593417
|
try {
|
|
593400
593418
|
try {
|
|
593401
593419
|
r4 = import_node_fs11.default.openSync(s5.file, "r+");
|
|
593402
|
-
} catch (
|
|
593403
|
-
if (
|
|
593404
|
-
else throw
|
|
593420
|
+
} catch (h4) {
|
|
593421
|
+
if (h4?.code === "ENOENT") r4 = import_node_fs11.default.openSync(s5.file, "w+");
|
|
593422
|
+
else throw h4;
|
|
593405
593423
|
}
|
|
593406
|
-
let o3 = import_node_fs11.default.fstatSync(r4),
|
|
593424
|
+
let o3 = import_node_fs11.default.fstatSync(r4), a3 = Buffer.alloc(512);
|
|
593407
593425
|
t: for (n2 = 0; n2 < o3.size; n2 += 512) {
|
|
593408
593426
|
for (let c5 = 0, d2 = 0; c5 < 512; c5 += d2) {
|
|
593409
|
-
if (d2 = import_node_fs11.default.readSync(r4,
|
|
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");
|
|
593410
593428
|
if (!d2) break t;
|
|
593411
593429
|
}
|
|
593412
|
-
let
|
|
593413
|
-
if (!
|
|
593414
|
-
let l2 = 512 * Math.ceil((
|
|
593430
|
+
let h4 = new C4(a3);
|
|
593431
|
+
if (!h4.cksumValid) break;
|
|
593432
|
+
let l2 = 512 * Math.ceil((h4.size || 0) / 512);
|
|
593415
593433
|
if (n2 + l2 + 512 > o3.size) break;
|
|
593416
|
-
n2 += l2, s5.mtimeCache &&
|
|
593434
|
+
n2 += l2, s5.mtimeCache && h4.mtime && s5.mtimeCache.set(String(h4.path), h4.mtime);
|
|
593417
593435
|
}
|
|
593418
|
-
i6 = false,
|
|
593436
|
+
i6 = false, po(s5, e2, n2, r4, t3);
|
|
593419
593437
|
} finally {
|
|
593420
593438
|
if (i6) try {
|
|
593421
593439
|
import_node_fs11.default.closeSync(r4);
|
|
@@ -593423,69 +593441,69 @@ var fo = (s5, t3) => {
|
|
|
593423
593441
|
}
|
|
593424
593442
|
}
|
|
593425
593443
|
};
|
|
593426
|
-
var
|
|
593444
|
+
var po = (s5, t3, e2, i6, r4) => {
|
|
593427
593445
|
let n2 = new Wt2(s5.file, { fd: i6, start: e2 });
|
|
593428
|
-
t3.pipe(n2),
|
|
593446
|
+
t3.pipe(n2), wo(t3, r4);
|
|
593429
593447
|
};
|
|
593430
|
-
var
|
|
593448
|
+
var Eo = (s5, t3) => {
|
|
593431
593449
|
t3 = Array.from(t3);
|
|
593432
|
-
let e2 = new
|
|
593433
|
-
let
|
|
593434
|
-
T4 ? import_node_fs11.default.close(n2, (E3) =>
|
|
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);
|
|
593435
593453
|
}, l2 = 0;
|
|
593436
|
-
if (o3 === 0) return
|
|
593454
|
+
if (o3 === 0) return h4(null, 0);
|
|
593437
593455
|
let c5 = 0, d2 = Buffer.alloc(512), S6 = (T4, N3) => {
|
|
593438
|
-
if (T4 || N3 === void 0) return
|
|
593456
|
+
if (T4 || N3 === void 0) return h4(T4);
|
|
593439
593457
|
if (c5 += N3, c5 < 512 && N3) return import_node_fs11.default.read(n2, d2, c5, d2.length - c5, l2 + c5, S6);
|
|
593440
|
-
if (l2 === 0 && d2[0] === 31 && d2[1] === 139) return
|
|
593441
|
-
if (c5 < 512) return
|
|
593442
|
-
let E3 = new
|
|
593443
|
-
if (!E3.cksumValid) return
|
|
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);
|
|
593444
593462
|
let x4 = 512 * Math.ceil((E3.size ?? 0) / 512);
|
|
593445
|
-
if (l2 + x4 + 512 > o3 || (l2 += x4 + 512, l2 >= o3)) return
|
|
593463
|
+
if (l2 + x4 + 512 > o3 || (l2 += x4 + 512, l2 >= o3)) return h4(null, l2);
|
|
593446
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);
|
|
593447
593465
|
};
|
|
593448
593466
|
import_node_fs11.default.read(n2, d2, 0, 512, l2, S6);
|
|
593449
593467
|
};
|
|
593450
593468
|
return new Promise((n2, o3) => {
|
|
593451
593469
|
e2.on("error", o3);
|
|
593452
|
-
let
|
|
593453
|
-
if (l2 && l2.code === "ENOENT" &&
|
|
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);
|
|
593454
593472
|
if (l2 || !c5) return o3(l2);
|
|
593455
593473
|
import_node_fs11.default.fstat(c5, (d2, S6) => {
|
|
593456
593474
|
if (d2) return import_node_fs11.default.close(c5, () => o3(d2));
|
|
593457
593475
|
i6(c5, S6.size, (T4, N3) => {
|
|
593458
593476
|
if (T4) return o3(T4);
|
|
593459
593477
|
let E3 = new tt2(s5.file, { fd: c5, start: N3 });
|
|
593460
|
-
e2.pipe(E3), E3.on("error", o3), E3.on("close", n2),
|
|
593478
|
+
e2.pipe(E3), E3.on("error", o3), E3.on("close", n2), So(e2, t3);
|
|
593461
593479
|
});
|
|
593462
593480
|
});
|
|
593463
593481
|
};
|
|
593464
|
-
import_node_fs11.default.open(s5.file,
|
|
593482
|
+
import_node_fs11.default.open(s5.file, a3, h4);
|
|
593465
593483
|
});
|
|
593466
593484
|
};
|
|
593467
|
-
var
|
|
593485
|
+
var wo = (s5, t3) => {
|
|
593468
593486
|
t3.forEach((e2) => {
|
|
593469
|
-
e2.charAt(0) === "@" ?
|
|
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);
|
|
593470
593488
|
}), s5.end();
|
|
593471
593489
|
};
|
|
593472
|
-
var
|
|
593473
|
-
for (let e2 of t3) e2.charAt(0) === "@" ? await
|
|
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);
|
|
593474
593492
|
s5.end();
|
|
593475
593493
|
};
|
|
593476
|
-
var vt2 = K3(
|
|
593494
|
+
var vt2 = K3(mo, Eo, () => {
|
|
593477
593495
|
throw new TypeError("file is required");
|
|
593478
593496
|
}, () => {
|
|
593479
593497
|
throw new TypeError("file is required");
|
|
593480
593498
|
}, (s5, t3) => {
|
|
593481
|
-
if (!
|
|
593499
|
+
if (!vs(s5)) throw new TypeError("file is required");
|
|
593482
593500
|
if (s5.gzip || s5.brotli || s5.zstd || s5.file.endsWith(".br") || s5.file.endsWith(".tbr")) throw new TypeError("cannot append to compressed archives");
|
|
593483
593501
|
if (!t3?.length) throw new TypeError("no paths specified to add/replace");
|
|
593484
593502
|
});
|
|
593485
|
-
var
|
|
593486
|
-
vt2.validate?.(s5, t3),
|
|
593503
|
+
var yo = K3(vt2.syncFile, vt2.asyncFile, vt2.syncNoFile, vt2.asyncNoFile, (s5, t3 = []) => {
|
|
593504
|
+
vt2.validate?.(s5, t3), Ro(s5);
|
|
593487
593505
|
});
|
|
593488
|
-
var
|
|
593506
|
+
var Ro = (s5) => {
|
|
593489
593507
|
let t3 = s5.filter;
|
|
593490
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));
|
|
593491
593509
|
};
|
|
@@ -593680,7 +593698,7 @@ async function downloadDependency({ s3PreSignedReadUrl, absolutePathToLocalOutpu
|
|
|
593680
593698
|
const tmpDir = await import_tmp_promise3.default.dir();
|
|
593681
593699
|
const outputTarPath = import_path31.default.join(tmpDir.path, "api.tgz");
|
|
593682
593700
|
await (0, import_promises22.pipeline)(request7.data, (0, import_fs17.createWriteStream)(outputTarPath));
|
|
593683
|
-
await
|
|
593701
|
+
await uo({ file: outputTarPath, cwd: absolutePathToLocalOutput });
|
|
593684
593702
|
}
|
|
593685
593703
|
function stringifyDependency(dependency) {
|
|
593686
593704
|
switch (dependency.type) {
|
|
@@ -628675,7 +628693,7 @@ var AccessTokenPosthogManager = class {
|
|
|
628675
628693
|
properties: {
|
|
628676
628694
|
...event,
|
|
628677
628695
|
...event.properties,
|
|
628678
|
-
version: "5.23.3-
|
|
628696
|
+
version: "5.23.3-767-gd576140fb68",
|
|
628679
628697
|
usingAccessToken: true,
|
|
628680
628698
|
...getRunIdProperties()
|
|
628681
628699
|
}
|
|
@@ -628739,7 +628757,7 @@ var UserPosthogManager = class {
|
|
|
628739
628757
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
628740
628758
|
event: "CLI",
|
|
628741
628759
|
properties: {
|
|
628742
|
-
version: "5.23.3-
|
|
628760
|
+
version: "5.23.3-767-gd576140fb68",
|
|
628743
628761
|
...event,
|
|
628744
628762
|
...event.properties,
|
|
628745
628763
|
usingAccessToken: false,
|
|
@@ -810173,22 +810191,22 @@ var OpenElementStack = class {
|
|
|
810173
810191
|
//Element in scope
|
|
810174
810192
|
hasInDynamicScope(tagName, htmlScope) {
|
|
810175
810193
|
for (let i6 = this.stackTop; i6 >= 0; i6--) {
|
|
810176
|
-
const
|
|
810194
|
+
const tn2 = this.tagIDs[i6];
|
|
810177
810195
|
switch (this.treeAdapter.getNamespaceURI(this.items[i6])) {
|
|
810178
810196
|
case NS.HTML: {
|
|
810179
|
-
if (
|
|
810197
|
+
if (tn2 === tagName)
|
|
810180
810198
|
return true;
|
|
810181
|
-
if (htmlScope.has(
|
|
810199
|
+
if (htmlScope.has(tn2))
|
|
810182
810200
|
return false;
|
|
810183
810201
|
break;
|
|
810184
810202
|
}
|
|
810185
810203
|
case NS.SVG: {
|
|
810186
|
-
if (SCOPING_ELEMENTS_SVG.has(
|
|
810204
|
+
if (SCOPING_ELEMENTS_SVG.has(tn2))
|
|
810187
810205
|
return false;
|
|
810188
810206
|
break;
|
|
810189
810207
|
}
|
|
810190
810208
|
case NS.MATHML: {
|
|
810191
|
-
if (SCOPING_ELEMENTS_MATHML.has(
|
|
810209
|
+
if (SCOPING_ELEMENTS_MATHML.has(tn2))
|
|
810192
810210
|
return false;
|
|
810193
810211
|
break;
|
|
810194
810212
|
}
|
|
@@ -810207,22 +810225,22 @@ var OpenElementStack = class {
|
|
|
810207
810225
|
}
|
|
810208
810226
|
hasNumberedHeaderInScope() {
|
|
810209
810227
|
for (let i6 = this.stackTop; i6 >= 0; i6--) {
|
|
810210
|
-
const
|
|
810228
|
+
const tn2 = this.tagIDs[i6];
|
|
810211
810229
|
switch (this.treeAdapter.getNamespaceURI(this.items[i6])) {
|
|
810212
810230
|
case NS.HTML: {
|
|
810213
|
-
if (NUMBERED_HEADERS.has(
|
|
810231
|
+
if (NUMBERED_HEADERS.has(tn2))
|
|
810214
810232
|
return true;
|
|
810215
|
-
if (SCOPING_ELEMENTS_HTML.has(
|
|
810233
|
+
if (SCOPING_ELEMENTS_HTML.has(tn2))
|
|
810216
810234
|
return false;
|
|
810217
810235
|
break;
|
|
810218
810236
|
}
|
|
810219
810237
|
case NS.SVG: {
|
|
810220
|
-
if (SCOPING_ELEMENTS_SVG.has(
|
|
810238
|
+
if (SCOPING_ELEMENTS_SVG.has(tn2))
|
|
810221
810239
|
return false;
|
|
810222
810240
|
break;
|
|
810223
810241
|
}
|
|
810224
810242
|
case NS.MATHML: {
|
|
810225
|
-
if (SCOPING_ELEMENTS_MATHML.has(
|
|
810243
|
+
if (SCOPING_ELEMENTS_MATHML.has(tn2))
|
|
810226
810244
|
return false;
|
|
810227
810245
|
break;
|
|
810228
810246
|
}
|
|
@@ -810807,7 +810825,7 @@ var SVG_TAG_NAMES_ADJUSTMENT_MAP = new Map([
|
|
|
810807
810825
|
"linearGradient",
|
|
810808
810826
|
"radialGradient",
|
|
810809
810827
|
"textPath"
|
|
810810
|
-
].map((
|
|
810828
|
+
].map((tn2) => [tn2.toLowerCase(), tn2]));
|
|
810811
810829
|
var EXITS_FOREIGN_CONTENT = /* @__PURE__ */ new Set([
|
|
810812
810830
|
TAG_ID.B,
|
|
810813
810831
|
TAG_ID.BIG,
|
|
@@ -810855,9 +810873,9 @@ var EXITS_FOREIGN_CONTENT = /* @__PURE__ */ new Set([
|
|
|
810855
810873
|
TAG_ID.VAR
|
|
810856
810874
|
]);
|
|
810857
810875
|
function causesExit(startTagToken) {
|
|
810858
|
-
const
|
|
810859
|
-
const isFontWithAttrs =
|
|
810860
|
-
return isFontWithAttrs || EXITS_FOREIGN_CONTENT.has(
|
|
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);
|
|
810861
810879
|
}
|
|
810862
810880
|
function adjustTokenMathMLAttrs(token) {
|
|
810863
810881
|
for (let i6 = 0; i6 < token.attrs.length; i6++) {
|
|
@@ -810892,11 +810910,11 @@ function adjustTokenSVGTagName(token) {
|
|
|
810892
810910
|
token.tagID = getTagID(token.tagName);
|
|
810893
810911
|
}
|
|
810894
810912
|
}
|
|
810895
|
-
function isMathMLTextIntegrationPoint(
|
|
810896
|
-
return ns2 === NS.MATHML && (
|
|
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);
|
|
810897
810915
|
}
|
|
810898
|
-
function isHtmlIntegrationPoint(
|
|
810899
|
-
if (ns2 === NS.MATHML &&
|
|
810916
|
+
function isHtmlIntegrationPoint(tn2, ns2, attrs) {
|
|
810917
|
+
if (ns2 === NS.MATHML && tn2 === TAG_ID.ANNOTATION_XML) {
|
|
810900
810918
|
for (let i6 = 0; i6 < attrs.length; i6++) {
|
|
810901
810919
|
if (attrs[i6].name === ATTRS.ENCODING) {
|
|
810902
810920
|
const value2 = attrs[i6].value.toLowerCase();
|
|
@@ -810904,10 +810922,10 @@ function isHtmlIntegrationPoint(tn, ns2, attrs) {
|
|
|
810904
810922
|
}
|
|
810905
810923
|
}
|
|
810906
810924
|
}
|
|
810907
|
-
return ns2 === NS.SVG && (
|
|
810925
|
+
return ns2 === NS.SVG && (tn2 === TAG_ID.FOREIGN_OBJECT || tn2 === TAG_ID.DESC || tn2 === TAG_ID.TITLE);
|
|
810908
810926
|
}
|
|
810909
|
-
function isIntegrationPoint(
|
|
810910
|
-
return (!foreignNS || foreignNS === NS.HTML) && isHtmlIntegrationPoint(
|
|
810927
|
+
function isIntegrationPoint(tn2, ns2, attrs, foreignNS) {
|
|
810928
|
+
return (!foreignNS || foreignNS === NS.HTML) && isHtmlIntegrationPoint(tn2, ns2, attrs) || (!foreignNS || foreignNS === NS.MATHML) && isMathMLTextIntegrationPoint(tn2, ns2);
|
|
810911
810929
|
}
|
|
810912
810930
|
|
|
810913
810931
|
// ../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.js
|
|
@@ -811242,11 +811260,11 @@ var Parser6 = class {
|
|
|
811242
811260
|
_setEndLocation(element4, closingToken) {
|
|
811243
811261
|
if (this.treeAdapter.getNodeSourceCodeLocation(element4) && closingToken.location) {
|
|
811244
811262
|
const ctLoc = closingToken.location;
|
|
811245
|
-
const
|
|
811263
|
+
const tn2 = this.treeAdapter.getTagName(element4);
|
|
811246
811264
|
const endLoc = (
|
|
811247
811265
|
// NOTE: For cases like <p> <p> </p> - First 'p' closes without a closing
|
|
811248
811266
|
// tag and for cases like <td> <p> </td> - 'p' closes without a closing tag.
|
|
811249
|
-
closingToken.type === TokenType3.END_TAG &&
|
|
811267
|
+
closingToken.type === TokenType3.END_TAG && tn2 === closingToken.tagName ? {
|
|
811250
811268
|
endTag: { ...ctLoc },
|
|
811251
811269
|
endLine: ctLoc.endLine,
|
|
811252
811270
|
endCol: ctLoc.endCol,
|
|
@@ -811423,10 +811441,10 @@ var Parser6 = class {
|
|
|
811423
811441
|
_resetInsertionModeForSelect(selectIdx) {
|
|
811424
811442
|
if (selectIdx > 0) {
|
|
811425
811443
|
for (let i6 = selectIdx - 1; i6 > 0; i6--) {
|
|
811426
|
-
const
|
|
811427
|
-
if (
|
|
811444
|
+
const tn2 = this.openElements.tagIDs[i6];
|
|
811445
|
+
if (tn2 === TAG_ID.TEMPLATE) {
|
|
811428
811446
|
break;
|
|
811429
|
-
} else if (
|
|
811447
|
+
} else if (tn2 === TAG_ID.TABLE) {
|
|
811430
811448
|
this.insertionMode = InsertionMode.IN_SELECT_IN_TABLE;
|
|
811431
811449
|
return;
|
|
811432
811450
|
}
|
|
@@ -811436,8 +811454,8 @@ var Parser6 = class {
|
|
|
811436
811454
|
}
|
|
811437
811455
|
//Foster parenting
|
|
811438
811456
|
/** @protected */
|
|
811439
|
-
_isElementCausesFosterParenting(
|
|
811440
|
-
return TABLE_STRUCTURE_TAGS.has(
|
|
811457
|
+
_isElementCausesFosterParenting(tn2) {
|
|
811458
|
+
return TABLE_STRUCTURE_TAGS.has(tn2);
|
|
811441
811459
|
}
|
|
811442
811460
|
/** @protected */
|
|
811443
811461
|
_shouldFosterParentOnInsertion() {
|
|
@@ -812079,8 +812097,8 @@ function aaRecreateElementFromEntry(p6, elementEntry) {
|
|
|
812079
812097
|
return newElement;
|
|
812080
812098
|
}
|
|
812081
812099
|
function aaInsertLastNodeInCommonAncestor(p6, commonAncestor, lastElement) {
|
|
812082
|
-
const
|
|
812083
|
-
const tid = getTagID(
|
|
812100
|
+
const tn2 = p6.treeAdapter.getTagName(commonAncestor);
|
|
812101
|
+
const tid = getTagID(tn2);
|
|
812084
812102
|
if (p6._isElementCausesFosterParenting(tid)) {
|
|
812085
812103
|
p6._fosterParentElement(lastElement);
|
|
812086
812104
|
} else {
|
|
@@ -812177,8 +812195,8 @@ function startTagBeforeHtml(p6, token) {
|
|
|
812177
812195
|
}
|
|
812178
812196
|
}
|
|
812179
812197
|
function endTagBeforeHtml(p6, token) {
|
|
812180
|
-
const
|
|
812181
|
-
if (
|
|
812198
|
+
const tn2 = token.tagID;
|
|
812199
|
+
if (tn2 === TAG_ID.HTML || tn2 === TAG_ID.HEAD || tn2 === TAG_ID.BODY || tn2 === TAG_ID.BR) {
|
|
812182
812200
|
tokenBeforeHtml(p6, token);
|
|
812183
812201
|
}
|
|
812184
812202
|
}
|
|
@@ -812205,8 +812223,8 @@ function startTagBeforeHead(p6, token) {
|
|
|
812205
812223
|
}
|
|
812206
812224
|
}
|
|
812207
812225
|
function endTagBeforeHead(p6, token) {
|
|
812208
|
-
const
|
|
812209
|
-
if (
|
|
812226
|
+
const tn2 = token.tagID;
|
|
812227
|
+
if (tn2 === TAG_ID.HEAD || tn2 === TAG_ID.BODY || tn2 === TAG_ID.HTML || tn2 === TAG_ID.BR) {
|
|
812210
812228
|
tokenBeforeHead(p6, token);
|
|
812211
812229
|
} else {
|
|
812212
812230
|
p6._err(token, ERR.endTagWithoutMatchingOpenElement);
|
|
@@ -812521,10 +812539,10 @@ function formStartTagInBody(p6, token) {
|
|
|
812521
812539
|
}
|
|
812522
812540
|
function listItemStartTagInBody(p6, token) {
|
|
812523
812541
|
p6.framesetOk = false;
|
|
812524
|
-
const
|
|
812542
|
+
const tn2 = token.tagID;
|
|
812525
812543
|
for (let i6 = p6.openElements.stackTop; i6 >= 0; i6--) {
|
|
812526
812544
|
const elementId = p6.openElements.tagIDs[i6];
|
|
812527
|
-
if (
|
|
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)) {
|
|
812528
812546
|
p6.openElements.generateImpliedEndTagsWithExclusion(elementId);
|
|
812529
812547
|
p6.openElements.popUntilTagNamePopped(elementId);
|
|
812530
812548
|
break;
|
|
@@ -812936,10 +812954,10 @@ function htmlEndTagInBody(p6, token) {
|
|
|
812936
812954
|
}
|
|
812937
812955
|
}
|
|
812938
812956
|
function addressEndTagInBody(p6, token) {
|
|
812939
|
-
const
|
|
812940
|
-
if (p6.openElements.hasInScope(
|
|
812957
|
+
const tn2 = token.tagID;
|
|
812958
|
+
if (p6.openElements.hasInScope(tn2)) {
|
|
812941
812959
|
p6.openElements.generateImpliedEndTags();
|
|
812942
|
-
p6.openElements.popUntilTagNamePopped(
|
|
812960
|
+
p6.openElements.popUntilTagNamePopped(tn2);
|
|
812943
812961
|
}
|
|
812944
812962
|
}
|
|
812945
812963
|
function formEndTagInBody(p6) {
|
|
@@ -812970,10 +812988,10 @@ function liEndTagInBody(p6) {
|
|
|
812970
812988
|
}
|
|
812971
812989
|
}
|
|
812972
812990
|
function ddEndTagInBody(p6, token) {
|
|
812973
|
-
const
|
|
812974
|
-
if (p6.openElements.hasInScope(
|
|
812975
|
-
p6.openElements.generateImpliedEndTagsWithExclusion(
|
|
812976
|
-
p6.openElements.popUntilTagNamePopped(
|
|
812991
|
+
const tn2 = token.tagID;
|
|
812992
|
+
if (p6.openElements.hasInScope(tn2)) {
|
|
812993
|
+
p6.openElements.generateImpliedEndTagsWithExclusion(tn2);
|
|
812994
|
+
p6.openElements.popUntilTagNamePopped(tn2);
|
|
812977
812995
|
}
|
|
812978
812996
|
}
|
|
812979
812997
|
function numberedHeaderEndTagInBody(p6) {
|
|
@@ -812983,10 +813001,10 @@ function numberedHeaderEndTagInBody(p6) {
|
|
|
812983
813001
|
}
|
|
812984
813002
|
}
|
|
812985
813003
|
function appletEndTagInBody(p6, token) {
|
|
812986
|
-
const
|
|
812987
|
-
if (p6.openElements.hasInScope(
|
|
813004
|
+
const tn2 = token.tagID;
|
|
813005
|
+
if (p6.openElements.hasInScope(tn2)) {
|
|
812988
813006
|
p6.openElements.generateImpliedEndTags();
|
|
812989
|
-
p6.openElements.popUntilTagNamePopped(
|
|
813007
|
+
p6.openElements.popUntilTagNamePopped(tn2);
|
|
812990
813008
|
p6.activeFormattingElements.clearToLastMarker();
|
|
812991
813009
|
}
|
|
812992
813010
|
}
|
|
@@ -812997,12 +813015,12 @@ function brEndTagInBody(p6) {
|
|
|
812997
813015
|
p6.framesetOk = false;
|
|
812998
813016
|
}
|
|
812999
813017
|
function genericEndTagInBody(p6, token) {
|
|
813000
|
-
const
|
|
813018
|
+
const tn2 = token.tagName;
|
|
813001
813019
|
const tid = token.tagID;
|
|
813002
813020
|
for (let i6 = p6.openElements.stackTop; i6 > 0; i6--) {
|
|
813003
813021
|
const element4 = p6.openElements.items[i6];
|
|
813004
813022
|
const elementId = p6.openElements.tagIDs[i6];
|
|
813005
|
-
if (tid === elementId && (tid !== TAG_ID.UNKNOWN || p6.treeAdapter.getTagName(element4) ===
|
|
813023
|
+
if (tid === elementId && (tid !== TAG_ID.UNKNOWN || p6.treeAdapter.getTagName(element4) === tn2)) {
|
|
813006
813024
|
p6.openElements.generateImpliedEndTagsWithExclusion(tid);
|
|
813007
813025
|
if (p6.openElements.stackTop >= i6)
|
|
813008
813026
|
p6.openElements.shortenToLength(i6);
|
|
@@ -813315,8 +813333,8 @@ function tokenInTableText(p6, token) {
|
|
|
813315
813333
|
}
|
|
813316
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]);
|
|
813317
813335
|
function startTagInCaption(p6, token) {
|
|
813318
|
-
const
|
|
813319
|
-
if (TABLE_VOID_ELEMENTS.has(
|
|
813336
|
+
const tn2 = token.tagID;
|
|
813337
|
+
if (TABLE_VOID_ELEMENTS.has(tn2)) {
|
|
813320
813338
|
if (p6.openElements.hasInTableScope(TAG_ID.CAPTION)) {
|
|
813321
813339
|
p6.openElements.generateImpliedEndTags();
|
|
813322
813340
|
p6.openElements.popUntilTagNamePopped(TAG_ID.CAPTION);
|
|
@@ -813329,8 +813347,8 @@ function startTagInCaption(p6, token) {
|
|
|
813329
813347
|
}
|
|
813330
813348
|
}
|
|
813331
813349
|
function endTagInCaption(p6, token) {
|
|
813332
|
-
const
|
|
813333
|
-
switch (
|
|
813350
|
+
const tn2 = token.tagID;
|
|
813351
|
+
switch (tn2) {
|
|
813334
813352
|
case TAG_ID.CAPTION:
|
|
813335
813353
|
case TAG_ID.TABLE: {
|
|
813336
813354
|
if (p6.openElements.hasInTableScope(TAG_ID.CAPTION)) {
|
|
@@ -813338,7 +813356,7 @@ function endTagInCaption(p6, token) {
|
|
|
813338
813356
|
p6.openElements.popUntilTagNamePopped(TAG_ID.CAPTION);
|
|
813339
813357
|
p6.activeFormattingElements.clearToLastMarker();
|
|
813340
813358
|
p6.insertionMode = InsertionMode.IN_TABLE;
|
|
813341
|
-
if (
|
|
813359
|
+
if (tn2 === TAG_ID.TABLE) {
|
|
813342
813360
|
endTagInTable(p6, token);
|
|
813343
813361
|
}
|
|
813344
813362
|
}
|
|
@@ -813445,12 +813463,12 @@ function startTagInTableBody(p6, token) {
|
|
|
813445
813463
|
}
|
|
813446
813464
|
}
|
|
813447
813465
|
function endTagInTableBody(p6, token) {
|
|
813448
|
-
const
|
|
813466
|
+
const tn2 = token.tagID;
|
|
813449
813467
|
switch (token.tagID) {
|
|
813450
813468
|
case TAG_ID.TBODY:
|
|
813451
813469
|
case TAG_ID.TFOOT:
|
|
813452
813470
|
case TAG_ID.THEAD: {
|
|
813453
|
-
if (p6.openElements.hasInTableScope(
|
|
813471
|
+
if (p6.openElements.hasInTableScope(tn2)) {
|
|
813454
813472
|
p6.openElements.clearBackToTableBodyContext();
|
|
813455
813473
|
p6.openElements.pop();
|
|
813456
813474
|
p6.insertionMode = InsertionMode.IN_TABLE;
|
|
@@ -813556,8 +813574,8 @@ function endTagInRow(p6, token) {
|
|
|
813556
813574
|
}
|
|
813557
813575
|
}
|
|
813558
813576
|
function startTagInCell(p6, token) {
|
|
813559
|
-
const
|
|
813560
|
-
if (TABLE_VOID_ELEMENTS.has(
|
|
813577
|
+
const tn2 = token.tagID;
|
|
813578
|
+
if (TABLE_VOID_ELEMENTS.has(tn2)) {
|
|
813561
813579
|
if (p6.openElements.hasInTableScope(TAG_ID.TD) || p6.openElements.hasInTableScope(TAG_ID.TH)) {
|
|
813562
813580
|
p6._closeTableCell();
|
|
813563
813581
|
startTagInRow(p6, token);
|
|
@@ -813567,13 +813585,13 @@ function startTagInCell(p6, token) {
|
|
|
813567
813585
|
}
|
|
813568
813586
|
}
|
|
813569
813587
|
function endTagInCell(p6, token) {
|
|
813570
|
-
const
|
|
813571
|
-
switch (
|
|
813588
|
+
const tn2 = token.tagID;
|
|
813589
|
+
switch (tn2) {
|
|
813572
813590
|
case TAG_ID.TD:
|
|
813573
813591
|
case TAG_ID.TH: {
|
|
813574
|
-
if (p6.openElements.hasInTableScope(
|
|
813592
|
+
if (p6.openElements.hasInTableScope(tn2)) {
|
|
813575
813593
|
p6.openElements.generateImpliedEndTags();
|
|
813576
|
-
p6.openElements.popUntilTagNamePopped(
|
|
813594
|
+
p6.openElements.popUntilTagNamePopped(tn2);
|
|
813577
813595
|
p6.activeFormattingElements.clearToLastMarker();
|
|
813578
813596
|
p6.insertionMode = InsertionMode.IN_ROW;
|
|
813579
813597
|
}
|
|
@@ -813584,7 +813602,7 @@ function endTagInCell(p6, token) {
|
|
|
813584
813602
|
case TAG_ID.TFOOT:
|
|
813585
813603
|
case TAG_ID.THEAD:
|
|
813586
813604
|
case TAG_ID.TR: {
|
|
813587
|
-
if (p6.openElements.hasInTableScope(
|
|
813605
|
+
if (p6.openElements.hasInTableScope(tn2)) {
|
|
813588
813606
|
p6._closeTableCell();
|
|
813589
813607
|
endTagInRow(p6, token);
|
|
813590
813608
|
}
|
|
@@ -813689,8 +813707,8 @@ function endTagInSelect(p6, token) {
|
|
|
813689
813707
|
}
|
|
813690
813708
|
}
|
|
813691
813709
|
function startTagInSelectInTable(p6, token) {
|
|
813692
|
-
const
|
|
813693
|
-
if (
|
|
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) {
|
|
813694
813712
|
p6.openElements.popUntilTagNamePopped(TAG_ID.SELECT);
|
|
813695
813713
|
p6._resetInsertionMode();
|
|
813696
813714
|
p6._processStartTag(token);
|
|
@@ -813699,9 +813717,9 @@ function startTagInSelectInTable(p6, token) {
|
|
|
813699
813717
|
}
|
|
813700
813718
|
}
|
|
813701
813719
|
function endTagInSelectInTable(p6, token) {
|
|
813702
|
-
const
|
|
813703
|
-
if (
|
|
813704
|
-
if (p6.openElements.hasInTableScope(
|
|
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)) {
|
|
813705
813723
|
p6.openElements.popUntilTagNamePopped(TAG_ID.SELECT);
|
|
813706
813724
|
p6._resetInsertionMode();
|
|
813707
813725
|
p6.onEndTag(token);
|
|
@@ -820754,7 +820772,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
820754
820772
|
var LOGS_FOLDER_NAME = "logs";
|
|
820755
820773
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
820756
820774
|
function getCliSource() {
|
|
820757
|
-
const version7 = "5.23.3-
|
|
820775
|
+
const version7 = "5.23.3-767-gd576140fb68";
|
|
820758
820776
|
return `cli@${version7}`;
|
|
820759
820777
|
}
|
|
820760
820778
|
var DebugLogger = class {
|
|
@@ -852087,7 +852105,7 @@ var LegacyDocsPublisher = class {
|
|
|
852087
852105
|
previewId,
|
|
852088
852106
|
disableTemplates: void 0,
|
|
852089
852107
|
skipUpload,
|
|
852090
|
-
cliVersion: "5.23.3-
|
|
852108
|
+
cliVersion: "5.23.3-767-gd576140fb68",
|
|
852091
852109
|
loginCommand: "fern auth login"
|
|
852092
852110
|
});
|
|
852093
852111
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -864028,11 +864046,11 @@ var MethodInvocation = class extends AstNode {
|
|
|
864028
864046
|
configureAwait;
|
|
864029
864047
|
generics;
|
|
864030
864048
|
multiline;
|
|
864031
|
-
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) {
|
|
864032
864050
|
super(generation);
|
|
864033
864051
|
this.method = method8;
|
|
864034
864052
|
this.arguments = arguments_;
|
|
864035
|
-
this.on =
|
|
864053
|
+
this.on = on2;
|
|
864036
864054
|
this.async = async2 ?? false;
|
|
864037
864055
|
this.configureAwait = configureAwait ?? false;
|
|
864038
864056
|
this.generics = generics ?? [];
|
|
@@ -874847,9 +874865,9 @@ var MethodInvocation2 = class extends AstNode2 {
|
|
|
874847
874865
|
method;
|
|
874848
874866
|
arguments_;
|
|
874849
874867
|
multiline;
|
|
874850
|
-
constructor({ method: method8, arguments_, on, multiline }) {
|
|
874868
|
+
constructor({ method: method8, arguments_, on: on2, multiline }) {
|
|
874851
874869
|
super();
|
|
874852
|
-
this.on =
|
|
874870
|
+
this.on = on2;
|
|
874853
874871
|
this.method = method8;
|
|
874854
874872
|
this.arguments_ = arguments_;
|
|
874855
874873
|
this.multiline = multiline;
|
|
@@ -875556,9 +875574,9 @@ var Pointer = class extends AstNode2 {
|
|
|
875556
875574
|
var Selector = class extends AstNode2 {
|
|
875557
875575
|
on;
|
|
875558
875576
|
selector;
|
|
875559
|
-
constructor({ on, selector: selector2 }) {
|
|
875577
|
+
constructor({ on: on2, selector: selector2 }) {
|
|
875560
875578
|
super();
|
|
875561
|
-
this.on =
|
|
875579
|
+
this.on = on2;
|
|
875562
875580
|
this.selector = selector2;
|
|
875563
875581
|
}
|
|
875564
875582
|
write(writer2) {
|
|
@@ -875676,9 +875694,9 @@ var Switch2 = class extends AstNode2 {
|
|
|
875676
875694
|
on;
|
|
875677
875695
|
cases;
|
|
875678
875696
|
default;
|
|
875679
|
-
constructor({ on, cases, default: default_ }) {
|
|
875697
|
+
constructor({ on: on2, cases, default: default_ }) {
|
|
875680
875698
|
super();
|
|
875681
|
-
this.on =
|
|
875699
|
+
this.on = on2;
|
|
875682
875700
|
this.cases = cases;
|
|
875683
875701
|
this.default = default_;
|
|
875684
875702
|
}
|
|
@@ -879188,9 +879206,9 @@ var MethodInvocation3 = class extends AstNode3 {
|
|
|
879188
879206
|
on;
|
|
879189
879207
|
method;
|
|
879190
879208
|
arguments_;
|
|
879191
|
-
constructor({ method: method8, arguments_, on }) {
|
|
879209
|
+
constructor({ method: method8, arguments_, on: on2 }) {
|
|
879192
879210
|
super();
|
|
879193
|
-
this.on =
|
|
879211
|
+
this.on = on2;
|
|
879194
879212
|
this.method = method8;
|
|
879195
879213
|
this.arguments_ = arguments_;
|
|
879196
879214
|
}
|
|
@@ -882065,13 +882083,13 @@ var MethodInvocation4 = class extends AstNode4 {
|
|
|
882065
882083
|
multiline;
|
|
882066
882084
|
static_;
|
|
882067
882085
|
on;
|
|
882068
|
-
constructor({ method: method8, arguments_, static_, multiline, on }) {
|
|
882086
|
+
constructor({ method: method8, arguments_, static_, multiline, on: on2 }) {
|
|
882069
882087
|
super();
|
|
882070
882088
|
this.method = method8;
|
|
882071
882089
|
this.arguments_ = arguments_;
|
|
882072
882090
|
this.static_ = static_ ?? false;
|
|
882073
882091
|
this.multiline = multiline ?? false;
|
|
882074
|
-
this.on =
|
|
882092
|
+
this.on = on2;
|
|
882075
882093
|
}
|
|
882076
882094
|
write(writer2) {
|
|
882077
882095
|
if (this.on != null) {
|
|
@@ -885557,13 +885575,13 @@ var MethodInvocation5 = class extends AstNode5 {
|
|
|
885557
885575
|
method;
|
|
885558
885576
|
arguments;
|
|
885559
885577
|
multiline;
|
|
885560
|
-
constructor({ on, method: method8, arguments_, multiline }) {
|
|
885578
|
+
constructor({ on: on2, method: method8, arguments_, multiline }) {
|
|
885561
885579
|
super();
|
|
885562
|
-
this.on =
|
|
885580
|
+
this.on = on2;
|
|
885563
885581
|
this.method = method8;
|
|
885564
885582
|
this.arguments = arguments_;
|
|
885565
885583
|
this.multiline = multiline ?? false;
|
|
885566
|
-
this.inheritReferences(
|
|
885584
|
+
this.inheritReferences(on2);
|
|
885567
885585
|
this.arguments.forEach((arg) => {
|
|
885568
885586
|
this.inheritReferences(arg);
|
|
885569
885587
|
});
|
|
@@ -889446,9 +889464,9 @@ var MethodInvocation6 = class extends AstNode6 {
|
|
|
889446
889464
|
arguments_;
|
|
889447
889465
|
keywordArguments;
|
|
889448
889466
|
block;
|
|
889449
|
-
constructor({ on, method: method8, arguments_, keywordArguments, block: block2 }) {
|
|
889467
|
+
constructor({ on: on2, method: method8, arguments_, keywordArguments, block: block2 }) {
|
|
889450
889468
|
super();
|
|
889451
|
-
this.on =
|
|
889469
|
+
this.on = on2;
|
|
889452
889470
|
this.method = method8;
|
|
889453
889471
|
this.arguments_ = arguments_;
|
|
889454
889472
|
this.keywordArguments = keywordArguments;
|
|
@@ -901692,9 +901710,9 @@ var MethodInvocation7 = class extends AstNode9 {
|
|
|
901692
901710
|
method;
|
|
901693
901711
|
arguments_;
|
|
901694
901712
|
["async"];
|
|
901695
|
-
constructor({ on, method: method8, arguments_, async: async2 }) {
|
|
901713
|
+
constructor({ on: on2, method: method8, arguments_, async: async2 }) {
|
|
901696
901714
|
super();
|
|
901697
|
-
this.on =
|
|
901715
|
+
this.on = on2;
|
|
901698
901716
|
this.method = method8;
|
|
901699
901717
|
this.arguments_ = arguments_;
|
|
901700
901718
|
this.async = async2;
|
|
@@ -905157,7 +905175,7 @@ async function createSpecsTarGzBuffer({ specs, context: context3, audiences }) {
|
|
|
905157
905175
|
});
|
|
905158
905176
|
await (0, import_promises132.writeFile)(join8(AbsoluteFilePath2.of(tmpDir.path), RelativeFilePath2.of(SPECS_MANIFEST_FILENAME)), JSON.stringify(manifest, void 0, 4));
|
|
905159
905177
|
const tarGzPath = join8(AbsoluteFilePath2.of(tmpDir.path), RelativeFilePath2.of("specs.tar.gz"));
|
|
905160
|
-
await
|
|
905178
|
+
await Kn({
|
|
905161
905179
|
gzip: true,
|
|
905162
905180
|
cwd: tmpDir.path,
|
|
905163
905181
|
file: tarGzPath,
|
|
@@ -917473,7 +917491,7 @@ function getAutomationContextFromEnv() {
|
|
|
917473
917491
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
917474
917492
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
917475
917493
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
917476
|
-
cli_version: "5.23.3-
|
|
917494
|
+
cli_version: "5.23.3-767-gd576140fb68"
|
|
917477
917495
|
};
|
|
917478
917496
|
}
|
|
917479
917497
|
function isAutomationMode() {
|
|
@@ -918299,7 +918317,7 @@ var CliContext = class _CliContext {
|
|
|
918299
918317
|
if (false) {
|
|
918300
918318
|
this.logger.error("CLI_VERSION is not defined");
|
|
918301
918319
|
}
|
|
918302
|
-
return "5.23.3-
|
|
918320
|
+
return "5.23.3-767-gd576140fb68";
|
|
918303
918321
|
}
|
|
918304
918322
|
getCliName() {
|
|
918305
918323
|
if (false) {
|
|
@@ -931325,7 +931343,7 @@ async function registerWorkspacesV1({
|
|
|
931325
931343
|
const tmpDir = await import_tmp_promise19.default.dir();
|
|
931326
931344
|
const tarPath = import_path114.default.join(tmpDir.path, "definition.tgz");
|
|
931327
931345
|
context3.logger.debug(`Compressing definition at ${tmpDir.path}`);
|
|
931328
|
-
await
|
|
931346
|
+
await Kn({ file: tarPath, cwd: resolvedWorkspace.absoluteFilePath }, ["."]);
|
|
931329
931347
|
context3.logger.info("Uploading definition...");
|
|
931330
931348
|
await axios_default.put(registerApiResponse.body.definitionS3UploadUrl, await (0, import_promises202.readFile)(tarPath));
|
|
931331
931349
|
context3.logger.info(
|