@settlemint/sdk-cli 2.6.2-main1760486b → 2.6.2-main20a336e9
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/dist/cli.js +711 -711
- package/dist/cli.js.map +4 -4
- package/package.json +8 -8
package/dist/cli.js
CHANGED
|
@@ -233419,22 +233419,22 @@ var init_toBytes = __esm(() => {
|
|
|
233419
233419
|
});
|
|
233420
233420
|
|
|
233421
233421
|
// ../../node_modules/.bun/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js
|
|
233422
|
-
function fromBig(n7,
|
|
233423
|
-
if (
|
|
233422
|
+
function fromBig(n7, le3 = false) {
|
|
233423
|
+
if (le3)
|
|
233424
233424
|
return { h: Number(n7 & U32_MASK64), l: Number(n7 >> _32n & U32_MASK64) };
|
|
233425
233425
|
return { h: Number(n7 >> _32n & U32_MASK64) | 0, l: Number(n7 & U32_MASK64) | 0 };
|
|
233426
233426
|
}
|
|
233427
|
-
function split2(lst,
|
|
233427
|
+
function split2(lst, le3 = false) {
|
|
233428
233428
|
const len = lst.length;
|
|
233429
233429
|
let Ah = new Uint32Array(len);
|
|
233430
233430
|
let Al = new Uint32Array(len);
|
|
233431
233431
|
for (let i7 = 0;i7 < len; i7++) {
|
|
233432
|
-
const { h:
|
|
233433
|
-
[Ah[i7], Al[i7]] = [
|
|
233432
|
+
const { h: h8, l: l4 } = fromBig(lst[i7], le3);
|
|
233433
|
+
[Ah[i7], Al[i7]] = [h8, l4];
|
|
233434
233434
|
}
|
|
233435
233435
|
return [Ah, Al];
|
|
233436
233436
|
}
|
|
233437
|
-
var U32_MASK64, _32n, rotlSH = (
|
|
233437
|
+
var U32_MASK64, _32n, rotlSH = (h8, l4, s7) => h8 << s7 | l4 >>> 32 - s7, rotlSL = (h8, l4, s7) => l4 << s7 | h8 >>> 32 - s7, rotlBH = (h8, l4, s7) => l4 << s7 - 32 | h8 >>> 64 - s7, rotlBL = (h8, l4, s7) => h8 << s7 - 32 | l4 >>> 64 - s7;
|
|
233438
233438
|
var init__u64 = __esm(() => {
|
|
233439
233439
|
U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
233440
233440
|
_32n = /* @__PURE__ */ BigInt(32);
|
|
@@ -233461,11 +233461,11 @@ function abytes(b4, ...lengths) {
|
|
|
233461
233461
|
if (lengths.length > 0 && !lengths.includes(b4.length))
|
|
233462
233462
|
throw new Error("Uint8Array expected of length " + lengths + ", got length=" + b4.length);
|
|
233463
233463
|
}
|
|
233464
|
-
function ahash(
|
|
233465
|
-
if (typeof
|
|
233464
|
+
function ahash(h8) {
|
|
233465
|
+
if (typeof h8 !== "function" || typeof h8.create !== "function")
|
|
233466
233466
|
throw new Error("Hash should be wrapped by utils.createHasher");
|
|
233467
|
-
anumber(
|
|
233468
|
-
anumber(
|
|
233467
|
+
anumber(h8.outputLen);
|
|
233468
|
+
anumber(h8.blockLen);
|
|
233469
233469
|
}
|
|
233470
233470
|
function aexists(instance, checkFinished = true) {
|
|
233471
233471
|
if (instance.destroyed)
|
|
@@ -233559,17 +233559,17 @@ var init_utils2 = __esm(() => {
|
|
|
233559
233559
|
|
|
233560
233560
|
// ../../node_modules/.bun/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha3.js
|
|
233561
233561
|
function keccakP(s7, rounds = 24) {
|
|
233562
|
-
const
|
|
233562
|
+
const B3 = new Uint32Array(5 * 2);
|
|
233563
233563
|
for (let round = 24 - rounds;round < 24; round++) {
|
|
233564
233564
|
for (let x6 = 0;x6 < 10; x6++)
|
|
233565
|
-
|
|
233565
|
+
B3[x6] = s7[x6] ^ s7[x6 + 10] ^ s7[x6 + 20] ^ s7[x6 + 30] ^ s7[x6 + 40];
|
|
233566
233566
|
for (let x6 = 0;x6 < 10; x6 += 2) {
|
|
233567
233567
|
const idx1 = (x6 + 8) % 10;
|
|
233568
233568
|
const idx0 = (x6 + 2) % 10;
|
|
233569
|
-
const B0 =
|
|
233570
|
-
const B1 =
|
|
233571
|
-
const Th = rotlH(B0, B1, 1) ^
|
|
233572
|
-
const Tl = rotlL(B0, B1, 1) ^
|
|
233569
|
+
const B0 = B3[idx0];
|
|
233570
|
+
const B1 = B3[idx0 + 1];
|
|
233571
|
+
const Th = rotlH(B0, B1, 1) ^ B3[idx1];
|
|
233572
|
+
const Tl = rotlL(B0, B1, 1) ^ B3[idx1 + 1];
|
|
233573
233573
|
for (let y4 = 0;y4 < 50; y4 += 10) {
|
|
233574
233574
|
s7[x6 + y4] ^= Th;
|
|
233575
233575
|
s7[x6 + y4 + 1] ^= Tl;
|
|
@@ -233589,16 +233589,16 @@ function keccakP(s7, rounds = 24) {
|
|
|
233589
233589
|
}
|
|
233590
233590
|
for (let y4 = 0;y4 < 50; y4 += 10) {
|
|
233591
233591
|
for (let x6 = 0;x6 < 10; x6++)
|
|
233592
|
-
|
|
233592
|
+
B3[x6] = s7[y4 + x6];
|
|
233593
233593
|
for (let x6 = 0;x6 < 10; x6++)
|
|
233594
|
-
s7[y4 + x6] ^= ~
|
|
233594
|
+
s7[y4 + x6] ^= ~B3[(x6 + 2) % 10] & B3[(x6 + 4) % 10];
|
|
233595
233595
|
}
|
|
233596
233596
|
s7[0] ^= SHA3_IOTA_H[round];
|
|
233597
233597
|
s7[1] ^= SHA3_IOTA_L[round];
|
|
233598
233598
|
}
|
|
233599
|
-
clean(
|
|
233599
|
+
clean(B3);
|
|
233600
233600
|
}
|
|
233601
|
-
var _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_PI, SHA3_ROTL, _SHA3_IOTA, IOTAS, SHA3_IOTA_H, SHA3_IOTA_L, rotlH = (
|
|
233601
|
+
var _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_PI, SHA3_ROTL, _SHA3_IOTA, IOTAS, SHA3_IOTA_H, SHA3_IOTA_L, rotlH = (h8, l4, s7) => s7 > 32 ? rotlBH(h8, l4, s7) : rotlSH(h8, l4, s7), rotlL = (h8, l4, s7) => s7 > 32 ? rotlBL(h8, l4, s7) : rotlSL(h8, l4, s7), Keccak, gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen)), keccak_256;
|
|
233602
233602
|
var init_sha3 = __esm(() => {
|
|
233603
233603
|
init__u64();
|
|
233604
233604
|
init_utils2();
|
|
@@ -235922,9 +235922,9 @@ function setBigUint64(view, byteOffset, value5, isLE2) {
|
|
|
235922
235922
|
const _u32_max = BigInt(4294967295);
|
|
235923
235923
|
const wh = Number(value5 >> _32n2 & _u32_max);
|
|
235924
235924
|
const wl = Number(value5 & _u32_max);
|
|
235925
|
-
const
|
|
235925
|
+
const h8 = isLE2 ? 4 : 0;
|
|
235926
235926
|
const l4 = isLE2 ? 0 : 4;
|
|
235927
|
-
view.setUint32(byteOffset +
|
|
235927
|
+
view.setUint32(byteOffset + h8, wh, isLE2);
|
|
235928
235928
|
view.setUint32(byteOffset + l4, wl, isLE2);
|
|
235929
235929
|
}
|
|
235930
235930
|
function Chi(a8, b4, c3) {
|
|
@@ -236123,15 +236123,15 @@ var init_sha2 = __esm(() => {
|
|
|
236123
236123
|
this.H = SHA256_IV[7] | 0;
|
|
236124
236124
|
}
|
|
236125
236125
|
get() {
|
|
236126
|
-
const { A: A5, B:
|
|
236127
|
-
return [A5,
|
|
236126
|
+
const { A: A5, B: B3, C: C4, D: D3, E: E5, F: F3, G: G4, H: H4 } = this;
|
|
236127
|
+
return [A5, B3, C4, D3, E5, F3, G4, H4];
|
|
236128
236128
|
}
|
|
236129
|
-
set(A5,
|
|
236129
|
+
set(A5, B3, C4, D3, E5, F3, G4, H4) {
|
|
236130
236130
|
this.A = A5 | 0;
|
|
236131
|
-
this.B =
|
|
236131
|
+
this.B = B3 | 0;
|
|
236132
236132
|
this.C = C4 | 0;
|
|
236133
236133
|
this.D = D3 | 0;
|
|
236134
|
-
this.E =
|
|
236134
|
+
this.E = E5 | 0;
|
|
236135
236135
|
this.F = F3 | 0;
|
|
236136
236136
|
this.G = G4 | 0;
|
|
236137
236137
|
this.H = H4 | 0;
|
|
@@ -236146,30 +236146,30 @@ var init_sha2 = __esm(() => {
|
|
|
236146
236146
|
const s1 = rotr(W22, 17) ^ rotr(W22, 19) ^ W22 >>> 10;
|
|
236147
236147
|
SHA256_W[i7] = s1 + SHA256_W[i7 - 7] + s0 + SHA256_W[i7 - 16] | 0;
|
|
236148
236148
|
}
|
|
236149
|
-
let { A: A5, B:
|
|
236149
|
+
let { A: A5, B: B3, C: C4, D: D3, E: E5, F: F3, G: G4, H: H4 } = this;
|
|
236150
236150
|
for (let i7 = 0;i7 < 64; i7++) {
|
|
236151
|
-
const sigma1 = rotr(
|
|
236152
|
-
const T1 = H4 + sigma1 + Chi(
|
|
236151
|
+
const sigma1 = rotr(E5, 6) ^ rotr(E5, 11) ^ rotr(E5, 25);
|
|
236152
|
+
const T1 = H4 + sigma1 + Chi(E5, F3, G4) + SHA256_K[i7] + SHA256_W[i7] | 0;
|
|
236153
236153
|
const sigma0 = rotr(A5, 2) ^ rotr(A5, 13) ^ rotr(A5, 22);
|
|
236154
|
-
const T22 = sigma0 + Maj(A5,
|
|
236154
|
+
const T22 = sigma0 + Maj(A5, B3, C4) | 0;
|
|
236155
236155
|
H4 = G4;
|
|
236156
236156
|
G4 = F3;
|
|
236157
|
-
F3 =
|
|
236158
|
-
|
|
236157
|
+
F3 = E5;
|
|
236158
|
+
E5 = D3 + T1 | 0;
|
|
236159
236159
|
D3 = C4;
|
|
236160
|
-
C4 =
|
|
236161
|
-
|
|
236160
|
+
C4 = B3;
|
|
236161
|
+
B3 = A5;
|
|
236162
236162
|
A5 = T1 + T22 | 0;
|
|
236163
236163
|
}
|
|
236164
236164
|
A5 = A5 + this.A | 0;
|
|
236165
|
-
|
|
236165
|
+
B3 = B3 + this.B | 0;
|
|
236166
236166
|
C4 = C4 + this.C | 0;
|
|
236167
236167
|
D3 = D3 + this.D | 0;
|
|
236168
|
-
|
|
236168
|
+
E5 = E5 + this.E | 0;
|
|
236169
236169
|
F3 = F3 + this.F | 0;
|
|
236170
236170
|
G4 = G4 + this.G | 0;
|
|
236171
236171
|
H4 = H4 + this.H | 0;
|
|
236172
|
-
this.set(A5,
|
|
236172
|
+
this.set(A5, B3, C4, D3, E5, F3, G4, H4);
|
|
236173
236173
|
}
|
|
236174
236174
|
roundClean() {
|
|
236175
236175
|
clean(SHA256_W);
|
|
@@ -236393,14 +236393,14 @@ function createHmacDrbg(hashLen, qByteLen, hmacFn) {
|
|
|
236393
236393
|
k5.fill(0);
|
|
236394
236394
|
i7 = 0;
|
|
236395
236395
|
};
|
|
236396
|
-
const
|
|
236396
|
+
const h8 = (...b4) => hmacFn(k5, v6, ...b4);
|
|
236397
236397
|
const reseed = (seed = u8n(0)) => {
|
|
236398
|
-
k5 =
|
|
236399
|
-
v6 =
|
|
236398
|
+
k5 = h8(u8fr([0]), seed);
|
|
236399
|
+
v6 = h8();
|
|
236400
236400
|
if (seed.length === 0)
|
|
236401
236401
|
return;
|
|
236402
|
-
k5 =
|
|
236403
|
-
v6 =
|
|
236402
|
+
k5 = h8(u8fr([1]), seed);
|
|
236403
|
+
v6 = h8();
|
|
236404
236404
|
};
|
|
236405
236405
|
const gen2 = () => {
|
|
236406
236406
|
if (i7++ >= 1000)
|
|
@@ -236408,7 +236408,7 @@ function createHmacDrbg(hashLen, qByteLen, hmacFn) {
|
|
|
236408
236408
|
let len = 0;
|
|
236409
236409
|
const out = [];
|
|
236410
236410
|
while (len < qByteLen) {
|
|
236411
|
-
v6 =
|
|
236411
|
+
v6 = h8();
|
|
236412
236412
|
const sl = v6.slice();
|
|
236413
236413
|
out.push(sl);
|
|
236414
236414
|
len += v6.length;
|
|
@@ -236527,22 +236527,22 @@ function sqrt5mod8(Fp, n7) {
|
|
|
236527
236527
|
throw new Error("Cannot find square root");
|
|
236528
236528
|
return root;
|
|
236529
236529
|
}
|
|
236530
|
-
function tonelliShanks(
|
|
236531
|
-
if (
|
|
236530
|
+
function tonelliShanks(P4) {
|
|
236531
|
+
if (P4 < BigInt(3))
|
|
236532
236532
|
throw new Error("sqrt is not defined for small field");
|
|
236533
|
-
let Q4 =
|
|
236534
|
-
let
|
|
236533
|
+
let Q4 = P4 - _1n3;
|
|
236534
|
+
let S5 = 0;
|
|
236535
236535
|
while (Q4 % _2n2 === _0n3) {
|
|
236536
236536
|
Q4 /= _2n2;
|
|
236537
|
-
|
|
236537
|
+
S5++;
|
|
236538
236538
|
}
|
|
236539
236539
|
let Z4 = _2n2;
|
|
236540
|
-
const _Fp = Field(
|
|
236540
|
+
const _Fp = Field(P4);
|
|
236541
236541
|
while (FpLegendre(_Fp, Z4) === 1) {
|
|
236542
236542
|
if (Z4++ > 1000)
|
|
236543
236543
|
throw new Error("Cannot find square root: probably non-prime P");
|
|
236544
236544
|
}
|
|
236545
|
-
if (
|
|
236545
|
+
if (S5 === 1)
|
|
236546
236546
|
return sqrt3mod4;
|
|
236547
236547
|
let cc = _Fp.pow(Z4, Q4);
|
|
236548
236548
|
const Q1div2 = (Q4 + _1n3) / _2n2;
|
|
@@ -236551,7 +236551,7 @@ function tonelliShanks(P5) {
|
|
|
236551
236551
|
return n7;
|
|
236552
236552
|
if (FpLegendre(Fp, n7) !== 1)
|
|
236553
236553
|
throw new Error("Cannot find square root");
|
|
236554
|
-
let M5 =
|
|
236554
|
+
let M5 = S5;
|
|
236555
236555
|
let c3 = Fp.mul(Fp.ONE, cc);
|
|
236556
236556
|
let t9 = Fp.pow(n7, Q4);
|
|
236557
236557
|
let R7 = Fp.pow(n7, Q1div2);
|
|
@@ -236576,12 +236576,12 @@ function tonelliShanks(P5) {
|
|
|
236576
236576
|
return R7;
|
|
236577
236577
|
};
|
|
236578
236578
|
}
|
|
236579
|
-
function FpSqrt(
|
|
236580
|
-
if (
|
|
236579
|
+
function FpSqrt(P4) {
|
|
236580
|
+
if (P4 % _4n === _3n)
|
|
236581
236581
|
return sqrt3mod4;
|
|
236582
|
-
if (
|
|
236582
|
+
if (P4 % _8n === _5n)
|
|
236583
236583
|
return sqrt5mod8;
|
|
236584
|
-
return tonelliShanks(
|
|
236584
|
+
return tonelliShanks(P4);
|
|
236585
236585
|
}
|
|
236586
236586
|
function validateField(field2) {
|
|
236587
236587
|
const initial = {
|
|
@@ -236802,8 +236802,8 @@ function validateMSMScalars(scalars, field2) {
|
|
|
236802
236802
|
throw new Error("invalid scalar at index " + i7);
|
|
236803
236803
|
});
|
|
236804
236804
|
}
|
|
236805
|
-
function getW(
|
|
236806
|
-
return pointWindowSizes.get(
|
|
236805
|
+
function getW(P4) {
|
|
236806
|
+
return pointWindowSizes.get(P4) || 1;
|
|
236807
236807
|
}
|
|
236808
236808
|
function wNAF(c3, bits) {
|
|
236809
236809
|
return {
|
|
@@ -236868,29 +236868,29 @@ function wNAF(c3, bits) {
|
|
|
236868
236868
|
}
|
|
236869
236869
|
return acc;
|
|
236870
236870
|
},
|
|
236871
|
-
getPrecomputes(W5,
|
|
236872
|
-
let comp = pointPrecomputes.get(
|
|
236871
|
+
getPrecomputes(W5, P4, transform3) {
|
|
236872
|
+
let comp = pointPrecomputes.get(P4);
|
|
236873
236873
|
if (!comp) {
|
|
236874
|
-
comp = this.precomputeWindow(
|
|
236874
|
+
comp = this.precomputeWindow(P4, W5);
|
|
236875
236875
|
if (W5 !== 1)
|
|
236876
|
-
pointPrecomputes.set(
|
|
236876
|
+
pointPrecomputes.set(P4, transform3(comp));
|
|
236877
236877
|
}
|
|
236878
236878
|
return comp;
|
|
236879
236879
|
},
|
|
236880
|
-
wNAFCached(
|
|
236881
|
-
const W5 = getW(
|
|
236882
|
-
return this.wNAF(W5, this.getPrecomputes(W5,
|
|
236880
|
+
wNAFCached(P4, n7, transform3) {
|
|
236881
|
+
const W5 = getW(P4);
|
|
236882
|
+
return this.wNAF(W5, this.getPrecomputes(W5, P4, transform3), n7);
|
|
236883
236883
|
},
|
|
236884
|
-
wNAFCachedUnsafe(
|
|
236885
|
-
const W5 = getW(
|
|
236884
|
+
wNAFCachedUnsafe(P4, n7, transform3, prev) {
|
|
236885
|
+
const W5 = getW(P4);
|
|
236886
236886
|
if (W5 === 1)
|
|
236887
|
-
return this.unsafeLadder(
|
|
236888
|
-
return this.wNAFUnsafe(W5, this.getPrecomputes(W5,
|
|
236887
|
+
return this.unsafeLadder(P4, n7, prev);
|
|
236888
|
+
return this.wNAFUnsafe(W5, this.getPrecomputes(W5, P4, transform3), n7, prev);
|
|
236889
236889
|
},
|
|
236890
|
-
setWindowSize(
|
|
236890
|
+
setWindowSize(P4, W5) {
|
|
236891
236891
|
validateW(W5, bits);
|
|
236892
|
-
pointWindowSizes.set(
|
|
236893
|
-
pointPrecomputes.delete(
|
|
236892
|
+
pointWindowSizes.set(P4, W5);
|
|
236893
|
+
pointPrecomputes.delete(P4);
|
|
236894
236894
|
}
|
|
236895
236895
|
};
|
|
236896
236896
|
}
|
|
@@ -237055,15 +237055,15 @@ function weierstrassPoints(opts) {
|
|
|
237055
237055
|
throw new Error("ProjectivePoint expected");
|
|
237056
237056
|
}
|
|
237057
237057
|
const toAffineMemo = memoized((p5, iz) => {
|
|
237058
|
-
const { px: x6, py: y4, pz:
|
|
237059
|
-
if (Fp.eql(
|
|
237058
|
+
const { px: x6, py: y4, pz: z3 } = p5;
|
|
237059
|
+
if (Fp.eql(z3, Fp.ONE))
|
|
237060
237060
|
return { x: x6, y: y4 };
|
|
237061
237061
|
const is0 = p5.is0();
|
|
237062
237062
|
if (iz == null)
|
|
237063
|
-
iz = is0 ? Fp.ONE : Fp.inv(
|
|
237063
|
+
iz = is0 ? Fp.ONE : Fp.inv(z3);
|
|
237064
237064
|
const ax = Fp.mul(x6, iz);
|
|
237065
237065
|
const ay = Fp.mul(y4, iz);
|
|
237066
|
-
const zz = Fp.mul(
|
|
237066
|
+
const zz = Fp.mul(z3, iz);
|
|
237067
237067
|
if (is0)
|
|
237068
237068
|
return { x: Fp.ZERO, y: Fp.ZERO };
|
|
237069
237069
|
if (!Fp.eql(zz, Fp.ONE))
|
|
@@ -237121,9 +237121,9 @@ function weierstrassPoints(opts) {
|
|
|
237121
237121
|
return points.map((p5, i7) => p5.toAffine(toInv[i7])).map(Point.fromAffine);
|
|
237122
237122
|
}
|
|
237123
237123
|
static fromHex(hex3) {
|
|
237124
|
-
const
|
|
237125
|
-
|
|
237126
|
-
return
|
|
237124
|
+
const P4 = Point.fromAffine(fromBytes(ensureBytes("pointHex", hex3)));
|
|
237125
|
+
P4.assertValidity();
|
|
237126
|
+
return P4;
|
|
237127
237127
|
}
|
|
237128
237128
|
static fromPrivateKey(privateKey) {
|
|
237129
237129
|
return Point.BASE.multiply(normPrivateKeyToScalar(privateKey));
|
|
@@ -237302,7 +237302,7 @@ function weierstrassPoints(opts) {
|
|
|
237302
237302
|
}
|
|
237303
237303
|
multiplyAndAddUnsafe(Q4, a8, b4) {
|
|
237304
237304
|
const G4 = Point.BASE;
|
|
237305
|
-
const mul = (
|
|
237305
|
+
const mul = (P4, a9) => a9 === _0n5 || a9 === _1n5 || !P4.equals(G4) ? P4.multiplyUnsafe(a9) : P4.multiply(a9);
|
|
237306
237306
|
const sum = mul(this, a8).add(mul(Q4, b4));
|
|
237307
237307
|
return sum.is0() ? undefined : sum;
|
|
237308
237308
|
}
|
|
@@ -237450,7 +237450,7 @@ function weierstrass(curveDef) {
|
|
|
237450
237450
|
}
|
|
237451
237451
|
recoverPublicKey(msgHash) {
|
|
237452
237452
|
const { r: r7, s: s7, recovery: rec } = this;
|
|
237453
|
-
const
|
|
237453
|
+
const h8 = bits2int_modN(ensureBytes("msgHash", msgHash));
|
|
237454
237454
|
if (rec == null || ![0, 1, 2, 3].includes(rec))
|
|
237455
237455
|
throw new Error("recovery id invalid");
|
|
237456
237456
|
const radj = rec === 2 || rec === 3 ? r7 + CURVE.n : r7;
|
|
@@ -237459,7 +237459,7 @@ function weierstrass(curveDef) {
|
|
|
237459
237459
|
const prefix = (rec & 1) === 0 ? "02" : "03";
|
|
237460
237460
|
const R7 = Point.fromHex(prefix + numToSizedHex(radj, Fp.BYTES));
|
|
237461
237461
|
const ir2 = invN(radj);
|
|
237462
|
-
const u1 = modN(-
|
|
237462
|
+
const u1 = modN(-h8 * ir2);
|
|
237463
237463
|
const u22 = modN(s7 * ir2);
|
|
237464
237464
|
const Q4 = Point.BASE.multiplyAndAddUnsafe(R7, u1, u22);
|
|
237465
237465
|
if (!Q4)
|
|
@@ -237615,7 +237615,7 @@ function weierstrass(curveDef) {
|
|
|
237615
237615
|
if (!isHex2 && !isObj)
|
|
237616
237616
|
throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");
|
|
237617
237617
|
let _sig = undefined;
|
|
237618
|
-
let
|
|
237618
|
+
let P4;
|
|
237619
237619
|
try {
|
|
237620
237620
|
if (isObj)
|
|
237621
237621
|
_sig = new Signature(sg.r, sg.s);
|
|
@@ -237630,7 +237630,7 @@ function weierstrass(curveDef) {
|
|
|
237630
237630
|
if (!_sig && format2 !== "der")
|
|
237631
237631
|
_sig = Signature.fromCompact(sg);
|
|
237632
237632
|
}
|
|
237633
|
-
|
|
237633
|
+
P4 = Point.fromHex(publicKey);
|
|
237634
237634
|
} catch (error51) {
|
|
237635
237635
|
return false;
|
|
237636
237636
|
}
|
|
@@ -237641,11 +237641,11 @@ function weierstrass(curveDef) {
|
|
|
237641
237641
|
if (prehash)
|
|
237642
237642
|
msgHash = CURVE.hash(msgHash);
|
|
237643
237643
|
const { r: r7, s: s7 } = _sig;
|
|
237644
|
-
const
|
|
237644
|
+
const h8 = bits2int_modN(msgHash);
|
|
237645
237645
|
const is = invN(s7);
|
|
237646
|
-
const u1 = modN(
|
|
237646
|
+
const u1 = modN(h8 * is);
|
|
237647
237647
|
const u22 = modN(r7 * is);
|
|
237648
|
-
const R7 = Point.BASE.multiplyAndAddUnsafe(
|
|
237648
|
+
const R7 = Point.BASE.multiplyAndAddUnsafe(P4, u1, u22)?.toAffine();
|
|
237649
237649
|
if (!R7)
|
|
237650
237650
|
return false;
|
|
237651
237651
|
const v6 = modN(R7.x);
|
|
@@ -237777,26 +237777,26 @@ var init_weierstrass = __esm(() => {
|
|
|
237777
237777
|
Err: DERErr,
|
|
237778
237778
|
_tlv: {
|
|
237779
237779
|
encode: (tag, data) => {
|
|
237780
|
-
const { Err:
|
|
237780
|
+
const { Err: E5 } = DER;
|
|
237781
237781
|
if (tag < 0 || tag > 256)
|
|
237782
|
-
throw new
|
|
237782
|
+
throw new E5("tlv.encode: wrong tag");
|
|
237783
237783
|
if (data.length & 1)
|
|
237784
|
-
throw new
|
|
237784
|
+
throw new E5("tlv.encode: unpadded data");
|
|
237785
237785
|
const dataLen = data.length / 2;
|
|
237786
237786
|
const len = numberToHexUnpadded(dataLen);
|
|
237787
237787
|
if (len.length / 2 & 128)
|
|
237788
|
-
throw new
|
|
237788
|
+
throw new E5("tlv.encode: long form length too big");
|
|
237789
237789
|
const lenLen = dataLen > 127 ? numberToHexUnpadded(len.length / 2 | 128) : "";
|
|
237790
237790
|
const t9 = numberToHexUnpadded(tag);
|
|
237791
237791
|
return t9 + lenLen + len + data;
|
|
237792
237792
|
},
|
|
237793
237793
|
decode(tag, data) {
|
|
237794
|
-
const { Err:
|
|
237794
|
+
const { Err: E5 } = DER;
|
|
237795
237795
|
let pos = 0;
|
|
237796
237796
|
if (tag < 0 || tag > 256)
|
|
237797
|
-
throw new
|
|
237797
|
+
throw new E5("tlv.encode: wrong tag");
|
|
237798
237798
|
if (data.length < 2 || data[pos++] !== tag)
|
|
237799
|
-
throw new
|
|
237799
|
+
throw new E5("tlv.decode: wrong tlv");
|
|
237800
237800
|
const first = data[pos++];
|
|
237801
237801
|
const isLong = !!(first & 128);
|
|
237802
237802
|
let length = 0;
|
|
@@ -237805,57 +237805,57 @@ var init_weierstrass = __esm(() => {
|
|
|
237805
237805
|
else {
|
|
237806
237806
|
const lenLen = first & 127;
|
|
237807
237807
|
if (!lenLen)
|
|
237808
|
-
throw new
|
|
237808
|
+
throw new E5("tlv.decode(long): indefinite length not supported");
|
|
237809
237809
|
if (lenLen > 4)
|
|
237810
|
-
throw new
|
|
237810
|
+
throw new E5("tlv.decode(long): byte length is too big");
|
|
237811
237811
|
const lengthBytes = data.subarray(pos, pos + lenLen);
|
|
237812
237812
|
if (lengthBytes.length !== lenLen)
|
|
237813
|
-
throw new
|
|
237813
|
+
throw new E5("tlv.decode: length bytes not complete");
|
|
237814
237814
|
if (lengthBytes[0] === 0)
|
|
237815
|
-
throw new
|
|
237815
|
+
throw new E5("tlv.decode(long): zero leftmost byte");
|
|
237816
237816
|
for (const b4 of lengthBytes)
|
|
237817
237817
|
length = length << 8 | b4;
|
|
237818
237818
|
pos += lenLen;
|
|
237819
237819
|
if (length < 128)
|
|
237820
|
-
throw new
|
|
237820
|
+
throw new E5("tlv.decode(long): not minimal encoding");
|
|
237821
237821
|
}
|
|
237822
237822
|
const v6 = data.subarray(pos, pos + length);
|
|
237823
237823
|
if (v6.length !== length)
|
|
237824
|
-
throw new
|
|
237824
|
+
throw new E5("tlv.decode: wrong value length");
|
|
237825
237825
|
return { v: v6, l: data.subarray(pos + length) };
|
|
237826
237826
|
}
|
|
237827
237827
|
},
|
|
237828
237828
|
_int: {
|
|
237829
237829
|
encode(num) {
|
|
237830
|
-
const { Err:
|
|
237830
|
+
const { Err: E5 } = DER;
|
|
237831
237831
|
if (num < _0n5)
|
|
237832
|
-
throw new
|
|
237832
|
+
throw new E5("integer: negative integers are not allowed");
|
|
237833
237833
|
let hex3 = numberToHexUnpadded(num);
|
|
237834
237834
|
if (Number.parseInt(hex3[0], 16) & 8)
|
|
237835
237835
|
hex3 = "00" + hex3;
|
|
237836
237836
|
if (hex3.length & 1)
|
|
237837
|
-
throw new
|
|
237837
|
+
throw new E5("unexpected DER parsing assertion: unpadded hex");
|
|
237838
237838
|
return hex3;
|
|
237839
237839
|
},
|
|
237840
237840
|
decode(data) {
|
|
237841
|
-
const { Err:
|
|
237841
|
+
const { Err: E5 } = DER;
|
|
237842
237842
|
if (data[0] & 128)
|
|
237843
|
-
throw new
|
|
237843
|
+
throw new E5("invalid signature integer: negative");
|
|
237844
237844
|
if (data[0] === 0 && !(data[1] & 128))
|
|
237845
|
-
throw new
|
|
237845
|
+
throw new E5("invalid signature integer: unnecessary leading zero");
|
|
237846
237846
|
return bytesToNumberBE(data);
|
|
237847
237847
|
}
|
|
237848
237848
|
},
|
|
237849
237849
|
toSig(hex3) {
|
|
237850
|
-
const { Err:
|
|
237850
|
+
const { Err: E5, _int: int2, _tlv: tlv } = DER;
|
|
237851
237851
|
const data = ensureBytes("signature", hex3);
|
|
237852
237852
|
const { v: seqBytes, l: seqLeftBytes } = tlv.decode(48, data);
|
|
237853
237853
|
if (seqLeftBytes.length)
|
|
237854
|
-
throw new
|
|
237854
|
+
throw new E5("invalid signature: left bytes after parsing");
|
|
237855
237855
|
const { v: rBytes, l: rLeftBytes } = tlv.decode(2, seqBytes);
|
|
237856
237856
|
const { v: sBytes, l: sLeftBytes } = tlv.decode(2, rLeftBytes);
|
|
237857
237857
|
if (sLeftBytes.length)
|
|
237858
|
-
throw new
|
|
237858
|
+
throw new E5("invalid signature: left bytes after parsing");
|
|
237859
237859
|
return { r: int2.decode(rBytes), s: int2.decode(sBytes) };
|
|
237860
237860
|
},
|
|
237861
237861
|
hexFromSig(sig) {
|
|
@@ -237964,8 +237964,8 @@ function hash_to_field(msg, count, options) {
|
|
|
237964
237964
|
anum(count);
|
|
237965
237965
|
const DST = typeof _DST === "string" ? utf8ToBytes2(_DST) : _DST;
|
|
237966
237966
|
const log2p = p5.toString(2).length;
|
|
237967
|
-
const
|
|
237968
|
-
const len_in_bytes = count * m7 *
|
|
237967
|
+
const L6 = Math.ceil((log2p + k5) / 8);
|
|
237968
|
+
const len_in_bytes = count * m7 * L6;
|
|
237969
237969
|
let prb;
|
|
237970
237970
|
if (expand2 === "xmd") {
|
|
237971
237971
|
prb = expand_message_xmd(msg, DST, len_in_bytes, hash3);
|
|
@@ -237980,8 +237980,8 @@ function hash_to_field(msg, count, options) {
|
|
|
237980
237980
|
for (let i7 = 0;i7 < count; i7++) {
|
|
237981
237981
|
const e11 = new Array(m7);
|
|
237982
237982
|
for (let j3 = 0;j3 < m7; j3++) {
|
|
237983
|
-
const elm_offset =
|
|
237984
|
-
const tv = prb.subarray(elm_offset, elm_offset +
|
|
237983
|
+
const elm_offset = L6 * (j3 + i7 * m7);
|
|
237984
|
+
const tv = prb.subarray(elm_offset, elm_offset + L6);
|
|
237985
237985
|
e11[j3] = mod(os2ip(tv), p5);
|
|
237986
237986
|
}
|
|
237987
237987
|
u6[i7] = e11;
|
|
@@ -238005,11 +238005,11 @@ function createHasher2(Point, mapToCurve, defaults2) {
|
|
|
238005
238005
|
return Point.fromAffine(mapToCurve(num));
|
|
238006
238006
|
}
|
|
238007
238007
|
function clear(initial) {
|
|
238008
|
-
const
|
|
238009
|
-
if (
|
|
238008
|
+
const P4 = initial.clearCofactor();
|
|
238009
|
+
if (P4.equals(Point.ZERO))
|
|
238010
238010
|
return Point.ZERO;
|
|
238011
|
-
|
|
238012
|
-
return
|
|
238011
|
+
P4.assertValidity();
|
|
238012
|
+
return P4;
|
|
238013
238013
|
}
|
|
238014
238014
|
return {
|
|
238015
238015
|
defaults: defaults2,
|
|
@@ -238050,23 +238050,23 @@ __export(exports_secp256k1, {
|
|
|
238050
238050
|
encodeToCurve: () => encodeToCurve
|
|
238051
238051
|
});
|
|
238052
238052
|
function sqrtMod(y4) {
|
|
238053
|
-
const
|
|
238053
|
+
const P4 = secp256k1P;
|
|
238054
238054
|
const _3n3 = BigInt(3), _6n = BigInt(6), _11n = BigInt(11), _22n = BigInt(22);
|
|
238055
238055
|
const _23n = BigInt(23), _44n = BigInt(44), _88n = BigInt(88);
|
|
238056
|
-
const b22 = y4 * y4 * y4 %
|
|
238057
|
-
const b32 = b22 * b22 * y4 %
|
|
238058
|
-
const b6 = pow2(b32, _3n3,
|
|
238059
|
-
const b9 = pow2(b6, _3n3,
|
|
238060
|
-
const b11 = pow2(b9, _2n4,
|
|
238061
|
-
const b222 = pow2(b11, _11n,
|
|
238062
|
-
const b44 = pow2(b222, _22n,
|
|
238063
|
-
const b88 = pow2(b44, _44n,
|
|
238064
|
-
const b176 = pow2(b88, _88n,
|
|
238065
|
-
const b220 = pow2(b176, _44n,
|
|
238066
|
-
const b223 = pow2(b220, _3n3,
|
|
238067
|
-
const t1 = pow2(b223, _23n,
|
|
238068
|
-
const t22 = pow2(t1, _6n,
|
|
238069
|
-
const root = pow2(t22, _2n4,
|
|
238056
|
+
const b22 = y4 * y4 * y4 % P4;
|
|
238057
|
+
const b32 = b22 * b22 * y4 % P4;
|
|
238058
|
+
const b6 = pow2(b32, _3n3, P4) * b32 % P4;
|
|
238059
|
+
const b9 = pow2(b6, _3n3, P4) * b32 % P4;
|
|
238060
|
+
const b11 = pow2(b9, _2n4, P4) * b22 % P4;
|
|
238061
|
+
const b222 = pow2(b11, _11n, P4) * b11 % P4;
|
|
238062
|
+
const b44 = pow2(b222, _22n, P4) * b222 % P4;
|
|
238063
|
+
const b88 = pow2(b44, _44n, P4) * b44 % P4;
|
|
238064
|
+
const b176 = pow2(b88, _88n, P4) * b88 % P4;
|
|
238065
|
+
const b220 = pow2(b176, _44n, P4) * b44 % P4;
|
|
238066
|
+
const b223 = pow2(b220, _3n3, P4) * b32 % P4;
|
|
238067
|
+
const t1 = pow2(b223, _23n, P4) * b222 % P4;
|
|
238068
|
+
const t22 = pow2(t1, _6n, P4) * b22 % P4;
|
|
238069
|
+
const root = pow2(t22, _2n4, P4);
|
|
238070
238070
|
if (!Fpk1.eql(Fpk1.sqr(root), y4))
|
|
238071
238071
|
throw new Error("Cannot find square root");
|
|
238072
238072
|
return root;
|
|
@@ -238126,15 +238126,15 @@ function schnorrVerify(signature, message, publicKey) {
|
|
|
238126
238126
|
const m7 = ensureBytes("message", message);
|
|
238127
238127
|
const pub = ensureBytes("publicKey", publicKey, 32);
|
|
238128
238128
|
try {
|
|
238129
|
-
const
|
|
238129
|
+
const P4 = lift_x(num(pub));
|
|
238130
238130
|
const r7 = num(sig.subarray(0, 32));
|
|
238131
238131
|
if (!inRange(r7, _1n6, secp256k1P))
|
|
238132
238132
|
return false;
|
|
238133
238133
|
const s7 = num(sig.subarray(32, 64));
|
|
238134
238134
|
if (!inRange(s7, _1n6, secp256k1N))
|
|
238135
238135
|
return false;
|
|
238136
|
-
const e11 = challenge(numTo32b(r7), pointToBytes(
|
|
238137
|
-
const R7 = GmulAdd(
|
|
238136
|
+
const e11 = challenge(numTo32b(r7), pointToBytes(P4), m7);
|
|
238137
|
+
const R7 = GmulAdd(P4, s7, modN(-e11));
|
|
238138
238138
|
if (!R7 || !R7.hasEvenY() || R7.toAffine().x !== r7)
|
|
238139
238139
|
return false;
|
|
238140
238140
|
return true;
|
|
@@ -247461,14 +247461,14 @@ var {
|
|
|
247461
247461
|
Help
|
|
247462
247462
|
} = import__.default;
|
|
247463
247463
|
|
|
247464
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
247464
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
247465
247465
|
var isUpKey = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
|
|
247466
247466
|
var isDownKey = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
|
|
247467
247467
|
var isBackspaceKey = (key) => key.name === "backspace";
|
|
247468
247468
|
var isTabKey = (key) => key.name === "tab";
|
|
247469
247469
|
var isNumberKey = (key) => "1234567890".includes(key.name);
|
|
247470
247470
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
|
247471
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
247471
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
247472
247472
|
class AbortPromptError extends Error {
|
|
247473
247473
|
name = "AbortPromptError";
|
|
247474
247474
|
message = "Prompt was aborted";
|
|
@@ -247494,10 +247494,10 @@ class HookError extends Error {
|
|
|
247494
247494
|
class ValidationError extends Error {
|
|
247495
247495
|
name = "ValidationError";
|
|
247496
247496
|
}
|
|
247497
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
247497
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
247498
247498
|
import { AsyncResource as AsyncResource2 } from "node:async_hooks";
|
|
247499
247499
|
|
|
247500
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
247500
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
247501
247501
|
import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
|
|
247502
247502
|
var hookStorage = new AsyncLocalStorage;
|
|
247503
247503
|
function createStore(rl) {
|
|
@@ -247602,7 +247602,7 @@ var effectScheduler = {
|
|
|
247602
247602
|
}
|
|
247603
247603
|
};
|
|
247604
247604
|
|
|
247605
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
247605
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
247606
247606
|
function useState(defaultValue) {
|
|
247607
247607
|
return withPointer((pointer) => {
|
|
247608
247608
|
const setState = AsyncResource2.bind(function setState(newValue) {
|
|
@@ -247620,7 +247620,7 @@ function useState(defaultValue) {
|
|
|
247620
247620
|
});
|
|
247621
247621
|
}
|
|
247622
247622
|
|
|
247623
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
247623
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
247624
247624
|
function useEffect(cb, depArray) {
|
|
247625
247625
|
withPointer((pointer) => {
|
|
247626
247626
|
const oldDeps = pointer.get();
|
|
@@ -247632,7 +247632,7 @@ function useEffect(cb, depArray) {
|
|
|
247632
247632
|
});
|
|
247633
247633
|
}
|
|
247634
247634
|
|
|
247635
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
247635
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
247636
247636
|
var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
|
|
247637
247637
|
|
|
247638
247638
|
// ../../node_modules/.bun/@inquirer+figures@1.0.14/node_modules/@inquirer/figures/dist/esm/index.js
|
|
@@ -247921,7 +247921,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
247921
247921
|
var esm_default = figures;
|
|
247922
247922
|
var replacements = Object.entries(specialMainSymbols);
|
|
247923
247923
|
|
|
247924
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
247924
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
247925
247925
|
var defaultTheme = {
|
|
247926
247926
|
prefix: {
|
|
247927
247927
|
idle: import_yoctocolors_cjs.default.blue("?"),
|
|
@@ -247942,7 +247942,7 @@ var defaultTheme = {
|
|
|
247942
247942
|
}
|
|
247943
247943
|
};
|
|
247944
247944
|
|
|
247945
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
247945
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
247946
247946
|
function isPlainObject(value) {
|
|
247947
247947
|
if (typeof value !== "object" || value === null)
|
|
247948
247948
|
return false;
|
|
@@ -247970,7 +247970,7 @@ function makeTheme(...themes) {
|
|
|
247970
247970
|
return deepMerge(...themesToMerge);
|
|
247971
247971
|
}
|
|
247972
247972
|
|
|
247973
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
247973
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
247974
247974
|
function usePrefix({ status = "idle", theme }) {
|
|
247975
247975
|
const [showLoader, setShowLoader] = useState(false);
|
|
247976
247976
|
const [tick, setTick] = useState(0);
|
|
@@ -248000,7 +248000,7 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
248000
248000
|
const iconName = status === "loading" ? "idle" : status;
|
|
248001
248001
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
248002
248002
|
}
|
|
248003
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
248003
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
|
248004
248004
|
function useMemo(fn, dependencies) {
|
|
248005
248005
|
return withPointer((pointer) => {
|
|
248006
248006
|
const prev = pointer.get();
|
|
@@ -248012,11 +248012,11 @@ function useMemo(fn, dependencies) {
|
|
|
248012
248012
|
return prev.value;
|
|
248013
248013
|
});
|
|
248014
248014
|
}
|
|
248015
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
248015
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
248016
248016
|
function useRef(val) {
|
|
248017
248017
|
return useState({ current: val })[0];
|
|
248018
248018
|
}
|
|
248019
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
248019
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
248020
248020
|
function useKeypress(userHandler) {
|
|
248021
248021
|
const signal = useRef(userHandler);
|
|
248022
248022
|
signal.current = userHandler;
|
|
@@ -248034,7 +248034,7 @@ function useKeypress(userHandler) {
|
|
|
248034
248034
|
};
|
|
248035
248035
|
}, []);
|
|
248036
248036
|
}
|
|
248037
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
248037
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
248038
248038
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
|
248039
248039
|
var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
|
|
248040
248040
|
function breakLines(content, width) {
|
|
@@ -248047,7 +248047,7 @@ function readlineWidth() {
|
|
|
248047
248047
|
return import_cli_width.default({ defaultWidth: 80, output: readline().output });
|
|
248048
248048
|
}
|
|
248049
248049
|
|
|
248050
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
248050
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
248051
248051
|
function usePointerPosition({ active, renderedItems, pageSize, loop }) {
|
|
248052
248052
|
const state = useRef({
|
|
248053
248053
|
lastPointer: active,
|
|
@@ -248113,7 +248113,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
248113
248113
|
return pageBuffer.filter((line) => typeof line === "string").join(`
|
|
248114
248114
|
`);
|
|
248115
248115
|
}
|
|
248116
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
248116
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
248117
248117
|
var import_mute_stream = __toESM(require_lib(), 1);
|
|
248118
248118
|
import * as readline2 from "node:readline";
|
|
248119
248119
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
@@ -248326,7 +248326,7 @@ var {
|
|
|
248326
248326
|
unload
|
|
248327
248327
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
|
|
248328
248328
|
|
|
248329
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
248329
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
248330
248330
|
import { stripVTControlCharacters } from "node:util";
|
|
248331
248331
|
|
|
248332
248332
|
// ../../node_modules/.bun/@inquirer+ansi@1.0.1/node_modules/@inquirer/ansi/dist/esm/index.js
|
|
@@ -248345,7 +248345,7 @@ var cursorTo = (x, y) => {
|
|
|
248345
248345
|
var eraseLine = ESC + "2K";
|
|
248346
248346
|
var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
|
|
248347
248347
|
|
|
248348
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
248348
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
248349
248349
|
var height = (content) => content.split(`
|
|
248350
248350
|
`).length;
|
|
248351
248351
|
var lastLine = (content) => content.split(`
|
|
@@ -248410,7 +248410,7 @@ class ScreenManager {
|
|
|
248410
248410
|
}
|
|
248411
248411
|
}
|
|
248412
248412
|
|
|
248413
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
248413
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
248414
248414
|
class PromisePolyfill extends Promise {
|
|
248415
248415
|
static withResolver() {
|
|
248416
248416
|
let resolve;
|
|
@@ -248423,7 +248423,7 @@ class PromisePolyfill extends Promise {
|
|
|
248423
248423
|
}
|
|
248424
248424
|
}
|
|
248425
248425
|
|
|
248426
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
248426
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
248427
248427
|
function getCallSites() {
|
|
248428
248428
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
248429
248429
|
let result = [];
|
|
@@ -248509,7 +248509,7 @@ function createPrompt(view) {
|
|
|
248509
248509
|
};
|
|
248510
248510
|
return prompt;
|
|
248511
248511
|
}
|
|
248512
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+
|
|
248512
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+77ecc61a1a688668/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
|
248513
248513
|
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
|
248514
248514
|
class Separator {
|
|
248515
248515
|
separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
|
|
@@ -267722,7 +267722,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
|
267722
267722
|
var package_default = {
|
|
267723
267723
|
name: "@settlemint/sdk-cli",
|
|
267724
267724
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267725
|
-
version: "2.6.2-
|
|
267725
|
+
version: "2.6.2-main20a336e9",
|
|
267726
267726
|
type: "module",
|
|
267727
267727
|
private: false,
|
|
267728
267728
|
license: "FSL-1.1-MIT",
|
|
@@ -267776,14 +267776,14 @@ var package_default = {
|
|
|
267776
267776
|
"@inquirer/input": "4.2.5",
|
|
267777
267777
|
"@inquirer/password": "4.0.21",
|
|
267778
267778
|
"@inquirer/select": "4.4.0",
|
|
267779
|
-
"@settlemint/sdk-hasura": "2.6.2-
|
|
267780
|
-
"@settlemint/sdk-js": "2.6.2-
|
|
267781
|
-
"@settlemint/sdk-utils": "2.6.2-
|
|
267782
|
-
"@settlemint/sdk-viem": "2.6.2-
|
|
267783
|
-
"@types/node": "24.
|
|
267779
|
+
"@settlemint/sdk-hasura": "2.6.2-main20a336e9",
|
|
267780
|
+
"@settlemint/sdk-js": "2.6.2-main20a336e9",
|
|
267781
|
+
"@settlemint/sdk-utils": "2.6.2-main20a336e9",
|
|
267782
|
+
"@settlemint/sdk-viem": "2.6.2-main20a336e9",
|
|
267783
|
+
"@types/node": "24.9.1",
|
|
267784
267784
|
"@types/semver": "7.7.1",
|
|
267785
267785
|
"@types/which": "3.0.4",
|
|
267786
|
-
"get-tsconfig": "4.
|
|
267786
|
+
"get-tsconfig": "4.13.0",
|
|
267787
267787
|
giget: "2.0.0",
|
|
267788
267788
|
"is-in-ci": "2.0.0",
|
|
267789
267789
|
semver: "7.7.3",
|
|
@@ -267796,7 +267796,7 @@ var package_default = {
|
|
|
267796
267796
|
},
|
|
267797
267797
|
peerDependencies: {
|
|
267798
267798
|
hardhat: "<= 4",
|
|
267799
|
-
"@settlemint/sdk-js": "2.6.2-
|
|
267799
|
+
"@settlemint/sdk-js": "2.6.2-main20a336e9"
|
|
267800
267800
|
},
|
|
267801
267801
|
peerDependenciesMeta: {
|
|
267802
267802
|
hardhat: {
|
|
@@ -272546,9 +272546,9 @@ ${schema}`;
|
|
|
272546
272546
|
// src/commands/codegen/codegen-tsconfig.ts
|
|
272547
272547
|
import { writeFile as writeFile6 } from "node:fs/promises";
|
|
272548
272548
|
|
|
272549
|
-
// ../../node_modules/.bun/get-tsconfig@4.
|
|
272549
|
+
// ../../node_modules/.bun/get-tsconfig@4.13.0/node_modules/get-tsconfig/dist/index.mjs
|
|
272550
272550
|
import m6 from "node:path";
|
|
272551
|
-
import
|
|
272551
|
+
import ie3 from "node:fs";
|
|
272552
272552
|
import Fe2 from "node:module";
|
|
272553
272553
|
|
|
272554
272554
|
// ../../node_modules/.bun/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.mjs
|
|
@@ -272622,31 +272622,31 @@ var v5 = (r7, t9, e11) => {
|
|
|
272622
272622
|
return n7;
|
|
272623
272623
|
};
|
|
272624
272624
|
|
|
272625
|
-
// ../../node_modules/.bun/get-tsconfig@4.
|
|
272626
|
-
import
|
|
272627
|
-
import
|
|
272628
|
-
import
|
|
272625
|
+
// ../../node_modules/.bun/get-tsconfig@4.13.0/node_modules/get-tsconfig/dist/index.mjs
|
|
272626
|
+
import Ee3 from "fs";
|
|
272627
|
+
import he3 from "os";
|
|
272628
|
+
import Ie2 from "path";
|
|
272629
272629
|
var je2 = Object.defineProperty;
|
|
272630
272630
|
var o7 = (e11, t9) => je2(e11, "name", { value: t9, configurable: true });
|
|
272631
|
-
function
|
|
272631
|
+
function h7(e11) {
|
|
272632
272632
|
return e11.startsWith("\\\\?\\") ? e11 : e11.replace(/\\/g, "/");
|
|
272633
272633
|
}
|
|
272634
|
-
o7(
|
|
272635
|
-
var
|
|
272636
|
-
const t9 =
|
|
272634
|
+
o7(h7, "slash");
|
|
272635
|
+
var G3 = o7((e11) => {
|
|
272636
|
+
const t9 = ie3[e11];
|
|
272637
272637
|
return (s7, ...n7) => {
|
|
272638
272638
|
const l4 = `${e11}:${n7.join(":")}`;
|
|
272639
272639
|
let i7 = s7 == null ? undefined : s7.get(l4);
|
|
272640
|
-
return i7 === undefined && (i7 = Reflect.apply(t9,
|
|
272640
|
+
return i7 === undefined && (i7 = Reflect.apply(t9, ie3, n7), s7 == null || s7.set(l4, i7)), i7;
|
|
272641
272641
|
};
|
|
272642
272642
|
}, "cacheFs");
|
|
272643
|
-
var
|
|
272644
|
-
var
|
|
272645
|
-
var
|
|
272646
|
-
var
|
|
272643
|
+
var I6 = G3("existsSync");
|
|
272644
|
+
var Be2 = G3("readFileSync");
|
|
272645
|
+
var R6 = G3("statSync");
|
|
272646
|
+
var oe3 = o7((e11, t9, s7) => {
|
|
272647
272647
|
for (;; ) {
|
|
272648
272648
|
const n7 = m6.posix.join(e11, t9);
|
|
272649
|
-
if (
|
|
272649
|
+
if (I6(s7, n7))
|
|
272650
272650
|
return n7;
|
|
272651
272651
|
const l4 = m6.dirname(e11);
|
|
272652
272652
|
if (l4 === e11)
|
|
@@ -272654,15 +272654,15 @@ var ie3 = o7((e11, t9, s7) => {
|
|
|
272654
272654
|
e11 = l4;
|
|
272655
272655
|
}
|
|
272656
272656
|
}, "findUp");
|
|
272657
|
-
var
|
|
272658
|
-
var
|
|
272659
|
-
const t9 =
|
|
272660
|
-
return
|
|
272657
|
+
var Q3 = /^\.{1,2}(\/.*)?$/;
|
|
272658
|
+
var H3 = o7((e11) => {
|
|
272659
|
+
const t9 = h7(e11);
|
|
272660
|
+
return Q3.test(t9) ? t9 : `./${t9}`;
|
|
272661
272661
|
}, "normalizeRelativePath");
|
|
272662
|
-
function
|
|
272662
|
+
function Le2(e11, t9 = false) {
|
|
272663
272663
|
const s7 = e11.length;
|
|
272664
272664
|
let n7 = 0, l4 = "", i7 = 0, r7 = 16, f5 = 0, u6 = 0, g5 = 0, w5 = 0, b4 = 0;
|
|
272665
|
-
function
|
|
272665
|
+
function y4(c3, _5) {
|
|
272666
272666
|
let D3 = 0, T4 = 0;
|
|
272667
272667
|
for (;D3 < c3; ) {
|
|
272668
272668
|
let p5 = e11.charCodeAt(n7);
|
|
@@ -272678,49 +272678,49 @@ function $e2(e11, t9 = false) {
|
|
|
272678
272678
|
}
|
|
272679
272679
|
return D3 < c3 && (T4 = -1), T4;
|
|
272680
272680
|
}
|
|
272681
|
-
o7(
|
|
272682
|
-
function
|
|
272681
|
+
o7(y4, "scanHexDigits");
|
|
272682
|
+
function v6(c3) {
|
|
272683
272683
|
n7 = c3, l4 = "", i7 = 0, r7 = 16, b4 = 0;
|
|
272684
272684
|
}
|
|
272685
|
-
o7(
|
|
272685
|
+
o7(v6, "setPosition");
|
|
272686
272686
|
function j3() {
|
|
272687
272687
|
let c3 = n7;
|
|
272688
272688
|
if (e11.charCodeAt(n7) === 48)
|
|
272689
272689
|
n7++;
|
|
272690
272690
|
else
|
|
272691
|
-
for (n7++;n7 < e11.length &&
|
|
272691
|
+
for (n7++;n7 < e11.length && $4(e11.charCodeAt(n7)); )
|
|
272692
272692
|
n7++;
|
|
272693
272693
|
if (n7 < e11.length && e11.charCodeAt(n7) === 46)
|
|
272694
|
-
if (n7++, n7 < e11.length &&
|
|
272695
|
-
for (n7++;n7 < e11.length &&
|
|
272694
|
+
if (n7++, n7 < e11.length && $4(e11.charCodeAt(n7)))
|
|
272695
|
+
for (n7++;n7 < e11.length && $4(e11.charCodeAt(n7)); )
|
|
272696
272696
|
n7++;
|
|
272697
272697
|
else
|
|
272698
272698
|
return b4 = 3, e11.substring(c3, n7);
|
|
272699
|
-
let
|
|
272699
|
+
let _5 = n7;
|
|
272700
272700
|
if (n7 < e11.length && (e11.charCodeAt(n7) === 69 || e11.charCodeAt(n7) === 101))
|
|
272701
|
-
if (n7++, (n7 < e11.length && e11.charCodeAt(n7) === 43 || e11.charCodeAt(n7) === 45) && n7++, n7 < e11.length &&
|
|
272702
|
-
for (n7++;n7 < e11.length &&
|
|
272701
|
+
if (n7++, (n7 < e11.length && e11.charCodeAt(n7) === 43 || e11.charCodeAt(n7) === 45) && n7++, n7 < e11.length && $4(e11.charCodeAt(n7))) {
|
|
272702
|
+
for (n7++;n7 < e11.length && $4(e11.charCodeAt(n7)); )
|
|
272703
272703
|
n7++;
|
|
272704
|
-
|
|
272704
|
+
_5 = n7;
|
|
272705
272705
|
} else
|
|
272706
272706
|
b4 = 3;
|
|
272707
|
-
return e11.substring(c3,
|
|
272707
|
+
return e11.substring(c3, _5);
|
|
272708
272708
|
}
|
|
272709
272709
|
o7(j3, "scanNumber");
|
|
272710
|
-
function
|
|
272711
|
-
let c3 = "",
|
|
272710
|
+
function d6() {
|
|
272711
|
+
let c3 = "", _5 = n7;
|
|
272712
272712
|
for (;; ) {
|
|
272713
272713
|
if (n7 >= s7) {
|
|
272714
|
-
c3 += e11.substring(
|
|
272714
|
+
c3 += e11.substring(_5, n7), b4 = 2;
|
|
272715
272715
|
break;
|
|
272716
272716
|
}
|
|
272717
272717
|
const D3 = e11.charCodeAt(n7);
|
|
272718
272718
|
if (D3 === 34) {
|
|
272719
|
-
c3 += e11.substring(
|
|
272719
|
+
c3 += e11.substring(_5, n7), n7++;
|
|
272720
272720
|
break;
|
|
272721
272721
|
}
|
|
272722
272722
|
if (D3 === 92) {
|
|
272723
|
-
if (c3 += e11.substring(
|
|
272723
|
+
if (c3 += e11.substring(_5, n7), n7++, n7 >= s7) {
|
|
272724
272724
|
b4 = 2;
|
|
272725
272725
|
break;
|
|
272726
272726
|
}
|
|
@@ -272751,18 +272751,18 @@ function $e2(e11, t9 = false) {
|
|
|
272751
272751
|
c3 += "\t";
|
|
272752
272752
|
break;
|
|
272753
272753
|
case 117:
|
|
272754
|
-
const p5 =
|
|
272754
|
+
const p5 = y4(4);
|
|
272755
272755
|
p5 >= 0 ? c3 += String.fromCharCode(p5) : b4 = 4;
|
|
272756
272756
|
break;
|
|
272757
272757
|
default:
|
|
272758
272758
|
b4 = 5;
|
|
272759
272759
|
}
|
|
272760
|
-
|
|
272760
|
+
_5 = n7;
|
|
272761
272761
|
continue;
|
|
272762
272762
|
}
|
|
272763
272763
|
if (D3 >= 0 && D3 <= 31)
|
|
272764
|
-
if (
|
|
272765
|
-
c3 += e11.substring(
|
|
272764
|
+
if (S4(D3)) {
|
|
272765
|
+
c3 += e11.substring(_5, n7), b4 = 2;
|
|
272766
272766
|
break;
|
|
272767
272767
|
} else
|
|
272768
272768
|
b4 = 6;
|
|
@@ -272770,18 +272770,18 @@ function $e2(e11, t9 = false) {
|
|
|
272770
272770
|
}
|
|
272771
272771
|
return c3;
|
|
272772
272772
|
}
|
|
272773
|
-
o7(
|
|
272773
|
+
o7(d6, "scanString");
|
|
272774
272774
|
function A5() {
|
|
272775
272775
|
if (l4 = "", b4 = 0, i7 = n7, u6 = f5, w5 = g5, n7 >= s7)
|
|
272776
272776
|
return i7 = s7, r7 = 17;
|
|
272777
272777
|
let c3 = e11.charCodeAt(n7);
|
|
272778
|
-
if (
|
|
272778
|
+
if (X4(c3)) {
|
|
272779
272779
|
do
|
|
272780
272780
|
n7++, l4 += String.fromCharCode(c3), c3 = e11.charCodeAt(n7);
|
|
272781
|
-
while (
|
|
272781
|
+
while (X4(c3));
|
|
272782
272782
|
return r7 = 15;
|
|
272783
272783
|
}
|
|
272784
|
-
if (
|
|
272784
|
+
if (S4(c3))
|
|
272785
272785
|
return n7++, l4 += String.fromCharCode(c3), c3 === 13 && e11.charCodeAt(n7) === 10 && (n7++, l4 += `
|
|
272786
272786
|
`), f5++, g5 = n7, r7 = 14;
|
|
272787
272787
|
switch (c3) {
|
|
@@ -272798,13 +272798,13 @@ function $e2(e11, t9 = false) {
|
|
|
272798
272798
|
case 44:
|
|
272799
272799
|
return n7++, r7 = 5;
|
|
272800
272800
|
case 34:
|
|
272801
|
-
return n7++, l4 =
|
|
272801
|
+
return n7++, l4 = d6(), r7 = 10;
|
|
272802
272802
|
case 47:
|
|
272803
|
-
const
|
|
272803
|
+
const _5 = n7 - 1;
|
|
272804
272804
|
if (e11.charCodeAt(n7 + 1) === 47) {
|
|
272805
|
-
for (n7 += 2;n7 < s7 && !
|
|
272805
|
+
for (n7 += 2;n7 < s7 && !S4(e11.charCodeAt(n7)); )
|
|
272806
272806
|
n7++;
|
|
272807
|
-
return l4 = e11.substring(
|
|
272807
|
+
return l4 = e11.substring(_5, n7), r7 = 12;
|
|
272808
272808
|
}
|
|
272809
272809
|
if (e11.charCodeAt(n7 + 1) === 42) {
|
|
272810
272810
|
n7 += 2;
|
|
@@ -272816,13 +272816,13 @@ function $e2(e11, t9 = false) {
|
|
|
272816
272816
|
n7 += 2, T4 = true;
|
|
272817
272817
|
break;
|
|
272818
272818
|
}
|
|
272819
|
-
n7++,
|
|
272819
|
+
n7++, S4(p5) && (p5 === 13 && e11.charCodeAt(n7) === 10 && n7++, f5++, g5 = n7);
|
|
272820
272820
|
}
|
|
272821
|
-
return T4 || (n7++, b4 = 1), l4 = e11.substring(
|
|
272821
|
+
return T4 || (n7++, b4 = 1), l4 = e11.substring(_5, n7), r7 = 13;
|
|
272822
272822
|
}
|
|
272823
272823
|
return l4 += String.fromCharCode(c3), n7++, r7 = 16;
|
|
272824
272824
|
case 45:
|
|
272825
|
-
if (l4 += String.fromCharCode(c3), n7++, n7 === s7 ||
|
|
272825
|
+
if (l4 += String.fromCharCode(c3), n7++, n7 === s7 || !$4(e11.charCodeAt(n7)))
|
|
272826
272826
|
return r7 = 16;
|
|
272827
272827
|
case 48:
|
|
272828
272828
|
case 49:
|
|
@@ -272836,7 +272836,7 @@ function $e2(e11, t9 = false) {
|
|
|
272836
272836
|
case 57:
|
|
272837
272837
|
return l4 += j3(), r7 = 11;
|
|
272838
272838
|
default:
|
|
272839
|
-
for (;n7 < s7 &&
|
|
272839
|
+
for (;n7 < s7 && E5(c3); )
|
|
272840
272840
|
n7++, c3 = e11.charCodeAt(n7);
|
|
272841
272841
|
if (i7 !== n7) {
|
|
272842
272842
|
switch (l4 = e11.substring(i7, n7), l4) {
|
|
@@ -272853,8 +272853,8 @@ function $e2(e11, t9 = false) {
|
|
|
272853
272853
|
}
|
|
272854
272854
|
}
|
|
272855
272855
|
o7(A5, "scanNext");
|
|
272856
|
-
function
|
|
272857
|
-
if (
|
|
272856
|
+
function E5(c3) {
|
|
272857
|
+
if (X4(c3) || S4(c3))
|
|
272858
272858
|
return false;
|
|
272859
272859
|
switch (c3) {
|
|
272860
272860
|
case 125:
|
|
@@ -272869,50 +272869,50 @@ function $e2(e11, t9 = false) {
|
|
|
272869
272869
|
}
|
|
272870
272870
|
return true;
|
|
272871
272871
|
}
|
|
272872
|
-
o7(
|
|
272873
|
-
function
|
|
272872
|
+
o7(E5, "isUnknownContentCharacter");
|
|
272873
|
+
function B3() {
|
|
272874
272874
|
let c3;
|
|
272875
272875
|
do
|
|
272876
272876
|
c3 = A5();
|
|
272877
272877
|
while (c3 >= 12 && c3 <= 15);
|
|
272878
272878
|
return c3;
|
|
272879
272879
|
}
|
|
272880
|
-
return o7(
|
|
272880
|
+
return o7(B3, "scanNextNonTrivia"), { setPosition: v6, getPosition: o7(() => n7, "getPosition"), scan: t9 ? B3 : A5, getToken: o7(() => r7, "getToken"), getTokenValue: o7(() => l4, "getTokenValue"), getTokenOffset: o7(() => i7, "getTokenOffset"), getTokenLength: o7(() => n7 - i7, "getTokenLength"), getTokenStartLine: o7(() => u6, "getTokenStartLine"), getTokenStartCharacter: o7(() => i7 - w5, "getTokenStartCharacter"), getTokenError: o7(() => b4, "getTokenError") };
|
|
272881
272881
|
}
|
|
272882
|
-
o7(
|
|
272883
|
-
function
|
|
272882
|
+
o7(Le2, "createScanner");
|
|
272883
|
+
function X4(e11) {
|
|
272884
272884
|
return e11 === 32 || e11 === 9;
|
|
272885
272885
|
}
|
|
272886
|
-
o7(
|
|
272887
|
-
function
|
|
272886
|
+
o7(X4, "isWhiteSpace");
|
|
272887
|
+
function S4(e11) {
|
|
272888
272888
|
return e11 === 10 || e11 === 13;
|
|
272889
272889
|
}
|
|
272890
|
-
o7(
|
|
272891
|
-
function
|
|
272890
|
+
o7(S4, "isLineBreak");
|
|
272891
|
+
function $4(e11) {
|
|
272892
272892
|
return e11 >= 48 && e11 <= 57;
|
|
272893
272893
|
}
|
|
272894
|
-
o7(
|
|
272895
|
-
var
|
|
272894
|
+
o7($4, "isDigit");
|
|
272895
|
+
var re3;
|
|
272896
272896
|
(function(e11) {
|
|
272897
272897
|
e11[e11.lineFeed = 10] = "lineFeed", e11[e11.carriageReturn = 13] = "carriageReturn", e11[e11.space = 32] = "space", e11[e11._0 = 48] = "_0", e11[e11._1 = 49] = "_1", e11[e11._2 = 50] = "_2", e11[e11._3 = 51] = "_3", e11[e11._4 = 52] = "_4", e11[e11._5 = 53] = "_5", e11[e11._6 = 54] = "_6", e11[e11._7 = 55] = "_7", e11[e11._8 = 56] = "_8", e11[e11._9 = 57] = "_9", e11[e11.a = 97] = "a", e11[e11.b = 98] = "b", e11[e11.c = 99] = "c", e11[e11.d = 100] = "d", e11[e11.e = 101] = "e", e11[e11.f = 102] = "f", e11[e11.g = 103] = "g", e11[e11.h = 104] = "h", e11[e11.i = 105] = "i", e11[e11.j = 106] = "j", e11[e11.k = 107] = "k", e11[e11.l = 108] = "l", e11[e11.m = 109] = "m", e11[e11.n = 110] = "n", e11[e11.o = 111] = "o", e11[e11.p = 112] = "p", e11[e11.q = 113] = "q", e11[e11.r = 114] = "r", e11[e11.s = 115] = "s", e11[e11.t = 116] = "t", e11[e11.u = 117] = "u", e11[e11.v = 118] = "v", e11[e11.w = 119] = "w", e11[e11.x = 120] = "x", e11[e11.y = 121] = "y", e11[e11.z = 122] = "z", e11[e11.A = 65] = "A", e11[e11.B = 66] = "B", e11[e11.C = 67] = "C", e11[e11.D = 68] = "D", e11[e11.E = 69] = "E", e11[e11.F = 70] = "F", e11[e11.G = 71] = "G", e11[e11.H = 72] = "H", e11[e11.I = 73] = "I", e11[e11.J = 74] = "J", e11[e11.K = 75] = "K", e11[e11.L = 76] = "L", e11[e11.M = 77] = "M", e11[e11.N = 78] = "N", e11[e11.O = 79] = "O", e11[e11.P = 80] = "P", e11[e11.Q = 81] = "Q", e11[e11.R = 82] = "R", e11[e11.S = 83] = "S", e11[e11.T = 84] = "T", e11[e11.U = 85] = "U", e11[e11.V = 86] = "V", e11[e11.W = 87] = "W", e11[e11.X = 88] = "X", e11[e11.Y = 89] = "Y", e11[e11.Z = 90] = "Z", e11[e11.asterisk = 42] = "asterisk", e11[e11.backslash = 92] = "backslash", e11[e11.closeBrace = 125] = "closeBrace", e11[e11.closeBracket = 93] = "closeBracket", e11[e11.colon = 58] = "colon", e11[e11.comma = 44] = "comma", e11[e11.dot = 46] = "dot", e11[e11.doubleQuote = 34] = "doubleQuote", e11[e11.minus = 45] = "minus", e11[e11.openBrace = 123] = "openBrace", e11[e11.openBracket = 91] = "openBracket", e11[e11.plus = 43] = "plus", e11[e11.slash = 47] = "slash", e11[e11.formFeed = 12] = "formFeed", e11[e11.tab = 9] = "tab";
|
|
272898
|
-
})(
|
|
272899
|
-
var
|
|
272900
|
-
new Array(
|
|
272901
|
-
` + " ".repeat(t9)), new Array(
|
|
272902
|
-
` + " ".repeat(t9)), new Array(
|
|
272903
|
-
` + "\t".repeat(t9)), new Array(
|
|
272898
|
+
})(re3 || (re3 = {})), new Array(20).fill(0).map((e11, t9) => " ".repeat(t9));
|
|
272899
|
+
var x5 = 200;
|
|
272900
|
+
new Array(x5).fill(0).map((e11, t9) => `
|
|
272901
|
+
` + " ".repeat(t9)), new Array(x5).fill(0).map((e11, t9) => "\r" + " ".repeat(t9)), new Array(x5).fill(0).map((e11, t9) => `\r
|
|
272902
|
+
` + " ".repeat(t9)), new Array(x5).fill(0).map((e11, t9) => `
|
|
272903
|
+
` + "\t".repeat(t9)), new Array(x5).fill(0).map((e11, t9) => "\r" + "\t".repeat(t9)), new Array(x5).fill(0).map((e11, t9) => `\r
|
|
272904
272904
|
` + "\t".repeat(t9));
|
|
272905
|
-
var
|
|
272905
|
+
var W4;
|
|
272906
272906
|
(function(e11) {
|
|
272907
272907
|
e11.DEFAULT = { allowTrailingComma: false };
|
|
272908
|
-
})(
|
|
272909
|
-
function
|
|
272908
|
+
})(W4 || (W4 = {}));
|
|
272909
|
+
function $e2(e11, t9 = [], s7 = W4.DEFAULT) {
|
|
272910
272910
|
let n7 = null, l4 = [];
|
|
272911
272911
|
const i7 = [];
|
|
272912
272912
|
function r7(u6) {
|
|
272913
272913
|
Array.isArray(l4) ? l4.push(u6) : n7 !== null && (l4[n7] = u6);
|
|
272914
272914
|
}
|
|
272915
|
-
return o7(r7, "onValue"),
|
|
272915
|
+
return o7(r7, "onValue"), xe3(e11, { onObjectBegin: o7(() => {
|
|
272916
272916
|
const u6 = {};
|
|
272917
272917
|
r7(u6), i7.push(l4), l4 = u6, n7 = null;
|
|
272918
272918
|
}, "onObjectBegin"), onObjectProperty: o7((u6) => {
|
|
@@ -272928,9 +272928,9 @@ function Ie2(e11, t9 = [], s7 = R6.DEFAULT) {
|
|
|
272928
272928
|
t9.push({ error: u6, offset: g5, length: w5 });
|
|
272929
272929
|
}, "onError") }, s7), l4[0];
|
|
272930
272930
|
}
|
|
272931
|
-
o7(
|
|
272932
|
-
function
|
|
272933
|
-
const n7 =
|
|
272931
|
+
o7($e2, "parse$1");
|
|
272932
|
+
function xe3(e11, t9, s7 = W4.DEFAULT) {
|
|
272933
|
+
const n7 = Le2(e11, false), l4 = [];
|
|
272934
272934
|
let i7 = 0;
|
|
272935
272935
|
function r7(k5) {
|
|
272936
272936
|
return k5 ? () => i7 === 0 && k5(n7.getTokenOffset(), n7.getTokenLength(), n7.getTokenStartLine(), n7.getTokenStartCharacter()) : () => true;
|
|
@@ -272956,7 +272956,7 @@ function Ue2(e11, t9, s7 = R6.DEFAULT) {
|
|
|
272956
272956
|
} : () => true;
|
|
272957
272957
|
}
|
|
272958
272958
|
o7(w5, "toEndVisit");
|
|
272959
|
-
const b4 = g5(t9.onObjectBegin),
|
|
272959
|
+
const b4 = g5(t9.onObjectBegin), y4 = u6(t9.onObjectProperty), v6 = w5(t9.onObjectEnd), j3 = g5(t9.onArrayBegin), d6 = w5(t9.onArrayEnd), A5 = u6(t9.onLiteralValue), E5 = f5(t9.onSeparator), B3 = r7(t9.onComment), c3 = f5(t9.onError), _5 = s7 && s7.disallowComments, D3 = s7 && s7.allowTrailingComma;
|
|
272960
272960
|
function T4() {
|
|
272961
272961
|
for (;; ) {
|
|
272962
272962
|
const k5 = n7.scan();
|
|
@@ -272971,7 +272971,7 @@ function Ue2(e11, t9, s7 = R6.DEFAULT) {
|
|
|
272971
272971
|
p5(13);
|
|
272972
272972
|
break;
|
|
272973
272973
|
case 1:
|
|
272974
|
-
|
|
272974
|
+
_5 || p5(11);
|
|
272975
272975
|
break;
|
|
272976
272976
|
case 2:
|
|
272977
272977
|
p5(12);
|
|
@@ -272983,7 +272983,7 @@ function Ue2(e11, t9, s7 = R6.DEFAULT) {
|
|
|
272983
272983
|
switch (k5) {
|
|
272984
272984
|
case 12:
|
|
272985
272985
|
case 13:
|
|
272986
|
-
|
|
272986
|
+
_5 ? p5(10) : B3();
|
|
272987
272987
|
break;
|
|
272988
272988
|
case 16:
|
|
272989
272989
|
p5(1);
|
|
@@ -272997,26 +272997,26 @@ function Ue2(e11, t9, s7 = R6.DEFAULT) {
|
|
|
272997
272997
|
}
|
|
272998
272998
|
}
|
|
272999
272999
|
o7(T4, "scanNext");
|
|
273000
|
-
function p5(k5, F3 = [],
|
|
273001
|
-
if (c3(k5), F3.length +
|
|
273002
|
-
let
|
|
273003
|
-
for (;
|
|
273004
|
-
if (F3.indexOf(
|
|
273000
|
+
function p5(k5, F3 = [], le3 = []) {
|
|
273001
|
+
if (c3(k5), F3.length + le3.length > 0) {
|
|
273002
|
+
let P4 = n7.getToken();
|
|
273003
|
+
for (;P4 !== 17; ) {
|
|
273004
|
+
if (F3.indexOf(P4) !== -1) {
|
|
273005
273005
|
T4();
|
|
273006
273006
|
break;
|
|
273007
|
-
} else if (
|
|
273007
|
+
} else if (le3.indexOf(P4) !== -1)
|
|
273008
273008
|
break;
|
|
273009
|
-
|
|
273009
|
+
P4 = T4();
|
|
273010
273010
|
}
|
|
273011
273011
|
}
|
|
273012
273012
|
}
|
|
273013
273013
|
o7(p5, "handleError");
|
|
273014
|
-
function
|
|
273014
|
+
function U5(k5) {
|
|
273015
273015
|
const F3 = n7.getTokenValue();
|
|
273016
|
-
return k5 ? A5(F3) : (
|
|
273016
|
+
return k5 ? A5(F3) : (y4(F3), l4.push(F3)), T4(), true;
|
|
273017
273017
|
}
|
|
273018
|
-
o7(
|
|
273019
|
-
function
|
|
273018
|
+
o7(U5, "parseString");
|
|
273019
|
+
function a8() {
|
|
273020
273020
|
switch (n7.getToken()) {
|
|
273021
273021
|
case 11:
|
|
273022
273022
|
const k5 = n7.getTokenValue();
|
|
@@ -273037,79 +273037,79 @@ function Ue2(e11, t9, s7 = R6.DEFAULT) {
|
|
|
273037
273037
|
}
|
|
273038
273038
|
return T4(), true;
|
|
273039
273039
|
}
|
|
273040
|
-
o7(
|
|
273041
|
-
function
|
|
273042
|
-
return n7.getToken() !== 10 ? (p5(3, [], [2, 5]), false) : (
|
|
273040
|
+
o7(a8, "parseLiteral");
|
|
273041
|
+
function N6() {
|
|
273042
|
+
return n7.getToken() !== 10 ? (p5(3, [], [2, 5]), false) : (U5(false), n7.getToken() === 6 ? (E5(":"), T4(), z3() || p5(4, [], [2, 5])) : p5(5, [], [2, 5]), l4.pop(), true);
|
|
273043
273043
|
}
|
|
273044
|
-
o7(
|
|
273045
|
-
function
|
|
273044
|
+
o7(N6, "parseProperty");
|
|
273045
|
+
function _e2() {
|
|
273046
273046
|
b4(), T4();
|
|
273047
273047
|
let k5 = false;
|
|
273048
273048
|
for (;n7.getToken() !== 2 && n7.getToken() !== 17; ) {
|
|
273049
273049
|
if (n7.getToken() === 5) {
|
|
273050
|
-
if (k5 || p5(4, [], []),
|
|
273050
|
+
if (k5 || p5(4, [], []), E5(","), T4(), n7.getToken() === 2 && D3)
|
|
273051
273051
|
break;
|
|
273052
273052
|
} else
|
|
273053
273053
|
k5 && p5(6, [], []);
|
|
273054
|
-
|
|
273054
|
+
N6() || p5(4, [], [2, 5]), k5 = true;
|
|
273055
273055
|
}
|
|
273056
|
-
return
|
|
273056
|
+
return v6(), n7.getToken() !== 2 ? p5(7, [2], []) : T4(), true;
|
|
273057
273057
|
}
|
|
273058
|
-
o7(
|
|
273059
|
-
function
|
|
273058
|
+
o7(_e2, "parseObject");
|
|
273059
|
+
function ye2() {
|
|
273060
273060
|
j3(), T4();
|
|
273061
273061
|
let k5 = true, F3 = false;
|
|
273062
273062
|
for (;n7.getToken() !== 4 && n7.getToken() !== 17; ) {
|
|
273063
273063
|
if (n7.getToken() === 5) {
|
|
273064
|
-
if (F3 || p5(4, [], []),
|
|
273064
|
+
if (F3 || p5(4, [], []), E5(","), T4(), n7.getToken() === 4 && D3)
|
|
273065
273065
|
break;
|
|
273066
273066
|
} else
|
|
273067
273067
|
F3 && p5(6, [], []);
|
|
273068
|
-
k5 ? (l4.push(0), k5 = false) : l4[l4.length - 1]++,
|
|
273068
|
+
k5 ? (l4.push(0), k5 = false) : l4[l4.length - 1]++, z3() || p5(4, [], [4, 5]), F3 = true;
|
|
273069
273069
|
}
|
|
273070
|
-
return
|
|
273070
|
+
return d6(), k5 || l4.pop(), n7.getToken() !== 4 ? p5(8, [4], []) : T4(), true;
|
|
273071
273071
|
}
|
|
273072
|
-
o7(
|
|
273073
|
-
function
|
|
273072
|
+
o7(ye2, "parseArray");
|
|
273073
|
+
function z3() {
|
|
273074
273074
|
switch (n7.getToken()) {
|
|
273075
273075
|
case 3:
|
|
273076
|
-
return _e2();
|
|
273077
|
-
case 1:
|
|
273078
273076
|
return ye2();
|
|
273077
|
+
case 1:
|
|
273078
|
+
return _e2();
|
|
273079
273079
|
case 10:
|
|
273080
|
-
return
|
|
273080
|
+
return U5(true);
|
|
273081
273081
|
default:
|
|
273082
|
-
return
|
|
273082
|
+
return a8();
|
|
273083
273083
|
}
|
|
273084
273084
|
}
|
|
273085
|
-
return o7(
|
|
273085
|
+
return o7(z3, "parseValue"), T4(), n7.getToken() === 17 ? s7.allowEmptyContent ? true : (p5(4, [], []), false) : z3() ? (n7.getToken() !== 17 && p5(9, [], []), true) : (p5(4, [], []), false);
|
|
273086
273086
|
}
|
|
273087
|
-
o7(
|
|
273088
|
-
var re3;
|
|
273089
|
-
(function(e11) {
|
|
273090
|
-
e11[e11.None = 0] = "None", e11[e11.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", e11[e11.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", e11[e11.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", e11[e11.InvalidUnicode = 4] = "InvalidUnicode", e11[e11.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", e11[e11.InvalidCharacter = 6] = "InvalidCharacter";
|
|
273091
|
-
})(re3 || (re3 = {}));
|
|
273087
|
+
o7(xe3, "visit");
|
|
273092
273088
|
var ue3;
|
|
273093
273089
|
(function(e11) {
|
|
273094
|
-
e11[e11.
|
|
273090
|
+
e11[e11.None = 0] = "None", e11[e11.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", e11[e11.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", e11[e11.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", e11[e11.InvalidUnicode = 4] = "InvalidUnicode", e11[e11.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", e11[e11.InvalidCharacter = 6] = "InvalidCharacter";
|
|
273095
273091
|
})(ue3 || (ue3 = {}));
|
|
273096
|
-
var xe3 = Ie2;
|
|
273097
273092
|
var fe4;
|
|
273098
273093
|
(function(e11) {
|
|
273099
|
-
e11[e11.
|
|
273094
|
+
e11[e11.OpenBraceToken = 1] = "OpenBraceToken", e11[e11.CloseBraceToken = 2] = "CloseBraceToken", e11[e11.OpenBracketToken = 3] = "OpenBracketToken", e11[e11.CloseBracketToken = 4] = "CloseBracketToken", e11[e11.CommaToken = 5] = "CommaToken", e11[e11.ColonToken = 6] = "ColonToken", e11[e11.NullKeyword = 7] = "NullKeyword", e11[e11.TrueKeyword = 8] = "TrueKeyword", e11[e11.FalseKeyword = 9] = "FalseKeyword", e11[e11.StringLiteral = 10] = "StringLiteral", e11[e11.NumericLiteral = 11] = "NumericLiteral", e11[e11.LineCommentTrivia = 12] = "LineCommentTrivia", e11[e11.BlockCommentTrivia = 13] = "BlockCommentTrivia", e11[e11.LineBreakTrivia = 14] = "LineBreakTrivia", e11[e11.Trivia = 15] = "Trivia", e11[e11.Unknown = 16] = "Unknown", e11[e11.EOF = 17] = "EOF";
|
|
273100
273095
|
})(fe4 || (fe4 = {}));
|
|
273101
|
-
var
|
|
273102
|
-
var
|
|
273103
|
-
|
|
273096
|
+
var Ue2 = $e2;
|
|
273097
|
+
var ce3;
|
|
273098
|
+
(function(e11) {
|
|
273099
|
+
e11[e11.InvalidSymbol = 1] = "InvalidSymbol", e11[e11.InvalidNumberFormat = 2] = "InvalidNumberFormat", e11[e11.PropertyNameExpected = 3] = "PropertyNameExpected", e11[e11.ValueExpected = 4] = "ValueExpected", e11[e11.ColonExpected = 5] = "ColonExpected", e11[e11.CommaExpected = 6] = "CommaExpected", e11[e11.CloseBraceExpected = 7] = "CloseBraceExpected", e11[e11.CloseBracketExpected = 8] = "CloseBracketExpected", e11[e11.EndOfFileExpected = 9] = "EndOfFileExpected", e11[e11.InvalidCommentToken = 10] = "InvalidCommentToken", e11[e11.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", e11[e11.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", e11[e11.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", e11[e11.InvalidUnicode = 14] = "InvalidUnicode", e11[e11.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", e11[e11.InvalidCharacter = 16] = "InvalidCharacter";
|
|
273100
|
+
})(ce3 || (ce3 = {}));
|
|
273101
|
+
var ae3 = o7((e11, t9) => Ue2(Be2(t9, e11, "utf8")), "readJsonc");
|
|
273102
|
+
var Y3 = Symbol("implicitBaseUrl");
|
|
273103
|
+
var L5 = "${configDir}";
|
|
273104
273104
|
var Se2 = o7(() => {
|
|
273105
273105
|
const { findPnpApi: e11 } = Fe2;
|
|
273106
273106
|
return e11 && e11(process.cwd());
|
|
273107
273107
|
}, "getPnpApi");
|
|
273108
|
-
var
|
|
273108
|
+
var Z3 = o7((e11, t9, s7, n7) => {
|
|
273109
273109
|
const l4 = `resolveFromPackageJsonPath:${e11}:${t9}:${s7}`;
|
|
273110
273110
|
if (n7 != null && n7.has(l4))
|
|
273111
273111
|
return n7.get(l4);
|
|
273112
|
-
const i7 =
|
|
273112
|
+
const i7 = ae3(e11, n7);
|
|
273113
273113
|
if (!i7)
|
|
273114
273114
|
return;
|
|
273115
273115
|
let r7 = t9 || "tsconfig.json";
|
|
@@ -273124,88 +273124,88 @@ var Y3 = o7((e11, t9, s7, n7) => {
|
|
|
273124
273124
|
!t9 && i7.tsconfig && (r7 = i7.tsconfig);
|
|
273125
273125
|
return r7 = m6.join(e11, "..", r7), n7 == null || n7.set(l4, r7), r7;
|
|
273126
273126
|
}, "resolveFromPackageJsonPath");
|
|
273127
|
-
var
|
|
273128
|
-
var
|
|
273127
|
+
var q5 = "package.json";
|
|
273128
|
+
var K3 = "tsconfig.json";
|
|
273129
273129
|
var Ne2 = o7((e11, t9, s7) => {
|
|
273130
273130
|
let n7 = e11;
|
|
273131
|
-
if (e11 === ".." && (n7 = m6.join(n7,
|
|
273132
|
-
if (
|
|
273133
|
-
if (
|
|
273131
|
+
if (e11 === ".." && (n7 = m6.join(n7, K3)), e11[0] === "." && (n7 = m6.resolve(t9, n7)), m6.isAbsolute(n7)) {
|
|
273132
|
+
if (I6(s7, n7)) {
|
|
273133
|
+
if (R6(s7, n7).isFile())
|
|
273134
273134
|
return n7;
|
|
273135
273135
|
} else if (!n7.endsWith(".json")) {
|
|
273136
|
-
const
|
|
273137
|
-
if (
|
|
273138
|
-
return
|
|
273136
|
+
const v6 = `${n7}.json`;
|
|
273137
|
+
if (I6(s7, v6))
|
|
273138
|
+
return v6;
|
|
273139
273139
|
}
|
|
273140
273140
|
return;
|
|
273141
273141
|
}
|
|
273142
273142
|
const [l4, ...i7] = e11.split("/"), r7 = l4[0] === "@" ? `${l4}/${i7.shift()}` : l4, f5 = i7.join("/"), u6 = Se2();
|
|
273143
273143
|
if (u6) {
|
|
273144
|
-
const { resolveRequest:
|
|
273144
|
+
const { resolveRequest: v6 } = u6;
|
|
273145
273145
|
try {
|
|
273146
273146
|
if (r7 === e11) {
|
|
273147
|
-
const j3 =
|
|
273147
|
+
const j3 = v6(m6.join(r7, q5), t9);
|
|
273148
273148
|
if (j3) {
|
|
273149
|
-
const
|
|
273150
|
-
if (
|
|
273151
|
-
return
|
|
273149
|
+
const d6 = Z3(j3, f5, false, s7);
|
|
273150
|
+
if (d6 && I6(s7, d6))
|
|
273151
|
+
return d6;
|
|
273152
273152
|
}
|
|
273153
273153
|
} else {
|
|
273154
273154
|
let j3;
|
|
273155
273155
|
try {
|
|
273156
|
-
j3 =
|
|
273156
|
+
j3 = v6(e11, t9, { extensions: [".json"] });
|
|
273157
273157
|
} catch {
|
|
273158
|
-
j3 =
|
|
273158
|
+
j3 = v6(m6.join(e11, K3), t9);
|
|
273159
273159
|
}
|
|
273160
273160
|
if (j3)
|
|
273161
273161
|
return j3;
|
|
273162
273162
|
}
|
|
273163
273163
|
} catch {}
|
|
273164
273164
|
}
|
|
273165
|
-
const g5 =
|
|
273166
|
-
if (!g5 || !
|
|
273165
|
+
const g5 = oe3(m6.resolve(t9), m6.join("node_modules", r7), s7);
|
|
273166
|
+
if (!g5 || !R6(s7, g5).isDirectory())
|
|
273167
273167
|
return;
|
|
273168
|
-
const w5 = m6.join(g5,
|
|
273169
|
-
if (
|
|
273170
|
-
const
|
|
273171
|
-
if (
|
|
273168
|
+
const w5 = m6.join(g5, q5);
|
|
273169
|
+
if (I6(s7, w5)) {
|
|
273170
|
+
const v6 = Z3(w5, f5, false, s7);
|
|
273171
|
+
if (v6 === false)
|
|
273172
273172
|
return;
|
|
273173
|
-
if (
|
|
273174
|
-
return
|
|
273175
|
-
}
|
|
273176
|
-
const b4 = m6.join(g5, f5),
|
|
273177
|
-
if (!
|
|
273178
|
-
const
|
|
273179
|
-
if (
|
|
273180
|
-
return
|
|
273181
|
-
}
|
|
273182
|
-
if (
|
|
273183
|
-
if (
|
|
273184
|
-
const
|
|
273185
|
-
if (
|
|
273186
|
-
const
|
|
273187
|
-
if (
|
|
273188
|
-
return
|
|
273189
|
-
}
|
|
273190
|
-
const j3 = m6.join(b4,
|
|
273191
|
-
if (
|
|
273173
|
+
if (v6 && I6(s7, v6) && R6(s7, v6).isFile())
|
|
273174
|
+
return v6;
|
|
273175
|
+
}
|
|
273176
|
+
const b4 = m6.join(g5, f5), y4 = b4.endsWith(".json");
|
|
273177
|
+
if (!y4) {
|
|
273178
|
+
const v6 = `${b4}.json`;
|
|
273179
|
+
if (I6(s7, v6))
|
|
273180
|
+
return v6;
|
|
273181
|
+
}
|
|
273182
|
+
if (I6(s7, b4)) {
|
|
273183
|
+
if (R6(s7, b4).isDirectory()) {
|
|
273184
|
+
const v6 = m6.join(b4, q5);
|
|
273185
|
+
if (I6(s7, v6)) {
|
|
273186
|
+
const d6 = Z3(v6, "", true, s7);
|
|
273187
|
+
if (d6 && I6(s7, d6))
|
|
273188
|
+
return d6;
|
|
273189
|
+
}
|
|
273190
|
+
const j3 = m6.join(b4, K3);
|
|
273191
|
+
if (I6(s7, j3))
|
|
273192
273192
|
return j3;
|
|
273193
|
-
} else if (
|
|
273193
|
+
} else if (y4)
|
|
273194
273194
|
return b4;
|
|
273195
273195
|
}
|
|
273196
273196
|
}, "resolveExtendsPath");
|
|
273197
|
-
var
|
|
273198
|
-
var
|
|
273199
|
-
var
|
|
273197
|
+
var C3 = o7((e11, t9) => H3(m6.relative(e11, t9)), "pathRelative");
|
|
273198
|
+
var ge3 = ["files", "include", "exclude"];
|
|
273199
|
+
var pe3 = o7((e11, t9, s7) => {
|
|
273200
273200
|
const n7 = m6.join(t9, s7), l4 = m6.relative(e11, n7);
|
|
273201
|
-
return
|
|
273201
|
+
return h7(l4) || "./";
|
|
273202
273202
|
}, "resolveAndRelativize");
|
|
273203
273203
|
var Pe2 = o7((e11, t9, s7) => {
|
|
273204
273204
|
const n7 = m6.relative(e11, t9);
|
|
273205
273205
|
if (!n7)
|
|
273206
273206
|
return s7;
|
|
273207
273207
|
const l4 = s7.startsWith("./") ? s7.slice(2) : s7;
|
|
273208
|
-
return
|
|
273208
|
+
return h7(`${n7}/${l4}`);
|
|
273209
273209
|
}, "prefixPattern");
|
|
273210
273210
|
var Re2 = o7((e11, t9, s7, n7) => {
|
|
273211
273211
|
const l4 = Ne2(e11, t9, n7);
|
|
@@ -273214,26 +273214,26 @@ var Re2 = o7((e11, t9, s7, n7) => {
|
|
|
273214
273214
|
if (s7.has(l4))
|
|
273215
273215
|
throw new Error(`Circularity detected while resolving configuration: ${l4}`);
|
|
273216
273216
|
s7.add(l4);
|
|
273217
|
-
const i7 = m6.dirname(l4), r7 =
|
|
273217
|
+
const i7 = m6.dirname(l4), r7 = me3(l4, n7, s7);
|
|
273218
273218
|
delete r7.references;
|
|
273219
273219
|
const { compilerOptions: f5 } = r7;
|
|
273220
273220
|
if (f5) {
|
|
273221
273221
|
const { baseUrl: u6 } = f5;
|
|
273222
|
-
u6 && !u6.startsWith(
|
|
273222
|
+
u6 && !u6.startsWith(L5) && (f5.baseUrl = pe3(t9, i7, u6));
|
|
273223
273223
|
const { outDir: g5 } = f5;
|
|
273224
|
-
g5 && !g5.startsWith(
|
|
273224
|
+
g5 && !g5.startsWith(L5) && (f5.outDir = pe3(t9, i7, g5));
|
|
273225
273225
|
}
|
|
273226
|
-
for (const u6 of
|
|
273226
|
+
for (const u6 of ge3) {
|
|
273227
273227
|
const g5 = r7[u6];
|
|
273228
|
-
g5 && (r7[u6] = g5.map((w5) => w5.startsWith(
|
|
273228
|
+
g5 && (r7[u6] = g5.map((w5) => w5.startsWith(L5) ? w5 : Pe2(t9, i7, w5)));
|
|
273229
273229
|
}
|
|
273230
273230
|
return r7;
|
|
273231
273231
|
}, "resolveExtends");
|
|
273232
273232
|
var We2 = ["outDir", "declarationDir"];
|
|
273233
|
-
var
|
|
273233
|
+
var me3 = o7((e11, t9, s7 = new Set) => {
|
|
273234
273234
|
let n7;
|
|
273235
273235
|
try {
|
|
273236
|
-
n7 =
|
|
273236
|
+
n7 = ae3(e11, t9) || {};
|
|
273237
273237
|
} catch {
|
|
273238
273238
|
throw new Error(`Cannot resolve tsconfig at path: ${e11}`);
|
|
273239
273239
|
}
|
|
@@ -273242,7 +273242,7 @@ var pe3 = o7((e11, t9, s7 = new Set) => {
|
|
|
273242
273242
|
const l4 = m6.dirname(e11);
|
|
273243
273243
|
if (n7.compilerOptions) {
|
|
273244
273244
|
const { compilerOptions: i7 } = n7;
|
|
273245
|
-
i7.paths && !i7.baseUrl && (i7[
|
|
273245
|
+
i7.paths && !i7.baseUrl && (i7[Y3] = l4);
|
|
273246
273246
|
}
|
|
273247
273247
|
if (n7.extends) {
|
|
273248
273248
|
const i7 = Array.isArray(n7.extends) ? n7.extends : [n7.extends];
|
|
@@ -273256,34 +273256,34 @@ var pe3 = o7((e11, t9, s7 = new Set) => {
|
|
|
273256
273256
|
const { compilerOptions: i7 } = n7, r7 = ["baseUrl", "rootDir"];
|
|
273257
273257
|
for (const f5 of r7) {
|
|
273258
273258
|
const u6 = i7[f5];
|
|
273259
|
-
if (u6 && !u6.startsWith(
|
|
273260
|
-
const g5 = m6.resolve(l4, u6), w5 =
|
|
273259
|
+
if (u6 && !u6.startsWith(L5)) {
|
|
273260
|
+
const g5 = m6.resolve(l4, u6), w5 = C3(l4, g5);
|
|
273261
273261
|
i7[f5] = w5;
|
|
273262
273262
|
}
|
|
273263
273263
|
}
|
|
273264
273264
|
for (const f5 of We2) {
|
|
273265
273265
|
let u6 = i7[f5];
|
|
273266
|
-
u6 && (Array.isArray(n7.exclude) || (n7.exclude = []), n7.exclude.includes(u6) || n7.exclude.push(u6), u6.startsWith(
|
|
273266
|
+
u6 && (Array.isArray(n7.exclude) || (n7.exclude = []), n7.exclude.includes(u6) || n7.exclude.push(u6), u6.startsWith(L5) || (u6 = H3(u6)), i7[f5] = u6);
|
|
273267
273267
|
}
|
|
273268
273268
|
} else
|
|
273269
273269
|
n7.compilerOptions = {};
|
|
273270
|
-
if (n7.include ? (n7.include = n7.include.map(
|
|
273270
|
+
if (n7.include ? (n7.include = n7.include.map(h7), n7.files && delete n7.files) : n7.files && (n7.files = n7.files.map((i7) => i7.startsWith(L5) ? i7 : H3(i7))), n7.watchOptions) {
|
|
273271
273271
|
const { watchOptions: i7 } = n7;
|
|
273272
|
-
i7.excludeDirectories && (i7.excludeDirectories = i7.excludeDirectories.map((r7) =>
|
|
273272
|
+
i7.excludeDirectories && (i7.excludeDirectories = i7.excludeDirectories.map((r7) => h7(m6.resolve(l4, r7))));
|
|
273273
273273
|
}
|
|
273274
273274
|
return n7;
|
|
273275
273275
|
}, "_parseTsconfig");
|
|
273276
|
-
var
|
|
273277
|
-
if (e11.startsWith(
|
|
273278
|
-
return
|
|
273276
|
+
var V4 = o7((e11, t9) => {
|
|
273277
|
+
if (e11.startsWith(L5))
|
|
273278
|
+
return h7(m6.join(t9, e11.slice(L5.length)));
|
|
273279
273279
|
}, "interpolateConfigDir");
|
|
273280
273280
|
var Ve2 = ["outDir", "declarationDir", "outFile", "rootDir", "baseUrl", "tsBuildInfoFile"];
|
|
273281
273281
|
var Me2 = o7((e11) => {
|
|
273282
|
-
var t9, s7, n7, l4, i7, r7, f5, u6, g5, w5, b4,
|
|
273282
|
+
var t9, s7, n7, l4, i7, r7, f5, u6, g5, w5, b4, y4, v6, j3, d6, A5, E5, B3, c3, _5, D3, T4, p5, U5;
|
|
273283
273283
|
if (e11.strict) {
|
|
273284
273284
|
const a8 = ["noImplicitAny", "noImplicitThis", "strictNullChecks", "strictFunctionTypes", "strictBindCallApply", "strictPropertyInitialization", "strictBuiltinIteratorReturn", "alwaysStrict", "useUnknownInCatchVariables"];
|
|
273285
|
-
for (const
|
|
273286
|
-
e11[
|
|
273285
|
+
for (const N6 of a8)
|
|
273286
|
+
e11[N6] === undefined && (e11[N6] = true);
|
|
273287
273287
|
}
|
|
273288
273288
|
if (e11.target) {
|
|
273289
273289
|
let a8 = e11.target.toLowerCase();
|
|
@@ -273291,29 +273291,29 @@ var Me2 = o7((e11) => {
|
|
|
273291
273291
|
}
|
|
273292
273292
|
if (e11.module) {
|
|
273293
273293
|
let a8 = e11.module.toLowerCase();
|
|
273294
|
-
a8 === "es2015" && (a8 = "es6"), e11.module = a8, (a8 === "es6" || a8 === "es2020" || a8 === "es2022" || a8 === "esnext" || a8 === "none" || a8 === "system" || a8 === "umd" || a8 === "amd") && ((i7 = e11.moduleResolution) != null || (e11.moduleResolution = "classic")), a8 === "system" && ((r7 = e11.allowSyntheticDefaultImports) != null || (e11.allowSyntheticDefaultImports = true)), (a8 === "node16" || a8 === "nodenext" || a8 === "preserve") && ((f5 = e11.esModuleInterop) != null || (e11.esModuleInterop = true), (u6 = e11.allowSyntheticDefaultImports) != null || (e11.allowSyntheticDefaultImports = true)), (a8 === "node16" || a8 === "nodenext") && ((g5 = e11.moduleDetection) != null || (e11.moduleDetection = "force"), (w5 = e11.useDefineForClassFields) != null || (e11.useDefineForClassFields = true)), a8 === "node16" && ((b4 = e11.target) != null || (e11.target = "es2022"), (
|
|
273294
|
+
a8 === "es2015" && (a8 = "es6"), e11.module = a8, (a8 === "es6" || a8 === "es2020" || a8 === "es2022" || a8 === "esnext" || a8 === "none" || a8 === "system" || a8 === "umd" || a8 === "amd") && ((i7 = e11.moduleResolution) != null || (e11.moduleResolution = "classic")), a8 === "system" && ((r7 = e11.allowSyntheticDefaultImports) != null || (e11.allowSyntheticDefaultImports = true)), (a8 === "node16" || a8 === "nodenext" || a8 === "preserve") && ((f5 = e11.esModuleInterop) != null || (e11.esModuleInterop = true), (u6 = e11.allowSyntheticDefaultImports) != null || (e11.allowSyntheticDefaultImports = true)), (a8 === "node16" || a8 === "nodenext") && ((g5 = e11.moduleDetection) != null || (e11.moduleDetection = "force"), (w5 = e11.useDefineForClassFields) != null || (e11.useDefineForClassFields = true)), a8 === "node16" && ((b4 = e11.target) != null || (e11.target = "es2022"), (y4 = e11.moduleResolution) != null || (e11.moduleResolution = "node16")), a8 === "nodenext" && ((v6 = e11.target) != null || (e11.target = "esnext"), (j3 = e11.moduleResolution) != null || (e11.moduleResolution = "nodenext")), a8 === "preserve" && ((d6 = e11.moduleResolution) != null || (e11.moduleResolution = "bundler"));
|
|
273295
273295
|
}
|
|
273296
273296
|
if (e11.moduleResolution) {
|
|
273297
273297
|
let a8 = e11.moduleResolution.toLowerCase();
|
|
273298
|
-
a8 === "node" && (a8 = "node10"), e11.moduleResolution = a8, (a8 === "node16" || a8 === "nodenext" || a8 === "bundler") && ((A5 = e11.resolvePackageJsonExports) != null || (e11.resolvePackageJsonExports = true), (
|
|
273298
|
+
a8 === "node" && (a8 = "node10"), e11.moduleResolution = a8, (a8 === "node16" || a8 === "nodenext" || a8 === "bundler") && ((A5 = e11.resolvePackageJsonExports) != null || (e11.resolvePackageJsonExports = true), (E5 = e11.resolvePackageJsonImports) != null || (e11.resolvePackageJsonImports = true)), a8 === "bundler" && ((B3 = e11.allowSyntheticDefaultImports) != null || (e11.allowSyntheticDefaultImports = true), (c3 = e11.resolveJsonModule) != null || (e11.resolveJsonModule = true));
|
|
273299
273299
|
}
|
|
273300
|
-
e11.esModuleInterop && ((
|
|
273300
|
+
e11.esModuleInterop && ((_5 = e11.allowSyntheticDefaultImports) != null || (e11.allowSyntheticDefaultImports = true)), e11.verbatimModuleSyntax && ((D3 = e11.isolatedModules) != null || (e11.isolatedModules = true), (T4 = e11.preserveConstEnums) != null || (e11.preserveConstEnums = true)), e11.isolatedModules && ((p5 = e11.preserveConstEnums) != null || (e11.preserveConstEnums = true)), e11.rewriteRelativeImportExtensions && ((U5 = e11.allowImportingTsExtensions) != null || (e11.allowImportingTsExtensions = true));
|
|
273301
273301
|
}, "normalizeCompilerOptions");
|
|
273302
|
-
var
|
|
273303
|
-
const s7 = m6.resolve(e11), n7 =
|
|
273302
|
+
var ke2 = o7((e11, t9 = new Map) => {
|
|
273303
|
+
const s7 = m6.resolve(e11), n7 = me3(s7, t9), l4 = m6.dirname(s7), { compilerOptions: i7 } = n7;
|
|
273304
273304
|
if (i7) {
|
|
273305
273305
|
for (const f5 of Ve2) {
|
|
273306
273306
|
const u6 = i7[f5];
|
|
273307
273307
|
if (u6) {
|
|
273308
|
-
const g5 =
|
|
273309
|
-
i7[f5] = g5 ?
|
|
273308
|
+
const g5 = V4(u6, l4);
|
|
273309
|
+
i7[f5] = g5 ? C3(l4, g5) : u6;
|
|
273310
273310
|
}
|
|
273311
273311
|
}
|
|
273312
273312
|
for (const f5 of ["rootDirs", "typeRoots"]) {
|
|
273313
273313
|
const u6 = i7[f5];
|
|
273314
273314
|
u6 && (i7[f5] = u6.map((g5) => {
|
|
273315
|
-
const w5 =
|
|
273316
|
-
return w5 ?
|
|
273315
|
+
const w5 = V4(g5, l4);
|
|
273316
|
+
return w5 ? C3(l4, w5) : g5;
|
|
273317
273317
|
}));
|
|
273318
273318
|
}
|
|
273319
273319
|
const { paths: r7 } = i7;
|
|
@@ -273321,28 +273321,28 @@ var me3 = o7((e11, t9 = new Map) => {
|
|
|
273321
273321
|
for (const f5 of Object.keys(r7))
|
|
273322
273322
|
r7[f5] = r7[f5].map((u6) => {
|
|
273323
273323
|
var g5;
|
|
273324
|
-
return (g5 =
|
|
273324
|
+
return (g5 = V4(u6, l4)) != null ? g5 : u6;
|
|
273325
273325
|
});
|
|
273326
273326
|
Me2(i7);
|
|
273327
273327
|
}
|
|
273328
|
-
for (const r7 of
|
|
273328
|
+
for (const r7 of ge3) {
|
|
273329
273329
|
const f5 = n7[r7];
|
|
273330
273330
|
f5 && (n7[r7] = f5.map((u6) => {
|
|
273331
273331
|
var g5;
|
|
273332
|
-
return (g5 =
|
|
273332
|
+
return (g5 = V4(u6, l4)) != null ? g5 : u6;
|
|
273333
273333
|
}));
|
|
273334
273334
|
}
|
|
273335
273335
|
return n7;
|
|
273336
273336
|
}, "parseTsconfig");
|
|
273337
273337
|
var Je2 = o7((e11 = process.cwd(), t9 = "tsconfig.json", s7 = new Map) => {
|
|
273338
|
-
const n7 =
|
|
273338
|
+
const n7 = oe3(h7(e11), t9, s7);
|
|
273339
273339
|
if (!n7)
|
|
273340
273340
|
return null;
|
|
273341
|
-
const l4 =
|
|
273341
|
+
const l4 = ke2(n7, s7);
|
|
273342
273342
|
return { path: n7, config: l4 };
|
|
273343
273343
|
}, "getTsconfig");
|
|
273344
273344
|
var Oe2 = /\*/g;
|
|
273345
|
-
var
|
|
273345
|
+
var we3 = o7((e11, t9) => {
|
|
273346
273346
|
const s7 = e11.match(Oe2);
|
|
273347
273347
|
if (s7 && s7.length > 1)
|
|
273348
273348
|
throw new Error(t9);
|
|
@@ -273355,8 +273355,8 @@ var ze2 = o7((e11) => {
|
|
|
273355
273355
|
return e11;
|
|
273356
273356
|
}, "parsePattern");
|
|
273357
273357
|
var Ge2 = o7(({ prefix: e11, suffix: t9 }, s7) => s7.startsWith(e11) && s7.endsWith(t9), "isPatternMatch");
|
|
273358
|
-
var Qe2 = o7((e11, t9, s7) => Object.entries(e11).map(([n7, l4]) => (
|
|
273359
|
-
if (
|
|
273358
|
+
var Qe2 = o7((e11, t9, s7) => Object.entries(e11).map(([n7, l4]) => (we3(n7, `Pattern '${n7}' can have at most one '*' character.`), { pattern: ze2(n7), substitutions: l4.map((i7) => {
|
|
273359
|
+
if (we3(i7, `Substitution '${i7}' in pattern '${n7}' can have at most one '*' character.`), !t9 && !Q3.test(i7))
|
|
273360
273360
|
throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");
|
|
273361
273361
|
return m6.resolve(s7, i7);
|
|
273362
273362
|
}) })), "parsePaths");
|
|
@@ -273367,28 +273367,28 @@ var He2 = o7((e11) => {
|
|
|
273367
273367
|
const { baseUrl: s7, paths: n7 } = t9;
|
|
273368
273368
|
if (!s7 && !n7)
|
|
273369
273369
|
return null;
|
|
273370
|
-
const l4 =
|
|
273370
|
+
const l4 = Y3 in t9 && t9[Y3], i7 = m6.resolve(m6.dirname(e11.path), s7 || l4 || "."), r7 = n7 ? Qe2(n7, s7, i7) : [];
|
|
273371
273371
|
return (f5) => {
|
|
273372
|
-
if (
|
|
273372
|
+
if (Q3.test(f5))
|
|
273373
273373
|
return [];
|
|
273374
273374
|
const u6 = [];
|
|
273375
|
-
for (const
|
|
273376
|
-
if (
|
|
273377
|
-
return
|
|
273378
|
-
typeof
|
|
273375
|
+
for (const y4 of r7) {
|
|
273376
|
+
if (y4.pattern === f5)
|
|
273377
|
+
return y4.substitutions.map(h7);
|
|
273378
|
+
typeof y4.pattern != "string" && u6.push(y4);
|
|
273379
273379
|
}
|
|
273380
273380
|
let g5, w5 = -1;
|
|
273381
|
-
for (const
|
|
273382
|
-
Ge2(
|
|
273381
|
+
for (const y4 of u6)
|
|
273382
|
+
Ge2(y4.pattern, f5) && y4.pattern.prefix.length > w5 && (w5 = y4.pattern.prefix.length, g5 = y4);
|
|
273383
273383
|
if (!g5)
|
|
273384
|
-
return s7 ? [
|
|
273384
|
+
return s7 ? [h7(m6.join(i7, f5))] : [];
|
|
273385
273385
|
const b4 = f5.slice(g5.pattern.prefix.length, f5.length - g5.pattern.suffix.length);
|
|
273386
|
-
return g5.substitutions.map((
|
|
273386
|
+
return g5.substitutions.map((y4) => h7(y4.replace("*", b4)));
|
|
273387
273387
|
};
|
|
273388
273388
|
}, "createPathsMatcher");
|
|
273389
273389
|
var Xe2 = Object.defineProperty;
|
|
273390
|
-
var
|
|
273391
|
-
var
|
|
273390
|
+
var M4 = o7((e11, t9) => Xe2(e11, "name", { value: t9, configurable: true }), "s");
|
|
273391
|
+
var be3 = M4((e11) => {
|
|
273392
273392
|
let t9 = "";
|
|
273393
273393
|
for (let s7 = 0;s7 < e11.length; s7 += 1) {
|
|
273394
273394
|
const n7 = e11[s7], l4 = n7.toUpperCase();
|
|
@@ -273396,38 +273396,38 @@ var we3 = V4((e11) => {
|
|
|
273396
273396
|
}
|
|
273397
273397
|
return t9;
|
|
273398
273398
|
}, "invertCase");
|
|
273399
|
-
var
|
|
273400
|
-
var
|
|
273401
|
-
const s7 =
|
|
273399
|
+
var ee3 = new Map;
|
|
273400
|
+
var ve3 = M4((e11, t9) => {
|
|
273401
|
+
const s7 = Ie2.join(e11, `.is-fs-case-sensitive-test-${process.pid}`);
|
|
273402
273402
|
try {
|
|
273403
|
-
return t9.writeFileSync(s7, ""), !t9.existsSync(
|
|
273403
|
+
return t9.writeFileSync(s7, ""), !t9.existsSync(be3(s7));
|
|
273404
273404
|
} finally {
|
|
273405
273405
|
try {
|
|
273406
273406
|
t9.unlinkSync(s7);
|
|
273407
273407
|
} catch {}
|
|
273408
273408
|
}
|
|
273409
273409
|
}, "checkDirectoryCaseWithWrite");
|
|
273410
|
-
var Ye2 =
|
|
273410
|
+
var Ye2 = M4((e11, t9, s7) => {
|
|
273411
273411
|
try {
|
|
273412
|
-
return
|
|
273412
|
+
return ve3(e11, s7);
|
|
273413
273413
|
} catch (n7) {
|
|
273414
273414
|
if (t9 === undefined)
|
|
273415
|
-
return
|
|
273415
|
+
return ve3(he3.tmpdir(), s7);
|
|
273416
273416
|
throw n7;
|
|
273417
273417
|
}
|
|
273418
273418
|
}, "checkDirectoryCaseWithFallback");
|
|
273419
|
-
var Ze2 =
|
|
273419
|
+
var Ze2 = M4((e11, t9 = Ee3, s7 = true) => {
|
|
273420
273420
|
const n7 = e11 != null ? e11 : process.cwd();
|
|
273421
|
-
if (s7 &&
|
|
273422
|
-
return
|
|
273421
|
+
if (s7 && ee3.has(n7))
|
|
273422
|
+
return ee3.get(n7);
|
|
273423
273423
|
let l4;
|
|
273424
|
-
const i7 =
|
|
273425
|
-
return i7 !== n7 && t9.existsSync(n7) ? l4 = !t9.existsSync(i7) : l4 = Ye2(n7, e11, t9), s7 &&
|
|
273424
|
+
const i7 = be3(n7);
|
|
273425
|
+
return i7 !== n7 && t9.existsSync(n7) ? l4 = !t9.existsSync(i7) : l4 = Ye2(n7, e11, t9), s7 && ee3.set(n7, l4), l4;
|
|
273426
273426
|
}, "isFsCaseSensitive");
|
|
273427
|
-
var { join:
|
|
273428
|
-
var
|
|
273427
|
+
var { join: J3 } = m6.posix;
|
|
273428
|
+
var ne3 = { ts: [".ts", ".tsx", ".d.ts"], cts: [".cts", ".d.cts"], mts: [".mts", ".d.mts"] };
|
|
273429
273429
|
var qe2 = o7((e11) => {
|
|
273430
|
-
const t9 = [...
|
|
273430
|
+
const t9 = [...ne3.ts], s7 = [...ne3.cts], n7 = [...ne3.mts];
|
|
273431
273431
|
return e11 != null && e11.allowJs && (t9.push(".js", ".jsx"), s7.push(".cjs"), n7.push(".mjs")), [...t9, ...s7, ...n7];
|
|
273432
273432
|
}, "getSupportedExtensions");
|
|
273433
273433
|
var Ke2 = o7((e11) => {
|
|
@@ -273439,39 +273439,39 @@ var Ke2 = o7((e11) => {
|
|
|
273439
273439
|
}, "getDefaultExcludeSpec");
|
|
273440
273440
|
var de3 = o7((e11) => e11.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`), "escapeForRegexp");
|
|
273441
273441
|
var Ce2 = ["node_modules", "bower_components", "jspm_packages"];
|
|
273442
|
-
var
|
|
273442
|
+
var te3 = `(?!(${Ce2.join("|")})(/|$))`;
|
|
273443
273443
|
var en = /(?:^|\/)[^.*?]+$/;
|
|
273444
|
-
var
|
|
273445
|
-
var
|
|
273446
|
-
var
|
|
273447
|
-
var
|
|
273444
|
+
var Te2 = "**/*";
|
|
273445
|
+
var O5 = "[^/]";
|
|
273446
|
+
var se3 = "[^./]";
|
|
273447
|
+
var Ae2 = process.platform === "win32";
|
|
273448
273448
|
var nn = o7(({ config: e11, path: t9 }, s7 = Ze2()) => {
|
|
273449
273449
|
if ("extends" in e11)
|
|
273450
273450
|
throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");
|
|
273451
273451
|
if (!m6.isAbsolute(t9))
|
|
273452
273452
|
throw new Error("The tsconfig path must be absolute");
|
|
273453
|
-
|
|
273454
|
-
const n7 = m6.dirname(t9), { files: l4, include: i7, exclude: r7, compilerOptions: f5 } = e11, u6 = l4 == null ? undefined : l4.map((
|
|
273455
|
-
const A5 =
|
|
273456
|
-
return new RegExp(`^${
|
|
273457
|
-
}),
|
|
273458
|
-
let A5 =
|
|
273459
|
-
en.test(A5) && (A5 =
|
|
273460
|
-
const
|
|
273461
|
-
const
|
|
273462
|
-
return c3 ? `/${
|
|
273463
|
-
}).replaceAll(/(\/)?\\\?/g, (
|
|
273464
|
-
const
|
|
273465
|
-
return c3 ? `/${
|
|
273453
|
+
Ae2 && (t9 = h7(t9));
|
|
273454
|
+
const n7 = m6.dirname(t9), { files: l4, include: i7, exclude: r7, compilerOptions: f5 } = e11, u6 = l4 == null ? undefined : l4.map((d6) => J3(n7, d6)), g5 = qe2(f5), w5 = s7 ? "" : "i", y4 = (r7 || Ke2(f5)).map((d6) => {
|
|
273455
|
+
const A5 = J3(n7, d6), E5 = de3(A5).replaceAll(String.raw`\*\*/`, "(.+/)?").replaceAll(String.raw`\*`, `${O5}*`).replaceAll(String.raw`\?`, O5);
|
|
273456
|
+
return new RegExp(`^${E5}($|/)`, w5);
|
|
273457
|
+
}), v6 = l4 || i7 ? i7 : [Te2], j3 = v6 ? v6.map((d6) => {
|
|
273458
|
+
let A5 = J3(n7, d6);
|
|
273459
|
+
en.test(A5) && (A5 = J3(A5, Te2));
|
|
273460
|
+
const E5 = de3(A5).replaceAll(String.raw`/\*\*`, `(/${te3}${se3}${O5}*)*?`).replaceAll(/(\/)?\\\*/g, (B3, c3) => {
|
|
273461
|
+
const _5 = `(${se3}|(\\.(?!min\\.js$))?)*`;
|
|
273462
|
+
return c3 ? `/${te3}${se3}${_5}` : _5;
|
|
273463
|
+
}).replaceAll(/(\/)?\\\?/g, (B3, c3) => {
|
|
273464
|
+
const _5 = O5;
|
|
273465
|
+
return c3 ? `/${te3}${_5}` : _5;
|
|
273466
273466
|
});
|
|
273467
|
-
return new RegExp(`^${
|
|
273467
|
+
return new RegExp(`^${E5}$`, w5);
|
|
273468
273468
|
}) : undefined;
|
|
273469
|
-
return (
|
|
273470
|
-
if (!m6.isAbsolute(
|
|
273469
|
+
return (d6) => {
|
|
273470
|
+
if (!m6.isAbsolute(d6))
|
|
273471
273471
|
throw new Error("filePath must be absolute");
|
|
273472
|
-
if (
|
|
273472
|
+
if (Ae2 && (d6 = h7(d6)), u6 != null && u6.includes(d6))
|
|
273473
273473
|
return e11;
|
|
273474
|
-
if (!(!g5.some((A5) =>
|
|
273474
|
+
if (!(!g5.some((A5) => d6.endsWith(A5)) || y4.some((A5) => A5.test(d6))) && j3 && j3.some((A5) => A5.test(d6)))
|
|
273475
273475
|
return e11;
|
|
273476
273476
|
};
|
|
273477
273477
|
}, "createFilesMatcher");
|
|
@@ -273653,7 +273653,7 @@ function sanitizeName(value5, length = 35) {
|
|
|
273653
273653
|
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
|
273654
273654
|
}
|
|
273655
273655
|
|
|
273656
|
-
// ../../node_modules/.bun/@inquirer+input@4.2.5+
|
|
273656
|
+
// ../../node_modules/.bun/@inquirer+input@4.2.5+77ecc61a1a688668/node_modules/@inquirer/input/dist/esm/index.js
|
|
273657
273657
|
var inputTheme = {
|
|
273658
273658
|
validationFailureMode: "keep"
|
|
273659
273659
|
};
|
|
@@ -273743,7 +273743,7 @@ async function subgraphNamePrompt({
|
|
|
273743
273743
|
return sanitizeName(subgraphName);
|
|
273744
273744
|
}
|
|
273745
273745
|
|
|
273746
|
-
// ../../node_modules/.bun/@inquirer+select@4.4.0+
|
|
273746
|
+
// ../../node_modules/.bun/@inquirer+select@4.4.0+77ecc61a1a688668/node_modules/@inquirer/select/dist/esm/index.js
|
|
273747
273747
|
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
|
273748
273748
|
var selectTheme = {
|
|
273749
273749
|
icon: { cursor: esm_default.pointer },
|
|
@@ -299261,7 +299261,7 @@ function extractInfoFromBody(body) {
|
|
|
299261
299261
|
}
|
|
299262
299262
|
}
|
|
299263
299263
|
|
|
299264
|
-
// ../../node_modules/.bun/@inquirer+confirm@5.1.19+
|
|
299264
|
+
// ../../node_modules/.bun/@inquirer+confirm@5.1.19+77ecc61a1a688668/node_modules/@inquirer/confirm/dist/esm/index.js
|
|
299265
299265
|
function getBooleanValue(value5, defaultValue) {
|
|
299266
299266
|
let answer = defaultValue !== false;
|
|
299267
299267
|
if (/^(y|yes)/i.test(value5))
|
|
@@ -299307,7 +299307,7 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
|
299307
299307
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
|
299308
299308
|
});
|
|
299309
299309
|
|
|
299310
|
-
// ../../node_modules/.bun/@inquirer+password@4.0.21+
|
|
299310
|
+
// ../../node_modules/.bun/@inquirer+password@4.0.21+77ecc61a1a688668/node_modules/@inquirer/password/dist/esm/index.js
|
|
299311
299311
|
var esm_default5 = createPrompt((config3, done) => {
|
|
299312
299312
|
const { validate: validate8 = () => true } = config3;
|
|
299313
299313
|
const theme = makeTheme(config3.theme);
|
|
@@ -300846,7 +300846,7 @@ import H$2 from "path";
|
|
|
300846
300846
|
import nt2 from "events";
|
|
300847
300847
|
import ot2 from "stream";
|
|
300848
300848
|
import ht3 from "string_decoder";
|
|
300849
|
-
import
|
|
300849
|
+
import P4 from "buffer";
|
|
300850
300850
|
import O$2 from "zlib";
|
|
300851
300851
|
import nt$1 from "process";
|
|
300852
300852
|
import V5 from "fs";
|
|
@@ -301342,7 +301342,7 @@ function w$1() {
|
|
|
301342
301342
|
var a8 = e11 & 255;
|
|
301343
301343
|
e11 = Math.floor(e11 / 256), o8 ? r7[s7 - 1] = l4(a8) : a8 === 0 ? r7[s7 - 1] = 0 : (o8 = true, r7[s7 - 1] = c3(a8));
|
|
301344
301344
|
}
|
|
301345
|
-
},
|
|
301345
|
+
}, h8 = (e11) => {
|
|
301346
301346
|
const r7 = e11[0], o8 = r7 === 128 ? d6(e11.slice(1, e11.length)) : r7 === 255 ? x6(e11) : null;
|
|
301347
301347
|
if (o8 === null)
|
|
301348
301348
|
throw Error("invalid base256 encoding");
|
|
@@ -301362,24 +301362,24 @@ function w$1() {
|
|
|
301362
301362
|
}
|
|
301363
301363
|
return o8;
|
|
301364
301364
|
}, l4 = (e11) => (255 ^ e11) & 255, c3 = (e11) => (255 ^ e11) + 1 & 255;
|
|
301365
|
-
return f$3 = { encode: v6, parse:
|
|
301365
|
+
return f$3 = { encode: v6, parse: h8 }, f$3;
|
|
301366
301366
|
}
|
|
301367
301367
|
var k5;
|
|
301368
301368
|
var w5;
|
|
301369
|
-
function
|
|
301369
|
+
function E5() {
|
|
301370
301370
|
if (w5)
|
|
301371
301371
|
return k5;
|
|
301372
301372
|
w5 = 1;
|
|
301373
|
-
const u6 = n$3(), x6 = H$2.posix, y4 = w$1(),
|
|
301373
|
+
const u6 = n$3(), x6 = H$2.posix, y4 = w$1(), P5 = Symbol("slurp"), a8 = Symbol("type");
|
|
301374
301374
|
|
|
301375
|
-
class
|
|
301376
|
-
constructor(e11, t9, i7,
|
|
301377
|
-
this.cksumValid = false, this.needPax = false, this.nullBlock = false, this.block = null, this.path = null, this.mode = null, this.uid = null, this.gid = null, this.size = null, this.mtime = null, this.cksum = null, this[a8] = "0", this.linkpath = null, this.uname = null, this.gname = null, this.devmaj = 0, this.devmin = 0, this.atime = null, this.ctime = null, Buffer.isBuffer(e11) ? this.decode(e11, t9 || 0, i7,
|
|
301375
|
+
class B3 {
|
|
301376
|
+
constructor(e11, t9, i7, h8) {
|
|
301377
|
+
this.cksumValid = false, this.needPax = false, this.nullBlock = false, this.block = null, this.path = null, this.mode = null, this.uid = null, this.gid = null, this.size = null, this.mtime = null, this.cksum = null, this[a8] = "0", this.linkpath = null, this.uname = null, this.gname = null, this.devmaj = 0, this.devmin = 0, this.atime = null, this.ctime = null, Buffer.isBuffer(e11) ? this.decode(e11, t9 || 0, i7, h8) : e11 && this.set(e11);
|
|
301378
301378
|
}
|
|
301379
|
-
decode(e11, t9, i7,
|
|
301379
|
+
decode(e11, t9, i7, h8) {
|
|
301380
301380
|
if (t9 || (t9 = 0), !e11 || !(e11.length >= t9 + 512))
|
|
301381
301381
|
throw new Error("need 512 bytes for header");
|
|
301382
|
-
if (this.path = d6(e11, t9, 100), this.mode = r7(e11, t9 + 100, 8), this.uid = r7(e11, t9 + 108, 8), this.gid = r7(e11, t9 + 116, 8), this.size = r7(e11, t9 + 124, 12), this.mtime = o8(e11, t9 + 136, 12), this.cksum = r7(e11, t9 + 148, 12), this[
|
|
301382
|
+
if (this.path = d6(e11, t9, 100), this.mode = r7(e11, t9 + 100, 8), this.uid = r7(e11, t9 + 108, 8), this.gid = r7(e11, t9 + 116, 8), this.size = r7(e11, t9 + 124, 12), this.mtime = o8(e11, t9 + 136, 12), this.cksum = r7(e11, t9 + 148, 12), this[P5](i7), this[P5](h8, true), this[a8] = d6(e11, t9 + 156, 1), this[a8] === "" && (this[a8] = "0"), this[a8] === "0" && this.path.slice(-1) === "/" && (this[a8] = "5"), this[a8] === "5" && (this.size = 0), this.linkpath = d6(e11, t9 + 157, 100), e11.slice(t9 + 257, t9 + 265).toString() === "ustar\x0000")
|
|
301383
301383
|
if (this.uname = d6(e11, t9 + 265, 32), this.gname = d6(e11, t9 + 297, 32), this.devmaj = r7(e11, t9 + 329, 8), this.devmin = r7(e11, t9 + 337, 8), e11[t9 + 475] !== 0) {
|
|
301384
301384
|
const n7 = d6(e11, t9 + 345, 155);
|
|
301385
301385
|
this.path = n7 + "/" + this.path;
|
|
@@ -301394,21 +301394,21 @@ function E6() {
|
|
|
301394
301394
|
l4 += e11[n7];
|
|
301395
301395
|
this.cksumValid = l4 === this.cksum, this.cksum === null && l4 === 8 * 32 && (this.nullBlock = true);
|
|
301396
301396
|
}
|
|
301397
|
-
[
|
|
301397
|
+
[P5](e11, t9) {
|
|
301398
301398
|
for (const i7 in e11)
|
|
301399
301399
|
e11[i7] !== null && e11[i7] !== undefined && !(t9 && i7 === "path") && (this[i7] = e11[i7]);
|
|
301400
301400
|
}
|
|
301401
301401
|
encode(e11, t9) {
|
|
301402
301402
|
if (e11 || (e11 = this.block = Buffer.alloc(512), t9 = 0), t9 || (t9 = 0), !(e11.length >= t9 + 512))
|
|
301403
301403
|
throw new Error("need 512 bytes for header");
|
|
301404
|
-
const i7 = this.ctime || this.atime ? 130 : 155,
|
|
301405
|
-
this.needPax =
|
|
301406
|
-
let
|
|
301404
|
+
const i7 = this.ctime || this.atime ? 130 : 155, h8 = L6(this.path || "", i7), l4 = h8[0], n7 = h8[1];
|
|
301405
|
+
this.needPax = h8[2], this.needPax = m7(e11, t9, 100, l4) || this.needPax, this.needPax = c3(e11, t9 + 100, 8, this.mode) || this.needPax, this.needPax = c3(e11, t9 + 108, 8, this.uid) || this.needPax, this.needPax = c3(e11, t9 + 116, 8, this.gid) || this.needPax, this.needPax = c3(e11, t9 + 124, 12, this.size) || this.needPax, this.needPax = g5(e11, t9 + 136, 12, this.mtime) || this.needPax, e11[t9 + 156] = this[a8].charCodeAt(0), this.needPax = m7(e11, t9 + 157, 100, this.linkpath) || this.needPax, e11.write("ustar\x0000", t9 + 257, 8), this.needPax = m7(e11, t9 + 265, 32, this.uname) || this.needPax, this.needPax = m7(e11, t9 + 297, 32, this.gname) || this.needPax, this.needPax = c3(e11, t9 + 329, 8, this.devmaj) || this.needPax, this.needPax = c3(e11, t9 + 337, 8, this.devmin) || this.needPax, this.needPax = m7(e11, t9 + 345, i7, n7) || this.needPax, e11[t9 + 475] !== 0 ? this.needPax = m7(e11, t9 + 345, 155, n7) || this.needPax : (this.needPax = m7(e11, t9 + 345, 130, n7) || this.needPax, this.needPax = g5(e11, t9 + 476, 12, this.atime) || this.needPax, this.needPax = g5(e11, t9 + 488, 12, this.ctime) || this.needPax);
|
|
301406
|
+
let S5 = 8 * 32;
|
|
301407
301407
|
for (let p5 = t9;p5 < t9 + 148; p5++)
|
|
301408
|
-
|
|
301408
|
+
S5 += e11[p5];
|
|
301409
301409
|
for (let p5 = t9 + 156;p5 < t9 + 512; p5++)
|
|
301410
|
-
|
|
301411
|
-
return this.cksum =
|
|
301410
|
+
S5 += e11[p5];
|
|
301411
|
+
return this.cksum = S5, c3(e11, t9 + 148, 8, this.cksum), this.cksumValid = true, this.needPax;
|
|
301412
301412
|
}
|
|
301413
301413
|
set(e11) {
|
|
301414
301414
|
for (const t9 in e11)
|
|
@@ -301424,21 +301424,21 @@ function E6() {
|
|
|
301424
301424
|
u6.code.has(e11) ? this[a8] = u6.code.get(e11) : this[a8] = e11;
|
|
301425
301425
|
}
|
|
301426
301426
|
}
|
|
301427
|
-
const
|
|
301428
|
-
let i7 = s7,
|
|
301427
|
+
const L6 = (s7, e11) => {
|
|
301428
|
+
let i7 = s7, h8 = "", l4;
|
|
301429
301429
|
const n7 = x6.parse(s7).root || ".";
|
|
301430
301430
|
if (Buffer.byteLength(i7) < 100)
|
|
301431
|
-
l4 = [i7,
|
|
301431
|
+
l4 = [i7, h8, false];
|
|
301432
301432
|
else {
|
|
301433
|
-
|
|
301433
|
+
h8 = x6.dirname(i7), i7 = x6.basename(i7);
|
|
301434
301434
|
do
|
|
301435
|
-
Buffer.byteLength(i7) <= 100 && Buffer.byteLength(
|
|
301436
|
-
while (
|
|
301435
|
+
Buffer.byteLength(i7) <= 100 && Buffer.byteLength(h8) <= e11 ? l4 = [i7, h8, false] : Buffer.byteLength(i7) > 100 && Buffer.byteLength(h8) <= e11 ? l4 = [i7.slice(0, 99), h8, true] : (i7 = x6.join(x6.basename(h8), i7), h8 = x6.dirname(h8));
|
|
301436
|
+
while (h8 !== n7 && !l4);
|
|
301437
301437
|
l4 || (l4 = [s7.slice(0, 99), "", true]);
|
|
301438
301438
|
}
|
|
301439
301439
|
return l4;
|
|
301440
|
-
}, d6 = (s7, e11, t9) => s7.slice(e11, e11 + t9).toString("utf8").replace(/\0.*/, ""), o8 = (s7, e11, t9) => N6(r7(s7, e11, t9)), N6 = (s7) => s7 === null ? null : new Date(s7 * 1000), r7 = (s7, e11, t9) => s7[e11] & 128 ? y4.parse(s7.slice(e11, e11 + t9)) : j3(s7, e11, t9), q6 = (s7) => isNaN(s7) ? null : s7, j3 = (s7, e11, t9) => q6(parseInt(s7.slice(e11, e11 + t9).toString("utf8").replace(/\0.*$/, "").trim(), 8)), v6 = { 12: 8589934591, 8: 2097151 }, c3 = (s7, e11, t9, i7) => i7 === null ? false : i7 > v6[t9] || i7 < 0 ? (y4.encode(i7, s7.slice(e11, e11 + t9)), true) : ($5(s7, e11, t9, i7), false), $5 = (s7, e11, t9, i7) => s7.write(_5(i7, t9), e11, t9, "ascii"), _5 = (s7, e11) =>
|
|
301441
|
-
return k5 =
|
|
301440
|
+
}, d6 = (s7, e11, t9) => s7.slice(e11, e11 + t9).toString("utf8").replace(/\0.*/, ""), o8 = (s7, e11, t9) => N6(r7(s7, e11, t9)), N6 = (s7) => s7 === null ? null : new Date(s7 * 1000), r7 = (s7, e11, t9) => s7[e11] & 128 ? y4.parse(s7.slice(e11, e11 + t9)) : j3(s7, e11, t9), q6 = (s7) => isNaN(s7) ? null : s7, j3 = (s7, e11, t9) => q6(parseInt(s7.slice(e11, e11 + t9).toString("utf8").replace(/\0.*$/, "").trim(), 8)), v6 = { 12: 8589934591, 8: 2097151 }, c3 = (s7, e11, t9, i7) => i7 === null ? false : i7 > v6[t9] || i7 < 0 ? (y4.encode(i7, s7.slice(e11, e11 + t9)), true) : ($5(s7, e11, t9, i7), false), $5 = (s7, e11, t9, i7) => s7.write(_5(i7, t9), e11, t9, "ascii"), _5 = (s7, e11) => z3(Math.floor(s7).toString(8), e11), z3 = (s7, e11) => (s7.length === e11 - 1 ? s7 : new Array(e11 - s7.length - 1).join("0") + s7 + " ") + "\x00", g5 = (s7, e11, t9, i7) => i7 === null ? false : c3(s7, e11, t9, i7.getTime() / 1000), A5 = new Array(156).join("\x00"), m7 = (s7, e11, t9, i7) => i7 === null ? false : (s7.write(i7 + A5, e11, t9, "utf8"), i7.length !== Buffer.byteLength(i7) || i7.length > t9);
|
|
301441
|
+
return k5 = B3, k5;
|
|
301442
301442
|
}
|
|
301443
301443
|
var e$3;
|
|
301444
301444
|
var t$3;
|
|
@@ -301463,7 +301463,7 @@ function c$3() {
|
|
|
301463
301463
|
i7.push(n7);
|
|
301464
301464
|
});
|
|
301465
301465
|
else if (arguments.length > 0)
|
|
301466
|
-
for (var e11 = 0,
|
|
301466
|
+
for (var e11 = 0, h8 = arguments.length;e11 < h8; e11++)
|
|
301467
301467
|
i7.push(arguments[e11]);
|
|
301468
301468
|
return i7;
|
|
301469
301469
|
}
|
|
@@ -301504,12 +301504,12 @@ function c$3() {
|
|
|
301504
301504
|
}
|
|
301505
301505
|
}, r7.prototype.forEach = function(t9, i7) {
|
|
301506
301506
|
i7 = i7 || this;
|
|
301507
|
-
for (var e11 = this.head,
|
|
301508
|
-
t9.call(i7, e11.value,
|
|
301507
|
+
for (var e11 = this.head, h8 = 0;e11 !== null; h8++)
|
|
301508
|
+
t9.call(i7, e11.value, h8, this), e11 = e11.next;
|
|
301509
301509
|
}, r7.prototype.forEachReverse = function(t9, i7) {
|
|
301510
301510
|
i7 = i7 || this;
|
|
301511
|
-
for (var e11 = this.tail,
|
|
301512
|
-
t9.call(i7, e11.value,
|
|
301511
|
+
for (var e11 = this.tail, h8 = this.length - 1;e11 !== null; h8--)
|
|
301512
|
+
t9.call(i7, e11.value, h8, this), e11 = e11.prev;
|
|
301513
301513
|
}, r7.prototype.get = function(t9) {
|
|
301514
301514
|
for (var i7 = 0, e11 = this.head;e11 !== null && i7 < t9; i7++)
|
|
301515
301515
|
e11 = e11.next;
|
|
@@ -301522,35 +301522,35 @@ function c$3() {
|
|
|
301522
301522
|
return e11.value;
|
|
301523
301523
|
}, r7.prototype.map = function(t9, i7) {
|
|
301524
301524
|
i7 = i7 || this;
|
|
301525
|
-
for (var e11 = new r7,
|
|
301526
|
-
e11.push(t9.call(i7,
|
|
301525
|
+
for (var e11 = new r7, h8 = this.head;h8 !== null; )
|
|
301526
|
+
e11.push(t9.call(i7, h8.value, this)), h8 = h8.next;
|
|
301527
301527
|
return e11;
|
|
301528
301528
|
}, r7.prototype.mapReverse = function(t9, i7) {
|
|
301529
301529
|
i7 = i7 || this;
|
|
301530
|
-
for (var e11 = new r7,
|
|
301531
|
-
e11.push(t9.call(i7,
|
|
301530
|
+
for (var e11 = new r7, h8 = this.tail;h8 !== null; )
|
|
301531
|
+
e11.push(t9.call(i7, h8.value, this)), h8 = h8.prev;
|
|
301532
301532
|
return e11;
|
|
301533
301533
|
}, r7.prototype.reduce = function(t9, i7) {
|
|
301534
|
-
var e11,
|
|
301534
|
+
var e11, h8 = this.head;
|
|
301535
301535
|
if (arguments.length > 1)
|
|
301536
301536
|
e11 = i7;
|
|
301537
301537
|
else if (this.head)
|
|
301538
|
-
|
|
301538
|
+
h8 = this.head.next, e11 = this.head.value;
|
|
301539
301539
|
else
|
|
301540
301540
|
throw new TypeError("Reduce of empty list with no initial value");
|
|
301541
|
-
for (var n7 = 0;
|
|
301542
|
-
e11 = t9(e11,
|
|
301541
|
+
for (var n7 = 0;h8 !== null; n7++)
|
|
301542
|
+
e11 = t9(e11, h8.value, n7), h8 = h8.next;
|
|
301543
301543
|
return e11;
|
|
301544
301544
|
}, r7.prototype.reduceReverse = function(t9, i7) {
|
|
301545
|
-
var e11,
|
|
301545
|
+
var e11, h8 = this.tail;
|
|
301546
301546
|
if (arguments.length > 1)
|
|
301547
301547
|
e11 = i7;
|
|
301548
301548
|
else if (this.tail)
|
|
301549
|
-
|
|
301549
|
+
h8 = this.tail.prev, e11 = this.tail.value;
|
|
301550
301550
|
else
|
|
301551
301551
|
throw new TypeError("Reduce of empty list with no initial value");
|
|
301552
|
-
for (var n7 = this.length - 1;
|
|
301553
|
-
e11 = t9(e11,
|
|
301552
|
+
for (var n7 = this.length - 1;h8 !== null; n7--)
|
|
301553
|
+
e11 = t9(e11, h8.value, n7), h8 = h8.prev;
|
|
301554
301554
|
return e11;
|
|
301555
301555
|
}, r7.prototype.toArray = function() {
|
|
301556
301556
|
for (var t9 = new Array(this.length), i7 = 0, e11 = this.head;e11 !== null; i7++)
|
|
@@ -301566,9 +301566,9 @@ function c$3() {
|
|
|
301566
301566
|
if (i7 < t9 || i7 < 0)
|
|
301567
301567
|
return e11;
|
|
301568
301568
|
t9 < 0 && (t9 = 0), i7 > this.length && (i7 = this.length);
|
|
301569
|
-
for (var
|
|
301569
|
+
for (var h8 = 0, n7 = this.head;n7 !== null && h8 < t9; h8++)
|
|
301570
301570
|
n7 = n7.next;
|
|
301571
|
-
for (;n7 !== null &&
|
|
301571
|
+
for (;n7 !== null && h8 < i7; h8++, n7 = n7.next)
|
|
301572
301572
|
e11.push(n7.value);
|
|
301573
301573
|
return e11;
|
|
301574
301574
|
}, r7.prototype.sliceReverse = function(t9, i7) {
|
|
@@ -301577,31 +301577,31 @@ function c$3() {
|
|
|
301577
301577
|
if (i7 < t9 || i7 < 0)
|
|
301578
301578
|
return e11;
|
|
301579
301579
|
t9 < 0 && (t9 = 0), i7 > this.length && (i7 = this.length);
|
|
301580
|
-
for (var
|
|
301580
|
+
for (var h8 = this.length, n7 = this.tail;n7 !== null && h8 > i7; h8--)
|
|
301581
301581
|
n7 = n7.prev;
|
|
301582
|
-
for (;n7 !== null &&
|
|
301582
|
+
for (;n7 !== null && h8 > t9; h8--, n7 = n7.prev)
|
|
301583
301583
|
e11.push(n7.value);
|
|
301584
301584
|
return e11;
|
|
301585
301585
|
}, r7.prototype.splice = function(t9, i7, ...e11) {
|
|
301586
301586
|
t9 > this.length && (t9 = this.length - 1), t9 < 0 && (t9 = this.length + t9);
|
|
301587
|
-
for (var
|
|
301587
|
+
for (var h8 = 0, n7 = this.head;n7 !== null && h8 < t9; h8++)
|
|
301588
301588
|
n7 = n7.next;
|
|
301589
|
-
for (var l4 = [],
|
|
301589
|
+
for (var l4 = [], h8 = 0;n7 && h8 < i7; h8++)
|
|
301590
301590
|
l4.push(n7.value), n7 = this.removeNode(n7);
|
|
301591
301591
|
n7 === null && (n7 = this.tail), n7 !== this.head && n7 !== this.tail && (n7 = n7.prev);
|
|
301592
|
-
for (var
|
|
301593
|
-
n7 = v6(this, n7, e11[
|
|
301592
|
+
for (var h8 = 0;h8 < e11.length; h8++)
|
|
301593
|
+
n7 = v6(this, n7, e11[h8]);
|
|
301594
301594
|
return l4;
|
|
301595
301595
|
}, r7.prototype.reverse = function() {
|
|
301596
301596
|
for (var t9 = this.head, i7 = this.tail, e11 = t9;e11 !== null; e11 = e11.prev) {
|
|
301597
|
-
var
|
|
301598
|
-
e11.prev = e11.next, e11.next =
|
|
301597
|
+
var h8 = e11.prev;
|
|
301598
|
+
e11.prev = e11.next, e11.next = h8;
|
|
301599
301599
|
}
|
|
301600
301600
|
return this.head = i7, this.tail = t9, this;
|
|
301601
301601
|
};
|
|
301602
301602
|
function v6(t9, i7, e11) {
|
|
301603
|
-
var
|
|
301604
|
-
return
|
|
301603
|
+
var h8 = i7 === t9.head ? new s7(e11, null, i7, t9) : new s7(e11, i7, i7.next, t9);
|
|
301604
|
+
return h8.next === null && (t9.tail = h8), h8.prev === null && (t9.head = h8), t9.length++, h8;
|
|
301605
301605
|
}
|
|
301606
301606
|
function f5(t9, i7) {
|
|
301607
301607
|
t9.tail = new s7(i7, t9.tail, null, t9), t9.head || (t9.head = t9.tail), t9.length++;
|
|
@@ -301609,10 +301609,10 @@ function c$3() {
|
|
|
301609
301609
|
function o8(t9, i7) {
|
|
301610
301610
|
t9.head = new s7(i7, null, t9.head, t9), t9.tail || (t9.tail = t9.head), t9.length++;
|
|
301611
301611
|
}
|
|
301612
|
-
function s7(t9, i7, e11,
|
|
301612
|
+
function s7(t9, i7, e11, h8) {
|
|
301613
301613
|
if (!(this instanceof s7))
|
|
301614
|
-
return new s7(t9, i7, e11,
|
|
301615
|
-
this.list =
|
|
301614
|
+
return new s7(t9, i7, e11, h8);
|
|
301615
|
+
this.list = h8, this.value = t9, i7 ? (i7.next = this, this.prev = i7) : this.prev = null, e11 ? (e11.prev = this, this.next = e11) : this.next = null;
|
|
301616
301616
|
}
|
|
301617
301617
|
try {
|
|
301618
301618
|
i$4()(r7);
|
|
@@ -301625,9 +301625,9 @@ function ft2() {
|
|
|
301625
301625
|
if (X$1)
|
|
301626
301626
|
return s$5;
|
|
301627
301627
|
X$1 = 1;
|
|
301628
|
-
const H4 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Z4 = nt2, q6 = ot2, G4 = ht3.StringDecoder, m7 = Symbol("EOF"), d6 = Symbol("maybeEmitEnd"), y4 = Symbol("emittedEnd"), R7 = Symbol("emittingEnd"), g5 = Symbol("emittedError"),
|
|
301628
|
+
const H4 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Z4 = nt2, q6 = ot2, G4 = ht3.StringDecoder, m7 = Symbol("EOF"), d6 = Symbol("maybeEmitEnd"), y4 = Symbol("emittedEnd"), R7 = Symbol("emittingEnd"), g5 = Symbol("emittedError"), B3 = Symbol("closed"), Y4 = Symbol("read"), T4 = Symbol("flush"), $5 = Symbol("flushChunk"), f5 = Symbol("encoding"), c3 = Symbol("decoder"), M5 = Symbol("flowing"), S5 = Symbol("paused"), b4 = Symbol("resume"), i7 = Symbol("buffer"), a8 = Symbol("pipes"), n7 = Symbol("bufferLength"), j3 = Symbol("bufferPush"), I7 = Symbol("bufferShift"), o8 = Symbol("objectMode"), r7 = Symbol("destroyed"), P5 = Symbol("error"), x6 = Symbol("emitData"), V6 = Symbol("emitEnd"), N6 = Symbol("emitEnd2"), p5 = Symbol("async"), _5 = Symbol("abort"), O6 = Symbol("aborted"), E6 = Symbol("signal"), w6 = (h8) => Promise.resolve().then(h8), J4 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", K4 = J4 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), W5 = J4 && Symbol.iterator || Symbol("iterator not implemented"), k6 = (h8) => h8 === "end" || h8 === "finish" || h8 === "prefinish", tt2 = (h8) => h8 instanceof ArrayBuffer || typeof h8 == "object" && h8.constructor && h8.constructor.name === "ArrayBuffer" && h8.byteLength >= 0, et3 = (h8) => !Buffer.isBuffer(h8) && ArrayBuffer.isView(h8);
|
|
301629
301629
|
|
|
301630
|
-
class
|
|
301630
|
+
class z3 {
|
|
301631
301631
|
constructor(t9, e11, s7) {
|
|
301632
301632
|
this.src = t9, this.dest = e11, this.opts = s7, this.ondrain = () => t9[b4](), e11.on("drain", this.ondrain);
|
|
301633
301633
|
}
|
|
@@ -301640,7 +301640,7 @@ function ft2() {
|
|
|
301640
301640
|
}
|
|
301641
301641
|
}
|
|
301642
301642
|
|
|
301643
|
-
class st2 extends
|
|
301643
|
+
class st2 extends z3 {
|
|
301644
301644
|
unpipe() {
|
|
301645
301645
|
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
301646
301646
|
}
|
|
@@ -301651,7 +301651,7 @@ function ft2() {
|
|
|
301651
301651
|
|
|
301652
301652
|
class F3 extends q6 {
|
|
301653
301653
|
constructor(t9) {
|
|
301654
|
-
super(), this[M5] = false, this[
|
|
301654
|
+
super(), this[M5] = false, this[S5] = false, this[a8] = [], this[i7] = [], this[o8] = t9 && t9.objectMode || false, this[o8] ? this[f5] = null : this[f5] = t9 && t9.encoding || null, this[f5] === "buffer" && (this[f5] = null), this[p5] = t9 && !!t9.async || false, this[c3] = this[f5] ? new G4(this[f5]) : null, this[m7] = false, this[y4] = false, this[R7] = false, this[B3] = false, this[g5] = null, this.writable = true, this.readable = true, this[n7] = 0, this[r7] = false, t9 && t9.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[i7] }), t9 && t9.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[a8] }), this[E6] = t9 && t9.signal, this[O6] = false, this[E6] && (this[E6].addEventListener("abort", () => this[_5]()), this[E6].aborted && this[_5]());
|
|
301655
301655
|
}
|
|
301656
301656
|
get bufferLength() {
|
|
301657
301657
|
return this[n7];
|
|
@@ -301682,14 +301682,14 @@ function ft2() {
|
|
|
301682
301682
|
this[p5] = this[p5] || !!t9;
|
|
301683
301683
|
}
|
|
301684
301684
|
[_5]() {
|
|
301685
|
-
this[
|
|
301685
|
+
this[O6] = true, this.emit("abort", this[E6].reason), this.destroy(this[E6].reason);
|
|
301686
301686
|
}
|
|
301687
301687
|
get aborted() {
|
|
301688
|
-
return this[
|
|
301688
|
+
return this[O6];
|
|
301689
301689
|
}
|
|
301690
301690
|
set aborted(t9) {}
|
|
301691
301691
|
write(t9, e11, s7) {
|
|
301692
|
-
if (this[
|
|
301692
|
+
if (this[O6])
|
|
301693
301693
|
return false;
|
|
301694
301694
|
if (this[m7])
|
|
301695
301695
|
throw new Error("write after end");
|
|
@@ -301712,16 +301712,16 @@ function ft2() {
|
|
|
301712
301712
|
return t9 === e11.length || t9 === null ? this[I7]() : (this[i7][0] = e11.slice(t9), e11 = e11.slice(0, t9), this[n7] -= t9), this.emit("data", e11), !this[i7].length && !this[m7] && this.emit("drain"), e11;
|
|
301713
301713
|
}
|
|
301714
301714
|
end(t9, e11, s7) {
|
|
301715
|
-
return typeof t9 == "function" && (s7 = t9, t9 = null), typeof e11 == "function" && (s7 = e11, e11 = "utf8"), t9 && this.write(t9, e11), s7 && this.once("end", s7), this[m7] = true, this.writable = false, (this.flowing || !this[
|
|
301715
|
+
return typeof t9 == "function" && (s7 = t9, t9 = null), typeof e11 == "function" && (s7 = e11, e11 = "utf8"), t9 && this.write(t9, e11), s7 && this.once("end", s7), this[m7] = true, this.writable = false, (this.flowing || !this[S5]) && this[d6](), this;
|
|
301716
301716
|
}
|
|
301717
301717
|
[b4]() {
|
|
301718
|
-
this[r7] || (this[
|
|
301718
|
+
this[r7] || (this[S5] = false, this[M5] = true, this.emit("resume"), this[i7].length ? this[T4]() : this[m7] ? this[d6]() : this.emit("drain"));
|
|
301719
301719
|
}
|
|
301720
301720
|
resume() {
|
|
301721
301721
|
return this[b4]();
|
|
301722
301722
|
}
|
|
301723
301723
|
pause() {
|
|
301724
|
-
this[M5] = false, this[
|
|
301724
|
+
this[M5] = false, this[S5] = true;
|
|
301725
301725
|
}
|
|
301726
301726
|
get destroyed() {
|
|
301727
301727
|
return this[r7];
|
|
@@ -301730,7 +301730,7 @@ function ft2() {
|
|
|
301730
301730
|
return this[M5];
|
|
301731
301731
|
}
|
|
301732
301732
|
get paused() {
|
|
301733
|
-
return this[
|
|
301733
|
+
return this[S5];
|
|
301734
301734
|
}
|
|
301735
301735
|
[j3](t9) {
|
|
301736
301736
|
this[o8] ? this[n7] += 1 : this[n7] += t9.length, this[i7].push(t9);
|
|
@@ -301751,7 +301751,7 @@ function ft2() {
|
|
|
301751
301751
|
if (this[r7])
|
|
301752
301752
|
return;
|
|
301753
301753
|
const s7 = this[y4];
|
|
301754
|
-
return e11 = e11 || {}, t9 === H4.stdout || t9 === H4.stderr ? e11.end = false : e11.end = e11.end !== false, e11.proxyErrors = !!e11.proxyErrors, s7 ? e11.end && t9.end() : (this[a8].push(e11.proxyErrors ? new st2(this, t9, e11) : new
|
|
301754
|
+
return e11 = e11 || {}, t9 === H4.stdout || t9 === H4.stderr ? e11.end = false : e11.end = e11.end !== false, e11.proxyErrors = !!e11.proxyErrors, s7 ? e11.end && t9.end() : (this[a8].push(e11.proxyErrors ? new st2(this, t9, e11) : new z3(this, t9, e11)), this[p5] ? w6(() => this[b4]()) : this[b4]()), t9;
|
|
301755
301755
|
}
|
|
301756
301756
|
unpipe(t9) {
|
|
301757
301757
|
const e11 = this[a8].find((s7) => s7.dest === t9);
|
|
@@ -301768,7 +301768,7 @@ function ft2() {
|
|
|
301768
301768
|
return this[y4];
|
|
301769
301769
|
}
|
|
301770
301770
|
[d6]() {
|
|
301771
|
-
!this[R7] && !this[y4] && !this[r7] && this[i7].length === 0 && this[m7] && (this[R7] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[
|
|
301771
|
+
!this[R7] && !this[y4] && !this[r7] && this[i7].length === 0 && this[m7] && (this[R7] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[B3] && this.emit("close"), this[R7] = false);
|
|
301772
301772
|
}
|
|
301773
301773
|
emit(t9, e11, ...s7) {
|
|
301774
301774
|
if (t9 !== "error" && t9 !== "close" && t9 !== r7 && this[r7])
|
|
@@ -301778,13 +301778,13 @@ function ft2() {
|
|
|
301778
301778
|
if (t9 === "end")
|
|
301779
301779
|
return this[V6]();
|
|
301780
301780
|
if (t9 === "close") {
|
|
301781
|
-
if (this[
|
|
301781
|
+
if (this[B3] = true, !this[y4] && !this[r7])
|
|
301782
301782
|
return;
|
|
301783
301783
|
const u6 = super.emit("close");
|
|
301784
301784
|
return this.removeAllListeners("close"), u6;
|
|
301785
301785
|
} else if (t9 === "error") {
|
|
301786
|
-
this[g5] = e11, super.emit(
|
|
301787
|
-
const u6 = !this[
|
|
301786
|
+
this[g5] = e11, super.emit(P5, e11);
|
|
301787
|
+
const u6 = !this[E6] || this.listeners("error").length ? super.emit("error", e11) : false;
|
|
301788
301788
|
return this[d6](), u6;
|
|
301789
301789
|
} else if (t9 === "resume") {
|
|
301790
301790
|
const u6 = super.emit("resume");
|
|
@@ -301847,15 +301847,15 @@ function ft2() {
|
|
|
301847
301847
|
if (this[m7])
|
|
301848
301848
|
return e11();
|
|
301849
301849
|
let u6 = null, Q4 = null;
|
|
301850
|
-
const A5 = (
|
|
301851
|
-
this.removeListener("data",
|
|
301852
|
-
},
|
|
301853
|
-
this.removeListener("error", A5), this.removeListener("end", C4), this.removeListener(r7, D3), this.pause(), u6({ value:
|
|
301850
|
+
const A5 = (L6) => {
|
|
301851
|
+
this.removeListener("data", U5), this.removeListener("end", C4), this.removeListener(r7, D3), e11(), Q4(L6);
|
|
301852
|
+
}, U5 = (L6) => {
|
|
301853
|
+
this.removeListener("error", A5), this.removeListener("end", C4), this.removeListener(r7, D3), this.pause(), u6({ value: L6, done: !!this[m7] });
|
|
301854
301854
|
}, C4 = () => {
|
|
301855
|
-
this.removeListener("error", A5), this.removeListener("data",
|
|
301855
|
+
this.removeListener("error", A5), this.removeListener("data", U5), this.removeListener(r7, D3), e11(), u6({ done: true });
|
|
301856
301856
|
}, D3 = () => A5(new Error("stream destroyed"));
|
|
301857
|
-
return new Promise((
|
|
301858
|
-
Q4 = it2, u6 =
|
|
301857
|
+
return new Promise((L6, it2) => {
|
|
301858
|
+
Q4 = it2, u6 = L6, this.once(r7, D3), this.once("error", A5), this.once("end", C4), this.once("data", U5);
|
|
301859
301859
|
});
|
|
301860
301860
|
}, throw: e11, return: e11, [K4]() {
|
|
301861
301861
|
return this;
|
|
@@ -301863,18 +301863,18 @@ function ft2() {
|
|
|
301863
301863
|
}
|
|
301864
301864
|
[W5]() {
|
|
301865
301865
|
let t9 = false;
|
|
301866
|
-
const e11 = () => (this.pause(), this.removeListener(
|
|
301866
|
+
const e11 = () => (this.pause(), this.removeListener(P5, e11), this.removeListener(r7, e11), this.removeListener("end", e11), t9 = true, { done: true }), s7 = () => {
|
|
301867
301867
|
if (t9)
|
|
301868
301868
|
return e11();
|
|
301869
301869
|
const l4 = this.read();
|
|
301870
301870
|
return l4 === null ? e11() : { value: l4 };
|
|
301871
301871
|
};
|
|
301872
|
-
return this.once("end", e11), this.once(
|
|
301872
|
+
return this.once("end", e11), this.once(P5, e11), this.once(r7, e11), { next: s7, throw: e11, return: e11, [W5]() {
|
|
301873
301873
|
return this;
|
|
301874
301874
|
} };
|
|
301875
301875
|
}
|
|
301876
301876
|
destroy(t9) {
|
|
301877
|
-
return this[r7] ? (t9 ? this.emit("error", t9) : this.emit(r7), this) : (this[r7] = true, this[i7].length = 0, this[n7] = 0, typeof this.close == "function" && !this[
|
|
301877
|
+
return this[r7] ? (t9 ? this.emit("error", t9) : this.emit(r7), this) : (this[r7] = true, this[i7].length = 0, this[n7] = 0, typeof this.close == "function" && !this[B3] && this.close(), t9 ? this.emit("error", t9) : this.emit(r7), this);
|
|
301878
301878
|
}
|
|
301879
301879
|
static isStream(t9) {
|
|
301880
301880
|
return !!t9 && (t9 instanceof F3 || t9 instanceof q6 || t9 instanceof Z4 && (typeof t9.pipe == "function" || typeof t9.write == "function" && typeof t9.end == "function"));
|
|
@@ -301940,9 +301940,9 @@ function f$2() {
|
|
|
301940
301940
|
if (a$5)
|
|
301941
301941
|
return r$2;
|
|
301942
301942
|
a$5 = 1;
|
|
301943
|
-
const c3 =
|
|
301943
|
+
const c3 = E5(), d6 = H$2;
|
|
301944
301944
|
|
|
301945
|
-
class
|
|
301945
|
+
class h8 {
|
|
301946
301946
|
constructor(e11, n7) {
|
|
301947
301947
|
this.atime = e11.atime || null, this.charset = e11.charset || null, this.comment = e11.comment || null, this.ctime = e11.ctime || null, this.gid = e11.gid || null, this.gname = e11.gname || null, this.linkpath = e11.linkpath || null, this.mtime = e11.mtime || null, this.path = e11.path || null, this.size = e11.size || null, this.uid = e11.uid || null, this.uname = e11.uname || null, this.dev = e11.dev || null, this.ino = e11.ino || null, this.nlink = e11.nlink || null, this.global = n7 || false;
|
|
301948
301948
|
}
|
|
@@ -301970,7 +301970,7 @@ function f$2() {
|
|
|
301970
301970
|
return i7 + t9 >= Math.pow(10, t9) && (t9 += 1), t9 + i7 + l4;
|
|
301971
301971
|
}
|
|
301972
301972
|
}
|
|
301973
|
-
|
|
301973
|
+
h8.parse = (s7, e11, n7) => new h8(o8(u6(s7), e11), n7);
|
|
301974
301974
|
const o8 = (s7, e11) => e11 ? Object.keys(s7).reduce((n7, l4) => (n7[l4] = s7[l4], n7), e11) : s7, u6 = (s7) => s7.replace(/\n$/, "").split(`
|
|
301975
301975
|
`).reduce(m7, Object.create(null)), m7 = (s7, e11) => {
|
|
301976
301976
|
const n7 = parseInt(e11, 10);
|
|
@@ -301983,7 +301983,7 @@ function f$2() {
|
|
|
301983
301983
|
const t9 = l4.join("=");
|
|
301984
301984
|
return s7[i7] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i7) ? new Date(t9 * 1000) : /^[0-9]+$/.test(t9) ? +t9 : t9, s7;
|
|
301985
301985
|
};
|
|
301986
|
-
return r$2 =
|
|
301986
|
+
return r$2 = h8, r$2;
|
|
301987
301987
|
}
|
|
301988
301988
|
var i$3 = {};
|
|
301989
301989
|
var _5;
|
|
@@ -301992,8 +301992,8 @@ function T4() {
|
|
|
301992
301992
|
if (R$1)
|
|
301993
301993
|
return _5;
|
|
301994
301994
|
R$1 = 1;
|
|
301995
|
-
const
|
|
301996
|
-
return _5 = Object.freeze(Object.assign(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 },
|
|
301995
|
+
const E6 = O$2.constants || { ZLIB_VERNUM: 4736 };
|
|
301996
|
+
return _5 = Object.freeze(Object.assign(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 }, E6)), _5;
|
|
301997
301997
|
}
|
|
301998
301998
|
var j3;
|
|
301999
301999
|
var H$1;
|
|
@@ -302001,9 +302001,9 @@ function tt2() {
|
|
|
302001
302001
|
if (H$1)
|
|
302002
302002
|
return j3;
|
|
302003
302003
|
H$1 = 1;
|
|
302004
|
-
const I7 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Y4 = nt2, x6 = ot2, N6 = ht3.StringDecoder, u6 = Symbol("EOF"), a8 = Symbol("maybeEmitEnd"), c3 = Symbol("emittedEnd"),
|
|
302004
|
+
const I7 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Y4 = nt2, x6 = ot2, N6 = ht3.StringDecoder, u6 = Symbol("EOF"), a8 = Symbol("maybeEmitEnd"), c3 = Symbol("emittedEnd"), S5 = Symbol("emittingEnd"), E6 = Symbol("emittedError"), w6 = Symbol("closed"), P5 = Symbol("read"), L6 = Symbol("flush"), _6 = Symbol("flushChunk"), h8 = Symbol("encoding"), m7 = Symbol("decoder"), M5 = Symbol("flowing"), y4 = Symbol("paused"), p5 = Symbol("resume"), s7 = Symbol("bufferLength"), T5 = Symbol("bufferPush"), B3 = Symbol("bufferShift"), r7 = Symbol("objectMode"), n7 = Symbol("destroyed"), D3 = Symbol("emitData"), F3 = Symbol("emitEnd"), R7 = Symbol("emitEnd2"), d6 = Symbol("async"), b4 = (o8) => Promise.resolve().then(o8), C4 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", $5 = C4 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), G4 = C4 && Symbol.iterator || Symbol("iterator not implemented"), V6 = (o8) => o8 === "end" || o8 === "finish" || o8 === "prefinish", v6 = (o8) => o8 instanceof ArrayBuffer || typeof o8 == "object" && o8.constructor && o8.constructor.name === "ArrayBuffer" && o8.byteLength >= 0, J4 = (o8) => !Buffer.isBuffer(o8) && ArrayBuffer.isView(o8);
|
|
302005
302005
|
|
|
302006
|
-
class
|
|
302006
|
+
class U5 {
|
|
302007
302007
|
constructor(t9, e11, i7) {
|
|
302008
302008
|
this.src = t9, this.dest = e11, this.opts = i7, this.ondrain = () => t9[p5](), e11.on("drain", this.ondrain);
|
|
302009
302009
|
}
|
|
@@ -302016,7 +302016,7 @@ function tt2() {
|
|
|
302016
302016
|
}
|
|
302017
302017
|
}
|
|
302018
302018
|
|
|
302019
|
-
class K4 extends
|
|
302019
|
+
class K4 extends U5 {
|
|
302020
302020
|
unpipe() {
|
|
302021
302021
|
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
302022
302022
|
}
|
|
@@ -302026,20 +302026,20 @@ function tt2() {
|
|
|
302026
302026
|
}
|
|
302027
302027
|
return j3 = class q6 extends x6 {
|
|
302028
302028
|
constructor(t9) {
|
|
302029
|
-
super(), this[M5] = false, this[y4] = false, this.pipes = [], this.buffer = [], this[r7] = t9 && t9.objectMode || false, this[r7] ? this[
|
|
302029
|
+
super(), this[M5] = false, this[y4] = false, this.pipes = [], this.buffer = [], this[r7] = t9 && t9.objectMode || false, this[r7] ? this[h8] = null : this[h8] = t9 && t9.encoding || null, this[h8] === "buffer" && (this[h8] = null), this[d6] = t9 && !!t9.async || false, this[m7] = this[h8] ? new N6(this[h8]) : null, this[u6] = false, this[c3] = false, this[S5] = false, this[w6] = false, this[E6] = null, this.writable = true, this.readable = true, this[s7] = 0, this[n7] = false;
|
|
302030
302030
|
}
|
|
302031
302031
|
get bufferLength() {
|
|
302032
302032
|
return this[s7];
|
|
302033
302033
|
}
|
|
302034
302034
|
get encoding() {
|
|
302035
|
-
return this[
|
|
302035
|
+
return this[h8];
|
|
302036
302036
|
}
|
|
302037
302037
|
set encoding(t9) {
|
|
302038
302038
|
if (this[r7])
|
|
302039
302039
|
throw new Error("cannot set encoding in objectMode");
|
|
302040
|
-
if (this[
|
|
302040
|
+
if (this[h8] && t9 !== this[h8] && (this[m7] && this[m7].lastNeed || this[s7]))
|
|
302041
302041
|
throw new Error("cannot change encoding");
|
|
302042
|
-
this[
|
|
302042
|
+
this[h8] !== t9 && (this[m7] = t9 ? new N6(t9) : null, this.buffer.length && (this.buffer = this.buffer.map((e11) => this[m7].write(e11)))), this[h8] = t9;
|
|
302043
302043
|
}
|
|
302044
302044
|
setEncoding(t9) {
|
|
302045
302045
|
this.encoding = t9;
|
|
@@ -302063,7 +302063,7 @@ function tt2() {
|
|
|
302063
302063
|
return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
|
302064
302064
|
typeof e11 == "function" && (i7 = e11, e11 = "utf8"), e11 || (e11 = "utf8");
|
|
302065
302065
|
const l4 = this[d6] ? b4 : (f5) => f5();
|
|
302066
|
-
return !this[r7] && !Buffer.isBuffer(t9) && (J4(t9) ? t9 = Buffer.from(t9.buffer, t9.byteOffset, t9.byteLength) : v6(t9) ? t9 = Buffer.from(t9) : typeof t9 != "string" && (this.objectMode = true)), this[r7] ? (this.flowing && this[s7] !== 0 && this[
|
|
302066
|
+
return !this[r7] && !Buffer.isBuffer(t9) && (J4(t9) ? t9 = Buffer.from(t9.buffer, t9.byteOffset, t9.byteLength) : v6(t9) ? t9 = Buffer.from(t9) : typeof t9 != "string" && (this.objectMode = true)), this[r7] ? (this.flowing && this[s7] !== 0 && this[L6](true), this.flowing ? this.emit("data", t9) : this[T5](t9), this[s7] !== 0 && this.emit("readable"), i7 && l4(i7), this.flowing) : t9.length ? (typeof t9 == "string" && !(e11 === this[h8] && !this[m7].lastNeed) && (t9 = Buffer.from(t9, e11)), Buffer.isBuffer(t9) && this[h8] && (t9 = this[m7].write(t9)), this.flowing && this[s7] !== 0 && this[L6](true), this.flowing ? this.emit("data", t9) : this[T5](t9), this[s7] !== 0 && this.emit("readable"), i7 && l4(i7), this.flowing) : (this[s7] !== 0 && this.emit("readable"), i7 && l4(i7), this.flowing);
|
|
302067
302067
|
}
|
|
302068
302068
|
read(t9) {
|
|
302069
302069
|
if (this[n7])
|
|
@@ -302071,17 +302071,17 @@ function tt2() {
|
|
|
302071
302071
|
if (this[s7] === 0 || t9 === 0 || t9 > this[s7])
|
|
302072
302072
|
return this[a8](), null;
|
|
302073
302073
|
this[r7] && (t9 = null), this.buffer.length > 1 && !this[r7] && (this.encoding ? this.buffer = [this.buffer.join("")] : this.buffer = [Buffer.concat(this.buffer, this[s7])]);
|
|
302074
|
-
const e11 = this[
|
|
302074
|
+
const e11 = this[P5](t9 || null, this.buffer[0]);
|
|
302075
302075
|
return this[a8](), e11;
|
|
302076
302076
|
}
|
|
302077
|
-
[
|
|
302078
|
-
return t9 === e11.length || t9 === null ? this[
|
|
302077
|
+
[P5](t9, e11) {
|
|
302078
|
+
return t9 === e11.length || t9 === null ? this[B3]() : (this.buffer[0] = e11.slice(t9), e11 = e11.slice(0, t9), this[s7] -= t9), this.emit("data", e11), !this.buffer.length && !this[u6] && this.emit("drain"), e11;
|
|
302079
302079
|
}
|
|
302080
302080
|
end(t9, e11, i7) {
|
|
302081
302081
|
return typeof t9 == "function" && (i7 = t9, t9 = null), typeof e11 == "function" && (i7 = e11, e11 = "utf8"), t9 && this.write(t9, e11), i7 && this.once("end", i7), this[u6] = true, this.writable = false, (this.flowing || !this[y4]) && this[a8](), this;
|
|
302082
302082
|
}
|
|
302083
302083
|
[p5]() {
|
|
302084
|
-
this[n7] || (this[y4] = false, this[M5] = true, this.emit("resume"), this.buffer.length ? this[
|
|
302084
|
+
this[n7] || (this[y4] = false, this[M5] = true, this.emit("resume"), this.buffer.length ? this[L6]() : this[u6] ? this[a8]() : this.emit("drain"));
|
|
302085
302085
|
}
|
|
302086
302086
|
resume() {
|
|
302087
302087
|
return this[p5]();
|
|
@@ -302101,13 +302101,13 @@ function tt2() {
|
|
|
302101
302101
|
[T5](t9) {
|
|
302102
302102
|
this[r7] ? this[s7] += 1 : this[s7] += t9.length, this.buffer.push(t9);
|
|
302103
302103
|
}
|
|
302104
|
-
[
|
|
302104
|
+
[B3]() {
|
|
302105
302105
|
return this.buffer.length && (this[r7] ? this[s7] -= 1 : this[s7] -= this.buffer[0].length), this.buffer.shift();
|
|
302106
302106
|
}
|
|
302107
|
-
[
|
|
302107
|
+
[L6](t9) {
|
|
302108
302108
|
do
|
|
302109
302109
|
;
|
|
302110
|
-
while (this[_6](this[
|
|
302110
|
+
while (this[_6](this[B3]()));
|
|
302111
302111
|
!t9 && !this.buffer.length && !this[u6] && this.emit("drain");
|
|
302112
302112
|
}
|
|
302113
302113
|
[_6](t9) {
|
|
@@ -302117,7 +302117,7 @@ function tt2() {
|
|
|
302117
302117
|
if (this[n7])
|
|
302118
302118
|
return;
|
|
302119
302119
|
const i7 = this[c3];
|
|
302120
|
-
return e11 = e11 || {}, t9 === I7.stdout || t9 === I7.stderr ? e11.end = false : e11.end = e11.end !== false, e11.proxyErrors = !!e11.proxyErrors, i7 ? e11.end && t9.end() : (this.pipes.push(e11.proxyErrors ? new K4(this, t9, e11) : new
|
|
302120
|
+
return e11 = e11 || {}, t9 === I7.stdout || t9 === I7.stderr ? e11.end = false : e11.end = e11.end !== false, e11.proxyErrors = !!e11.proxyErrors, i7 ? e11.end && t9.end() : (this.pipes.push(e11.proxyErrors ? new K4(this, t9, e11) : new U5(this, t9, e11)), this[d6] ? b4(() => this[p5]()) : this[p5]()), t9;
|
|
302121
302121
|
}
|
|
302122
302122
|
unpipe(t9) {
|
|
302123
302123
|
const e11 = this.pipes.find((i7) => i7.dest === t9);
|
|
@@ -302128,13 +302128,13 @@ function tt2() {
|
|
|
302128
302128
|
}
|
|
302129
302129
|
on(t9, e11) {
|
|
302130
302130
|
const i7 = super.on(t9, e11);
|
|
302131
|
-
return t9 === "data" && !this.pipes.length && !this.flowing ? this[p5]() : t9 === "readable" && this[s7] !== 0 ? super.emit("readable") : V6(t9) && this[c3] ? (super.emit(t9), this.removeAllListeners(t9)) : t9 === "error" && this[
|
|
302131
|
+
return t9 === "data" && !this.pipes.length && !this.flowing ? this[p5]() : t9 === "readable" && this[s7] !== 0 ? super.emit("readable") : V6(t9) && this[c3] ? (super.emit(t9), this.removeAllListeners(t9)) : t9 === "error" && this[E6] && (this[d6] ? b4(() => e11.call(this, this[E6])) : e11.call(this, this[E6])), i7;
|
|
302132
302132
|
}
|
|
302133
302133
|
get emittedEnd() {
|
|
302134
302134
|
return this[c3];
|
|
302135
302135
|
}
|
|
302136
302136
|
[a8]() {
|
|
302137
|
-
!this[
|
|
302137
|
+
!this[S5] && !this[c3] && !this[n7] && this.buffer.length === 0 && this[u6] && (this[S5] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[w6] && this.emit("close"), this[S5] = false);
|
|
302138
302138
|
}
|
|
302139
302139
|
emit(t9, e11, ...i7) {
|
|
302140
302140
|
if (t9 !== "error" && t9 !== "close" && t9 !== n7 && this[n7])
|
|
@@ -302149,7 +302149,7 @@ function tt2() {
|
|
|
302149
302149
|
const f5 = super.emit("close");
|
|
302150
302150
|
return this.removeAllListeners("close"), f5;
|
|
302151
302151
|
} else if (t9 === "error") {
|
|
302152
|
-
this[
|
|
302152
|
+
this[E6] = e11;
|
|
302153
302153
|
const f5 = super.emit("error", e11);
|
|
302154
302154
|
return this[a8](), f5;
|
|
302155
302155
|
} else if (t9 === "resume") {
|
|
@@ -302194,7 +302194,7 @@ function tt2() {
|
|
|
302194
302194
|
}), e11.then(() => t9);
|
|
302195
302195
|
}
|
|
302196
302196
|
concat() {
|
|
302197
|
-
return this[r7] ? Promise.reject(new Error("cannot concat in objectMode")) : this.collect().then((t9) => this[r7] ? Promise.reject(new Error("cannot concat in objectMode")) : this[
|
|
302197
|
+
return this[r7] ? Promise.reject(new Error("cannot concat in objectMode")) : this.collect().then((t9) => this[r7] ? Promise.reject(new Error("cannot concat in objectMode")) : this[h8] ? t9.join("") : Buffer.concat(t9, t9.dataLength));
|
|
302198
302198
|
}
|
|
302199
302199
|
promise() {
|
|
302200
302200
|
return new Promise((t9, e11) => {
|
|
@@ -302210,14 +302210,14 @@ function tt2() {
|
|
|
302210
302210
|
return Promise.resolve({ done: true });
|
|
302211
302211
|
let i7 = null, l4 = null;
|
|
302212
302212
|
const f5 = (g5) => {
|
|
302213
|
-
this.removeListener("data", A5), this.removeListener("end",
|
|
302213
|
+
this.removeListener("data", A5), this.removeListener("end", O6), l4(g5);
|
|
302214
302214
|
}, A5 = (g5) => {
|
|
302215
|
-
this.removeListener("error", f5), this.removeListener("end",
|
|
302216
|
-
},
|
|
302215
|
+
this.removeListener("error", f5), this.removeListener("end", O6), this.pause(), i7({ value: g5, done: !!this[u6] });
|
|
302216
|
+
}, O6 = () => {
|
|
302217
302217
|
this.removeListener("error", f5), this.removeListener("data", A5), i7({ done: true });
|
|
302218
302218
|
}, W5 = () => f5(new Error("stream destroyed"));
|
|
302219
|
-
return new Promise((g5,
|
|
302220
|
-
l4 =
|
|
302219
|
+
return new Promise((g5, z3) => {
|
|
302220
|
+
l4 = z3, i7 = g5, this.once(n7, W5), this.once("error", f5), this.once("end", O6), this.once("data", A5);
|
|
302221
302221
|
});
|
|
302222
302222
|
} };
|
|
302223
302223
|
}
|
|
@@ -302240,7 +302240,7 @@ function J4() {
|
|
|
302240
302240
|
if (C4)
|
|
302241
302241
|
return i$3;
|
|
302242
302242
|
C4 = 1;
|
|
302243
|
-
const w6 = j$1, n7 =
|
|
302243
|
+
const w6 = j$1, n7 = P4.Buffer, z3 = O$2, u6 = i$3.constants = T4(), L6 = tt2(), E6 = n7.concat, c3 = Symbol("_superWrite");
|
|
302244
302244
|
|
|
302245
302245
|
class d6 extends Error {
|
|
302246
302246
|
constructor(s7) {
|
|
@@ -302250,15 +302250,15 @@ function J4() {
|
|
|
302250
302250
|
return "ZlibError";
|
|
302251
302251
|
}
|
|
302252
302252
|
}
|
|
302253
|
-
const Z4 = Symbol("opts"), p5 = Symbol("flushFlag"), I7 = Symbol("finishFlushFlag"), y4 = Symbol("fullFlushFlag"), t9 = Symbol("handle"), _6 = Symbol("onError"), f5 = Symbol("sawError"), F3 = Symbol("level"),
|
|
302253
|
+
const Z4 = Symbol("opts"), p5 = Symbol("flushFlag"), I7 = Symbol("finishFlushFlag"), y4 = Symbol("fullFlushFlag"), t9 = Symbol("handle"), _6 = Symbol("onError"), f5 = Symbol("sawError"), F3 = Symbol("level"), S5 = Symbol("strategy"), g5 = Symbol("ended");
|
|
302254
302254
|
|
|
302255
|
-
class x6 extends
|
|
302255
|
+
class x6 extends L6 {
|
|
302256
302256
|
constructor(s7, e11) {
|
|
302257
302257
|
if (!s7 || typeof s7 != "object")
|
|
302258
302258
|
throw new TypeError("invalid options for ZlibBase constructor");
|
|
302259
302259
|
super(s7), this[f5] = false, this[g5] = false, this[Z4] = s7, this[p5] = s7.flush, this[I7] = s7.finishFlush;
|
|
302260
302260
|
try {
|
|
302261
|
-
this[t9] = new
|
|
302261
|
+
this[t9] = new z3[e11](s7);
|
|
302262
302262
|
} catch (i7) {
|
|
302263
302263
|
throw new d6(i7);
|
|
302264
302264
|
}
|
|
@@ -302290,24 +302290,24 @@ function J4() {
|
|
|
302290
302290
|
m7.close = () => {};
|
|
302291
302291
|
const G4 = this[t9].close;
|
|
302292
302292
|
this[t9].close = () => {}, n7.concat = (l4) => l4;
|
|
302293
|
-
let
|
|
302293
|
+
let h8;
|
|
302294
302294
|
try {
|
|
302295
302295
|
const l4 = typeof s7[p5] == "number" ? s7[p5] : this[p5];
|
|
302296
|
-
|
|
302296
|
+
h8 = this[t9]._processChunk(s7, l4), n7.concat = E6;
|
|
302297
302297
|
} catch (l4) {
|
|
302298
|
-
n7.concat =
|
|
302298
|
+
n7.concat = E6, this[_6](new d6(l4));
|
|
302299
302299
|
} finally {
|
|
302300
302300
|
this[t9] && (this[t9]._handle = m7, m7.close = R7, this[t9].close = G4, this[t9].removeAllListeners("error"));
|
|
302301
302301
|
}
|
|
302302
302302
|
this[t9] && this[t9].on("error", (l4) => this[_6](new d6(l4)));
|
|
302303
302303
|
let b4;
|
|
302304
|
-
if (
|
|
302305
|
-
if (Array.isArray(
|
|
302306
|
-
b4 = this[c3](n7.from(
|
|
302307
|
-
for (let l4 = 1;l4 <
|
|
302308
|
-
b4 = this[c3](
|
|
302304
|
+
if (h8)
|
|
302305
|
+
if (Array.isArray(h8) && h8.length > 0) {
|
|
302306
|
+
b4 = this[c3](n7.from(h8[0]));
|
|
302307
|
+
for (let l4 = 1;l4 < h8.length; l4++)
|
|
302308
|
+
b4 = this[c3](h8[l4]);
|
|
302309
302309
|
} else
|
|
302310
|
-
b4 = this[c3](n7.from(
|
|
302310
|
+
b4 = this[c3](n7.from(h8));
|
|
302311
302311
|
return i7 && i7(), b4;
|
|
302312
302312
|
}
|
|
302313
302313
|
[c3](s7) {
|
|
@@ -302317,7 +302317,7 @@ function J4() {
|
|
|
302317
302317
|
|
|
302318
302318
|
class a8 extends x6 {
|
|
302319
302319
|
constructor(s7, e11) {
|
|
302320
|
-
s7 = s7 || {}, s7.flush = s7.flush || u6.Z_NO_FLUSH, s7.finishFlush = s7.finishFlush || u6.Z_FINISH, super(s7, e11), this[y4] = u6.Z_FULL_FLUSH, this[F3] = s7.level, this[
|
|
302320
|
+
s7 = s7 || {}, s7.flush = s7.flush || u6.Z_NO_FLUSH, s7.finishFlush = s7.finishFlush || u6.Z_FINISH, super(s7, e11), this[y4] = u6.Z_FULL_FLUSH, this[F3] = s7.level, this[S5] = s7.strategy;
|
|
302321
302321
|
}
|
|
302322
302322
|
params(s7, e11) {
|
|
302323
302323
|
if (!this[f5]) {
|
|
@@ -302325,7 +302325,7 @@ function J4() {
|
|
|
302325
302325
|
throw new Error("cannot switch params when binding is closed");
|
|
302326
302326
|
if (!this[t9].params)
|
|
302327
302327
|
throw new Error("not supported in this implementation");
|
|
302328
|
-
if (this[F3] !== s7 || this[
|
|
302328
|
+
if (this[F3] !== s7 || this[S5] !== e11) {
|
|
302329
302329
|
this.flush(u6.Z_SYNC_FLUSH), w6(this[t9], "zlib binding closed");
|
|
302330
302330
|
const i7 = this[t9].flush;
|
|
302331
302331
|
this[t9].flush = (m7, R7) => {
|
|
@@ -302336,7 +302336,7 @@ function J4() {
|
|
|
302336
302336
|
} finally {
|
|
302337
302337
|
this[t9].flush = i7;
|
|
302338
302338
|
}
|
|
302339
|
-
this[t9] && (this[F3] = s7, this[
|
|
302339
|
+
this[t9] && (this[F3] = s7, this[S5] = e11);
|
|
302340
302340
|
}
|
|
302341
302341
|
}
|
|
302342
302342
|
}
|
|
@@ -302353,14 +302353,14 @@ function J4() {
|
|
|
302353
302353
|
super(s7, "Inflate");
|
|
302354
302354
|
}
|
|
302355
302355
|
}
|
|
302356
|
-
const
|
|
302356
|
+
const B3 = Symbol("_portable");
|
|
302357
302357
|
|
|
302358
302358
|
class $5 extends a8 {
|
|
302359
302359
|
constructor(s7) {
|
|
302360
|
-
super(s7, "Gzip"), this[
|
|
302360
|
+
super(s7, "Gzip"), this[B3] = s7 && !!s7.portable;
|
|
302361
302361
|
}
|
|
302362
302362
|
[c3](s7) {
|
|
302363
|
-
return this[
|
|
302363
|
+
return this[B3] ? (this[B3] = false, s7[9] = 255, super[c3](s7)) : super[c3](s7);
|
|
302364
302364
|
}
|
|
302365
302365
|
}
|
|
302366
302366
|
|
|
@@ -302381,30 +302381,30 @@ function J4() {
|
|
|
302381
302381
|
}
|
|
302382
302382
|
};
|
|
302383
302383
|
|
|
302384
|
-
class
|
|
302384
|
+
class U5 extends a8 {
|
|
302385
302385
|
constructor(s7) {
|
|
302386
302386
|
super(s7, "Unzip");
|
|
302387
302387
|
}
|
|
302388
302388
|
}
|
|
302389
302389
|
|
|
302390
|
-
class
|
|
302390
|
+
class O6 extends x6 {
|
|
302391
302391
|
constructor(s7, e11) {
|
|
302392
302392
|
s7 = s7 || {}, s7.flush = s7.flush || u6.BROTLI_OPERATION_PROCESS, s7.finishFlush = s7.finishFlush || u6.BROTLI_OPERATION_FINISH, super(s7, e11), this[y4] = u6.BROTLI_OPERATION_FLUSH;
|
|
302393
302393
|
}
|
|
302394
302394
|
}
|
|
302395
302395
|
|
|
302396
|
-
class v6 extends
|
|
302396
|
+
class v6 extends O6 {
|
|
302397
302397
|
constructor(s7) {
|
|
302398
302398
|
super(s7, "BrotliCompress");
|
|
302399
302399
|
}
|
|
302400
302400
|
}
|
|
302401
302401
|
|
|
302402
|
-
class A5 extends
|
|
302402
|
+
class A5 extends O6 {
|
|
302403
302403
|
constructor(s7) {
|
|
302404
302404
|
super(s7, "BrotliDecompress");
|
|
302405
302405
|
}
|
|
302406
302406
|
}
|
|
302407
|
-
return i$3.Deflate = q6, i$3.Inflate = D3, i$3.Gzip = $5, i$3.Gunzip = N6, i$3.DeflateRaw = H4, i$3.InflateRaw = T$1, i$3.Unzip =
|
|
302407
|
+
return i$3.Deflate = q6, i$3.Inflate = D3, i$3.Gzip = $5, i$3.Gunzip = N6, i$3.DeflateRaw = H4, i$3.InflateRaw = T$1, i$3.Unzip = U5, typeof z3.BrotliCompress == "function" ? (i$3.BrotliCompress = v6, i$3.BrotliDecompress = A5) : i$3.BrotliCompress = i$3.BrotliDecompress = class {
|
|
302408
302408
|
constructor() {
|
|
302409
302409
|
throw new Error("Brotli is not supported in this version of Node.js");
|
|
302410
302410
|
}
|
|
@@ -302416,16 +302416,16 @@ function rt3() {
|
|
|
302416
302416
|
if (F$2)
|
|
302417
302417
|
return O$1;
|
|
302418
302418
|
F$2 = 1;
|
|
302419
|
-
const
|
|
302420
|
-
return O$1 =
|
|
302419
|
+
const P5 = c$4(), $5 = E5(), v6 = nt2, W5 = c$3(), G4 = 1024 * 1024, k6 = u$3(), C5 = f$2(), x6 = J4(), { nextTick: j4 } = nt$1, B3 = Buffer.from([31, 139]), h8 = Symbol("state"), d6 = Symbol("writeEntry"), a8 = Symbol("readEntry"), I7 = Symbol("nextEntry"), U5 = Symbol("processEntry"), l4 = Symbol("extendedHeader"), y4 = Symbol("globalExtendedHeader"), c3 = Symbol("meta"), H4 = Symbol("emitMeta"), n7 = Symbol("buffer"), f5 = Symbol("queue"), u6 = Symbol("ended"), L6 = Symbol("emittedEnd"), b4 = Symbol("emit"), r7 = Symbol("unzip"), _6 = Symbol("consumeChunk"), g5 = Symbol("consumeChunkSub"), q6 = Symbol("consumeBody"), z3 = Symbol("consumeMeta"), Y4 = Symbol("consumeHeader"), N6 = Symbol("consuming"), D3 = Symbol("bufferConcat"), M5 = Symbol("maybeEnd"), S5 = Symbol("writing"), m7 = Symbol("aborted"), T5 = Symbol("onDone"), E$1 = Symbol("sawValidEntry"), R7 = Symbol("sawNullBlock"), A5 = Symbol("sawEOF"), V6 = Symbol("closeStream"), K4 = (X5) => true;
|
|
302420
|
+
return O$1 = P5(class extends v6 {
|
|
302421
302421
|
constructor(t9) {
|
|
302422
302422
|
t9 = t9 || {}, super(t9), this.file = t9.file || "", this[E$1] = null, this.on(T5, (s7) => {
|
|
302423
|
-
(this[
|
|
302423
|
+
(this[h8] === "begin" || this[E$1] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
|
|
302424
302424
|
}), t9.ondone ? this.on(T5, t9.ondone) : this.on(T5, (s7) => {
|
|
302425
302425
|
this.emit("prefinish"), this.emit("finish"), this.emit("end");
|
|
302426
302426
|
}), this.strict = !!t9.strict, this.maxMetaEntrySize = t9.maxMetaEntrySize || G4, this.filter = typeof t9.filter == "function" ? t9.filter : K4;
|
|
302427
302427
|
const i7 = t9.file && (t9.file.endsWith(".tar.br") || t9.file.endsWith(".tbr"));
|
|
302428
|
-
this.brotli = !t9.gzip && t9.brotli !== undefined ? t9.brotli : i7 ? undefined : false, this.writable = true, this.readable = false, this[f5] = new W5, this[n7] = null, this[a8] = null, this[d6] = null, this[
|
|
302428
|
+
this.brotli = !t9.gzip && t9.brotli !== undefined ? t9.brotli : i7 ? undefined : false, this.writable = true, this.readable = false, this[f5] = new W5, this[n7] = null, this[a8] = null, this[d6] = null, this[h8] = "begin", this[c3] = "", this[l4] = null, this[y4] = null, this[u6] = false, this[r7] = null, this[m7] = false, this[R7] = false, this[A5] = false, this.on("end", () => this[V6]()), typeof t9.onwarn == "function" && this.on("warn", t9.onwarn), typeof t9.onentry == "function" && this.on("entry", t9.onentry);
|
|
302429
302429
|
}
|
|
302430
302430
|
[Y4](t9, i7) {
|
|
302431
302431
|
this[E$1] === null && (this[E$1] = false);
|
|
@@ -302436,7 +302436,7 @@ function rt3() {
|
|
|
302436
302436
|
return this.warn("TAR_ENTRY_INVALID", o8);
|
|
302437
302437
|
}
|
|
302438
302438
|
if (s7.nullBlock)
|
|
302439
|
-
this[R7] ? (this[A5] = true, this[
|
|
302439
|
+
this[R7] ? (this[A5] = true, this[h8] === "begin" && (this[h8] = "header"), this[b4]("eof")) : (this[R7] = true, this[b4]("nullBlock"));
|
|
302440
302440
|
else if (this[R7] = false, !s7.cksumValid)
|
|
302441
302441
|
this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: s7 });
|
|
302442
302442
|
else if (!s7.path)
|
|
@@ -302457,31 +302457,31 @@ function rt3() {
|
|
|
302457
302457
|
e11.on("end", w6);
|
|
302458
302458
|
} else
|
|
302459
302459
|
this[E$1] = true;
|
|
302460
|
-
e11.meta ? e11.size > this.maxMetaEntrySize ? (e11.ignore = true, this[b4]("ignoredEntry", e11), this[
|
|
302460
|
+
e11.meta ? e11.size > this.maxMetaEntrySize ? (e11.ignore = true, this[b4]("ignoredEntry", e11), this[h8] = "ignore", e11.resume()) : e11.size > 0 && (this[c3] = "", e11.on("data", (w6) => this[c3] += w6), this[h8] = "meta") : (this[l4] = null, e11.ignore = e11.ignore || !this.filter(e11.path, e11), e11.ignore ? (this[b4]("ignoredEntry", e11), this[h8] = e11.remain ? "ignore" : "header", e11.resume()) : (e11.remain ? this[h8] = "body" : (this[h8] = "header", e11.end()), this[a8] ? this[f5].push(e11) : (this[f5].push(e11), this[I7]())));
|
|
302461
302461
|
}
|
|
302462
302462
|
}
|
|
302463
302463
|
}
|
|
302464
302464
|
[V6]() {
|
|
302465
302465
|
j4(() => this.emit("close"));
|
|
302466
302466
|
}
|
|
302467
|
-
[
|
|
302467
|
+
[U5](t9) {
|
|
302468
302468
|
let i7 = true;
|
|
302469
302469
|
return t9 ? Array.isArray(t9) ? this.emit.apply(this, t9) : (this[a8] = t9, this.emit("entry", t9), t9.emittedEnd || (t9.on("end", (s7) => this[I7]()), i7 = false)) : (this[a8] = null, i7 = false), i7;
|
|
302470
302470
|
}
|
|
302471
302471
|
[I7]() {
|
|
302472
302472
|
do
|
|
302473
302473
|
;
|
|
302474
|
-
while (this[
|
|
302474
|
+
while (this[U5](this[f5].shift()));
|
|
302475
302475
|
if (!this[f5].length) {
|
|
302476
302476
|
const t9 = this[a8];
|
|
302477
|
-
!t9 || t9.flowing || t9.size === t9.remain ? this[
|
|
302477
|
+
!t9 || t9.flowing || t9.size === t9.remain ? this[S5] || this.emit("drain") : t9.once("drain", (s7) => this.emit("drain"));
|
|
302478
302478
|
}
|
|
302479
302479
|
}
|
|
302480
302480
|
[q6](t9, i7) {
|
|
302481
302481
|
const s7 = this[d6], o8 = s7.blockRemain, e11 = o8 >= t9.length && i7 === 0 ? t9 : t9.slice(i7, i7 + o8);
|
|
302482
|
-
return s7.write(e11), s7.blockRemain || (this[
|
|
302482
|
+
return s7.write(e11), s7.blockRemain || (this[h8] = "header", this[d6] = null, s7.end()), e11.length;
|
|
302483
302483
|
}
|
|
302484
|
-
[
|
|
302484
|
+
[z3](t9, i7) {
|
|
302485
302485
|
const s7 = this[d6], o8 = this[q6](t9, i7);
|
|
302486
302486
|
return this[d6] || this[H4](s7), o8;
|
|
302487
302487
|
}
|
|
@@ -302515,10 +302515,10 @@ function rt3() {
|
|
|
302515
302515
|
if (this[m7])
|
|
302516
302516
|
return;
|
|
302517
302517
|
if ((this[r7] === null || this.brotli === undefined && this[r7] === false) && t9) {
|
|
302518
|
-
if (this[n7] && (t9 = Buffer.concat([this[n7], t9]), this[n7] = null), t9.length <
|
|
302518
|
+
if (this[n7] && (t9 = Buffer.concat([this[n7], t9]), this[n7] = null), t9.length < B3.length)
|
|
302519
302519
|
return this[n7] = t9, true;
|
|
302520
|
-
for (let e11 = 0;this[r7] === null && e11 <
|
|
302521
|
-
t9[e11] !==
|
|
302520
|
+
for (let e11 = 0;this[r7] === null && e11 < B3.length; e11++)
|
|
302521
|
+
t9[e11] !== B3[e11] && (this[r7] = false);
|
|
302522
302522
|
const o8 = this.brotli === undefined;
|
|
302523
302523
|
if (this[r7] === false && o8)
|
|
302524
302524
|
if (t9.length < 512)
|
|
@@ -302536,12 +302536,12 @@ function rt3() {
|
|
|
302536
302536
|
const e11 = this[u6];
|
|
302537
302537
|
this[u6] = false, this[r7] = this[r7] === null ? new x6.Unzip : new x6.BrotliDecompress, this[r7].on("data", (p5) => this[_6](p5)), this[r7].on("error", (p5) => this.abort(p5)), this[r7].on("end", (p5) => {
|
|
302538
302538
|
this[u6] = true, this[_6]();
|
|
302539
|
-
}), this[
|
|
302539
|
+
}), this[S5] = true;
|
|
302540
302540
|
const w6 = this[r7][e11 ? "end" : "write"](t9);
|
|
302541
|
-
return this[
|
|
302541
|
+
return this[S5] = false, w6;
|
|
302542
302542
|
}
|
|
302543
302543
|
}
|
|
302544
|
-
this[
|
|
302544
|
+
this[S5] = true, this[r7] ? this[r7].write(t9) : this[_6](t9), this[S5] = false;
|
|
302545
302545
|
const s7 = this[f5].length ? false : this[a8] ? this[a8].flowing : true;
|
|
302546
302546
|
return !s7 && !this[f5].length && this[a8].once("drain", (o8) => this.emit("drain")), s7;
|
|
302547
302547
|
}
|
|
@@ -302549,8 +302549,8 @@ function rt3() {
|
|
|
302549
302549
|
t9 && !this[m7] && (this[n7] = this[n7] ? Buffer.concat([this[n7], t9]) : t9);
|
|
302550
302550
|
}
|
|
302551
302551
|
[M5]() {
|
|
302552
|
-
if (this[u6] && !this[
|
|
302553
|
-
this[
|
|
302552
|
+
if (this[u6] && !this[L6] && !this[m7] && !this[N6]) {
|
|
302553
|
+
this[L6] = true;
|
|
302554
302554
|
const t9 = this[d6];
|
|
302555
302555
|
if (t9 && t9.blockRemain) {
|
|
302556
302556
|
const i7 = this[n7] ? this[n7].length : 0;
|
|
@@ -302583,7 +302583,7 @@ function rt3() {
|
|
|
302583
302583
|
let i7 = 0;
|
|
302584
302584
|
const s7 = t9.length;
|
|
302585
302585
|
for (;i7 + 512 <= s7 && !this[m7] && !this[A5]; )
|
|
302586
|
-
switch (this[
|
|
302586
|
+
switch (this[h8]) {
|
|
302587
302587
|
case "begin":
|
|
302588
302588
|
case "header":
|
|
302589
302589
|
this[Y4](t9, i7), i7 += 512;
|
|
@@ -302593,10 +302593,10 @@ function rt3() {
|
|
|
302593
302593
|
i7 += this[q6](t9, i7);
|
|
302594
302594
|
break;
|
|
302595
302595
|
case "meta":
|
|
302596
|
-
i7 += this[
|
|
302596
|
+
i7 += this[z3](t9, i7);
|
|
302597
302597
|
break;
|
|
302598
302598
|
default:
|
|
302599
|
-
throw new Error("invalid state: " + this[
|
|
302599
|
+
throw new Error("invalid state: " + this[h8]);
|
|
302600
302600
|
}
|
|
302601
302601
|
i7 < s7 && (this[n7] ? this[n7] = Buffer.concat([t9.slice(i7), this[n7]]) : this[n7] = t9.slice(i7));
|
|
302602
302602
|
}
|
|
@@ -302620,13 +302620,13 @@ function X5() {
|
|
|
302620
302620
|
j4.oncomplete = G4, c3.writeBuffers(e11, i7, $5, j4);
|
|
302621
302621
|
};
|
|
302622
302622
|
}
|
|
302623
|
-
const m7 = Symbol("_autoClose"),
|
|
302623
|
+
const m7 = Symbol("_autoClose"), h8 = Symbol("_close"), g5 = Symbol("_ended"), s7 = Symbol("_fd"), B3 = Symbol("_finished"), o8 = Symbol("_flags"), x6 = Symbol("_flush"), z3 = Symbol("_handleChunk"), T5 = Symbol("_makeBuf"), q6 = Symbol("_mode"), E6 = Symbol("_needDrain"), d6 = Symbol("_onerror"), y4 = Symbol("_onopen"), W5 = Symbol("_onread"), _6 = Symbol("_onwrite"), a8 = Symbol("_open"), l4 = Symbol("_path"), u6 = Symbol("_pos"), n7 = Symbol("_queue"), S5 = Symbol("_read"), M5 = Symbol("_readSize"), f5 = Symbol("_reading"), k6 = Symbol("_remain"), N6 = Symbol("_size"), C5 = Symbol("_write"), b4 = Symbol("_writing"), F3 = Symbol("_defaultFlag"), p5 = Symbol("_errored");
|
|
302624
302624
|
|
|
302625
302625
|
class D3 extends H4 {
|
|
302626
302626
|
constructor(t9, e11) {
|
|
302627
302627
|
if (e11 = e11 || {}, super(e11), this.readable = true, this.writable = false, typeof t9 != "string")
|
|
302628
302628
|
throw new TypeError("path must be a string");
|
|
302629
|
-
this[p5] = false, this[s7] = typeof e11.fd == "number" ? e11.fd : null, this[l4] = t9, this[M5] = e11.readSize || 16 * 1024 * 1024, this[f5] = false, this[N6] = typeof e11.size == "number" ? e11.size : 1 / 0, this[k6] = this[N6], this[m7] = typeof e11.autoClose == "boolean" ? e11.autoClose : true, typeof this[s7] == "number" ? this[
|
|
302629
|
+
this[p5] = false, this[s7] = typeof e11.fd == "number" ? e11.fd : null, this[l4] = t9, this[M5] = e11.readSize || 16 * 1024 * 1024, this[f5] = false, this[N6] = typeof e11.size == "number" ? e11.size : 1 / 0, this[k6] = this[N6], this[m7] = typeof e11.autoClose == "boolean" ? e11.autoClose : true, typeof this[s7] == "number" ? this[S5]() : this[a8]();
|
|
302630
302630
|
}
|
|
302631
302631
|
get fd() {
|
|
302632
302632
|
return this[s7];
|
|
@@ -302644,12 +302644,12 @@ function X5() {
|
|
|
302644
302644
|
r7.open(this[l4], "r", (t9, e11) => this[y4](t9, e11));
|
|
302645
302645
|
}
|
|
302646
302646
|
[y4](t9, e11) {
|
|
302647
|
-
t9 ? this[d6](t9) : (this[s7] = e11, this.emit("open", e11), this[
|
|
302647
|
+
t9 ? this[d6](t9) : (this[s7] = e11, this.emit("open", e11), this[S5]());
|
|
302648
302648
|
}
|
|
302649
302649
|
[T5]() {
|
|
302650
302650
|
return Buffer.allocUnsafe(Math.min(this[M5], this[k6]));
|
|
302651
302651
|
}
|
|
302652
|
-
[
|
|
302652
|
+
[S5]() {
|
|
302653
302653
|
if (!this[f5]) {
|
|
302654
302654
|
this[f5] = true;
|
|
302655
302655
|
const t9 = this[T5]();
|
|
@@ -302659,20 +302659,20 @@ function X5() {
|
|
|
302659
302659
|
}
|
|
302660
302660
|
}
|
|
302661
302661
|
[W5](t9, e11, i7) {
|
|
302662
|
-
this[f5] = false, t9 ? this[d6](t9) : this[
|
|
302662
|
+
this[f5] = false, t9 ? this[d6](t9) : this[z3](e11, i7) && this[S5]();
|
|
302663
302663
|
}
|
|
302664
|
-
[
|
|
302664
|
+
[h8]() {
|
|
302665
302665
|
if (this[m7] && typeof this[s7] == "number") {
|
|
302666
302666
|
const t9 = this[s7];
|
|
302667
302667
|
this[s7] = null, r7.close(t9, (e11) => e11 ? this.emit("error", e11) : this.emit("close"));
|
|
302668
302668
|
}
|
|
302669
302669
|
}
|
|
302670
302670
|
[d6](t9) {
|
|
302671
|
-
this[f5] = true, this[
|
|
302671
|
+
this[f5] = true, this[h8](), this.emit("error", t9);
|
|
302672
302672
|
}
|
|
302673
|
-
[
|
|
302673
|
+
[z3](t9, e11) {
|
|
302674
302674
|
let i7 = false;
|
|
302675
|
-
return this[k6] -= t9, t9 > 0 && (i7 = super.write(t9 < e11.length ? e11.slice(0, t9) : e11)), (t9 === 0 || this[k6] <= 0) && (i7 = false, this[
|
|
302675
|
+
return this[k6] -= t9, t9 > 0 && (i7 = super.write(t9 < e11.length ? e11.slice(0, t9) : e11)), (t9 === 0 || this[k6] <= 0) && (i7 = false, this[h8](), super.end()), i7;
|
|
302676
302676
|
}
|
|
302677
302677
|
emit(t9, e11) {
|
|
302678
302678
|
switch (t9) {
|
|
@@ -302680,7 +302680,7 @@ function X5() {
|
|
|
302680
302680
|
case "finish":
|
|
302681
302681
|
break;
|
|
302682
302682
|
case "drain":
|
|
302683
|
-
typeof this[s7] == "number" && this[
|
|
302683
|
+
typeof this[s7] == "number" && this[S5]();
|
|
302684
302684
|
break;
|
|
302685
302685
|
case "error":
|
|
302686
302686
|
return this[p5] ? undefined : (this[p5] = true, super.emit(t9, e11));
|
|
@@ -302690,33 +302690,33 @@ function X5() {
|
|
|
302690
302690
|
}
|
|
302691
302691
|
}
|
|
302692
302692
|
|
|
302693
|
-
class
|
|
302693
|
+
class P5 extends D3 {
|
|
302694
302694
|
[a8]() {
|
|
302695
302695
|
let t9 = true;
|
|
302696
302696
|
try {
|
|
302697
302697
|
this[y4](null, r7.openSync(this[l4], "r")), t9 = false;
|
|
302698
302698
|
} finally {
|
|
302699
|
-
t9 && this[
|
|
302699
|
+
t9 && this[h8]();
|
|
302700
302700
|
}
|
|
302701
302701
|
}
|
|
302702
|
-
[
|
|
302702
|
+
[S5]() {
|
|
302703
302703
|
let t9 = true;
|
|
302704
302704
|
try {
|
|
302705
302705
|
if (!this[f5]) {
|
|
302706
302706
|
this[f5] = true;
|
|
302707
302707
|
do {
|
|
302708
302708
|
const e11 = this[T5](), i7 = e11.length === 0 ? 0 : r7.readSync(this[s7], e11, 0, e11.length, null);
|
|
302709
|
-
if (!this[
|
|
302709
|
+
if (!this[z3](i7, e11))
|
|
302710
302710
|
break;
|
|
302711
302711
|
} while (true);
|
|
302712
302712
|
this[f5] = false;
|
|
302713
302713
|
}
|
|
302714
302714
|
t9 = false;
|
|
302715
302715
|
} finally {
|
|
302716
|
-
t9 && this[
|
|
302716
|
+
t9 && this[h8]();
|
|
302717
302717
|
}
|
|
302718
302718
|
}
|
|
302719
|
-
[
|
|
302719
|
+
[h8]() {
|
|
302720
302720
|
if (this[m7] && typeof this[s7] == "number") {
|
|
302721
302721
|
const t9 = this[s7];
|
|
302722
302722
|
this[s7] = null, r7.closeSync(t9), this.emit("close");
|
|
@@ -302724,9 +302724,9 @@ function X5() {
|
|
|
302724
302724
|
}
|
|
302725
302725
|
}
|
|
302726
302726
|
|
|
302727
|
-
class
|
|
302727
|
+
class O6 extends I7 {
|
|
302728
302728
|
constructor(t9, e11) {
|
|
302729
|
-
e11 = e11 || {}, super(e11), this.readable = false, this.writable = true, this[p5] = false, this[b4] = false, this[g5] = false, this[
|
|
302729
|
+
e11 = e11 || {}, super(e11), this.readable = false, this.writable = true, this[p5] = false, this[b4] = false, this[g5] = false, this[E6] = false, this[n7] = [], this[l4] = t9, this[s7] = typeof e11.fd == "number" ? e11.fd : null, this[q6] = e11.mode === undefined ? 438 : e11.mode, this[u6] = typeof e11.start == "number" ? e11.start : null, this[m7] = typeof e11.autoClose == "boolean" ? e11.autoClose : true;
|
|
302730
302730
|
const i7 = this[u6] !== null ? "r+" : "w";
|
|
302731
302731
|
this[F3] = e11.flags === undefined, this[o8] = this[F3] ? i7 : e11.flags, this[s7] === null && this[a8]();
|
|
302732
302732
|
}
|
|
@@ -302745,7 +302745,7 @@ function X5() {
|
|
|
302745
302745
|
return this[l4];
|
|
302746
302746
|
}
|
|
302747
302747
|
[d6](t9) {
|
|
302748
|
-
this[
|
|
302748
|
+
this[h8](), this[b4] = true, this.emit("error", t9);
|
|
302749
302749
|
}
|
|
302750
302750
|
[a8]() {
|
|
302751
302751
|
r7.open(this[l4], this[o8], this[q6], (t9, e11) => this[y4](t9, e11));
|
|
@@ -302757,13 +302757,13 @@ function X5() {
|
|
|
302757
302757
|
return t9 && this.write(t9, e11), this[g5] = true, !this[b4] && !this[n7].length && typeof this[s7] == "number" && this[_6](null, 0), this;
|
|
302758
302758
|
}
|
|
302759
302759
|
write(t9, e11) {
|
|
302760
|
-
return typeof t9 == "string" && (t9 = Buffer.from(t9, e11)), this[g5] ? (this.emit("error", new Error("write() after end()")), false) : this[s7] === null || this[b4] || this[n7].length ? (this[n7].push(t9), this[
|
|
302760
|
+
return typeof t9 == "string" && (t9 = Buffer.from(t9, e11)), this[g5] ? (this.emit("error", new Error("write() after end()")), false) : this[s7] === null || this[b4] || this[n7].length ? (this[n7].push(t9), this[E6] = true, false) : (this[b4] = true, this[C5](t9), true);
|
|
302761
302761
|
}
|
|
302762
302762
|
[C5](t9) {
|
|
302763
302763
|
r7.write(this[s7], t9, 0, t9.length, this[u6], (e11, i7) => this[_6](e11, i7));
|
|
302764
302764
|
}
|
|
302765
302765
|
[_6](t9, e11) {
|
|
302766
|
-
t9 ? this[d6](t9) : (this[u6] !== null && (this[u6] += e11), this[n7].length ? this[x6]() : (this[b4] = false, this[g5] && !this[
|
|
302766
|
+
t9 ? this[d6](t9) : (this[u6] !== null && (this[u6] += e11), this[n7].length ? this[x6]() : (this[b4] = false, this[g5] && !this[B3] ? (this[B3] = true, this[h8](), this.emit("finish")) : this[E6] && (this[E6] = false, this.emit("drain"))));
|
|
302767
302767
|
}
|
|
302768
302768
|
[x6]() {
|
|
302769
302769
|
if (this[n7].length === 0)
|
|
@@ -302775,7 +302775,7 @@ function X5() {
|
|
|
302775
302775
|
this[n7] = [], R7(this[s7], t9, this[u6], (e11, i7) => this[_6](e11, i7));
|
|
302776
302776
|
}
|
|
302777
302777
|
}
|
|
302778
|
-
[
|
|
302778
|
+
[h8]() {
|
|
302779
302779
|
if (this[m7] && typeof this[s7] == "number") {
|
|
302780
302780
|
const t9 = this[s7];
|
|
302781
302781
|
this[s7] = null, r7.close(t9, (e11) => e11 ? this.emit("error", e11) : this.emit("close"));
|
|
@@ -302783,7 +302783,7 @@ function X5() {
|
|
|
302783
302783
|
}
|
|
302784
302784
|
}
|
|
302785
302785
|
|
|
302786
|
-
class
|
|
302786
|
+
class U5 extends O6 {
|
|
302787
302787
|
[a8]() {
|
|
302788
302788
|
let t9;
|
|
302789
302789
|
if (this[F3] && this[o8] === "r+")
|
|
@@ -302798,7 +302798,7 @@ function X5() {
|
|
|
302798
302798
|
t9 = r7.openSync(this[l4], this[o8], this[q6]);
|
|
302799
302799
|
this[y4](null, t9);
|
|
302800
302800
|
}
|
|
302801
|
-
[
|
|
302801
|
+
[h8]() {
|
|
302802
302802
|
if (this[m7] && typeof this[s7] == "number") {
|
|
302803
302803
|
const t9 = this[s7];
|
|
302804
302804
|
this[s7] = null, r7.closeSync(t9), this.emit("close");
|
|
@@ -302811,12 +302811,12 @@ function X5() {
|
|
|
302811
302811
|
} finally {
|
|
302812
302812
|
if (e11)
|
|
302813
302813
|
try {
|
|
302814
|
-
this[
|
|
302814
|
+
this[h8]();
|
|
302815
302815
|
} catch {}
|
|
302816
302816
|
}
|
|
302817
302817
|
}
|
|
302818
302818
|
}
|
|
302819
|
-
return s$4.ReadStream = D3, s$4.ReadStreamSync =
|
|
302819
|
+
return s$4.ReadStream = D3, s$4.ReadStreamSync = P5, s$4.WriteStream = O6, s$4.WriteStreamSync = U5, s$4;
|
|
302820
302820
|
}
|
|
302821
302821
|
var r$1 = { exports: {} };
|
|
302822
302822
|
var i$2;
|
|
@@ -302961,7 +302961,7 @@ function a$3() {
|
|
|
302961
302961
|
}
|
|
302962
302962
|
var m7;
|
|
302963
302963
|
var s$1;
|
|
302964
|
-
function
|
|
302964
|
+
function S5() {
|
|
302965
302965
|
if (s$1)
|
|
302966
302966
|
return m7;
|
|
302967
302967
|
s$1 = 1;
|
|
@@ -302969,11 +302969,11 @@ function S4() {
|
|
|
302969
302969
|
return n7.sync = d6, n7.native = (e11, r7) => a8(u6(e11), i7(r7)), n7.manual = (e11, r7) => o8(u6(e11), i7(r7)), n7.nativeSync = (e11, r7) => c3(u6(e11), i7(r7)), n7.manualSync = (e11, r7) => q6(u6(e11), i7(r7)), m7 = n7, m7;
|
|
302970
302970
|
}
|
|
302971
302971
|
var y$12;
|
|
302972
|
-
var
|
|
302972
|
+
var O6;
|
|
302973
302973
|
function F$1() {
|
|
302974
|
-
if (
|
|
302974
|
+
if (O6)
|
|
302975
302975
|
return y$12;
|
|
302976
|
-
|
|
302976
|
+
O6 = 1;
|
|
302977
302977
|
const c3 = V5, a8 = H$2, T5 = c3.lchown ? "lchown" : "chown", I7 = c3.lchownSync ? "lchownSync" : "chownSync", i7 = c3.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/), u6 = (r7, e11, n7) => {
|
|
302978
302978
|
try {
|
|
302979
302979
|
return c3[I7](r7, e11, n7);
|
|
@@ -303001,29 +303001,29 @@ function F$1() {
|
|
|
303001
303001
|
} : (r7, e11, n7) => u6(r7, e11, n7), R7 = process.version;
|
|
303002
303002
|
let N6 = (r7, e11, n7) => c3.readdir(r7, e11, n7), q6 = (r7, e11) => c3.readdirSync(r7, e11);
|
|
303003
303003
|
/^v4\./.test(R7) && (N6 = (r7, e11, n7) => c3.readdir(r7, n7));
|
|
303004
|
-
const
|
|
303004
|
+
const h8 = (r7, e11, n7, t10) => {
|
|
303005
303005
|
c3[T5](r7, e11, n7, _6(r7, e11, n7, (o8) => {
|
|
303006
303006
|
t10(o8 && o8.code !== "ENOENT" ? o8 : null);
|
|
303007
303007
|
}));
|
|
303008
|
-
},
|
|
303008
|
+
}, S6 = (r7, e11, n7, t10, o8) => {
|
|
303009
303009
|
if (typeof e11 == "string")
|
|
303010
303010
|
return c3.lstat(a8.resolve(r7, e11), (s7, f5) => {
|
|
303011
303011
|
if (s7)
|
|
303012
303012
|
return o8(s7.code !== "ENOENT" ? s7 : null);
|
|
303013
|
-
f5.name = e11,
|
|
303013
|
+
f5.name = e11, S6(r7, f5, n7, t10, o8);
|
|
303014
303014
|
});
|
|
303015
303015
|
if (e11.isDirectory())
|
|
303016
|
-
|
|
303016
|
+
E6(a8.resolve(r7, e11.name), n7, t10, (s7) => {
|
|
303017
303017
|
if (s7)
|
|
303018
303018
|
return o8(s7);
|
|
303019
303019
|
const f5 = a8.resolve(r7, e11.name);
|
|
303020
|
-
|
|
303020
|
+
h8(f5, n7, t10, o8);
|
|
303021
303021
|
});
|
|
303022
303022
|
else {
|
|
303023
303023
|
const s7 = a8.resolve(r7, e11.name);
|
|
303024
|
-
|
|
303024
|
+
h8(s7, n7, t10, o8);
|
|
303025
303025
|
}
|
|
303026
|
-
},
|
|
303026
|
+
}, E6 = (r7, e11, n7, t10) => {
|
|
303027
303027
|
N6(r7, { withFileTypes: true }, (o8, s7) => {
|
|
303028
303028
|
if (o8) {
|
|
303029
303029
|
if (o8.code === "ENOENT")
|
|
@@ -303032,17 +303032,17 @@ function F$1() {
|
|
|
303032
303032
|
return t10(o8);
|
|
303033
303033
|
}
|
|
303034
303034
|
if (o8 || !s7.length)
|
|
303035
|
-
return
|
|
303035
|
+
return h8(r7, e11, n7, t10);
|
|
303036
303036
|
let f5 = s7.length, v6 = null;
|
|
303037
303037
|
const H4 = (l4) => {
|
|
303038
303038
|
if (!v6) {
|
|
303039
303039
|
if (l4)
|
|
303040
303040
|
return t10(v6 = l4);
|
|
303041
303041
|
if (--f5 === 0)
|
|
303042
|
-
return
|
|
303042
|
+
return h8(r7, e11, n7, t10);
|
|
303043
303043
|
}
|
|
303044
303044
|
};
|
|
303045
|
-
s7.forEach((l4) =>
|
|
303045
|
+
s7.forEach((l4) => S6(r7, l4, e11, n7, H4));
|
|
303046
303046
|
});
|
|
303047
303047
|
}, C5 = (r7, e11, n7, t10) => {
|
|
303048
303048
|
if (typeof e11 == "string")
|
|
@@ -303068,14 +303068,14 @@ function F$1() {
|
|
|
303068
303068
|
}
|
|
303069
303069
|
return t10 && t10.length && t10.forEach((o8) => C5(r7, o8, e11, n7)), w6(r7, e11, n7);
|
|
303070
303070
|
};
|
|
303071
|
-
return y$12 =
|
|
303071
|
+
return y$12 = E6, E6.sync = m8, y$12;
|
|
303072
303072
|
}
|
|
303073
303073
|
var R7;
|
|
303074
303074
|
function H4() {
|
|
303075
303075
|
if (R7)
|
|
303076
303076
|
return r$1.exports;
|
|
303077
303077
|
R7 = 1;
|
|
303078
|
-
const g5 =
|
|
303078
|
+
const g5 = S5(), l4 = V5, p5 = H$2, x6 = F$1(), y4 = a$7();
|
|
303079
303079
|
|
|
303080
303080
|
class D3 extends Error {
|
|
303081
303081
|
constructor(e11, s7) {
|
|
@@ -303086,7 +303086,7 @@ function H4() {
|
|
|
303086
303086
|
}
|
|
303087
303087
|
}
|
|
303088
303088
|
|
|
303089
|
-
class
|
|
303089
|
+
class E6 extends Error {
|
|
303090
303090
|
constructor(e11, s7) {
|
|
303091
303091
|
super(s7 + ": Cannot cd into '" + e11 + "'"), this.path = e11, this.code = s7;
|
|
303092
303092
|
}
|
|
@@ -303096,22 +303096,22 @@ function H4() {
|
|
|
303096
303096
|
}
|
|
303097
303097
|
const v6 = (n7, e11) => n7.get(y4(e11)), q6 = (n7, e11, s7) => n7.set(y4(e11), s7), I7 = (n7, e11) => {
|
|
303098
303098
|
l4.stat(n7, (s7, r7) => {
|
|
303099
|
-
(s7 || !r7.isDirectory()) && (s7 = new
|
|
303099
|
+
(s7 || !r7.isDirectory()) && (s7 = new E6(n7, s7 && s7.code || "ENOTDIR")), e11(s7);
|
|
303100
303100
|
});
|
|
303101
303101
|
};
|
|
303102
303102
|
r$1.exports = (n7, e11, s7) => {
|
|
303103
303103
|
n7 = y4(n7);
|
|
303104
|
-
const r7 = e11.umask, c3 = e11.mode | 448, f5 = (c3 & r7) !== 0, t10 = e11.uid, i7 = e11.gid, a8 = typeof t10 == "number" && typeof i7 == "number" && (t10 !== e11.processUid || i7 !== e11.processGid), u6 = e11.preserve, m8 = e11.unlink,
|
|
303105
|
-
k6 ? s7(k6) : (q6(
|
|
303104
|
+
const r7 = e11.umask, c3 = e11.mode | 448, f5 = (c3 & r7) !== 0, t10 = e11.uid, i7 = e11.gid, a8 = typeof t10 == "number" && typeof i7 == "number" && (t10 !== e11.processUid || i7 !== e11.processGid), u6 = e11.preserve, m8 = e11.unlink, h8 = e11.cache, d6 = y4(e11.cwd), w6 = (k6, o8) => {
|
|
303105
|
+
k6 ? s7(k6) : (q6(h8, n7, true), o8 && a8 ? x6(o8, t10, i7, (G4) => w6(G4)) : f5 ? l4.chmod(n7, c3, s7) : s7());
|
|
303106
303106
|
};
|
|
303107
|
-
if (
|
|
303107
|
+
if (h8 && v6(h8, n7) === true)
|
|
303108
303108
|
return w6();
|
|
303109
303109
|
if (n7 === d6)
|
|
303110
303110
|
return I7(n7, w6);
|
|
303111
303111
|
if (u6)
|
|
303112
303112
|
return g5(n7, { mode: c3 }).then((k6) => w6(null, k6), w6);
|
|
303113
|
-
const
|
|
303114
|
-
C5(d6,
|
|
303113
|
+
const S6 = y4(p5.relative(d6, n7)).split("/");
|
|
303114
|
+
C5(d6, S6, c3, h8, m8, d6, null, w6);
|
|
303115
303115
|
};
|
|
303116
303116
|
const C5 = (n7, e11, s7, r7, c3, f5, t10, i7) => {
|
|
303117
303117
|
if (!e11.length)
|
|
@@ -303127,9 +303127,9 @@ function H4() {
|
|
|
303127
303127
|
else if (m8.isDirectory())
|
|
303128
303128
|
C5(n7, e11, s7, r7, c3, f5, t10, i7);
|
|
303129
303129
|
else if (c3)
|
|
303130
|
-
l4.unlink(n7, (
|
|
303131
|
-
if (
|
|
303132
|
-
return i7(
|
|
303130
|
+
l4.unlink(n7, (h8) => {
|
|
303131
|
+
if (h8)
|
|
303132
|
+
return i7(h8);
|
|
303133
303133
|
l4.mkdir(n7, s7, j4(n7, e11, s7, r7, c3, f5, t10, i7));
|
|
303134
303134
|
});
|
|
303135
303135
|
else {
|
|
@@ -303138,7 +303138,7 @@ function H4() {
|
|
|
303138
303138
|
i7(a8);
|
|
303139
303139
|
}
|
|
303140
303140
|
}) : (t10 = t10 || n7, C5(n7, e11, s7, r7, c3, f5, t10, i7));
|
|
303141
|
-
},
|
|
303141
|
+
}, L6 = (n7) => {
|
|
303142
303142
|
let e11 = false, s7 = "ENOTDIR";
|
|
303143
303143
|
try {
|
|
303144
303144
|
e11 = l4.statSync(n7).isDirectory();
|
|
@@ -303146,38 +303146,38 @@ function H4() {
|
|
|
303146
303146
|
s7 = r7.code;
|
|
303147
303147
|
} finally {
|
|
303148
303148
|
if (!e11)
|
|
303149
|
-
throw new
|
|
303149
|
+
throw new E6(n7, s7);
|
|
303150
303150
|
}
|
|
303151
303151
|
};
|
|
303152
303152
|
return r$1.exports.sync = (n7, e11) => {
|
|
303153
303153
|
n7 = y4(n7);
|
|
303154
|
-
const s7 = e11.umask, r7 = e11.mode | 448, c3 = (r7 & s7) !== 0, f5 = e11.uid, t10 = e11.gid, i7 = typeof f5 == "number" && typeof t10 == "number" && (f5 !== e11.processUid || t10 !== e11.processGid), a8 = e11.preserve, u6 = e11.unlink, m8 = e11.cache,
|
|
303154
|
+
const s7 = e11.umask, r7 = e11.mode | 448, c3 = (r7 & s7) !== 0, f5 = e11.uid, t10 = e11.gid, i7 = typeof f5 == "number" && typeof t10 == "number" && (f5 !== e11.processUid || t10 !== e11.processGid), a8 = e11.preserve, u6 = e11.unlink, m8 = e11.cache, h8 = y4(e11.cwd), d6 = (k6) => {
|
|
303155
303155
|
q6(m8, n7, true), k6 && i7 && x6.sync(k6, f5, t10), c3 && l4.chmodSync(n7, r7);
|
|
303156
303156
|
};
|
|
303157
303157
|
if (m8 && v6(m8, n7) === true)
|
|
303158
303158
|
return d6();
|
|
303159
|
-
if (n7 ===
|
|
303160
|
-
return
|
|
303159
|
+
if (n7 === h8)
|
|
303160
|
+
return L6(h8), d6();
|
|
303161
303161
|
if (a8)
|
|
303162
303162
|
return d6(g5.sync(n7, r7));
|
|
303163
|
-
const $5 = y4(p5.relative(
|
|
303164
|
-
let
|
|
303165
|
-
for (let k6 = $5.shift(), o8 =
|
|
303163
|
+
const $5 = y4(p5.relative(h8, n7)).split("/");
|
|
303164
|
+
let S6 = null;
|
|
303165
|
+
for (let k6 = $5.shift(), o8 = h8;k6 && (o8 += "/" + k6); k6 = $5.shift())
|
|
303166
303166
|
if (o8 = y4(p5.resolve(o8)), !v6(m8, o8))
|
|
303167
303167
|
try {
|
|
303168
|
-
l4.mkdirSync(o8, r7),
|
|
303168
|
+
l4.mkdirSync(o8, r7), S6 = S6 || o8, q6(m8, o8, true);
|
|
303169
303169
|
} catch {
|
|
303170
303170
|
const M5 = l4.lstatSync(o8);
|
|
303171
303171
|
if (M5.isDirectory()) {
|
|
303172
303172
|
q6(m8, o8, true);
|
|
303173
303173
|
continue;
|
|
303174
303174
|
} else if (u6) {
|
|
303175
|
-
l4.unlinkSync(o8), l4.mkdirSync(o8, r7),
|
|
303175
|
+
l4.unlinkSync(o8), l4.mkdirSync(o8, r7), S6 = S6 || o8, q6(m8, o8, true);
|
|
303176
303176
|
continue;
|
|
303177
303177
|
} else if (M5.isSymbolicLink())
|
|
303178
303178
|
return new D3(o8, o8 + "/" + $5.join("/"));
|
|
303179
303179
|
}
|
|
303180
|
-
return d6(
|
|
303180
|
+
return d6(S6);
|
|
303181
303181
|
}, r$1.exports;
|
|
303182
303182
|
}
|
|
303183
303183
|
var a$2;
|
|
@@ -303210,7 +303210,7 @@ function s7() {
|
|
|
303210
303210
|
}
|
|
303211
303211
|
var u$1;
|
|
303212
303212
|
var f$1;
|
|
303213
|
-
function
|
|
303213
|
+
function z3() {
|
|
303214
303214
|
if (f$1)
|
|
303215
303215
|
return u$1;
|
|
303216
303216
|
f$1 = 1;
|
|
@@ -303221,22 +303221,22 @@ function z4() {
|
|
|
303221
303221
|
if (!s8)
|
|
303222
303222
|
throw new Error("function does not have any path reservations");
|
|
303223
303223
|
return { paths: s8.paths.map((o8) => i8.get(o8)), dirs: [...s8.dirs].map((o8) => i8.get(o8)) };
|
|
303224
|
-
},
|
|
303224
|
+
}, h8 = (e11) => {
|
|
303225
303225
|
const { paths: s8, dirs: o8 } = w6(e11);
|
|
303226
303226
|
return s8.every((r7) => r7[0] === e11) && o8.every((r7) => r7[0] instanceof Set && r7[0].has(e11));
|
|
303227
|
-
}, p6 = (e11) => a9.has(e11) || !
|
|
303227
|
+
}, p6 = (e11) => a9.has(e11) || !h8(e11) ? false : (a9.add(e11), e11(() => S6(e11)), true), S6 = (e11) => {
|
|
303228
303228
|
if (!a9.has(e11))
|
|
303229
303229
|
return false;
|
|
303230
303230
|
const { paths: s8, dirs: o8 } = c3.get(e11), r7 = new Set;
|
|
303231
303231
|
return s8.forEach((t10) => {
|
|
303232
303232
|
const n8 = i8.get(t10);
|
|
303233
|
-
l5.equal(n8[0], e11), n8.length === 1 ? i8.delete(t10) : (n8.shift(), typeof n8[0] == "function" ? r7.add(n8[0]) : n8[0].forEach((
|
|
303233
|
+
l5.equal(n8[0], e11), n8.length === 1 ? i8.delete(t10) : (n8.shift(), typeof n8[0] == "function" ? r7.add(n8[0]) : n8[0].forEach((E6) => r7.add(E6)));
|
|
303234
303234
|
}), o8.forEach((t10) => {
|
|
303235
303235
|
const n8 = i8.get(t10);
|
|
303236
303236
|
l5(n8[0] instanceof Set), n8[0].size === 1 && n8.length === 1 ? i8.delete(t10) : n8[0].size === 1 ? (n8.shift(), r7.add(n8[0])) : n8[0].delete(e11);
|
|
303237
303237
|
}), a9.delete(e11), r7.forEach((t10) => p6(t10)), true;
|
|
303238
303238
|
};
|
|
303239
|
-
return { check:
|
|
303239
|
+
return { check: h8, reserve: (e11, s8) => {
|
|
303240
303240
|
e11 = q6 ? ["win32 parallelization disabled"] : e11.map((r7) => g5(d6(m8(r7))).toLowerCase());
|
|
303241
303241
|
const o8 = new Set(e11.map((r7) => v6(r7)).reduce((r7, t10) => r7.concat(t10)));
|
|
303242
303242
|
return c3.set(s8, { dirs: o8, paths: e11 }), e11.forEach((r7) => {
|
|
@@ -303280,7 +303280,7 @@ function Os() {
|
|
|
303280
303280
|
if (y4)
|
|
303281
303281
|
return G4;
|
|
303282
303282
|
y4 = 1;
|
|
303283
|
-
const ss = j$1, is = rt3(), r7 = V5, es = X5(), w6 = H$2, M5 = H4(), K4 = p5(), ts =
|
|
303283
|
+
const ss = j$1, is = rt3(), r7 = V5, es = X5(), w6 = H$2, M5 = H4(), K4 = p5(), ts = z3(), os = c3(), l5 = a$7(), rs = s7(), hs = a$12(), H$12 = Symbol("onEntry"), q6 = Symbol("checkFs"), Y4 = Symbol("checkFs2"), v6 = Symbol("pruneCache"), N6 = Symbol("isReusable"), d6 = Symbol("makeFs"), U5 = Symbol("file"), F$12 = Symbol("directory"), O7 = Symbol("link"), B3 = Symbol("symlink"), z$1 = Symbol("hardlink"), W5 = Symbol("unsupported"), j4 = Symbol("checkPath"), b4 = Symbol("mkdir"), m8 = Symbol("onError"), $5 = Symbol("pending"), V$1 = Symbol("pend"), S6 = Symbol("unpend"), P5 = Symbol("ended"), A5 = Symbol("maybeClose"), x6 = Symbol("skip"), E6 = Symbol("doChown"), R8 = Symbol("uid"), _6 = Symbol("gid"), g5 = Symbol("checkedCwd"), X$12 = Ds, J5 = F3(), C5 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32", cs = 1024, as = (a9, s8) => {
|
|
303284
303284
|
if (!C5)
|
|
303285
303285
|
return r7.unlink(a9, s8);
|
|
303286
303286
|
const i8 = a9 + ".DELETE." + X$12.randomBytes(16).toString("hex");
|
|
@@ -303305,11 +303305,11 @@ function Os() {
|
|
|
303305
303305
|
a9.delete(s8);
|
|
303306
303306
|
};
|
|
303307
303307
|
|
|
303308
|
-
class
|
|
303308
|
+
class L6 extends is {
|
|
303309
303309
|
constructor(s8) {
|
|
303310
303310
|
if (s8 || (s8 = {}), s8.ondone = (i8) => {
|
|
303311
|
-
this[
|
|
303312
|
-
}, super(s8), this[g5] = false, this.reservations = ts(), this.transform = typeof s8.transform == "function" ? s8.transform : null, this.writable = true, this.readable = false, this[$5] = 0, this[
|
|
303311
|
+
this[P5] = true, this[A5]();
|
|
303312
|
+
}, super(s8), this[g5] = false, this.reservations = ts(), this.transform = typeof s8.transform == "function" ? s8.transform : null, this.writable = true, this.readable = false, this[$5] = 0, this[P5] = false, this.dirCache = s8.dirCache || new Map, typeof s8.uid == "number" || typeof s8.gid == "number") {
|
|
303313
303313
|
if (typeof s8.uid != "number" || typeof s8.gid != "number")
|
|
303314
303314
|
throw new TypeError("cannot set owner without number uid and gid");
|
|
303315
303315
|
if (s8.preserveOwner)
|
|
@@ -303323,7 +303323,7 @@ function Os() {
|
|
|
303323
303323
|
return (s8 === "TAR_BAD_ARCHIVE" || s8 === "TAR_ABORT") && (e12.recoverable = false), super.warn(s8, i8, e12);
|
|
303324
303324
|
}
|
|
303325
303325
|
[A5]() {
|
|
303326
|
-
this[
|
|
303326
|
+
this[P5] && this[$5] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
|
|
303327
303327
|
}
|
|
303328
303328
|
[j4](s8) {
|
|
303329
303329
|
const i8 = l5(s8.path), e12 = i8.split("/");
|
|
@@ -303380,12 +303380,12 @@ function Os() {
|
|
|
303380
303380
|
}
|
|
303381
303381
|
}
|
|
303382
303382
|
[m8](s8, i8) {
|
|
303383
|
-
s8.name === "CwdError" ? this.emit("error", s8) : (this.warn("TAR_ENTRY_ERROR", s8, { entry: i8 }), this[
|
|
303383
|
+
s8.name === "CwdError" ? this.emit("error", s8) : (this.warn("TAR_ENTRY_ERROR", s8, { entry: i8 }), this[S6](), i8.resume());
|
|
303384
303384
|
}
|
|
303385
303385
|
[b4](s8, i8, e12) {
|
|
303386
303386
|
M5(l5(s8), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cache: this.dirCache, cwd: this.cwd, mode: i8, noChmod: this.noChmod }, e12);
|
|
303387
303387
|
}
|
|
303388
|
-
[
|
|
303388
|
+
[E6](s8) {
|
|
303389
303389
|
return this.forceChown || this.preserveOwner && (typeof s8.uid == "number" && s8.uid !== this.processUid || typeof s8.gid == "number" && s8.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
|
|
303390
303390
|
}
|
|
303391
303391
|
[R8](s8) {
|
|
@@ -303394,7 +303394,7 @@ function Os() {
|
|
|
303394
303394
|
[_6](s8) {
|
|
303395
303395
|
return Q4(this.gid, s8.gid, this.processGid);
|
|
303396
303396
|
}
|
|
303397
|
-
[
|
|
303397
|
+
[U5](s8, i8) {
|
|
303398
303398
|
const e12 = s8.mode & 4095 || this.fmode, t10 = new es.WriteStream(s8.absolute, { flags: J5(s8.size), mode: e12, autoClose: false });
|
|
303399
303399
|
t10.on("error", (c4) => {
|
|
303400
303400
|
t10.fd && r7.close(t10.fd, () => {}), t10.write = () => true, this[m8](c4, s8), i8();
|
|
@@ -303406,7 +303406,7 @@ function Os() {
|
|
|
303406
303406
|
return;
|
|
303407
303407
|
}
|
|
303408
303408
|
--o9 === 0 && r7.close(t10.fd, (n8) => {
|
|
303409
|
-
n8 ? this[m8](n8, s8) : this[
|
|
303409
|
+
n8 ? this[m8](n8, s8) : this[S6](), i8();
|
|
303410
303410
|
});
|
|
303411
303411
|
};
|
|
303412
303412
|
t10.on("finish", (c4) => {
|
|
@@ -303416,17 +303416,17 @@ function Os() {
|
|
|
303416
303416
|
const f5 = s8.atime || new Date, k6 = s8.mtime;
|
|
303417
303417
|
r7.futimes(p6, f5, k6, (D3) => D3 ? r7.utimes(n8, f5, k6, (I7) => u7(I7 && D3)) : u7());
|
|
303418
303418
|
}
|
|
303419
|
-
if (this[
|
|
303419
|
+
if (this[E6](s8)) {
|
|
303420
303420
|
o9++;
|
|
303421
303421
|
const f5 = this[R8](s8), k6 = this[_6](s8);
|
|
303422
303422
|
r7.fchown(p6, f5, k6, (D3) => D3 ? r7.chown(n8, f5, k6, (I7) => u7(I7 && D3)) : u7());
|
|
303423
303423
|
}
|
|
303424
303424
|
u7();
|
|
303425
303425
|
});
|
|
303426
|
-
const
|
|
303427
|
-
|
|
303426
|
+
const h8 = this.transform && this.transform(s8) || s8;
|
|
303427
|
+
h8 !== s8 && (h8.on("error", (c4) => {
|
|
303428
303428
|
this[m8](c4, s8), i8();
|
|
303429
|
-
}), s8.pipe(
|
|
303429
|
+
}), s8.pipe(h8)), h8.pipe(t10);
|
|
303430
303430
|
}
|
|
303431
303431
|
[F$12](s8, i8) {
|
|
303432
303432
|
const e12 = s8.mode & 4095 || this.dmode;
|
|
@@ -303436,30 +303436,30 @@ function Os() {
|
|
|
303436
303436
|
return;
|
|
303437
303437
|
}
|
|
303438
303438
|
let o9 = 1;
|
|
303439
|
-
const u7 = (
|
|
303440
|
-
--o9 === 0 && (i8(), this[
|
|
303439
|
+
const u7 = (h8) => {
|
|
303440
|
+
--o9 === 0 && (i8(), this[S6](), s8.resume());
|
|
303441
303441
|
};
|
|
303442
|
-
s8.mtime && !this.noMtime && (o9++, r7.utimes(s8.absolute, s8.atime || new Date, s8.mtime, u7)), this[
|
|
303442
|
+
s8.mtime && !this.noMtime && (o9++, r7.utimes(s8.absolute, s8.atime || new Date, s8.mtime, u7)), this[E6](s8) && (o9++, r7.chown(s8.absolute, this[R8](s8), this[_6](s8), u7)), u7();
|
|
303443
303443
|
});
|
|
303444
303444
|
}
|
|
303445
303445
|
[W5](s8) {
|
|
303446
303446
|
s8.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${s8.type}`, { entry: s8 }), s8.resume();
|
|
303447
303447
|
}
|
|
303448
|
-
[
|
|
303449
|
-
this[
|
|
303448
|
+
[B3](s8, i8) {
|
|
303449
|
+
this[O7](s8, s8.linkpath, "symlink", i8);
|
|
303450
303450
|
}
|
|
303451
303451
|
[z$1](s8, i8) {
|
|
303452
303452
|
const e12 = l5(w6.resolve(this.cwd, s8.linkpath));
|
|
303453
|
-
this[
|
|
303453
|
+
this[O7](s8, e12, "link", i8);
|
|
303454
303454
|
}
|
|
303455
303455
|
[V$1]() {
|
|
303456
303456
|
this[$5]++;
|
|
303457
303457
|
}
|
|
303458
|
-
[
|
|
303458
|
+
[S6]() {
|
|
303459
303459
|
this[$5]--, this[A5]();
|
|
303460
303460
|
}
|
|
303461
303461
|
[x6](s8) {
|
|
303462
|
-
this[
|
|
303462
|
+
this[S6](), s8.resume();
|
|
303463
303463
|
}
|
|
303464
303464
|
[N6](s8, i8) {
|
|
303465
303465
|
return s8.type === "File" && !this.unlink && i8.isFile() && i8.nlink <= 1 && !C5;
|
|
@@ -303474,21 +303474,21 @@ function Os() {
|
|
|
303474
303474
|
}
|
|
303475
303475
|
[Y4](s8, i8) {
|
|
303476
303476
|
this[v6](s8);
|
|
303477
|
-
const e12 = (
|
|
303478
|
-
this[v6](s8), i8(
|
|
303477
|
+
const e12 = (h8) => {
|
|
303478
|
+
this[v6](s8), i8(h8);
|
|
303479
303479
|
}, t10 = () => {
|
|
303480
|
-
this[b4](this.cwd, this.dmode, (
|
|
303481
|
-
if (
|
|
303482
|
-
this[m8](
|
|
303480
|
+
this[b4](this.cwd, this.dmode, (h8) => {
|
|
303481
|
+
if (h8) {
|
|
303482
|
+
this[m8](h8, s8), e12();
|
|
303483
303483
|
return;
|
|
303484
303484
|
}
|
|
303485
303485
|
this[g5] = true, o9();
|
|
303486
303486
|
});
|
|
303487
303487
|
}, o9 = () => {
|
|
303488
303488
|
if (s8.absolute !== this.cwd) {
|
|
303489
|
-
const
|
|
303490
|
-
if (
|
|
303491
|
-
return this[b4](
|
|
303489
|
+
const h8 = l5(w6.dirname(s8.absolute));
|
|
303490
|
+
if (h8 !== this.cwd)
|
|
303491
|
+
return this[b4](h8, this.dmode, (c4) => {
|
|
303492
303492
|
if (c4) {
|
|
303493
303493
|
this[m8](c4, s8), e12();
|
|
303494
303494
|
return;
|
|
@@ -303498,12 +303498,12 @@ function Os() {
|
|
|
303498
303498
|
}
|
|
303499
303499
|
u7();
|
|
303500
303500
|
}, u7 = () => {
|
|
303501
|
-
r7.lstat(s8.absolute, (
|
|
303501
|
+
r7.lstat(s8.absolute, (h8, c4) => {
|
|
303502
303502
|
if (c4 && (this.keep || this.newer && c4.mtime > s8.mtime)) {
|
|
303503
303503
|
this[x6](s8), e12();
|
|
303504
303504
|
return;
|
|
303505
303505
|
}
|
|
303506
|
-
if (
|
|
303506
|
+
if (h8 || this[N6](s8, c4))
|
|
303507
303507
|
return this[d6](null, s8, e12);
|
|
303508
303508
|
if (c4.isDirectory()) {
|
|
303509
303509
|
if (s8.type === "Directory") {
|
|
@@ -303529,19 +303529,19 @@ function Os() {
|
|
|
303529
303529
|
case "File":
|
|
303530
303530
|
case "OldFile":
|
|
303531
303531
|
case "ContiguousFile":
|
|
303532
|
-
return this[
|
|
303532
|
+
return this[U5](i8, e12);
|
|
303533
303533
|
case "Link":
|
|
303534
303534
|
return this[z$1](i8, e12);
|
|
303535
303535
|
case "SymbolicLink":
|
|
303536
|
-
return this[
|
|
303536
|
+
return this[B3](i8, e12);
|
|
303537
303537
|
case "Directory":
|
|
303538
303538
|
case "GNUDumpDir":
|
|
303539
303539
|
return this[F$12](i8, e12);
|
|
303540
303540
|
}
|
|
303541
303541
|
}
|
|
303542
|
-
[
|
|
303542
|
+
[O7](s8, i8, e12, t10) {
|
|
303543
303543
|
r7[e12](i8, s8.absolute, (o9) => {
|
|
303544
|
-
o9 ? this[m8](o9, s8) : (this[
|
|
303544
|
+
o9 ? this[m8](o9, s8) : (this[S6](), s8.resume()), t10();
|
|
303545
303545
|
});
|
|
303546
303546
|
}
|
|
303547
303547
|
}
|
|
@@ -303553,7 +303553,7 @@ function Os() {
|
|
|
303553
303553
|
}
|
|
303554
303554
|
};
|
|
303555
303555
|
|
|
303556
|
-
class ls extends
|
|
303556
|
+
class ls extends L6 {
|
|
303557
303557
|
[d6](s8, i8) {
|
|
303558
303558
|
return super[d6](s8, i8, () => {});
|
|
303559
303559
|
}
|
|
@@ -303579,10 +303579,10 @@ function Os() {
|
|
|
303579
303579
|
return this[d6](null, s8);
|
|
303580
303580
|
if (e12.isDirectory()) {
|
|
303581
303581
|
if (s8.type === "Directory") {
|
|
303582
|
-
const u7 = !this.noChmod && s8.mode && (e12.mode & 4095) !== s8.mode, [
|
|
303582
|
+
const u7 = !this.noChmod && s8.mode && (e12.mode & 4095) !== s8.mode, [h8] = u7 ? T5(() => {
|
|
303583
303583
|
r7.chmodSync(s8.absolute, s8.mode);
|
|
303584
303584
|
}) : [];
|
|
303585
|
-
return this[d6](
|
|
303585
|
+
return this[d6](h8, s8);
|
|
303586
303586
|
}
|
|
303587
303587
|
const [o9] = T5(() => r7.rmdirSync(s8.absolute));
|
|
303588
303588
|
this[d6](o9, s8);
|
|
@@ -303590,30 +303590,30 @@ function Os() {
|
|
|
303590
303590
|
const [t10] = s8.absolute === this.cwd ? [] : T5(() => us(s8.absolute));
|
|
303591
303591
|
this[d6](t10, s8);
|
|
303592
303592
|
}
|
|
303593
|
-
[
|
|
303594
|
-
const e12 = s8.mode & 4095 || this.fmode, t10 = (
|
|
303593
|
+
[U5](s8, i8) {
|
|
303594
|
+
const e12 = s8.mode & 4095 || this.fmode, t10 = (h8) => {
|
|
303595
303595
|
let c4;
|
|
303596
303596
|
try {
|
|
303597
303597
|
r7.closeSync(o9);
|
|
303598
303598
|
} catch (n8) {
|
|
303599
303599
|
c4 = n8;
|
|
303600
303600
|
}
|
|
303601
|
-
(
|
|
303601
|
+
(h8 || c4) && this[m8](h8 || c4, s8), i8();
|
|
303602
303602
|
};
|
|
303603
303603
|
let o9;
|
|
303604
303604
|
try {
|
|
303605
303605
|
o9 = r7.openSync(s8.absolute, J5(s8.size), e12);
|
|
303606
|
-
} catch (
|
|
303607
|
-
return t10(
|
|
303606
|
+
} catch (h8) {
|
|
303607
|
+
return t10(h8);
|
|
303608
303608
|
}
|
|
303609
303609
|
const u7 = this.transform && this.transform(s8) || s8;
|
|
303610
|
-
u7 !== s8 && (u7.on("error", (
|
|
303610
|
+
u7 !== s8 && (u7.on("error", (h8) => this[m8](h8, s8)), s8.pipe(u7)), u7.on("data", (h8) => {
|
|
303611
303611
|
try {
|
|
303612
|
-
r7.writeSync(o9,
|
|
303612
|
+
r7.writeSync(o9, h8, 0, h8.length);
|
|
303613
303613
|
} catch (c4) {
|
|
303614
303614
|
t10(c4);
|
|
303615
303615
|
}
|
|
303616
|
-
}), u7.on("end", (
|
|
303616
|
+
}), u7.on("end", (h8) => {
|
|
303617
303617
|
let c4 = null;
|
|
303618
303618
|
if (s8.mtime && !this.noMtime) {
|
|
303619
303619
|
const n8 = s8.atime || new Date, p6 = s8.mtime;
|
|
@@ -303627,7 +303627,7 @@ function Os() {
|
|
|
303627
303627
|
}
|
|
303628
303628
|
}
|
|
303629
303629
|
}
|
|
303630
|
-
if (this[
|
|
303630
|
+
if (this[E6](s8)) {
|
|
303631
303631
|
const n8 = this[R8](s8), p6 = this[_6](s8);
|
|
303632
303632
|
try {
|
|
303633
303633
|
r7.fchownSync(o9, n8, p6);
|
|
@@ -303652,7 +303652,7 @@ function Os() {
|
|
|
303652
303652
|
try {
|
|
303653
303653
|
r7.utimesSync(s8.absolute, s8.atime || new Date, s8.mtime);
|
|
303654
303654
|
} catch {}
|
|
303655
|
-
if (this[
|
|
303655
|
+
if (this[E6](s8))
|
|
303656
303656
|
try {
|
|
303657
303657
|
r7.chownSync(s8.absolute, this[R8](s8), this[_6](s8));
|
|
303658
303658
|
} catch {}
|
|
@@ -303665,7 +303665,7 @@ function Os() {
|
|
|
303665
303665
|
return e12;
|
|
303666
303666
|
}
|
|
303667
303667
|
}
|
|
303668
|
-
[
|
|
303668
|
+
[O7](s8, i8, e12, t10) {
|
|
303669
303669
|
try {
|
|
303670
303670
|
r7[e12 + "Sync"](i8, s8.absolute), t10(), s8.resume();
|
|
303671
303671
|
} catch (o9) {
|
|
@@ -303673,7 +303673,7 @@ function Os() {
|
|
|
303673
303673
|
}
|
|
303674
303674
|
}
|
|
303675
303675
|
}
|
|
303676
|
-
return
|
|
303676
|
+
return L6.Sync = ls, G4 = L6, G4;
|
|
303677
303677
|
}
|
|
303678
303678
|
var f5;
|
|
303679
303679
|
var q6;
|
|
@@ -303689,7 +303689,7 @@ function v6() {
|
|
|
303689
303689
|
throw new TypeError("callback not supported for sync tar functions");
|
|
303690
303690
|
if (!t10.file && typeof o9 == "function")
|
|
303691
303691
|
throw new TypeError("callback only supported with file option");
|
|
303692
|
-
return e12.length && d6(t10, e12), t10.file && t10.sync ? $5(t10) : t10.file ?
|
|
303692
|
+
return e12.length && d6(t10, e12), t10.file && t10.sync ? $5(t10) : t10.file ? h8(t10, o9) : t10.sync ? x6(t10) : z4(t10);
|
|
303693
303693
|
};
|
|
303694
303694
|
const d6 = (r7, e12) => {
|
|
303695
303695
|
const o9 = new Map(e12.map((n8) => [m8(n8), true])), t10 = r7.filter, s8 = (n8, i8) => {
|
|
@@ -303700,19 +303700,19 @@ function v6() {
|
|
|
303700
303700
|
}, $5 = (r7) => {
|
|
303701
303701
|
const e12 = new u7.Sync(r7), o9 = r7.file, t10 = p6.statSync(o9), s8 = r7.maxReadSize || 16 * 1024 * 1024;
|
|
303702
303702
|
new y5.ReadStreamSync(o9, { readSize: s8, size: t10.size }).pipe(e12);
|
|
303703
|
-
},
|
|
303703
|
+
}, h8 = (r7, e12) => {
|
|
303704
303704
|
const o9 = new u7(r7), t10 = r7.maxReadSize || 16 * 1024 * 1024, s8 = r7.file, n8 = new Promise((i8, a9) => {
|
|
303705
303705
|
o9.on("error", a9), o9.on("close", i8), p6.stat(s8, (c4, R8) => {
|
|
303706
303706
|
if (c4)
|
|
303707
303707
|
a9(c4);
|
|
303708
303708
|
else {
|
|
303709
|
-
const
|
|
303710
|
-
|
|
303709
|
+
const S6 = new y5.ReadStream(s8, { readSize: t10, size: R8.size });
|
|
303710
|
+
S6.on("error", a9), S6.pipe(o9);
|
|
303711
303711
|
}
|
|
303712
303712
|
});
|
|
303713
303713
|
});
|
|
303714
303714
|
return e12 ? n8.then(e12, e12) : n8;
|
|
303715
|
-
}, x6 = (r7) => new u7.Sync(r7),
|
|
303715
|
+
}, x6 = (r7) => new u7.Sync(r7), z4 = (r7) => new u7(r7);
|
|
303716
303716
|
return f5;
|
|
303717
303717
|
}
|
|
303718
303718
|
var r7 = v6();
|
|
@@ -308920,4 +308920,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
|
308920
308920
|
// src/cli.ts
|
|
308921
308921
|
sdkCliCommand();
|
|
308922
308922
|
|
|
308923
|
-
//# debugId=
|
|
308923
|
+
//# debugId=6DDC56B97B0B44CF64756E2164756E21
|