storybook 9.1.0-beta.3 → 9.2.0-alpha.0
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/bin/index.cjs +66 -66
- package/dist/bin/index.js +65 -65
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/common/index.cjs +728 -728
- package/dist/common/index.js +749 -749
- package/dist/core-server/presets/common-manager.js +3 -3
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +8 -8
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/telemetry/index.cjs +1 -1
- package/dist/telemetry/index.js +1 -1
- package/package.json +1 -1
package/dist/common/index.js
CHANGED
|
@@ -115,9 +115,9 @@ var ml = m((PT, wl) => {
|
|
|
115
115
|
});
|
|
116
116
|
|
|
117
117
|
// ../node_modules/brace-expansion/index.js
|
|
118
|
-
var Nl = m((_T,
|
|
118
|
+
var Nl = m((_T, bl) => {
|
|
119
119
|
var yl = ml();
|
|
120
|
-
|
|
120
|
+
bl.exports = aF;
|
|
121
121
|
var Dl = "\0SLASH" + Math.random() + "\0", Sl = "\0OPEN" + Math.random() + "\0", wg = "\0CLOSE" + Math.random() + "\0", Kl = "\0COMMA" + Math.
|
|
122
122
|
random() + "\0", Fl = "\0PERIOD" + Math.random() + "\0";
|
|
123
123
|
function pg(t) {
|
|
@@ -132,7 +132,7 @@ var Nl = m((_T, kl) => {
|
|
|
132
132
|
return t.split(Dl).join("\\").split(Sl).join("{").split(wg).join("}").split(Kl).join(",").split(Fl).join(".");
|
|
133
133
|
}
|
|
134
134
|
s(gF, "unescapeBraces");
|
|
135
|
-
function
|
|
135
|
+
function kl(t) {
|
|
136
136
|
if (!t)
|
|
137
137
|
return [""];
|
|
138
138
|
var A = [], e = yl("{", "}", t);
|
|
@@ -140,10 +140,10 @@ var Nl = m((_T, kl) => {
|
|
|
140
140
|
return t.split(",");
|
|
141
141
|
var r = e.pre, i = e.body, n = e.post, o = r.split(",");
|
|
142
142
|
o[o.length - 1] += "{" + i + "}";
|
|
143
|
-
var g =
|
|
143
|
+
var g = kl(n);
|
|
144
144
|
return n.length && (o[o.length - 1] += g.shift(), o.push.apply(o, g)), A.push.apply(A, o), A;
|
|
145
145
|
}
|
|
146
|
-
s(
|
|
146
|
+
s(kl, "parseCommaParts");
|
|
147
147
|
function aF(t) {
|
|
148
148
|
return t ? (t.substr(0, 2) === "{}" && (t = "\\{\\}" + t.substr(2)), Ei(oF(t), !0).map(gF)) : [];
|
|
149
149
|
}
|
|
@@ -181,17 +181,17 @@ var Nl = m((_T, kl) => {
|
|
|
181
181
|
var B;
|
|
182
182
|
if (E)
|
|
183
183
|
B = r.body.split(/\.\./);
|
|
184
|
-
else if (B =
|
|
184
|
+
else if (B = kl(r.body), B.length === 1 && (B = Ei(B[0], !1).map(CF), B.length === 1))
|
|
185
185
|
return n.map(function(mA) {
|
|
186
186
|
return r.pre + B[0] + mA;
|
|
187
187
|
});
|
|
188
188
|
var p;
|
|
189
189
|
if (E) {
|
|
190
|
-
var w = pg(B[0]), D = pg(B[1]), N = Math.max(B[0].length, B[1].length),
|
|
191
|
-
L && (
|
|
190
|
+
var w = pg(B[0]), D = pg(B[1]), N = Math.max(B[0].length, B[1].length), k = B.length == 3 ? Math.abs(pg(B[2])) : 1, _ = IF, L = D < w;
|
|
191
|
+
L && (k *= -1, _ = hF);
|
|
192
192
|
var J = B.some(cF);
|
|
193
193
|
p = [];
|
|
194
|
-
for (var U = w; _(U, D); U +=
|
|
194
|
+
for (var U = w; _(U, D); U += k) {
|
|
195
195
|
var Z;
|
|
196
196
|
if (I)
|
|
197
197
|
Z = String.fromCharCode(U), Z === "\\" && (Z = "");
|
|
@@ -229,15 +229,15 @@ var Rr = ue(() => {
|
|
|
229
229
|
});
|
|
230
230
|
|
|
231
231
|
// ../node_modules/resolve-from/index.js
|
|
232
|
-
var Og = m((
|
|
232
|
+
var Og = m((Dj, Jg) => {
|
|
233
233
|
"use strict";
|
|
234
|
-
var QE = v("path"), fE = v("module"),
|
|
234
|
+
var QE = v("path"), fE = v("module"), xk = v("fs"), dE = /* @__PURE__ */ s((t, A, e) => {
|
|
235
235
|
if (typeof t != "string")
|
|
236
236
|
throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof t}\``);
|
|
237
237
|
if (typeof A != "string")
|
|
238
238
|
throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof A}\``);
|
|
239
239
|
try {
|
|
240
|
-
t =
|
|
240
|
+
t = xk.realpathSync(t);
|
|
241
241
|
} catch (n) {
|
|
242
242
|
if (n.code === "ENOENT")
|
|
243
243
|
t = QE.resolve(t);
|
|
@@ -265,16 +265,16 @@ var Og = m((D1, Jg) => {
|
|
|
265
265
|
});
|
|
266
266
|
|
|
267
267
|
// ../node_modules/common-path-prefix/index.js
|
|
268
|
-
var LE = m((
|
|
268
|
+
var LE = m((Vj, vE) => {
|
|
269
269
|
"use strict";
|
|
270
|
-
var { sep:
|
|
270
|
+
var { sep: Ab } = v("path"), eb = /* @__PURE__ */ s((t) => {
|
|
271
271
|
for (let A of t) {
|
|
272
272
|
let e = /(\/|\\)/.exec(A);
|
|
273
273
|
if (e !== null) return e[0];
|
|
274
274
|
}
|
|
275
|
-
return
|
|
275
|
+
return Ab;
|
|
276
276
|
}, "determineSeparator");
|
|
277
|
-
vE.exports = /* @__PURE__ */ s(function(A, e =
|
|
277
|
+
vE.exports = /* @__PURE__ */ s(function(A, e = eb(A)) {
|
|
278
278
|
let [r = "", ...i] = A;
|
|
279
279
|
if (r === "" || i.length === 0) return "";
|
|
280
280
|
let n = r.split(e), o = n.length;
|
|
@@ -342,11 +342,11 @@ var qg, rr, zg = ue(() => {
|
|
|
342
342
|
});
|
|
343
343
|
|
|
344
344
|
// ../node_modules/isexe/windows.js
|
|
345
|
-
var nu = m((
|
|
345
|
+
var nu = m((Z1, su) => {
|
|
346
346
|
su.exports = iu;
|
|
347
|
-
iu.sync =
|
|
347
|
+
iu.sync = Db;
|
|
348
348
|
var tu = v("fs");
|
|
349
|
-
function
|
|
349
|
+
function yb(t, A) {
|
|
350
350
|
var e = A.pathExt !== void 0 ? A.pathExt : process.env.PATHEXT;
|
|
351
351
|
if (!e || (e = e.split(";"), e.indexOf("") !== -1))
|
|
352
352
|
return !0;
|
|
@@ -357,9 +357,9 @@ var nu = m((Zj, su) => {
|
|
|
357
357
|
}
|
|
358
358
|
return !1;
|
|
359
359
|
}
|
|
360
|
-
s(
|
|
360
|
+
s(yb, "checkPathExt");
|
|
361
361
|
function ru(t, A, e) {
|
|
362
|
-
return !t.isSymbolicLink() && !t.isFile() ? !1 :
|
|
362
|
+
return !t.isSymbolicLink() && !t.isFile() ? !1 : yb(A, e);
|
|
363
363
|
}
|
|
364
364
|
s(ru, "checkStat");
|
|
365
365
|
function iu(t, A, e) {
|
|
@@ -368,16 +368,16 @@ var nu = m((Zj, su) => {
|
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
370
|
s(iu, "isexe");
|
|
371
|
-
function
|
|
371
|
+
function Db(t, A) {
|
|
372
372
|
return ru(tu.statSync(t), t, A);
|
|
373
373
|
}
|
|
374
|
-
s(
|
|
374
|
+
s(Db, "sync");
|
|
375
375
|
});
|
|
376
376
|
|
|
377
377
|
// ../node_modules/isexe/mode.js
|
|
378
378
|
var cu = m((eq, Cu) => {
|
|
379
379
|
Cu.exports = gu;
|
|
380
|
-
gu.sync =
|
|
380
|
+
gu.sync = Sb;
|
|
381
381
|
var ou = v("fs");
|
|
382
382
|
function gu(t, A, e) {
|
|
383
383
|
ou.stat(t, function(r, i) {
|
|
@@ -385,21 +385,21 @@ var cu = m((eq, Cu) => {
|
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
387
|
s(gu, "isexe");
|
|
388
|
-
function
|
|
388
|
+
function Sb(t, A) {
|
|
389
389
|
return au(ou.statSync(t), A);
|
|
390
390
|
}
|
|
391
|
-
s(
|
|
391
|
+
s(Sb, "sync");
|
|
392
392
|
function au(t, A) {
|
|
393
|
-
return t.isFile() &&
|
|
393
|
+
return t.isFile() && Kb(t, A);
|
|
394
394
|
}
|
|
395
395
|
s(au, "checkStat");
|
|
396
|
-
function
|
|
396
|
+
function Kb(t, A) {
|
|
397
397
|
var e = t.mode, r = t.uid, i = t.gid, n = A.uid !== void 0 ? A.uid : process.getuid && process.getuid(), o = A.gid !== void 0 ? A.gid : process.
|
|
398
398
|
getgid && process.getgid(), g = parseInt("100", 8), C = parseInt("010", 8), I = parseInt("001", 8), E = g | C, Q = e & I || e & C && i ===
|
|
399
399
|
o || e & g && r === n || e & E && n === 0;
|
|
400
400
|
return Q;
|
|
401
401
|
}
|
|
402
|
-
s(
|
|
402
|
+
s(Kb, "checkMode");
|
|
403
403
|
});
|
|
404
404
|
|
|
405
405
|
// ../node_modules/isexe/index.js
|
|
@@ -407,7 +407,7 @@ var hu = m((iq, Iu) => {
|
|
|
407
407
|
var rq = v("fs"), rn;
|
|
408
408
|
process.platform === "win32" || global.TESTING_WINDOWS ? rn = nu() : rn = cu();
|
|
409
409
|
Iu.exports = Aa;
|
|
410
|
-
Aa.sync =
|
|
410
|
+
Aa.sync = Fb;
|
|
411
411
|
function Aa(t, A, e) {
|
|
412
412
|
if (typeof A == "function" && (e = A, A = {}), !e) {
|
|
413
413
|
if (typeof Promise != "function")
|
|
@@ -423,7 +423,7 @@ var hu = m((iq, Iu) => {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
s(Aa, "isexe");
|
|
426
|
-
function
|
|
426
|
+
function Fb(t, A) {
|
|
427
427
|
try {
|
|
428
428
|
return rn.sync(t, A || {});
|
|
429
429
|
} catch (e) {
|
|
@@ -432,15 +432,15 @@ var hu = m((iq, Iu) => {
|
|
|
432
432
|
throw e;
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
s(
|
|
435
|
+
s(Fb, "sync");
|
|
436
436
|
});
|
|
437
437
|
|
|
438
438
|
// ../node_modules/which/which.js
|
|
439
439
|
var du = m((nq, fu) => {
|
|
440
|
-
var Lr = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", lu = v("path"),
|
|
440
|
+
var Lr = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", lu = v("path"), kb = Lr ? ";" :
|
|
441
441
|
":", Eu = hu(), uu = /* @__PURE__ */ s((t) => Object.assign(new Error(`not found: ${t}`), { code: "ENOENT" }), "getNotFoundError"), Bu = /* @__PURE__ */ s(
|
|
442
442
|
(t, A) => {
|
|
443
|
-
let e = A.colon ||
|
|
443
|
+
let e = A.colon || kb, r = t.match(/\//) || Lr && t.match(/\\/) ? [""] : [
|
|
444
444
|
// windows always checks the cwd first
|
|
445
445
|
...Lr ? [process.cwd()] : [],
|
|
446
446
|
...(A.path || process.env.PATH || /* istanbul ignore next: very unusual */
|
|
@@ -472,7 +472,7 @@ var du = m((nq, fu) => {
|
|
|
472
472
|
});
|
|
473
473
|
}), "subStep");
|
|
474
474
|
return e ? g(0).then((I) => e(null, I), e) : g(0);
|
|
475
|
-
}, "which"),
|
|
475
|
+
}, "which"), bb = /* @__PURE__ */ s((t, A) => {
|
|
476
476
|
A = A || {};
|
|
477
477
|
let { pathEnv: e, pathExt: r, pathExtExe: i } = Bu(t, A), n = [];
|
|
478
478
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -496,7 +496,7 @@ var du = m((nq, fu) => {
|
|
|
496
496
|
throw uu(t);
|
|
497
497
|
}, "whichSync");
|
|
498
498
|
fu.exports = Qu;
|
|
499
|
-
Qu.sync =
|
|
499
|
+
Qu.sync = bb;
|
|
500
500
|
});
|
|
501
501
|
|
|
502
502
|
// ../node_modules/path-key/index.js
|
|
@@ -513,7 +513,7 @@ var wu = m((gq, ea) => {
|
|
|
513
513
|
// ../node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
514
514
|
var Su = m((Cq, Du) => {
|
|
515
515
|
"use strict";
|
|
516
|
-
var mu = v("path"),
|
|
516
|
+
var mu = v("path"), Nb = du(), Mb = wu();
|
|
517
517
|
function yu(t, A) {
|
|
518
518
|
let e = t.options.env || process.env, r = process.cwd(), i = t.options.cwd != null, n = i && process.chdir !== void 0 && !process.chdir.
|
|
519
519
|
disabled;
|
|
@@ -524,8 +524,8 @@ var Su = m((Cq, Du) => {
|
|
|
524
524
|
}
|
|
525
525
|
let o;
|
|
526
526
|
try {
|
|
527
|
-
o =
|
|
528
|
-
path: e[
|
|
527
|
+
o = Nb.sync(t.command, {
|
|
528
|
+
path: e[Mb({ env: e })],
|
|
529
529
|
pathExt: A ? mu.delimiter : void 0
|
|
530
530
|
});
|
|
531
531
|
} catch {
|
|
@@ -535,42 +535,42 @@ var Su = m((Cq, Du) => {
|
|
|
535
535
|
return o && (o = mu.resolve(i ? t.options.cwd : "", o)), o;
|
|
536
536
|
}
|
|
537
537
|
s(yu, "resolveCommandAttempt");
|
|
538
|
-
function
|
|
538
|
+
function Rb(t) {
|
|
539
539
|
return yu(t) || yu(t, !0);
|
|
540
540
|
}
|
|
541
|
-
s(
|
|
542
|
-
Du.exports =
|
|
541
|
+
s(Rb, "resolveCommand");
|
|
542
|
+
Du.exports = Rb;
|
|
543
543
|
});
|
|
544
544
|
|
|
545
545
|
// ../node_modules/cross-spawn/lib/util/escape.js
|
|
546
546
|
var Ku = m((Iq, ra) => {
|
|
547
547
|
"use strict";
|
|
548
548
|
var ta = /([()\][%!^"`<>&|;, *?])/g;
|
|
549
|
-
function
|
|
549
|
+
function vb(t) {
|
|
550
550
|
return t = t.replace(ta, "^$1"), t;
|
|
551
551
|
}
|
|
552
|
-
s(
|
|
553
|
-
function
|
|
552
|
+
s(vb, "escapeCommand");
|
|
553
|
+
function Lb(t, A) {
|
|
554
554
|
return t = `${t}`, t = t.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"'), t = t.replace(/(?=(\\+?)?)\1$/, "$1$1"), t = `"${t}"`, t = t.replace(ta,
|
|
555
555
|
"^$1"), A && (t = t.replace(ta, "^$1")), t;
|
|
556
556
|
}
|
|
557
|
-
s(
|
|
558
|
-
ra.exports.command =
|
|
559
|
-
ra.exports.argument =
|
|
557
|
+
s(Lb, "escapeArgument");
|
|
558
|
+
ra.exports.command = vb;
|
|
559
|
+
ra.exports.argument = Lb;
|
|
560
560
|
});
|
|
561
561
|
|
|
562
562
|
// ../node_modules/shebang-regex/index.js
|
|
563
|
-
var
|
|
563
|
+
var ku = m((lq, Fu) => {
|
|
564
564
|
"use strict";
|
|
565
565
|
Fu.exports = /^#!(.*)/;
|
|
566
566
|
});
|
|
567
567
|
|
|
568
568
|
// ../node_modules/shebang-command/index.js
|
|
569
|
-
var Nu = m((Eq,
|
|
569
|
+
var Nu = m((Eq, bu) => {
|
|
570
570
|
"use strict";
|
|
571
|
-
var
|
|
572
|
-
|
|
573
|
-
let A = t.match(
|
|
571
|
+
var xb = ku();
|
|
572
|
+
bu.exports = (t = "") => {
|
|
573
|
+
let A = t.match(xb);
|
|
574
574
|
if (!A)
|
|
575
575
|
return null;
|
|
576
576
|
let [e, r] = A[0].replace(/#! ?/, "").split(" "), i = e.split("/").pop();
|
|
@@ -581,43 +581,43 @@ var Nu = m((Eq, ku) => {
|
|
|
581
581
|
// ../node_modules/cross-spawn/lib/util/readShebang.js
|
|
582
582
|
var Ru = m((uq, Mu) => {
|
|
583
583
|
"use strict";
|
|
584
|
-
var ia = v("fs"),
|
|
585
|
-
function
|
|
584
|
+
var ia = v("fs"), Yb = Nu();
|
|
585
|
+
function Pb(t) {
|
|
586
586
|
let e = Buffer.alloc(150), r;
|
|
587
587
|
try {
|
|
588
588
|
r = ia.openSync(t, "r"), ia.readSync(r, e, 0, 150, 0), ia.closeSync(r);
|
|
589
589
|
} catch {
|
|
590
590
|
}
|
|
591
|
-
return
|
|
591
|
+
return Yb(e.toString());
|
|
592
592
|
}
|
|
593
|
-
s(
|
|
594
|
-
Mu.exports =
|
|
593
|
+
s(Pb, "readShebang");
|
|
594
|
+
Mu.exports = Pb;
|
|
595
595
|
});
|
|
596
596
|
|
|
597
597
|
// ../node_modules/cross-spawn/lib/parse.js
|
|
598
598
|
var Yu = m((Qq, xu) => {
|
|
599
599
|
"use strict";
|
|
600
|
-
var
|
|
601
|
-
function
|
|
600
|
+
var Ub = v("path"), vu = Su(), Lu = Ku(), _b = Ru(), Gb = process.platform === "win32", Jb = /\.(?:com|exe)$/i, Ob = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
601
|
+
function Tb(t) {
|
|
602
602
|
t.file = vu(t);
|
|
603
|
-
let A = t.file &&
|
|
603
|
+
let A = t.file && _b(t.file);
|
|
604
604
|
return A ? (t.args.unshift(t.file), t.command = A, vu(t)) : t.file;
|
|
605
605
|
}
|
|
606
|
-
s(
|
|
607
|
-
function
|
|
608
|
-
if (!
|
|
606
|
+
s(Tb, "detectShebang");
|
|
607
|
+
function Hb(t) {
|
|
608
|
+
if (!Gb)
|
|
609
609
|
return t;
|
|
610
|
-
let A =
|
|
610
|
+
let A = Tb(t), e = !Jb.test(A);
|
|
611
611
|
if (t.options.forceShell || e) {
|
|
612
|
-
let r =
|
|
613
|
-
t.command =
|
|
612
|
+
let r = Ob.test(A);
|
|
613
|
+
t.command = Ub.normalize(t.command), t.command = Lu.command(t.command), t.args = t.args.map((n) => Lu.argument(n, r));
|
|
614
614
|
let i = [t.command].concat(t.args).join(" ");
|
|
615
615
|
t.args = ["/d", "/s", "/c", `"${i}"`], t.command = process.env.comspec || "cmd.exe", t.options.windowsVerbatimArguments = !0;
|
|
616
616
|
}
|
|
617
617
|
return t;
|
|
618
618
|
}
|
|
619
|
-
s(
|
|
620
|
-
function
|
|
619
|
+
s(Hb, "parseNonShell");
|
|
620
|
+
function jb(t, A, e) {
|
|
621
621
|
A && !Array.isArray(A) && (e = A, A = null), A = A ? A.slice(0) : [], e = Object.assign({}, e);
|
|
622
622
|
let r = {
|
|
623
623
|
command: t,
|
|
@@ -629,10 +629,10 @@ var Yu = m((Qq, xu) => {
|
|
|
629
629
|
args: A
|
|
630
630
|
}
|
|
631
631
|
};
|
|
632
|
-
return e.shell ? r :
|
|
632
|
+
return e.shell ? r : Hb(r);
|
|
633
633
|
}
|
|
634
|
-
s(
|
|
635
|
-
xu.exports =
|
|
634
|
+
s(jb, "parse");
|
|
635
|
+
xu.exports = jb;
|
|
636
636
|
});
|
|
637
637
|
|
|
638
638
|
// ../node_modules/cross-spawn/lib/enoent.js
|
|
@@ -649,7 +649,7 @@ var _u = m((dq, Uu) => {
|
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
651
|
s(na, "notFoundError");
|
|
652
|
-
function
|
|
652
|
+
function qb(t, A) {
|
|
653
653
|
if (!sa)
|
|
654
654
|
return;
|
|
655
655
|
let e = t.emit;
|
|
@@ -662,19 +662,19 @@ var _u = m((dq, Uu) => {
|
|
|
662
662
|
return e.apply(t, arguments);
|
|
663
663
|
};
|
|
664
664
|
}
|
|
665
|
-
s(
|
|
665
|
+
s(qb, "hookChildProcess");
|
|
666
666
|
function Pu(t, A) {
|
|
667
667
|
return sa && t === 1 && !A.file ? na(A.original, "spawn") : null;
|
|
668
668
|
}
|
|
669
669
|
s(Pu, "verifyENOENT");
|
|
670
|
-
function
|
|
670
|
+
function zb(t, A) {
|
|
671
671
|
return sa && t === 1 && !A.file ? na(A.original, "spawnSync") : null;
|
|
672
672
|
}
|
|
673
|
-
s(
|
|
673
|
+
s(zb, "verifyENOENTSync");
|
|
674
674
|
Uu.exports = {
|
|
675
|
-
hookChildProcess:
|
|
675
|
+
hookChildProcess: qb,
|
|
676
676
|
verifyENOENT: Pu,
|
|
677
|
-
verifyENOENTSync:
|
|
677
|
+
verifyENOENTSync: zb,
|
|
678
678
|
notFoundError: na
|
|
679
679
|
};
|
|
680
680
|
});
|
|
@@ -688,14 +688,14 @@ var aa = m((wq, xr) => {
|
|
|
688
688
|
return ga.hookChildProcess(i, r), i;
|
|
689
689
|
}
|
|
690
690
|
s(Ju, "spawn");
|
|
691
|
-
function
|
|
691
|
+
function Wb(t, A, e) {
|
|
692
692
|
let r = oa(t, A, e), i = Gu.spawnSync(r.command, r.args, r.options);
|
|
693
693
|
return i.error = i.error || ga.verifyENOENTSync(i.status, r), i;
|
|
694
694
|
}
|
|
695
|
-
s(
|
|
695
|
+
s(Wb, "spawnSync");
|
|
696
696
|
xr.exports = Ju;
|
|
697
697
|
xr.exports.spawn = Ju;
|
|
698
|
-
xr.exports.sync =
|
|
698
|
+
xr.exports.sync = Wb;
|
|
699
699
|
xr.exports._parse = oa;
|
|
700
700
|
xr.exports._enoent = ga;
|
|
701
701
|
});
|
|
@@ -1105,7 +1105,7 @@ var aQ = m((ZW, gQ) => {
|
|
|
1105
1105
|
});
|
|
1106
1106
|
|
|
1107
1107
|
// ../node_modules/picomatch/lib/constants.js
|
|
1108
|
-
var Hi = m((
|
|
1108
|
+
var Hi = m((_4, KQ) => {
|
|
1109
1109
|
"use strict";
|
|
1110
1110
|
var QR = v("path"), ze = "\\\\/", mQ = `[^${ze}]`, ht = "\\.", fR = "\\+", dR = "\\?", Fn = "\\/", pR = "(?=.)", yQ = "[^/]", za = `(?:${Fn}\
|
|
1111
1111
|
|$)`, DQ = `(?:^|${Fn})`, Wa = `${ht}{1,2}${za}`, wR = `(?!${ht})`, mR = `(?!${DQ}${Wa})`, yR = `(?!${ht}{0,1}${za})`, DR = `(?!${Wa})`, SR = `\
|
|
@@ -1138,7 +1138,7 @@ var Hi = m((_3, KQ) => {
|
|
|
1138
1138
|
QMARK_NO_DOT: `[^.${ze}]`,
|
|
1139
1139
|
START_ANCHOR: `(?:^|[${ze}])`,
|
|
1140
1140
|
END_ANCHOR: `(?:[${ze}]|$)`
|
|
1141
|
-
},
|
|
1141
|
+
}, kR = {
|
|
1142
1142
|
alnum: "a-zA-Z0-9",
|
|
1143
1143
|
alpha: "a-zA-Z",
|
|
1144
1144
|
ascii: "\\x00-\\x7F",
|
|
@@ -1156,7 +1156,7 @@ var Hi = m((_3, KQ) => {
|
|
|
1156
1156
|
};
|
|
1157
1157
|
KQ.exports = {
|
|
1158
1158
|
MAX_LENGTH: 1024 * 64,
|
|
1159
|
-
POSIX_REGEX_SOURCE:
|
|
1159
|
+
POSIX_REGEX_SOURCE: kR,
|
|
1160
1160
|
// regular expressions
|
|
1161
1161
|
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
1162
1162
|
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
@@ -1284,7 +1284,7 @@ var Hi = m((_3, KQ) => {
|
|
|
1284
1284
|
// ../node_modules/picomatch/lib/utils.js
|
|
1285
1285
|
var ji = m((se) => {
|
|
1286
1286
|
"use strict";
|
|
1287
|
-
var
|
|
1287
|
+
var bR = v("path"), NR = process.platform === "win32", {
|
|
1288
1288
|
REGEX_BACKSLASH: MR,
|
|
1289
1289
|
REGEX_REMOVE_BACKSLASH: RR,
|
|
1290
1290
|
REGEX_SPECIAL_CHARS: vR,
|
|
@@ -1300,7 +1300,7 @@ var ji = m((se) => {
|
|
|
1300
1300
|
let t = process.version.slice(1).split(".").map(Number);
|
|
1301
1301
|
return t.length === 3 && t[0] >= 9 || t[0] === 8 && t[1] >= 10;
|
|
1302
1302
|
};
|
|
1303
|
-
se.isWindows = (t) => t && typeof t.windows == "boolean" ? t.windows : NR === !0 ||
|
|
1303
|
+
se.isWindows = (t) => t && typeof t.windows == "boolean" ? t.windows : NR === !0 || bR.sep === "\\";
|
|
1304
1304
|
se.escapeLast = (t, A, e) => {
|
|
1305
1305
|
let r = t.lastIndexOf(A, e);
|
|
1306
1306
|
return r === -1 ? t : t[r - 1] === "\\" ? se.escapeLast(t, A, r - 1) : `${t.slice(0, r)}\\${t.slice(r)}`;
|
|
@@ -1316,7 +1316,7 @@ var ji = m((se) => {
|
|
|
1316
1316
|
});
|
|
1317
1317
|
|
|
1318
1318
|
// ../node_modules/picomatch/lib/scan.js
|
|
1319
|
-
var LQ = m((
|
|
1319
|
+
var LQ = m((J4, vQ) => {
|
|
1320
1320
|
"use strict";
|
|
1321
1321
|
var FQ = ji(), {
|
|
1322
1322
|
CHAR_ASTERISK: Va,
|
|
@@ -1341,11 +1341,11 @@ var LQ = m((J3, vQ) => {
|
|
|
1341
1341
|
/* [ */
|
|
1342
1342
|
CHAR_PLUS: UR,
|
|
1343
1343
|
/* + */
|
|
1344
|
-
CHAR_QUESTION_MARK:
|
|
1344
|
+
CHAR_QUESTION_MARK: kQ,
|
|
1345
1345
|
/* ? */
|
|
1346
1346
|
CHAR_RIGHT_CURLY_BRACE: _R,
|
|
1347
1347
|
/* } */
|
|
1348
|
-
CHAR_RIGHT_PARENTHESES:
|
|
1348
|
+
CHAR_RIGHT_PARENTHESES: bQ,
|
|
1349
1349
|
/* ) */
|
|
1350
1350
|
CHAR_RIGHT_SQUARE_BRACKET: GR
|
|
1351
1351
|
/* ] */
|
|
@@ -1353,17 +1353,17 @@ var LQ = m((J3, vQ) => {
|
|
|
1353
1353
|
t.isPrefix !== !0 && (t.depth = t.isGlobstar ? 1 / 0 : 1);
|
|
1354
1354
|
}, "depth"), JR = /* @__PURE__ */ s((t, A) => {
|
|
1355
1355
|
let e = A || {}, r = t.length - 1, i = e.parts === !0 || e.scanToEnd === !0, n = [], o = [], g = [], C = t, I = -1, E = 0, Q = 0, B = !1,
|
|
1356
|
-
p = !1, w = !1, D = !1, N = !1,
|
|
1357
|
-
() => I >= r, "eos"),
|
|
1356
|
+
p = !1, w = !1, D = !1, N = !1, k = !1, _ = !1, L = !1, J = !1, U = !1, Z = 0, q, T, eA = { value: "", depth: 0, isGlob: !1 }, mA = /* @__PURE__ */ s(
|
|
1357
|
+
() => I >= r, "eos"), b = /* @__PURE__ */ s(() => C.charCodeAt(I + 1), "peek"), uA = /* @__PURE__ */ s(() => (q = T, C.charCodeAt(++I)),
|
|
1358
1358
|
"advance");
|
|
1359
1359
|
for (; I < r; ) {
|
|
1360
1360
|
T = uA();
|
|
1361
1361
|
let GA;
|
|
1362
1362
|
if (T === qi) {
|
|
1363
|
-
_ = eA.backslashes = !0, T = uA(), T === Za && (
|
|
1363
|
+
_ = eA.backslashes = !0, T = uA(), T === Za && (k = !0);
|
|
1364
1364
|
continue;
|
|
1365
1365
|
}
|
|
1366
|
-
if (
|
|
1366
|
+
if (k === !0 || T === Za) {
|
|
1367
1367
|
for (Z++; mA() !== !0 && (T = uA()); ) {
|
|
1368
1368
|
if (T === qi) {
|
|
1369
1369
|
_ = eA.backslashes = !0, uA();
|
|
@@ -1373,18 +1373,18 @@ var LQ = m((J3, vQ) => {
|
|
|
1373
1373
|
Z++;
|
|
1374
1374
|
continue;
|
|
1375
1375
|
}
|
|
1376
|
-
if (
|
|
1376
|
+
if (k !== !0 && T === Xa && (T = uA()) === Xa) {
|
|
1377
1377
|
if (B = eA.isBrace = !0, w = eA.isGlob = !0, U = !0, i === !0)
|
|
1378
1378
|
continue;
|
|
1379
1379
|
break;
|
|
1380
1380
|
}
|
|
1381
|
-
if (
|
|
1381
|
+
if (k !== !0 && T === YR) {
|
|
1382
1382
|
if (B = eA.isBrace = !0, w = eA.isGlob = !0, U = !0, i === !0)
|
|
1383
1383
|
continue;
|
|
1384
1384
|
break;
|
|
1385
1385
|
}
|
|
1386
1386
|
if (T === _R && (Z--, Z === 0)) {
|
|
1387
|
-
|
|
1387
|
+
k = !1, B = eA.isBrace = !0, U = !0;
|
|
1388
1388
|
break;
|
|
1389
1389
|
}
|
|
1390
1390
|
}
|
|
@@ -1401,14 +1401,14 @@ var LQ = m((J3, vQ) => {
|
|
|
1401
1401
|
Q = I + 1;
|
|
1402
1402
|
continue;
|
|
1403
1403
|
}
|
|
1404
|
-
if (e.noext !== !0 && (T === UR || T === xR || T === Va || T ===
|
|
1404
|
+
if (e.noext !== !0 && (T === UR || T === xR || T === Va || T === kQ || T === $a) === !0 && b() === AC) {
|
|
1405
1405
|
if (w = eA.isGlob = !0, D = eA.isExtglob = !0, U = !0, T === $a && I === E && (J = !0), i === !0) {
|
|
1406
1406
|
for (; mA() !== !0 && (T = uA()); ) {
|
|
1407
1407
|
if (T === qi) {
|
|
1408
1408
|
_ = eA.backslashes = !0, T = uA();
|
|
1409
1409
|
continue;
|
|
1410
1410
|
}
|
|
1411
|
-
if (T ===
|
|
1411
|
+
if (T === bQ) {
|
|
1412
1412
|
w = eA.isGlob = !0, U = !0;
|
|
1413
1413
|
break;
|
|
1414
1414
|
}
|
|
@@ -1422,7 +1422,7 @@ var LQ = m((J3, vQ) => {
|
|
|
1422
1422
|
continue;
|
|
1423
1423
|
break;
|
|
1424
1424
|
}
|
|
1425
|
-
if (T ===
|
|
1425
|
+
if (T === kQ) {
|
|
1426
1426
|
if (w = eA.isGlob = !0, U = !0, i === !0)
|
|
1427
1427
|
continue;
|
|
1428
1428
|
break;
|
|
@@ -1453,7 +1453,7 @@ var LQ = m((J3, vQ) => {
|
|
|
1453
1453
|
_ = eA.backslashes = !0, T = uA();
|
|
1454
1454
|
continue;
|
|
1455
1455
|
}
|
|
1456
|
-
if (T ===
|
|
1456
|
+
if (T === bQ) {
|
|
1457
1457
|
U = !0;
|
|
1458
1458
|
break;
|
|
1459
1459
|
}
|
|
@@ -1506,15 +1506,15 @@ var LQ = m((J3, vQ) => {
|
|
|
1506
1506
|
});
|
|
1507
1507
|
|
|
1508
1508
|
// ../node_modules/picomatch/lib/parse.js
|
|
1509
|
-
var PQ = m((
|
|
1509
|
+
var PQ = m((T4, YQ) => {
|
|
1510
1510
|
"use strict";
|
|
1511
|
-
var
|
|
1512
|
-
MAX_LENGTH:
|
|
1511
|
+
var kn = Hi(), le = ji(), {
|
|
1512
|
+
MAX_LENGTH: bn,
|
|
1513
1513
|
POSIX_REGEX_SOURCE: OR,
|
|
1514
1514
|
REGEX_NON_SPECIAL_CHARS: TR,
|
|
1515
1515
|
REGEX_SPECIAL_CHARS_BACKREF: HR,
|
|
1516
1516
|
REPLACEMENTS: xQ
|
|
1517
|
-
} =
|
|
1517
|
+
} = kn, jR = /* @__PURE__ */ s((t, A) => {
|
|
1518
1518
|
if (typeof A.expandRange == "function")
|
|
1519
1519
|
return A.expandRange(...t, A);
|
|
1520
1520
|
t.sort();
|
|
@@ -1530,18 +1530,18 @@ var PQ = m((T3, YQ) => {
|
|
|
1530
1530
|
if (typeof t != "string")
|
|
1531
1531
|
throw new TypeError("Expected a string");
|
|
1532
1532
|
t = xQ[t] || t;
|
|
1533
|
-
let e = { ...A }, r = typeof e.maxLength == "number" ? Math.min(
|
|
1533
|
+
let e = { ...A }, r = typeof e.maxLength == "number" ? Math.min(bn, e.maxLength) : bn, i = t.length;
|
|
1534
1534
|
if (i > r)
|
|
1535
1535
|
throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);
|
|
1536
|
-
let n = { type: "bos", value: "", output: e.prepend || "" }, o = [n], g = e.capture ? "" : "?:", C = le.isWindows(A), I =
|
|
1537
|
-
E =
|
|
1536
|
+
let n = { type: "bos", value: "", output: e.prepend || "" }, o = [n], g = e.capture ? "" : "?:", C = le.isWindows(A), I = kn.globChars(C),
|
|
1537
|
+
E = kn.extglobChars(I), {
|
|
1538
1538
|
DOT_LITERAL: Q,
|
|
1539
1539
|
PLUS_LITERAL: B,
|
|
1540
1540
|
SLASH_LITERAL: p,
|
|
1541
1541
|
ONE_CHAR: w,
|
|
1542
1542
|
DOTS_SLASH: D,
|
|
1543
1543
|
NO_DOT: N,
|
|
1544
|
-
NO_DOT_SLASH:
|
|
1544
|
+
NO_DOT_SLASH: k,
|
|
1545
1545
|
NO_DOTS_SLASH: _,
|
|
1546
1546
|
QMARK: L,
|
|
1547
1547
|
QMARK_NO_DOT: J,
|
|
@@ -1550,7 +1550,7 @@ var PQ = m((T3, YQ) => {
|
|
|
1550
1550
|
} = I, q = /* @__PURE__ */ s((P) => `(${g}(?:(?!${Z}${P.dot ? D : Q}).)*?)`, "globstar"), T = e.dot ? "" : N, eA = e.dot ? L : J, mA = e.
|
|
1551
1551
|
bash === !0 ? q(e) : U;
|
|
1552
1552
|
e.capture && (mA = `(${mA})`), typeof e.noext == "boolean" && (e.noextglob = e.noext);
|
|
1553
|
-
let
|
|
1553
|
+
let b = {
|
|
1554
1554
|
input: t,
|
|
1555
1555
|
index: -1,
|
|
1556
1556
|
start: 0,
|
|
@@ -1567,27 +1567,27 @@ var PQ = m((T3, YQ) => {
|
|
|
1567
1567
|
globstar: !1,
|
|
1568
1568
|
tokens: o
|
|
1569
1569
|
};
|
|
1570
|
-
t = le.removePrefix(t,
|
|
1571
|
-
let uA = [], BA = [], Se = [], K = n, F, GA = /* @__PURE__ */ s(() =>
|
|
1572
|
-
JA =
|
|
1573
|
-
|
|
1570
|
+
t = le.removePrefix(t, b), i = t.length;
|
|
1571
|
+
let uA = [], BA = [], Se = [], K = n, F, GA = /* @__PURE__ */ s(() => b.index === i - 1, "eos"), gA = b.peek = (P = 1) => t[b.index + P],
|
|
1572
|
+
JA = b.advance = () => t[++b.index] || "", Ce = /* @__PURE__ */ s(() => t.slice(b.index + 1), "remaining"), LA = /* @__PURE__ */ s((P = "", IA = 0) => {
|
|
1573
|
+
b.consumed += P, b.index += IA;
|
|
1574
1574
|
}, "consume"), Zt = /* @__PURE__ */ s((P) => {
|
|
1575
|
-
|
|
1575
|
+
b.output += P.output != null ? P.output : P.value, LA(P.value);
|
|
1576
1576
|
}, "append"), Br = /* @__PURE__ */ s(() => {
|
|
1577
1577
|
let P = 1;
|
|
1578
1578
|
for (; gA() === "!" && (gA(2) !== "(" || gA(3) === "?"); )
|
|
1579
|
-
JA(),
|
|
1580
|
-
return P % 2 === 0 ? !1 : (
|
|
1579
|
+
JA(), b.start++, P++;
|
|
1580
|
+
return P % 2 === 0 ? !1 : (b.negated = !0, b.start++, !0);
|
|
1581
1581
|
}, "negate"), Kt = /* @__PURE__ */ s((P) => {
|
|
1582
|
-
|
|
1582
|
+
b[P]++, Se.push(P);
|
|
1583
1583
|
}, "increment"), it = /* @__PURE__ */ s((P) => {
|
|
1584
|
-
|
|
1584
|
+
b[P]--, Se.pop();
|
|
1585
1585
|
}, "decrement"), nA = /* @__PURE__ */ s((P) => {
|
|
1586
1586
|
if (K.type === "globstar") {
|
|
1587
|
-
let IA =
|
|
1587
|
+
let IA = b.braces > 0 && (P.type === "comma" || P.type === "brace"), x = P.extglob === !0 || uA.length && (P.type === "pipe" || P.type ===
|
|
1588
1588
|
"paren");
|
|
1589
|
-
P.type !== "slash" && P.type !== "paren" && !IA && !x && (
|
|
1590
|
-
"*", K.output = mA,
|
|
1589
|
+
P.type !== "slash" && P.type !== "paren" && !IA && !x && (b.output = b.output.slice(0, -K.output.length), K.type = "star", K.value =
|
|
1590
|
+
"*", K.output = mA, b.output += K.output);
|
|
1591
1591
|
}
|
|
1592
1592
|
if (uA.length && P.type !== "paren" && (uA[uA.length - 1].inner += P.value), (P.value || P.output) && Zt(P), K && K.type === "text" &&
|
|
1593
1593
|
P.type === "text") {
|
|
@@ -1597,9 +1597,9 @@ var PQ = m((T3, YQ) => {
|
|
|
1597
1597
|
P.prev = K, o.push(P), K = P;
|
|
1598
1598
|
}, "push"), Ft = /* @__PURE__ */ s((P, IA) => {
|
|
1599
1599
|
let x = { ...E[IA], conditions: 1, inner: "" };
|
|
1600
|
-
x.prev = K, x.parens =
|
|
1600
|
+
x.prev = K, x.parens = b.parens, x.output = b.output;
|
|
1601
1601
|
let M = (e.capture ? "(" : "") + x.open;
|
|
1602
|
-
Kt("parens"), nA({ type: P, value: IA, output:
|
|
1602
|
+
Kt("parens"), nA({ type: P, value: IA, output: b.output ? "" : w }), nA({ type: "paren", extglob: !0, value: JA(), output: M }), uA.push(
|
|
1603
1603
|
x);
|
|
1604
1604
|
}, "extglobOpen"), OA = /* @__PURE__ */ s((P) => {
|
|
1605
1605
|
let IA = P.close + (e.capture ? ")" : ""), x;
|
|
@@ -1610,7 +1610,7 @@ var PQ = m((T3, YQ) => {
|
|
|
1610
1610
|
let dA = eC(x, { ...A, fastpaths: !1 }).output;
|
|
1611
1611
|
IA = P.close = `)${dA})${M})`;
|
|
1612
1612
|
}
|
|
1613
|
-
P.prev.type === "bos" && (
|
|
1613
|
+
P.prev.type === "bos" && (b.negatedExtglob = !0);
|
|
1614
1614
|
}
|
|
1615
1615
|
nA({ type: "paren", extglob: !0, value: F, output: IA }), it("parens");
|
|
1616
1616
|
}, "extglobClose");
|
|
@@ -1619,7 +1619,7 @@ var PQ = m((T3, YQ) => {
|
|
|
1619
1619
|
"") : Qr === 0 ? eA + (KA ? L.repeat(KA.length) : "") : L.repeat(dA.length) : xA === "." ? Q.repeat(dA.length) : xA === "*" ? M ? M + xA +
|
|
1620
1620
|
(KA ? mA : "") : mA : M ? x : `\\${x}`);
|
|
1621
1621
|
return P === !0 && (e.unescape === !0 ? IA = IA.replace(/\\/g, "") : IA = IA.replace(/\\+/g, (x) => x.length % 2 === 0 ? "\\\\" : x ? "\
|
|
1622
|
-
\\" : "")), IA === t && e.contains === !0 ? (
|
|
1622
|
+
\\" : "")), IA === t && e.contains === !0 ? (b.output = t, b) : (b.output = le.wrapOutput(IA, b, A), b);
|
|
1623
1623
|
}
|
|
1624
1624
|
for (; !GA(); ) {
|
|
1625
1625
|
if (F = JA(), F === "\0")
|
|
@@ -1633,19 +1633,19 @@ var PQ = m((T3, YQ) => {
|
|
|
1633
1633
|
continue;
|
|
1634
1634
|
}
|
|
1635
1635
|
let M = /^\\+/.exec(Ce()), dA = 0;
|
|
1636
|
-
if (M && M[0].length > 2 && (dA = M[0].length,
|
|
1637
|
-
|
|
1636
|
+
if (M && M[0].length > 2 && (dA = M[0].length, b.index += dA, dA % 2 !== 0 && (F += "\\")), e.unescape === !0 ? F = JA() : F += JA(),
|
|
1637
|
+
b.brackets === 0) {
|
|
1638
1638
|
nA({ type: "text", value: F });
|
|
1639
1639
|
continue;
|
|
1640
1640
|
}
|
|
1641
1641
|
}
|
|
1642
|
-
if (
|
|
1642
|
+
if (b.brackets > 0 && (F !== "]" || K.value === "[" || K.value === "[^")) {
|
|
1643
1643
|
if (e.posix !== !1 && F === ":") {
|
|
1644
1644
|
let x = K.value.slice(1);
|
|
1645
1645
|
if (x.includes("[") && (K.posix = !0, x.includes(":"))) {
|
|
1646
1646
|
let M = K.value.lastIndexOf("["), dA = K.value.slice(0, M), xA = K.value.slice(M + 2), KA = OR[xA];
|
|
1647
1647
|
if (KA) {
|
|
1648
|
-
K.value = dA + KA,
|
|
1648
|
+
K.value = dA + KA, b.backtrack = !0, JA(), !n.output && o.indexOf(K) === 1 && (n.output = w);
|
|
1649
1649
|
continue;
|
|
1650
1650
|
}
|
|
1651
1651
|
}
|
|
@@ -1654,12 +1654,12 @@ var PQ = m((T3, YQ) => {
|
|
|
1654
1654
|
`\\${F}`), e.posix === !0 && F === "!" && K.value === "[" && (F = "^"), K.value += F, Zt({ value: F });
|
|
1655
1655
|
continue;
|
|
1656
1656
|
}
|
|
1657
|
-
if (
|
|
1657
|
+
if (b.quotes === 1 && F !== '"') {
|
|
1658
1658
|
F = le.escapeRegex(F), K.value += F, Zt({ value: F });
|
|
1659
1659
|
continue;
|
|
1660
1660
|
}
|
|
1661
1661
|
if (F === '"') {
|
|
1662
|
-
|
|
1662
|
+
b.quotes = b.quotes === 1 ? 0 : 1, e.keepQuotes === !0 && nA({ type: "text", value: F });
|
|
1663
1663
|
continue;
|
|
1664
1664
|
}
|
|
1665
1665
|
if (F === "(") {
|
|
@@ -1667,14 +1667,14 @@ var PQ = m((T3, YQ) => {
|
|
|
1667
1667
|
continue;
|
|
1668
1668
|
}
|
|
1669
1669
|
if (F === ")") {
|
|
1670
|
-
if (
|
|
1670
|
+
if (b.parens === 0 && e.strictBrackets === !0)
|
|
1671
1671
|
throw new SyntaxError(Pr("opening", "("));
|
|
1672
1672
|
let x = uA[uA.length - 1];
|
|
1673
|
-
if (x &&
|
|
1673
|
+
if (x && b.parens === x.parens + 1) {
|
|
1674
1674
|
OA(uA.pop());
|
|
1675
1675
|
continue;
|
|
1676
1676
|
}
|
|
1677
|
-
nA({ type: "paren", value: F, output:
|
|
1677
|
+
nA({ type: "paren", value: F, output: b.parens ? ")" : "\\)" }), it("parens");
|
|
1678
1678
|
continue;
|
|
1679
1679
|
}
|
|
1680
1680
|
if (F === "[") {
|
|
@@ -1692,7 +1692,7 @@ var PQ = m((T3, YQ) => {
|
|
|
1692
1692
|
nA({ type: "text", value: F, output: `\\${F}` });
|
|
1693
1693
|
continue;
|
|
1694
1694
|
}
|
|
1695
|
-
if (
|
|
1695
|
+
if (b.brackets === 0) {
|
|
1696
1696
|
if (e.strictBrackets === !0)
|
|
1697
1697
|
throw new SyntaxError(Pr("opening", "["));
|
|
1698
1698
|
nA({ type: "text", value: F, output: `\\${F}` });
|
|
@@ -1704,11 +1704,11 @@ var PQ = m((T3, YQ) => {
|
|
|
1704
1704
|
le.hasRegexChars(x))
|
|
1705
1705
|
continue;
|
|
1706
1706
|
let M = le.escapeRegex(K.value);
|
|
1707
|
-
if (
|
|
1708
|
-
|
|
1707
|
+
if (b.output = b.output.slice(0, -K.value.length), e.literalBrackets === !0) {
|
|
1708
|
+
b.output += M, K.value = M;
|
|
1709
1709
|
continue;
|
|
1710
1710
|
}
|
|
1711
|
-
K.value = `(${g}${M}|${K.value})`,
|
|
1711
|
+
K.value = `(${g}${M}|${K.value})`, b.output += K.value;
|
|
1712
1712
|
continue;
|
|
1713
1713
|
}
|
|
1714
1714
|
if (F === "{" && e.nobrace !== !0) {
|
|
@@ -1717,8 +1717,8 @@ var PQ = m((T3, YQ) => {
|
|
|
1717
1717
|
type: "brace",
|
|
1718
1718
|
value: F,
|
|
1719
1719
|
output: "(",
|
|
1720
|
-
outputIndex:
|
|
1721
|
-
tokensIndex:
|
|
1720
|
+
outputIndex: b.output.length,
|
|
1721
|
+
tokensIndex: b.tokens.length
|
|
1722
1722
|
};
|
|
1723
1723
|
BA.push(x), nA(x);
|
|
1724
1724
|
continue;
|
|
@@ -1734,13 +1734,13 @@ var PQ = m((T3, YQ) => {
|
|
|
1734
1734
|
let dA = o.slice(), xA = [];
|
|
1735
1735
|
for (let KA = dA.length - 1; KA >= 0 && (o.pop(), dA[KA].type !== "brace"); KA--)
|
|
1736
1736
|
dA[KA].type !== "dots" && xA.unshift(dA[KA].value);
|
|
1737
|
-
M = jR(xA, e),
|
|
1737
|
+
M = jR(xA, e), b.backtrack = !0;
|
|
1738
1738
|
}
|
|
1739
1739
|
if (x.comma !== !0 && x.dots !== !0) {
|
|
1740
|
-
let dA =
|
|
1741
|
-
x.value = x.output = "\\{", F = M = "\\}",
|
|
1740
|
+
let dA = b.output.slice(0, x.outputIndex), xA = b.tokens.slice(x.tokensIndex);
|
|
1741
|
+
x.value = x.output = "\\{", F = M = "\\}", b.output = dA;
|
|
1742
1742
|
for (let KA of xA)
|
|
1743
|
-
|
|
1743
|
+
b.output += KA.output || KA.value;
|
|
1744
1744
|
}
|
|
1745
1745
|
nA({ type: "brace", value: F, output: M }), it("braces"), BA.pop();
|
|
1746
1746
|
continue;
|
|
@@ -1755,21 +1755,21 @@ var PQ = m((T3, YQ) => {
|
|
|
1755
1755
|
continue;
|
|
1756
1756
|
}
|
|
1757
1757
|
if (F === "/") {
|
|
1758
|
-
if (K.type === "dot" &&
|
|
1759
|
-
|
|
1758
|
+
if (K.type === "dot" && b.index === b.start + 1) {
|
|
1759
|
+
b.start = b.index + 1, b.consumed = "", b.output = "", o.pop(), K = n;
|
|
1760
1760
|
continue;
|
|
1761
1761
|
}
|
|
1762
1762
|
nA({ type: "slash", value: F, output: p });
|
|
1763
1763
|
continue;
|
|
1764
1764
|
}
|
|
1765
1765
|
if (F === ".") {
|
|
1766
|
-
if (
|
|
1766
|
+
if (b.braces > 0 && K.type === "dot") {
|
|
1767
1767
|
K.value === "." && (K.output = Q);
|
|
1768
1768
|
let x = BA[BA.length - 1];
|
|
1769
1769
|
K.type = "dots", K.output += F, K.value += F, x.dots = !0;
|
|
1770
1770
|
continue;
|
|
1771
1771
|
}
|
|
1772
|
-
if (
|
|
1772
|
+
if (b.braces + b.parens === 0 && K.type !== "bos" && K.type !== "slash") {
|
|
1773
1773
|
nA({ type: "text", value: F, output: Q });
|
|
1774
1774
|
continue;
|
|
1775
1775
|
}
|
|
@@ -1801,7 +1801,7 @@ var PQ = m((T3, YQ) => {
|
|
|
1801
1801
|
Ft("negate", F);
|
|
1802
1802
|
continue;
|
|
1803
1803
|
}
|
|
1804
|
-
if (e.nonegate !== !0 &&
|
|
1804
|
+
if (e.nonegate !== !0 && b.index === 0) {
|
|
1805
1805
|
Br();
|
|
1806
1806
|
continue;
|
|
1807
1807
|
}
|
|
@@ -1815,7 +1815,7 @@ var PQ = m((T3, YQ) => {
|
|
|
1815
1815
|
nA({ type: "plus", value: F, output: B });
|
|
1816
1816
|
continue;
|
|
1817
1817
|
}
|
|
1818
|
-
if (K && (K.type === "bracket" || K.type === "paren" || K.type === "brace") ||
|
|
1818
|
+
if (K && (K.type === "bracket" || K.type === "paren" || K.type === "brace") || b.parens > 0) {
|
|
1819
1819
|
nA({ type: "plus", value: F });
|
|
1820
1820
|
continue;
|
|
1821
1821
|
}
|
|
@@ -1833,11 +1833,11 @@ var PQ = m((T3, YQ) => {
|
|
|
1833
1833
|
if (F !== "*") {
|
|
1834
1834
|
(F === "$" || F === "^") && (F = `\\${F}`);
|
|
1835
1835
|
let x = TR.exec(Ce());
|
|
1836
|
-
x && (F += x[0],
|
|
1836
|
+
x && (F += x[0], b.index += x[0].length), nA({ type: "text", value: F });
|
|
1837
1837
|
continue;
|
|
1838
1838
|
}
|
|
1839
1839
|
if (K && (K.type === "globstar" || K.star === !0)) {
|
|
1840
|
-
K.type = "star", K.star = !0, K.value += F, K.output = mA,
|
|
1840
|
+
K.type = "star", K.star = !0, K.value += F, K.output = mA, b.backtrack = !0, b.globstar = !0, LA(F);
|
|
1841
1841
|
continue;
|
|
1842
1842
|
}
|
|
1843
1843
|
let P = Ce();
|
|
@@ -1855,38 +1855,38 @@ var PQ = m((T3, YQ) => {
|
|
|
1855
1855
|
nA({ type: "star", value: F, output: "" });
|
|
1856
1856
|
continue;
|
|
1857
1857
|
}
|
|
1858
|
-
let KA =
|
|
1858
|
+
let KA = b.braces > 0 && (x.type === "comma" || x.type === "brace"), Qr = uA.length && (x.type === "pipe" || x.type === "paren");
|
|
1859
1859
|
if (!dA && x.type !== "paren" && !KA && !Qr) {
|
|
1860
1860
|
nA({ type: "star", value: F, output: "" });
|
|
1861
1861
|
continue;
|
|
1862
1862
|
}
|
|
1863
1863
|
for (; P.slice(0, 3) === "/**"; ) {
|
|
1864
|
-
let oi = t[
|
|
1864
|
+
let oi = t[b.index + 4];
|
|
1865
1865
|
if (oi && oi !== "/")
|
|
1866
1866
|
break;
|
|
1867
1867
|
P = P.slice(3), LA("/**", 3);
|
|
1868
1868
|
}
|
|
1869
1869
|
if (x.type === "bos" && GA()) {
|
|
1870
|
-
K.type = "globstar", K.value += F, K.output = q(e),
|
|
1870
|
+
K.type = "globstar", K.value += F, K.output = q(e), b.output = K.output, b.globstar = !0, LA(F);
|
|
1871
1871
|
continue;
|
|
1872
1872
|
}
|
|
1873
1873
|
if (x.type === "slash" && x.prev.type !== "bos" && !xA && GA()) {
|
|
1874
|
-
|
|
1875
|
-
strictSlashes ? ")" : "|$)"), K.value += F,
|
|
1874
|
+
b.output = b.output.slice(0, -(x.output + K.output).length), x.output = `(?:${x.output}`, K.type = "globstar", K.output = q(e) + (e.
|
|
1875
|
+
strictSlashes ? ")" : "|$)"), K.value += F, b.globstar = !0, b.output += x.output + K.output, LA(F);
|
|
1876
1876
|
continue;
|
|
1877
1877
|
}
|
|
1878
1878
|
if (x.type === "slash" && x.prev.type !== "bos" && P[0] === "/") {
|
|
1879
1879
|
let oi = P[1] !== void 0 ? "|$" : "";
|
|
1880
|
-
|
|
1881
|
-
|${p}${oi})`, K.value += F,
|
|
1880
|
+
b.output = b.output.slice(0, -(x.output + K.output).length), x.output = `(?:${x.output}`, K.type = "globstar", K.output = `${q(e)}${p}\
|
|
1881
|
+
|${p}${oi})`, K.value += F, b.output += x.output + K.output, b.globstar = !0, LA(F + JA()), nA({ type: "slash", value: "/", output: "" });
|
|
1882
1882
|
continue;
|
|
1883
1883
|
}
|
|
1884
1884
|
if (x.type === "bos" && P[0] === "/") {
|
|
1885
|
-
K.type = "globstar", K.value += F, K.output = `(?:^|${p}|${q(e)}${p})`,
|
|
1885
|
+
K.type = "globstar", K.value += F, K.output = `(?:^|${p}|${q(e)}${p})`, b.output = K.output, b.globstar = !0, LA(F + JA()), nA({ type: "\
|
|
1886
1886
|
slash", value: "/", output: "" });
|
|
1887
1887
|
continue;
|
|
1888
1888
|
}
|
|
1889
|
-
|
|
1889
|
+
b.output = b.output.slice(0, -K.output.length), K.type = "globstar", K.output = q(e), K.value += F, b.output += K.output, b.globstar =
|
|
1890
1890
|
!0, LA(F);
|
|
1891
1891
|
continue;
|
|
1892
1892
|
}
|
|
@@ -1899,31 +1899,31 @@ slash", value: "/", output: "" });
|
|
|
1899
1899
|
IA.output = F, nA(IA);
|
|
1900
1900
|
continue;
|
|
1901
1901
|
}
|
|
1902
|
-
(
|
|
1903
|
-
(
|
|
1902
|
+
(b.index === b.start || K.type === "slash" || K.type === "dot") && (K.type === "dot" ? (b.output += k, K.output += k) : e.dot === !0 ?
|
|
1903
|
+
(b.output += _, K.output += _) : (b.output += T, K.output += T), gA() !== "*" && (b.output += w, K.output += w)), nA(IA);
|
|
1904
1904
|
}
|
|
1905
|
-
for (;
|
|
1905
|
+
for (; b.brackets > 0; ) {
|
|
1906
1906
|
if (e.strictBrackets === !0) throw new SyntaxError(Pr("closing", "]"));
|
|
1907
|
-
|
|
1907
|
+
b.output = le.escapeLast(b.output, "["), it("brackets");
|
|
1908
1908
|
}
|
|
1909
|
-
for (;
|
|
1909
|
+
for (; b.parens > 0; ) {
|
|
1910
1910
|
if (e.strictBrackets === !0) throw new SyntaxError(Pr("closing", ")"));
|
|
1911
|
-
|
|
1911
|
+
b.output = le.escapeLast(b.output, "("), it("parens");
|
|
1912
1912
|
}
|
|
1913
|
-
for (;
|
|
1913
|
+
for (; b.braces > 0; ) {
|
|
1914
1914
|
if (e.strictBrackets === !0) throw new SyntaxError(Pr("closing", "}"));
|
|
1915
|
-
|
|
1915
|
+
b.output = le.escapeLast(b.output, "{"), it("braces");
|
|
1916
1916
|
}
|
|
1917
|
-
if (e.strictSlashes !== !0 && (K.type === "star" || K.type === "bracket") && nA({ type: "maybe_slash", value: "", output: `${p}?` }),
|
|
1917
|
+
if (e.strictSlashes !== !0 && (K.type === "star" || K.type === "bracket") && nA({ type: "maybe_slash", value: "", output: `${p}?` }), b.
|
|
1918
1918
|
backtrack === !0) {
|
|
1919
|
-
|
|
1920
|
-
for (let P of
|
|
1921
|
-
|
|
1919
|
+
b.output = "";
|
|
1920
|
+
for (let P of b.tokens)
|
|
1921
|
+
b.output += P.output != null ? P.output : P.value, P.suffix && (b.output += P.suffix);
|
|
1922
1922
|
}
|
|
1923
|
-
return
|
|
1923
|
+
return b;
|
|
1924
1924
|
}, "parse");
|
|
1925
1925
|
eC.fastpaths = (t, A) => {
|
|
1926
|
-
let e = { ...A }, r = typeof e.maxLength == "number" ? Math.min(
|
|
1926
|
+
let e = { ...A }, r = typeof e.maxLength == "number" ? Math.min(bn, e.maxLength) : bn, i = t.length;
|
|
1927
1927
|
if (i > r)
|
|
1928
1928
|
throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);
|
|
1929
1929
|
t = xQ[t] || t;
|
|
@@ -1937,10 +1937,10 @@ slash", value: "/", output: "" });
|
|
|
1937
1937
|
NO_DOTS_SLASH: B,
|
|
1938
1938
|
STAR: p,
|
|
1939
1939
|
START_ANCHOR: w
|
|
1940
|
-
} =
|
|
1940
|
+
} = kn.globChars(n), D = e.dot ? Q : E, N = e.dot ? B : E, k = e.capture ? "" : "?:", _ = { negated: !1, prefix: "" }, L = e.bash === !0 ?
|
|
1941
1941
|
".*?" : p;
|
|
1942
1942
|
e.capture && (L = `(${L})`);
|
|
1943
|
-
let J = /* @__PURE__ */ s((T) => T.noglobstar === !0 ? L : `(${
|
|
1943
|
+
let J = /* @__PURE__ */ s((T) => T.noglobstar === !0 ? L : `(${k}(?:(?!${w}${T.dot ? I : o}).)*?)`, "globstar"), U = /* @__PURE__ */ s((T) => {
|
|
1944
1944
|
switch (T) {
|
|
1945
1945
|
case "*":
|
|
1946
1946
|
return `${D}${C}${L}`;
|
|
@@ -1972,12 +1972,12 @@ slash", value: "/", output: "" });
|
|
|
1972
1972
|
});
|
|
1973
1973
|
|
|
1974
1974
|
// ../node_modules/picomatch/lib/picomatch.js
|
|
1975
|
-
var _Q = m((
|
|
1975
|
+
var _Q = m((j4, UQ) => {
|
|
1976
1976
|
"use strict";
|
|
1977
1977
|
var qR = v("path"), zR = LQ(), tC = PQ(), rC = ji(), WR = Hi(), VR = /* @__PURE__ */ s((t) => t && typeof t == "object" && !Array.isArray(
|
|
1978
|
-
t), "isObject"),
|
|
1978
|
+
t), "isObject"), bA = /* @__PURE__ */ s((t, A, e = !1) => {
|
|
1979
1979
|
if (Array.isArray(t)) {
|
|
1980
|
-
let E = t.map((B) =>
|
|
1980
|
+
let E = t.map((B) => bA(B, A, e));
|
|
1981
1981
|
return /* @__PURE__ */ s((B) => {
|
|
1982
1982
|
for (let p of E) {
|
|
1983
1983
|
let w = p(B);
|
|
@@ -1989,50 +1989,50 @@ var _Q = m((j3, UQ) => {
|
|
|
1989
1989
|
let r = VR(t) && t.tokens && t.input;
|
|
1990
1990
|
if (t === "" || typeof t != "string" && !r)
|
|
1991
1991
|
throw new TypeError("Expected pattern to be a non-empty string");
|
|
1992
|
-
let i = A || {}, n = rC.isWindows(A), o = r ?
|
|
1992
|
+
let i = A || {}, n = rC.isWindows(A), o = r ? bA.compileRe(t, A) : bA.makeRe(t, A, !1, !0), g = o.state;
|
|
1993
1993
|
delete o.state;
|
|
1994
1994
|
let C = /* @__PURE__ */ s(() => !1, "isIgnored");
|
|
1995
1995
|
if (i.ignore) {
|
|
1996
1996
|
let E = { ...A, ignore: null, onMatch: null, onResult: null };
|
|
1997
|
-
C =
|
|
1997
|
+
C = bA(i.ignore, E, e);
|
|
1998
1998
|
}
|
|
1999
1999
|
let I = /* @__PURE__ */ s((E, Q = !1) => {
|
|
2000
|
-
let { isMatch: B, match: p, output: w } =
|
|
2000
|
+
let { isMatch: B, match: p, output: w } = bA.test(E, o, A, { glob: t, posix: n }), D = { glob: t, state: g, regex: o, posix: n, input: E,
|
|
2001
2001
|
output: w, match: p, isMatch: B };
|
|
2002
2002
|
return typeof i.onResult == "function" && i.onResult(D), B === !1 ? (D.isMatch = !1, Q ? D : !1) : C(E) ? (typeof i.onIgnore == "funct\
|
|
2003
2003
|
ion" && i.onIgnore(D), D.isMatch = !1, Q ? D : !1) : (typeof i.onMatch == "function" && i.onMatch(D), Q ? D : !0);
|
|
2004
2004
|
}, "matcher");
|
|
2005
2005
|
return e && (I.state = g), I;
|
|
2006
2006
|
}, "picomatch");
|
|
2007
|
-
|
|
2007
|
+
bA.test = (t, A, e, { glob: r, posix: i } = {}) => {
|
|
2008
2008
|
if (typeof t != "string")
|
|
2009
2009
|
throw new TypeError("Expected input to be a string");
|
|
2010
2010
|
if (t === "")
|
|
2011
2011
|
return { isMatch: !1, output: "" };
|
|
2012
2012
|
let n = e || {}, o = n.format || (i ? rC.toPosixSlashes : null), g = t === r, C = g && o ? o(t) : t;
|
|
2013
|
-
return g === !1 && (C = o ? o(t) : t, g = C === r), (g === !1 || n.capture === !0) && (n.matchBase === !0 || n.basename === !0 ? g =
|
|
2013
|
+
return g === !1 && (C = o ? o(t) : t, g = C === r), (g === !1 || n.capture === !0) && (n.matchBase === !0 || n.basename === !0 ? g = bA.
|
|
2014
2014
|
matchBase(t, A, e, i) : g = A.exec(C)), { isMatch: !!g, match: g, output: C };
|
|
2015
2015
|
};
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2016
|
+
bA.matchBase = (t, A, e, r = rC.isWindows(e)) => (A instanceof RegExp ? A : bA.makeRe(A, e)).test(qR.basename(t));
|
|
2017
|
+
bA.isMatch = (t, A, e) => bA(A, e)(t);
|
|
2018
|
+
bA.parse = (t, A) => Array.isArray(t) ? t.map((e) => bA.parse(e, A)) : tC(t, { ...A, fastpaths: !1 });
|
|
2019
|
+
bA.scan = (t, A) => zR(t, A);
|
|
2020
|
+
bA.compileRe = (t, A, e = !1, r = !1) => {
|
|
2021
2021
|
if (e === !0)
|
|
2022
2022
|
return t.output;
|
|
2023
2023
|
let i = A || {}, n = i.contains ? "" : "^", o = i.contains ? "" : "$", g = `${n}(?:${t.output})${o}`;
|
|
2024
2024
|
t && t.negated === !0 && (g = `^(?!${g}).*$`);
|
|
2025
|
-
let C =
|
|
2025
|
+
let C = bA.toRegex(g, A);
|
|
2026
2026
|
return r === !0 && (C.state = t), C;
|
|
2027
2027
|
};
|
|
2028
|
-
|
|
2028
|
+
bA.makeRe = (t, A = {}, e = !1, r = !1) => {
|
|
2029
2029
|
if (!t || typeof t != "string")
|
|
2030
2030
|
throw new TypeError("Expected a non-empty string");
|
|
2031
2031
|
let i = { negated: !1, fastpaths: !0 };
|
|
2032
|
-
return A.fastpaths !== !1 && (t[0] === "." || t[0] === "*") && (i.output = tC.fastpaths(t, A)), i.output || (i = tC(t, A)),
|
|
2032
|
+
return A.fastpaths !== !1 && (t[0] === "." || t[0] === "*") && (i.output = tC.fastpaths(t, A)), i.output || (i = tC(t, A)), bA.compileRe(
|
|
2033
2033
|
i, A, e, r);
|
|
2034
2034
|
};
|
|
2035
|
-
|
|
2035
|
+
bA.toRegex = (t, A) => {
|
|
2036
2036
|
try {
|
|
2037
2037
|
let e = A || {};
|
|
2038
2038
|
return new RegExp(t, e.flags || (e.nocase ? "i" : ""));
|
|
@@ -2041,12 +2041,12 @@ ion" && i.onIgnore(D), D.isMatch = !1, Q ? D : !1) : (typeof i.onMatch == "funct
|
|
|
2041
2041
|
return /$^/;
|
|
2042
2042
|
}
|
|
2043
2043
|
};
|
|
2044
|
-
|
|
2045
|
-
UQ.exports =
|
|
2044
|
+
bA.constants = WR;
|
|
2045
|
+
UQ.exports = bA;
|
|
2046
2046
|
});
|
|
2047
2047
|
|
|
2048
2048
|
// ../node_modules/picomatch/index.js
|
|
2049
|
-
var Nn = m((
|
|
2049
|
+
var Nn = m((z4, GQ) => {
|
|
2050
2050
|
"use strict";
|
|
2051
2051
|
GQ.exports = _Q();
|
|
2052
2052
|
});
|
|
@@ -2495,11 +2495,11 @@ var On = m((FA) => {
|
|
|
2495
2495
|
}
|
|
2496
2496
|
s(df, "makeDefaultStats");
|
|
2497
2497
|
FA.makeDefaultStats = df;
|
|
2498
|
-
function
|
|
2498
|
+
function kv() {
|
|
2499
2499
|
return pf(df());
|
|
2500
2500
|
}
|
|
2501
|
-
s(
|
|
2502
|
-
FA.makeEmptyStats =
|
|
2501
|
+
s(kv, "makeEmptyStats");
|
|
2502
|
+
FA.makeEmptyStats = kv;
|
|
2503
2503
|
function pf(t) {
|
|
2504
2504
|
for (let A in t)
|
|
2505
2505
|
if (Object.prototype.hasOwnProperty.call(t, A)) {
|
|
@@ -2510,7 +2510,7 @@ var On = m((FA) => {
|
|
|
2510
2510
|
}
|
|
2511
2511
|
s(pf, "clearStats");
|
|
2512
2512
|
FA.clearStats = pf;
|
|
2513
|
-
function
|
|
2513
|
+
function bv(t) {
|
|
2514
2514
|
let A = new Jn();
|
|
2515
2515
|
for (let e in t)
|
|
2516
2516
|
if (Object.prototype.hasOwnProperty.call(t, e)) {
|
|
@@ -2520,8 +2520,8 @@ var On = m((FA) => {
|
|
|
2520
2520
|
return A.atimeNs = A.atimeMs * BigInt(1e6), A.mtimeNs = A.mtimeMs * BigInt(1e6), A.ctimeNs = A.ctimeMs * BigInt(1e6), A.birthtimeNs = A.
|
|
2521
2521
|
birthtimeMs * BigInt(1e6), A;
|
|
2522
2522
|
}
|
|
2523
|
-
s(
|
|
2524
|
-
FA.convertToBigIntStats =
|
|
2523
|
+
s(bv, "convertToBigIntStats");
|
|
2524
|
+
FA.convertToBigIntStats = bv;
|
|
2525
2525
|
function Nv(t, A) {
|
|
2526
2526
|
if (t.atimeMs !== A.atimeMs || t.birthtimeMs !== A.birthtimeMs || t.blksize !== A.blksize || t.blocks !== A.blocks || t.ctimeMs !== A.ctimeMs ||
|
|
2527
2527
|
t.dev !== A.dev || t.gid !== A.gid || t.ino !== A.ino || t.isBlockDevice() !== A.isBlockDevice() || t.isCharacterDevice() !== A.isCharacterDevice() ||
|
|
@@ -3508,7 +3508,7 @@ var xt = m((zn) => {
|
|
|
3508
3508
|
});
|
|
3509
3509
|
|
|
3510
3510
|
// ../node_modules/@yarnpkg/fslib/lib/algorithms/watchFile/CustomStatWatcher.js
|
|
3511
|
-
var
|
|
3511
|
+
var kf = m((we) => {
|
|
3512
3512
|
"use strict";
|
|
3513
3513
|
Object.defineProperty(we, "__esModule", { value: !0 });
|
|
3514
3514
|
we.CustomStatWatcher = we.assertStatus = we.Status = we.Event = void 0;
|
|
@@ -3616,7 +3616,7 @@ var yC = m((Yt) => {
|
|
|
3616
3616
|
"use strict";
|
|
3617
3617
|
Object.defineProperty(Yt, "__esModule", { value: !0 });
|
|
3618
3618
|
Yt.unwatchAllFiles = Yt.unwatchFile = Yt.watchFile = void 0;
|
|
3619
|
-
var uL =
|
|
3619
|
+
var uL = kf(), Vn = /* @__PURE__ */ new WeakMap();
|
|
3620
3620
|
function BL(t, A, e, r) {
|
|
3621
3621
|
let i, n, o, g;
|
|
3622
3622
|
switch (typeof e) {
|
|
@@ -3639,7 +3639,7 @@ var yC = m((Yt) => {
|
|
|
3639
3639
|
}
|
|
3640
3640
|
s(BL, "watchFile");
|
|
3641
3641
|
Yt.watchFile = BL;
|
|
3642
|
-
function
|
|
3642
|
+
function bf(t, A, e) {
|
|
3643
3643
|
let r = Vn.get(t);
|
|
3644
3644
|
if (typeof r > "u")
|
|
3645
3645
|
return;
|
|
@@ -3647,13 +3647,13 @@ var yC = m((Yt) => {
|
|
|
3647
3647
|
typeof i > "u" || (typeof e > "u" ? i.unregisterAllChangeListeners() : i.unregisterChangeListener(e), i.hasChangeListeners() || (i.stop(),
|
|
3648
3648
|
r.delete(A)));
|
|
3649
3649
|
}
|
|
3650
|
-
s(
|
|
3651
|
-
Yt.unwatchFile =
|
|
3650
|
+
s(bf, "unwatchFile");
|
|
3651
|
+
Yt.unwatchFile = bf;
|
|
3652
3652
|
function QL(t) {
|
|
3653
3653
|
let A = Vn.get(t);
|
|
3654
3654
|
if (!(typeof A > "u"))
|
|
3655
3655
|
for (let e of A.keys())
|
|
3656
|
-
|
|
3656
|
+
bf(t, e);
|
|
3657
3657
|
}
|
|
3658
3658
|
s(QL, "unwatchAllFiles");
|
|
3659
3659
|
Yt.unwatchAllFiles = QL;
|
|
@@ -4048,16 +4048,16 @@ var $n = m((Et) => {
|
|
|
4048
4048
|
if (this.libzip.statIndex(this.zip, i, 0, 0, n) === -1)
|
|
4049
4049
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|
4050
4050
|
let g = this.stats.uid, C = this.stats.gid, I = this.libzip.struct.statSize(n) >>> 0, E = 512, Q = Math.ceil(I / E), B = (this.libzip.
|
|
4051
|
-
struct.statMtime(n) >>> 0) * 1e3, p = B, w = B, D = B, N = new Date(p),
|
|
4051
|
+
struct.statMtime(n) >>> 0) * 1e3, p = B, w = B, D = B, N = new Date(p), k = new Date(w), _ = new Date(D), L = new Date(B), J = this.
|
|
4052
4052
|
listings.has(e) ? lt.S_IFDIR : this.isSymbolicLink(i) ? lt.S_IFLNK : lt.S_IFREG, U = J === lt.S_IFDIR ? 493 : 420, Z = J | this.getUnixMode(
|
|
4053
4053
|
i, U) & 511, q = this.libzip.struct.statCrc(n), T = Object.assign(new ar.StatEntry(), { uid: g, gid: C, size: I, blksize: E, blocks: Q,
|
|
4054
|
-
atime: N, birthtime:
|
|
4054
|
+
atime: N, birthtime: k, ctime: _, mtime: L, atimeMs: p, birthtimeMs: w, ctimeMs: D, mtimeMs: B, mode: Z, crc: q });
|
|
4055
4055
|
return r.bigint === !0 ? ar.convertToBigIntStats(T) : T;
|
|
4056
4056
|
}
|
|
4057
4057
|
if (this.listings.has(e)) {
|
|
4058
4058
|
let n = this.stats.uid, o = this.stats.gid, g = 0, C = 512, I = 0, E = this.stats.mtimeMs, Q = this.stats.mtimeMs, B = this.stats.mtimeMs,
|
|
4059
|
-
p = this.stats.mtimeMs, w = new Date(E), D = new Date(Q), N = new Date(B),
|
|
4060
|
-
new ar.StatEntry(), { uid: n, gid: o, size: g, blksize: C, blocks: I, atime: w, birthtime: D, ctime: N, mtime:
|
|
4059
|
+
p = this.stats.mtimeMs, w = new Date(E), D = new Date(Q), N = new Date(B), k = new Date(p), _ = lt.S_IFDIR | 493, J = Object.assign(
|
|
4060
|
+
new ar.StatEntry(), { uid: n, gid: o, size: g, blksize: C, blocks: I, atime: w, birthtime: D, ctime: N, mtime: k, atimeMs: E, birthtimeMs: Q,
|
|
4061
4061
|
ctimeMs: B, mtimeMs: p, mode: _, crc: 0 });
|
|
4062
4062
|
return r.bigint === !0 ? ar.convertToBigIntStats(J) : J;
|
|
4063
4063
|
}
|
|
@@ -4797,7 +4797,7 @@ var Rf = m((Ao) => {
|
|
|
4797
4797
|
"use strict";
|
|
4798
4798
|
Object.defineProperty(Ao, "__esModule", { value: !0 });
|
|
4799
4799
|
Ao.AliasFS = void 0;
|
|
4800
|
-
var DL = ut(),
|
|
4800
|
+
var DL = ut(), kC = class extends DL.ProxiedFS {
|
|
4801
4801
|
static {
|
|
4802
4802
|
s(this, "AliasFS");
|
|
4803
4803
|
}
|
|
@@ -4817,7 +4817,7 @@ var Rf = m((Ao) => {
|
|
|
4817
4817
|
return A;
|
|
4818
4818
|
}
|
|
4819
4819
|
};
|
|
4820
|
-
Ao.AliasFS =
|
|
4820
|
+
Ao.AliasFS = kC;
|
|
4821
4821
|
});
|
|
4822
4822
|
|
|
4823
4823
|
// ../node_modules/@yarnpkg/fslib/lib/CwdFS.js
|
|
@@ -4825,18 +4825,18 @@ var vf = m((eo) => {
|
|
|
4825
4825
|
"use strict";
|
|
4826
4826
|
Object.defineProperty(eo, "__esModule", { value: !0 });
|
|
4827
4827
|
eo.CwdFS = void 0;
|
|
4828
|
-
var SL = xt(), KL = ut(),
|
|
4828
|
+
var SL = xt(), KL = ut(), bC = te(), NC = class extends KL.ProxiedFS {
|
|
4829
4829
|
static {
|
|
4830
4830
|
s(this, "CwdFS");
|
|
4831
4831
|
}
|
|
4832
4832
|
constructor(A, { baseFs: e = new SL.NodeFS() } = {}) {
|
|
4833
|
-
super(
|
|
4833
|
+
super(bC.ppath), this.target = this.pathUtils.normalize(A), this.baseFs = e;
|
|
4834
4834
|
}
|
|
4835
4835
|
getRealPath() {
|
|
4836
4836
|
return this.pathUtils.resolve(this.baseFs.getRealPath(), this.target);
|
|
4837
4837
|
}
|
|
4838
4838
|
resolve(A) {
|
|
4839
|
-
return this.pathUtils.isAbsolute(A) ?
|
|
4839
|
+
return this.pathUtils.isAbsolute(A) ? bC.ppath.normalize(A) : this.baseFs.resolve(bC.ppath.join(this.target, A));
|
|
4840
4840
|
}
|
|
4841
4841
|
mapFromBase(A) {
|
|
4842
4842
|
return A;
|
|
@@ -4853,7 +4853,7 @@ var xf = m((ro) => {
|
|
|
4853
4853
|
"use strict";
|
|
4854
4854
|
Object.defineProperty(ro, "__esModule", { value: !0 });
|
|
4855
4855
|
ro.JailFS = void 0;
|
|
4856
|
-
var FL = xt(),
|
|
4856
|
+
var FL = xt(), kL = ut(), to = te(), Lf = to.PortablePath.root, MC = class extends kL.ProxiedFS {
|
|
4857
4857
|
static {
|
|
4858
4858
|
s(this, "JailFS");
|
|
4859
4859
|
}
|
|
@@ -4889,7 +4889,7 @@ var Yf = m((io) => {
|
|
|
4889
4889
|
"use strict";
|
|
4890
4890
|
Object.defineProperty(io, "__esModule", { value: !0 });
|
|
4891
4891
|
io.LazyFS = void 0;
|
|
4892
|
-
var
|
|
4892
|
+
var bL = ut(), RC = class extends bL.ProxiedFS {
|
|
4893
4893
|
static {
|
|
4894
4894
|
s(this, "LazyFS");
|
|
4895
4895
|
}
|
|
@@ -6450,7 +6450,7 @@ Ks(gd, {
|
|
|
6450
6450
|
__assign: () => TC,
|
|
6451
6451
|
__asyncDelegator: () => Fx,
|
|
6452
6452
|
__asyncGenerator: () => Kx,
|
|
6453
|
-
__asyncValues: () =>
|
|
6453
|
+
__asyncValues: () => kx,
|
|
6454
6454
|
__await: () => es,
|
|
6455
6455
|
__awaiter: () => px,
|
|
6456
6456
|
__classPrivateFieldGet: () => Rx,
|
|
@@ -6462,7 +6462,7 @@ Ks(gd, {
|
|
|
6462
6462
|
__generator: () => wx,
|
|
6463
6463
|
__importDefault: () => Mx,
|
|
6464
6464
|
__importStar: () => Nx,
|
|
6465
|
-
__makeTemplateObject: () =>
|
|
6465
|
+
__makeTemplateObject: () => bx,
|
|
6466
6466
|
__metadata: () => dx,
|
|
6467
6467
|
__param: () => fx,
|
|
6468
6468
|
__read: () => od,
|
|
@@ -6684,7 +6684,7 @@ function Fx(t) {
|
|
|
6684
6684
|
} : n;
|
|
6685
6685
|
}
|
|
6686
6686
|
}
|
|
6687
|
-
function
|
|
6687
|
+
function kx(t) {
|
|
6688
6688
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
6689
6689
|
var A = t[Symbol.asyncIterator], e;
|
|
6690
6690
|
return A ? A.call(t) : (t = typeof HC == "function" ? HC(t) : t[Symbol.iterator](), e = {}, r("next"), r("throw"), r("return"), e[Symbol.asyncIterator] =
|
|
@@ -6704,7 +6704,7 @@ function bx(t) {
|
|
|
6704
6704
|
}, o);
|
|
6705
6705
|
}
|
|
6706
6706
|
}
|
|
6707
|
-
function
|
|
6707
|
+
function bx(t, A) {
|
|
6708
6708
|
return Object.defineProperty ? Object.defineProperty(t, "raw", { value: A }) : t.raw = A, t;
|
|
6709
6709
|
}
|
|
6710
6710
|
function Nx(t) {
|
|
@@ -6759,8 +6759,8 @@ var OC, TC, ad = ue(() => {
|
|
|
6759
6759
|
s(es, "__await");
|
|
6760
6760
|
s(Kx, "__asyncGenerator");
|
|
6761
6761
|
s(Fx, "__asyncDelegator");
|
|
6762
|
-
s(
|
|
6763
|
-
s(
|
|
6762
|
+
s(kx, "__asyncValues");
|
|
6763
|
+
s(bx, "__makeTemplateObject");
|
|
6764
6764
|
s(Nx, "__importStar");
|
|
6765
6765
|
s(Mx, "__importDefault");
|
|
6766
6766
|
s(Rx, "__classPrivateFieldGet");
|
|
@@ -6787,10 +6787,10 @@ var cd = m((Eo, qC) => {
|
|
|
6787
6787
|
return e.locateFile ? e.locateFile(a, B) : B + a;
|
|
6788
6788
|
}
|
|
6789
6789
|
s(p, "locateFile");
|
|
6790
|
-
var w, D, N,
|
|
6790
|
+
var w, D, N, k;
|
|
6791
6791
|
Q && (E ? B = v("path").dirname(B) + "/" : B = __dirname + "/", w = /* @__PURE__ */ s(function(c, h) {
|
|
6792
6792
|
var u = Cl(c);
|
|
6793
|
-
return u ? h ? u : u.toString() : (N || (N = Cd),
|
|
6793
|
+
return u ? h ? u : u.toString() : (N || (N = Cd), k || (k = v("path")), c = k.normalize(c), N.readFileSync(c, h ? null : "utf8"));
|
|
6794
6794
|
}, "shell_read"), D = /* @__PURE__ */ s(function(c) {
|
|
6795
6795
|
var h = w(c, !0);
|
|
6796
6796
|
return h.buffer || (h = new Uint8Array(h)), Se(h.buffer), h;
|
|
@@ -6837,7 +6837,7 @@ var cd = m((Eo, qC) => {
|
|
|
6837
6837
|
return null;
|
|
6838
6838
|
}
|
|
6839
6839
|
s(mA, "getValue");
|
|
6840
|
-
var
|
|
6840
|
+
var b, uA = !1, BA;
|
|
6841
6841
|
function Se(a, c) {
|
|
6842
6842
|
a || NA("Assertion failed: " + c);
|
|
6843
6843
|
}
|
|
@@ -6987,7 +6987,7 @@ var cd = m((Eo, qC) => {
|
|
|
6987
6987
|
}
|
|
6988
6988
|
s(hK, "preRun");
|
|
6989
6989
|
function lK() {
|
|
6990
|
-
IK = !0, !e.noFSInit && !l.init.initialized && l.init(),
|
|
6990
|
+
IK = !0, !e.noFSInit && !l.init.initialized && l.init(), kt.init(), lg(el);
|
|
6991
6991
|
}
|
|
6992
6992
|
s(lK, "initRuntime");
|
|
6993
6993
|
function EK() {
|
|
@@ -8679,7 +8679,7 @@ OWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at r
|
|
|
8679
8679
|
var a = { a: zK };
|
|
8680
8680
|
function c(f, d) {
|
|
8681
8681
|
var y = f.exports;
|
|
8682
|
-
e.asm = y,
|
|
8682
|
+
e.asm = y, b = e.asm.u, Qr(b.buffer), cg = e.asm.pa, BK(e.asm.v), hg("wasm-instantiate");
|
|
8683
8683
|
}
|
|
8684
8684
|
if (s(c, "receiveInstance"), rl("wasm-instantiate"), e.instantiateWasm)
|
|
8685
8685
|
try {
|
|
@@ -8818,18 +8818,18 @@ OWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at r
|
|
|
8818
8818
|
R.push("..");
|
|
8819
8819
|
return R = R.concat(f.slice(y)), R.join("/");
|
|
8820
8820
|
}, "relative")
|
|
8821
|
-
},
|
|
8821
|
+
}, kt = {
|
|
8822
8822
|
ttys: [],
|
|
8823
8823
|
init: /* @__PURE__ */ s(function() {
|
|
8824
8824
|
}, "init"),
|
|
8825
8825
|
shutdown: /* @__PURE__ */ s(function() {
|
|
8826
8826
|
}, "shutdown"),
|
|
8827
8827
|
register: /* @__PURE__ */ s(function(a, c) {
|
|
8828
|
-
|
|
8828
|
+
kt.ttys[a] = { input: [], output: [], ops: c }, l.registerDevice(a, kt.stream_ops);
|
|
8829
8829
|
}, "register"),
|
|
8830
8830
|
stream_ops: {
|
|
8831
8831
|
open: /* @__PURE__ */ s(function(a) {
|
|
8832
|
-
var c =
|
|
8832
|
+
var c = kt.ttys[a.node.rdev];
|
|
8833
8833
|
if (!c)
|
|
8834
8834
|
throw new l.ErrnoError(43);
|
|
8835
8835
|
a.tty = c, a.seekable = !1;
|
|
@@ -10458,7 +10458,7 @@ OWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at r
|
|
|
10458
10458
|
write: /* @__PURE__ */ s(function(c, h, u, f, d) {
|
|
10459
10459
|
return f;
|
|
10460
10460
|
}, "write")
|
|
10461
|
-
}), l.mkdev("/dev/null", l.makedev(1, 3)),
|
|
10461
|
+
}), l.mkdev("/dev/null", l.makedev(1, 3)), kt.register(l.makedev(5, 0), kt.default_tty_ops), kt.register(l.makedev(6, 0), kt.default_tty1_ops),
|
|
10462
10462
|
l.mkdev("/dev/tty", l.makedev(5, 0)), l.mkdev("/dev/tty1", l.makedev(6, 0));
|
|
10463
10463
|
var a = mK();
|
|
10464
10464
|
l.createDevice("/dev", "random", a), l.createDevice("/dev", "urandom", a), l.mkdir("/dev/shm"), l.mkdir("/dev/shm/tmp");
|
|
@@ -11071,7 +11071,7 @@ ers. Use --embed-file or --preload-file in emcc on the main thread."
|
|
|
11071
11071
|
}
|
|
11072
11072
|
}
|
|
11073
11073
|
s(FK, "___sys_ioctl");
|
|
11074
|
-
function
|
|
11074
|
+
function kK(a, c, h) {
|
|
11075
11075
|
CA.varargs = h;
|
|
11076
11076
|
try {
|
|
11077
11077
|
var u = CA.getStr(a), f = h ? CA.get() : 0, d = l.open(u, c, f);
|
|
@@ -11080,15 +11080,15 @@ ers. Use --embed-file or --preload-file in emcc on the main thread."
|
|
|
11080
11080
|
return (typeof l > "u" || !(y instanceof l.ErrnoError)) && NA(y), -y.errno;
|
|
11081
11081
|
}
|
|
11082
11082
|
}
|
|
11083
|
-
s(
|
|
11084
|
-
function
|
|
11083
|
+
s(kK, "___sys_open");
|
|
11084
|
+
function bK(a, c) {
|
|
11085
11085
|
try {
|
|
11086
11086
|
return a = CA.getStr(a), c = CA.getStr(c), l.rename(a, c), 0;
|
|
11087
11087
|
} catch (h) {
|
|
11088
11088
|
return (typeof l > "u" || !(h instanceof l.ErrnoError)) && NA(h), -h.errno;
|
|
11089
11089
|
}
|
|
11090
11090
|
}
|
|
11091
|
-
s(
|
|
11091
|
+
s(bK, "___sys_rename");
|
|
11092
11092
|
function NK(a) {
|
|
11093
11093
|
try {
|
|
11094
11094
|
return a = CA.getStr(a), l.rmdir(a), 0;
|
|
@@ -11119,7 +11119,7 @@ ers. Use --embed-file or --preload-file in emcc on the main thread."
|
|
|
11119
11119
|
s(vK, "_emscripten_memcpy_big");
|
|
11120
11120
|
function LK(a) {
|
|
11121
11121
|
try {
|
|
11122
|
-
return
|
|
11122
|
+
return b.grow(a - Ft.byteLength + 65535 >>> 16), Qr(b.buffer), 1;
|
|
11123
11123
|
} catch {
|
|
11124
11124
|
}
|
|
11125
11125
|
}
|
|
@@ -11340,8 +11340,8 @@ ers. Use --embed-file or --preload-file in emcc on the main thread."
|
|
|
11340
11340
|
e: SK,
|
|
11341
11341
|
k: KK,
|
|
11342
11342
|
o: FK,
|
|
11343
|
-
q:
|
|
11344
|
-
i:
|
|
11343
|
+
q: kK,
|
|
11344
|
+
i: bK,
|
|
11345
11345
|
r: NK,
|
|
11346
11346
|
c: MK,
|
|
11347
11347
|
h: RK,
|
|
@@ -11695,7 +11695,7 @@ var SA = m((nZ, Sd) => {
|
|
|
11695
11695
|
});
|
|
11696
11696
|
|
|
11697
11697
|
// ../node_modules/prompts/dist/util/clear.js
|
|
11698
|
-
var Nd = m((gZ,
|
|
11698
|
+
var Nd = m((gZ, bd) => {
|
|
11699
11699
|
"use strict";
|
|
11700
11700
|
function rY(t, A) {
|
|
11701
11701
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
@@ -11745,8 +11745,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11745
11745
|
return r;
|
|
11746
11746
|
}
|
|
11747
11747
|
s(Kd, "_arrayLikeToArray");
|
|
11748
|
-
var sY = Bo(),
|
|
11749
|
-
|
|
11748
|
+
var sY = Bo(), kd = SA(), Fd = kd.erase, nY = kd.cursor, oY = /* @__PURE__ */ s((t) => [...sY(t)].length, "width");
|
|
11749
|
+
bd.exports = function(t, A) {
|
|
11750
11750
|
if (!A) return Fd.line + nY.to(0);
|
|
11751
11751
|
let e = 0, r = t.split(/\r?\n/);
|
|
11752
11752
|
var i = rY(r), n;
|
|
@@ -12063,7 +12063,7 @@ ${r ? " " : yY.pointerSmall} ${Qo.red().italic(e)}`, "")), this.out.write(wY.lin
|
|
|
12063
12063
|
// ../node_modules/prompts/dist/elements/select.js
|
|
12064
12064
|
var Zd = m((pZ, $d) => {
|
|
12065
12065
|
"use strict";
|
|
12066
|
-
var ft = yA(), DY = Qt(), ns = _e(), Vd = ns.style, Xd = ns.clear, po = ns.figures, SY = ns.wrap, KY = ns.entriesToDisplay, FY = SA(),
|
|
12066
|
+
var ft = yA(), DY = Qt(), ns = _e(), Vd = ns.style, Xd = ns.clear, po = ns.figures, SY = ns.wrap, KY = ns.entriesToDisplay, FY = SA(), kY = FY.
|
|
12067
12067
|
cursor, rc = class extends DY {
|
|
12068
12068
|
static {
|
|
12069
12069
|
s(this, "SelectPrompt");
|
|
@@ -12122,7 +12122,7 @@ isabled", this.cursor = A.initial || 0, this.choices = A.choices.map((e, r) => (
|
|
|
12122
12122
|
}
|
|
12123
12123
|
render() {
|
|
12124
12124
|
if (this.closed) return;
|
|
12125
|
-
this.firstRender ? this.out.write(
|
|
12125
|
+
this.firstRender ? this.out.write(kY.hide) : this.out.write(Xd(this.outputText, this.out.columns)), super.render();
|
|
12126
12126
|
let A = KY(this.cursor, this.choices.length, this.optionsPerPage), e = A.startIndex, r = A.endIndex;
|
|
12127
12127
|
if (this.outputText = [Vd.symbol(this.done, this.aborted), ft.bold(this.msg), Vd.delimiter(!1), this.done ? this.selection.title : this.
|
|
12128
12128
|
selection.disabled ? ft.yellow(this.warn) : ft.gray(this.hint)].join(" "), !this.done) {
|
|
@@ -12151,7 +12151,7 @@ isabled", this.cursor = A.initial || 0, this.choices = A.choices.map((e, r) => (
|
|
|
12151
12151
|
// ../node_modules/prompts/dist/elements/toggle.js
|
|
12152
12152
|
var sp = m((mZ, ip) => {
|
|
12153
12153
|
"use strict";
|
|
12154
|
-
var wo = yA(),
|
|
12154
|
+
var wo = yA(), bY = Qt(), tp = _e(), Ap = tp.style, NY = tp.clear, rp = SA(), ep = rp.cursor, MY = rp.erase, ic = class extends bY {
|
|
12155
12155
|
static {
|
|
12156
12156
|
s(this, "TogglePrompt");
|
|
12157
12157
|
}
|
|
@@ -12280,7 +12280,7 @@ var gp = m((KZ, op) => {
|
|
|
12280
12280
|
});
|
|
12281
12281
|
|
|
12282
12282
|
// ../node_modules/prompts/dist/dateparts/day.js
|
|
12283
|
-
var Cp = m((
|
|
12283
|
+
var Cp = m((kZ, ap) => {
|
|
12284
12284
|
"use strict";
|
|
12285
12285
|
var vY = We(), LY = /* @__PURE__ */ s((t) => (t = t % 10, t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th"), "pos"), oc = class extends vY {
|
|
12286
12286
|
static {
|
|
@@ -12515,7 +12515,7 @@ var vp = m((TZ, Rp) => {
|
|
|
12515
12515
|
};
|
|
12516
12516
|
}
|
|
12517
12517
|
s(Sp, "_asyncToGenerator");
|
|
12518
|
-
var lc = yA(), JY = Qt(), uc = _e(), Kp = uc.style, Fp = uc.clear, OY = uc.figures, Mp = SA(), TY = Mp.erase,
|
|
12518
|
+
var lc = yA(), JY = Qt(), uc = _e(), Kp = uc.style, Fp = uc.clear, OY = uc.figures, Mp = SA(), TY = Mp.erase, kp = Mp.cursor, dt = yp(), bp = dt.
|
|
12519
12519
|
DatePart, HY = dt.Meridiem, jY = dt.Day, qY = dt.Hours, zY = dt.Milliseconds, WY = dt.Minutes, VY = dt.Month, XY = dt.Seconds, $Y = dt.Year,
|
|
12520
12520
|
ZY = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g, Np = {
|
|
12521
12521
|
1: ({
|
|
@@ -12579,7 +12579,7 @@ var vp = m((TZ, Rp) => {
|
|
|
12579
12579
|
this.typed = "", this.cursor = A, this.fire();
|
|
12580
12580
|
}
|
|
12581
12581
|
reset() {
|
|
12582
|
-
this.moveCursor(this.parts.findIndex((A) => A instanceof
|
|
12582
|
+
this.moveCursor(this.parts.findIndex((A) => A instanceof bp)), this.fire(), this.render();
|
|
12583
12583
|
}
|
|
12584
12584
|
exit() {
|
|
12585
12585
|
this.abort();
|
|
@@ -12624,18 +12624,18 @@ var vp = m((TZ, Rp) => {
|
|
|
12624
12624
|
}
|
|
12625
12625
|
next() {
|
|
12626
12626
|
let A = this.parts[this.cursor].next();
|
|
12627
|
-
this.moveCursor(A ? this.parts.indexOf(A) : this.parts.findIndex((e) => e instanceof
|
|
12627
|
+
this.moveCursor(A ? this.parts.indexOf(A) : this.parts.findIndex((e) => e instanceof bp)), this.render();
|
|
12628
12628
|
}
|
|
12629
12629
|
_(A) {
|
|
12630
12630
|
/\d/.test(A) && (this.typed += A, this.parts[this.cursor].setTo(this.typed), this.render());
|
|
12631
12631
|
}
|
|
12632
12632
|
render() {
|
|
12633
|
-
this.closed || (this.firstRender ? this.out.write(
|
|
12633
|
+
this.closed || (this.firstRender ? this.out.write(kp.hide) : this.out.write(Fp(this.outputText, this.out.columns)), super.render(), this.
|
|
12634
12634
|
outputText = [Kp.symbol(this.done, this.aborted), lc.bold(this.msg), Kp.delimiter(!1), this.parts.reduce((A, e, r) => A.concat(r === this.
|
|
12635
12635
|
cursor && !this.done ? lc.cyan().underline(e.toString()) : e), []).join("")].join(" "), this.error && (this.outputText += this.errorMsg.
|
|
12636
12636
|
split(`
|
|
12637
12637
|
`).reduce((A, e, r) => A + `
|
|
12638
|
-
${r ? " " : OY.pointerSmall} ${lc.red().italic(e)}`, "")), this.out.write(TY.line +
|
|
12638
|
+
${r ? " " : OY.pointerSmall} ${lc.red().italic(e)}`, "")), this.out.write(TY.line + kp.to(0) + this.outputText));
|
|
12639
12639
|
}
|
|
12640
12640
|
};
|
|
12641
12641
|
Rp.exports = Ec;
|
|
@@ -13365,23 +13365,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13365
13365
|
};
|
|
13366
13366
|
}
|
|
13367
13367
|
s(Bw, "_asyncToGenerator");
|
|
13368
|
-
var Fc = Iw(),
|
|
13368
|
+
var Fc = Iw(), kP = ["suggest", "format", "onState", "validate", "onRender", "type"], Qw = /* @__PURE__ */ s(() => {
|
|
13369
13369
|
}, "noop");
|
|
13370
13370
|
function Ot() {
|
|
13371
|
-
return
|
|
13371
|
+
return kc.apply(this, arguments);
|
|
13372
13372
|
}
|
|
13373
13373
|
s(Ot, "prompt");
|
|
13374
|
-
function
|
|
13375
|
-
return
|
|
13374
|
+
function kc() {
|
|
13375
|
+
return kc = Bw(function* (t = [], {
|
|
13376
13376
|
onSubmit: A = Qw,
|
|
13377
13377
|
onCancel: e = Qw
|
|
13378
13378
|
} = {}) {
|
|
13379
13379
|
let r = {}, i = Ot._override || {};
|
|
13380
13380
|
t = [].concat(t);
|
|
13381
13381
|
let n, o, g, C, I, E, Q = /* @__PURE__ */ function() {
|
|
13382
|
-
var N = Bw(function* (
|
|
13383
|
-
if (!(!L &&
|
|
13384
|
-
return
|
|
13382
|
+
var N = Bw(function* (k, _, L = !1) {
|
|
13383
|
+
if (!(!L && k.validate && k.validate(_) !== !0))
|
|
13384
|
+
return k.format ? yield k.format(_, r) : _;
|
|
13385
13385
|
});
|
|
13386
13386
|
return /* @__PURE__ */ s(function(_, L) {
|
|
13387
13387
|
return N.apply(this, arguments);
|
|
@@ -13394,9 +13394,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13394
13394
|
var w = o;
|
|
13395
13395
|
if (C = w.name, I = w.type, typeof I == "function" && (I = yield I(n, lw({}, r), o), o.type = I), !!I) {
|
|
13396
13396
|
for (let N in o) {
|
|
13397
|
-
if (
|
|
13398
|
-
let
|
|
13399
|
-
o[N] = typeof
|
|
13397
|
+
if (kP.includes(N)) continue;
|
|
13398
|
+
let k = o[N];
|
|
13399
|
+
o[N] = typeof k == "function" ? yield k(n, lw({}, r), E) : k;
|
|
13400
13400
|
}
|
|
13401
13401
|
if (E = o, typeof o.message != "string")
|
|
13402
13402
|
throw new Error("prompt message is required");
|
|
@@ -13408,7 +13408,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13408
13408
|
continue;
|
|
13409
13409
|
}
|
|
13410
13410
|
try {
|
|
13411
|
-
n = Ot._injected ?
|
|
13411
|
+
n = Ot._injected ? bP(Ot._injected, o.initial) : yield Fc[I](o), r[C] = n = yield Q(o, n, !0), g = yield A(o, n, r);
|
|
13412
13412
|
} catch {
|
|
13413
13413
|
g = !(yield e(o, r));
|
|
13414
13414
|
}
|
|
@@ -13421,16 +13421,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13421
13421
|
B.f();
|
|
13422
13422
|
}
|
|
13423
13423
|
return r;
|
|
13424
|
-
}),
|
|
13424
|
+
}), kc.apply(this, arguments);
|
|
13425
13425
|
}
|
|
13426
|
-
s(
|
|
13427
|
-
function
|
|
13426
|
+
s(kc, "_prompt");
|
|
13427
|
+
function bP(t, A) {
|
|
13428
13428
|
let e = t.shift();
|
|
13429
13429
|
if (e instanceof Error)
|
|
13430
13430
|
throw e;
|
|
13431
13431
|
return e === void 0 ? A : e;
|
|
13432
13432
|
}
|
|
13433
|
-
s(
|
|
13433
|
+
s(bP, "getInjectedAnswer");
|
|
13434
13434
|
function NP(t) {
|
|
13435
13435
|
Ot._injected = (Ot._injected || []).concat(t);
|
|
13436
13436
|
}
|
|
@@ -13496,7 +13496,7 @@ var Sw = m((a9, Dw) => {
|
|
|
13496
13496
|
});
|
|
13497
13497
|
|
|
13498
13498
|
// ../node_modules/prompts/lib/util/figures.js
|
|
13499
|
-
var
|
|
13499
|
+
var bc = m((c9, Kw) => {
|
|
13500
13500
|
"use strict";
|
|
13501
13501
|
var Cs = {
|
|
13502
13502
|
arrowUp: "\u2191",
|
|
@@ -13529,9 +13529,9 @@ var kc = m((c9, Kw) => {
|
|
|
13529
13529
|
});
|
|
13530
13530
|
|
|
13531
13531
|
// ../node_modules/prompts/lib/util/style.js
|
|
13532
|
-
var
|
|
13532
|
+
var kw = m((I9, Fw) => {
|
|
13533
13533
|
"use strict";
|
|
13534
|
-
var Wr = yA(), hr =
|
|
13534
|
+
var Wr = yA(), hr = bc(), Nc = Object.freeze({
|
|
13535
13535
|
password: { scale: 1, render: /* @__PURE__ */ s((t) => "*".repeat(t.length), "render") },
|
|
13536
13536
|
emoji: { scale: 2, render: /* @__PURE__ */ s((t) => "\u{1F603}".repeat(t.length), "render") },
|
|
13537
13537
|
invisible: { scale: 0, render: /* @__PURE__ */ s((t) => "", "render") },
|
|
@@ -13555,10 +13555,10 @@ item");
|
|
|
13555
13555
|
});
|
|
13556
13556
|
|
|
13557
13557
|
// ../node_modules/prompts/lib/util/lines.js
|
|
13558
|
-
var Nw = m((l9,
|
|
13558
|
+
var Nw = m((l9, bw) => {
|
|
13559
13559
|
"use strict";
|
|
13560
13560
|
var JP = Ko();
|
|
13561
|
-
|
|
13561
|
+
bw.exports = function(t, A) {
|
|
13562
13562
|
let e = String(JP(t) || "").split(/\r?\n/);
|
|
13563
13563
|
return A ? e.map((r) => Math.ceil(r.length / A)).reduce((r, i) => r + i) : e.length;
|
|
13564
13564
|
};
|
|
@@ -13594,9 +13594,9 @@ var Ge = m((B9, xw) => {
|
|
|
13594
13594
|
xw.exports = {
|
|
13595
13595
|
action: ww(),
|
|
13596
13596
|
clear: Sw(),
|
|
13597
|
-
style:
|
|
13597
|
+
style: kw(),
|
|
13598
13598
|
strip: Ko(),
|
|
13599
|
-
figures:
|
|
13599
|
+
figures: bc(),
|
|
13600
13600
|
lines: Nw(),
|
|
13601
13601
|
wrap: Rw(),
|
|
13602
13602
|
entriesToDisplay: Lw()
|
|
@@ -13745,7 +13745,7 @@ ${r ? " " : XP.pointerSmall} ${Fo.red().italic(e)}`, "")), this.out.write(WP.lin
|
|
|
13745
13745
|
// ../node_modules/prompts/lib/elements/select.js
|
|
13746
13746
|
var Tw = m((w9, Ow) => {
|
|
13747
13747
|
"use strict";
|
|
13748
|
-
var mt = yA(), $P = wt(), { style: Gw, clear: Jw, figures:
|
|
13748
|
+
var mt = yA(), $P = wt(), { style: Gw, clear: Jw, figures: ko, wrap: ZP, entriesToDisplay: AU } = Ge(), { cursor: eU } = SA(), xc = class extends $P {
|
|
13749
13749
|
static {
|
|
13750
13750
|
s(this, "SelectPrompt");
|
|
13751
13751
|
}
|
|
@@ -13812,9 +13812,9 @@ isabled", this.cursor = A.initial || 0, this.choices = A.choices.map((e, r) => (
|
|
|
13812
13812
|
`;
|
|
13813
13813
|
for (let r = A; r < e; r++) {
|
|
13814
13814
|
let i, n, o = "", g = this.choices[r];
|
|
13815
|
-
r === A && A > 0 ? n =
|
|
13816
|
-
r ? mt.gray().underline(g.title) : mt.strikethrough().gray(g.title), n = (this.cursor === r ? mt.bold().gray(
|
|
13817
|
-
") + n) : (i = this.cursor === r ? mt.cyan().underline(g.title) : g.title, n = (this.cursor === r ? mt.cyan(
|
|
13815
|
+
r === A && A > 0 ? n = ko.arrowUp : r === e - 1 && e < this.choices.length ? n = ko.arrowDown : n = " ", g.disabled ? (i = this.cursor ===
|
|
13816
|
+
r ? mt.gray().underline(g.title) : mt.strikethrough().gray(g.title), n = (this.cursor === r ? mt.bold().gray(ko.pointer) + " " : "\
|
|
13817
|
+
") + n) : (i = this.cursor === r ? mt.cyan().underline(g.title) : g.title, n = (this.cursor === r ? mt.cyan(ko.pointer) + " " : " ") + n,
|
|
13818
13818
|
g.description && this.cursor === r && (o = ` - ${g.description}`, (n.length + i.length + o.length >= this.out.columns || g.description.
|
|
13819
13819
|
split(/\r?\n/).length > 1) && (o = `
|
|
13820
13820
|
` + ZP(g.description, { margin: 3, width: this.out.columns })))), this.outputText += `${n} ${i}${mt.gray(o)}
|
|
@@ -13829,7 +13829,7 @@ isabled", this.cursor = A.initial || 0, this.choices = A.choices.map((e, r) => (
|
|
|
13829
13829
|
|
|
13830
13830
|
// ../node_modules/prompts/lib/elements/toggle.js
|
|
13831
13831
|
var zw = m((y9, qw) => {
|
|
13832
|
-
var
|
|
13832
|
+
var bo = yA(), tU = wt(), { style: Hw, clear: rU } = Ge(), { cursor: jw, erase: iU } = SA(), Yc = class extends tU {
|
|
13833
13833
|
static {
|
|
13834
13834
|
s(this, "TogglePrompt");
|
|
13835
13835
|
}
|
|
@@ -13891,11 +13891,11 @@ var zw = m((y9, qw) => {
|
|
|
13891
13891
|
this.closed || (this.firstRender ? this.out.write(jw.hide) : this.out.write(rU(this.outputText, this.out.columns)), super.render(), this.
|
|
13892
13892
|
outputText = [
|
|
13893
13893
|
Hw.symbol(this.done, this.aborted),
|
|
13894
|
-
|
|
13894
|
+
bo.bold(this.msg),
|
|
13895
13895
|
Hw.delimiter(this.done),
|
|
13896
|
-
this.value ? this.inactive :
|
|
13897
|
-
|
|
13898
|
-
this.value ?
|
|
13896
|
+
this.value ? this.inactive : bo.cyan().underline(this.inactive),
|
|
13897
|
+
bo.gray("/"),
|
|
13898
|
+
this.value ? bo.cyan().underline(this.active) : this.active
|
|
13899
13899
|
].join(" "), this.out.write(iU.line + jw.to(0) + this.outputText));
|
|
13900
13900
|
}
|
|
13901
13901
|
};
|
|
@@ -13958,7 +13958,7 @@ var Xw = m((F9, Vw) => {
|
|
|
13958
13958
|
});
|
|
13959
13959
|
|
|
13960
13960
|
// ../node_modules/prompts/lib/dateparts/day.js
|
|
13961
|
-
var Zw = m((
|
|
13961
|
+
var Zw = m((b9, $w) => {
|
|
13962
13962
|
"use strict";
|
|
13963
13963
|
var nU = $e(), oU = /* @__PURE__ */ s((t) => (t = t % 10, t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th"), "pos"), _c = class extends nU {
|
|
13964
13964
|
static {
|
|
@@ -14287,7 +14287,7 @@ ${r ? " " : EU.pointerSmall} ${qc.red().italic(e)}`,
|
|
|
14287
14287
|
|
|
14288
14288
|
// ../node_modules/prompts/lib/elements/number.js
|
|
14289
14289
|
var ym = m((q9, mm) => {
|
|
14290
|
-
var No = yA(), KU = wt(), { cursor: Mo, erase: FU } = SA(), { style: Wc, figures:
|
|
14290
|
+
var No = yA(), KU = wt(), { cursor: Mo, erase: FU } = SA(), { style: Wc, figures: kU, clear: pm, lines: bU } = Ge(), NU = /[0-9]/, Vc = /* @__PURE__ */ s(
|
|
14291
14291
|
(t) => t !== void 0, "isDef"), wm = /* @__PURE__ */ s((t, A) => {
|
|
14292
14292
|
let e = Math.pow(10, A);
|
|
14293
14293
|
return Math.round(t * e) / e;
|
|
@@ -14365,7 +14365,7 @@ var ym = m((q9, mm) => {
|
|
|
14365
14365
|
value = this.min), this.fire(), this.render();
|
|
14366
14366
|
}
|
|
14367
14367
|
render() {
|
|
14368
|
-
this.closed || (this.firstRender || (this.outputError && this.out.write(Mo.down(
|
|
14368
|
+
this.closed || (this.firstRender || (this.outputError && this.out.write(Mo.down(bU(this.outputError, this.out.columns) - 1) + pm(this.
|
|
14369
14369
|
outputError, this.out.columns)), this.out.write(pm(this.outputText, this.out.columns))), super.render(), this.outputError = "", this.outputText =
|
|
14370
14370
|
[
|
|
14371
14371
|
Wc.symbol(this.done, this.aborted),
|
|
@@ -14374,7 +14374,7 @@ var ym = m((q9, mm) => {
|
|
|
14374
14374
|
!this.done || !this.done && !this.placeholder ? No[this.color]().underline(this.rendered) : this.rendered
|
|
14375
14375
|
].join(" "), this.error && (this.outputError += this.errorMsg.split(`
|
|
14376
14376
|
`).reduce((A, e, r) => A + `
|
|
14377
|
-
${r ? " " :
|
|
14377
|
+
${r ? " " : kU.pointerSmall} ${No.red().italic(e)}`, "")), this.out.write(FU.line + Mo.to(0) + this.outputText + Mo.save + this.outputError +
|
|
14378
14378
|
Mo.restore));
|
|
14379
14379
|
}
|
|
14380
14380
|
};
|
|
@@ -14521,7 +14521,7 @@ Instructions:
|
|
|
14521
14521
|
// ../node_modules/prompts/lib/elements/autocomplete.js
|
|
14522
14522
|
var Mm = m((X9, Nm) => {
|
|
14523
14523
|
"use strict";
|
|
14524
|
-
var hs = yA(), xU = wt(), { erase: YU, cursor: Fm } = SA(), { style: AI, clear:
|
|
14524
|
+
var hs = yA(), xU = wt(), { erase: YU, cursor: Fm } = SA(), { style: AI, clear: km, figures: eI, wrap: PU, entriesToDisplay: UU } = Ge(), bm = /* @__PURE__ */ s(
|
|
14525
14525
|
(t, A) => t[A] && (t[A].value || t[A].title || t[A]), "getVal"), _U = /* @__PURE__ */ s((t, A) => t[A] && (t[A].title || t[A].value || t[A]),
|
|
14526
14526
|
"getTitle"), GU = /* @__PURE__ */ s((t, A) => {
|
|
14527
14527
|
let e = t.findIndex((r) => r.value === A || r.title === A);
|
|
@@ -14535,7 +14535,7 @@ var Mm = m((X9, Nm) => {
|
|
|
14535
14535
|
GU(A.choices, A.initial), this.select = this.initial || A.cursor || 0, this.i18n = { noMatches: A.noMatches || "no matches found" }, this.
|
|
14536
14536
|
fallback = A.fallback || this.initial, this.clearFirst = A.clearFirst || !1, this.suggestions = [], this.input = "", this.limit = A.limit ||
|
|
14537
14537
|
10, this.cursor = 0, this.transform = AI.render(A.style), this.scale = this.transform.scale, this.render = this.render.bind(this), this.
|
|
14538
|
-
complete = this.complete.bind(this), this.clear =
|
|
14538
|
+
complete = this.complete.bind(this), this.clear = km("", this.out.columns), this.complete(this.render), this.render();
|
|
14539
14539
|
}
|
|
14540
14540
|
set fallback(A) {
|
|
14541
14541
|
this._fb = Number.isSafeInteger(parseInt(A)) ? parseInt(A) : A;
|
|
@@ -14546,12 +14546,12 @@ var Mm = m((X9, Nm) => {
|
|
|
14546
14546
|
_fb || { title: this.i18n.noMatches };
|
|
14547
14547
|
}
|
|
14548
14548
|
moveSelect(A) {
|
|
14549
|
-
this.select = A, this.suggestions.length > 0 ? this.value =
|
|
14549
|
+
this.select = A, this.suggestions.length > 0 ? this.value = bm(this.suggestions, A) : this.value = this.fallback.value, this.fire();
|
|
14550
14550
|
}
|
|
14551
14551
|
async complete(A) {
|
|
14552
14552
|
let e = this.completing = this.suggest(this.input, this.choices), r = await e;
|
|
14553
14553
|
if (this.completing !== e) return;
|
|
14554
|
-
this.suggestions = r.map((n, o, g) => ({ title: _U(g, o), value:
|
|
14554
|
+
this.suggestions = r.map((n, o, g) => ({ title: _U(g, o), value: bm(g, o), description: n.description })), this.completing = !1;
|
|
14555
14555
|
let i = Math.max(r.length - 1, 0);
|
|
14556
14556
|
this.moveSelect(Math.min(i, this.select)), A && A();
|
|
14557
14557
|
}
|
|
@@ -14624,7 +14624,7 @@ var Mm = m((X9, Nm) => {
|
|
|
14624
14624
|
}
|
|
14625
14625
|
render() {
|
|
14626
14626
|
if (this.closed) return;
|
|
14627
|
-
this.firstRender ? this.out.write(Fm.hide) : this.out.write(
|
|
14627
|
+
this.firstRender ? this.out.write(Fm.hide) : this.out.write(km(this.outputText, this.out.columns)), super.render();
|
|
14628
14628
|
let { startIndex: A, endIndex: e } = UU(this.select, this.choices.length, this.limit);
|
|
14629
14629
|
if (this.outputText = [
|
|
14630
14630
|
AI.symbol(this.done, this.aborted, this.exited),
|
|
@@ -15208,14 +15208,14 @@ var uy = m((D6, Ey) => {
|
|
|
15208
15208
|
// ../node_modules/fast-glob/node_modules/glob-parent/index.js
|
|
15209
15209
|
var Qy = m((K6, By) => {
|
|
15210
15210
|
"use strict";
|
|
15211
|
-
var
|
|
15211
|
+
var k_ = uy(), b_ = v("path").posix.dirname, N_ = v("os").platform() === "win32", hI = "/", M_ = /\\/g, R_ = /[\{\[].*[\}\]]$/, v_ = /(^|[^\\])([\{\[]|\([^\)]+$)/,
|
|
15212
15212
|
L_ = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
|
|
15213
15213
|
By.exports = /* @__PURE__ */ s(function(A, e) {
|
|
15214
15214
|
var r = Object.assign({ flipBackslashes: !0 }, e);
|
|
15215
15215
|
r.flipBackslashes && N_ && A.indexOf(hI) < 0 && (A = A.replace(M_, hI)), R_.test(A) && (A += hI), A += "a";
|
|
15216
15216
|
do
|
|
15217
|
-
A =
|
|
15218
|
-
while (
|
|
15217
|
+
A = b_(A);
|
|
15218
|
+
while (k_(A) || v_.test(A));
|
|
15219
15219
|
return A.replace(L_, "$1");
|
|
15220
15220
|
}, "globParent");
|
|
15221
15221
|
});
|
|
@@ -15282,7 +15282,7 @@ var wy = m((R6, py) => {
|
|
|
15282
15282
|
});
|
|
15283
15283
|
|
|
15284
15284
|
// ../node_modules/to-regex-range/index.js
|
|
15285
|
-
var Ny = m((v6,
|
|
15285
|
+
var Ny = m((v6, by) => {
|
|
15286
15286
|
"use strict";
|
|
15287
15287
|
var my = wy(), lr = /* @__PURE__ */ s((t, A, e) => {
|
|
15288
15288
|
if (my(t) === !1)
|
|
@@ -15301,7 +15301,7 @@ var Ny = m((v6, ky) => {
|
|
|
15301
15301
|
let D = t + "|" + A;
|
|
15302
15302
|
return r.capture ? `(${D})` : r.wrap === !1 ? D : `(?:${D})`;
|
|
15303
15303
|
}
|
|
15304
|
-
let Q =
|
|
15304
|
+
let Q = ky(t) || ky(A), B = { min: t, max: A, a: I, b: E }, p = [], w = [];
|
|
15305
15305
|
if (Q && (B.isPadded = Q, B.maxLen = String(B.max).length), I < 0) {
|
|
15306
15306
|
let D = E < 0 ? Math.abs(E) : 1;
|
|
15307
15307
|
w = yy(D, Math.abs(I), B, r), I = B.a = 0;
|
|
@@ -15387,10 +15387,10 @@ var Ny = m((v6, ky) => {
|
|
|
15387
15387
|
return `[${t}${A - t === 1 ? "" : "-"}${A}]`;
|
|
15388
15388
|
}
|
|
15389
15389
|
s(G_, "toCharacterClass");
|
|
15390
|
-
function
|
|
15390
|
+
function ky(t) {
|
|
15391
15391
|
return /^-?(0+)\d/.test(t);
|
|
15392
15392
|
}
|
|
15393
|
-
s(
|
|
15393
|
+
s(ky, "hasPadding");
|
|
15394
15394
|
function J_(t, A, e) {
|
|
15395
15395
|
if (!A.isPadded)
|
|
15396
15396
|
return t;
|
|
@@ -15409,7 +15409,7 @@ var Ny = m((v6, ky) => {
|
|
|
15409
15409
|
s(J_, "padZeros");
|
|
15410
15410
|
lr.cache = {};
|
|
15411
15411
|
lr.clearCache = () => lr.cache = {};
|
|
15412
|
-
|
|
15412
|
+
by.exports = lr;
|
|
15413
15413
|
});
|
|
15414
15414
|
|
|
15415
15415
|
// ../node_modules/fill-range/index.js
|
|
@@ -15473,9 +15473,9 @@ var BI = m((x6, Py) => {
|
|
|
15473
15473
|
if (r.toRegex && e === 1)
|
|
15474
15474
|
return vy(_o(t, Q), _o(A, Q), !0, r);
|
|
15475
15475
|
let w = { negatives: [], positives: [] }, D = /* @__PURE__ */ s((_) => w[_ < 0 ? "negatives" : "positives"].push(Math.abs(_)), "push"), N = [],
|
|
15476
|
-
|
|
15476
|
+
k = 0;
|
|
15477
15477
|
for (; o ? i >= n : i <= n; )
|
|
15478
|
-
r.toRegex === !0 && e > 1 ? D(i) : N.push(j_(p(i,
|
|
15478
|
+
r.toRegex === !0 && e > 1 ? D(i) : N.push(j_(p(i, k), Q, B)), i = o ? i - e : i + e, k++;
|
|
15479
15479
|
return r.toRegex === !0 ? e > 1 ? q_(w, r, Q) : Ly(N, null, { wrap: !1, ...r }) : N;
|
|
15480
15480
|
}, "fillNumbers"), V_ = /* @__PURE__ */ s((t, A, e = 1, r = {}) => {
|
|
15481
15481
|
if (!ls(t) && t.length > 1 || !ls(A) && A.length > 1)
|
|
@@ -15863,8 +15863,8 @@ var Xy = m((O6, Vy) => {
|
|
|
15863
15863
|
}
|
|
15864
15864
|
do
|
|
15865
15865
|
if (o = n.pop(), o.type !== "root") {
|
|
15866
|
-
o.nodes.forEach((
|
|
15867
|
-
|
|
15866
|
+
o.nodes.forEach((k) => {
|
|
15867
|
+
k.nodes || (k.type === "open" && (k.isOpen = !0), k.type === "close" && (k.isClose = !0), k.nodes || (k.type = "text"), k.invalid =
|
|
15868
15868
|
!0);
|
|
15869
15869
|
});
|
|
15870
15870
|
let D = n[n.length - 1], N = D.nodes.indexOf(o);
|
|
@@ -16071,16 +16071,16 @@ var uD = m((AA) => {
|
|
|
16071
16071
|
}
|
|
16072
16072
|
s(FG, "getNegativePatterns");
|
|
16073
16073
|
AA.getNegativePatterns = FG;
|
|
16074
|
-
function
|
|
16074
|
+
function kG(t) {
|
|
16075
16075
|
return t.filter(cD);
|
|
16076
16076
|
}
|
|
16077
|
-
s(
|
|
16078
|
-
AA.getPositivePatterns =
|
|
16079
|
-
function
|
|
16077
|
+
s(kG, "getPositivePatterns");
|
|
16078
|
+
AA.getPositivePatterns = kG;
|
|
16079
|
+
function bG(t) {
|
|
16080
16080
|
return t.filter((A) => !pI(A));
|
|
16081
16081
|
}
|
|
16082
|
-
s(
|
|
16083
|
-
AA.getPatternsInsideCurrentDirectory =
|
|
16082
|
+
s(bG, "getPatternsInsideCurrentDirectory");
|
|
16083
|
+
AA.getPatternsInsideCurrentDirectory = bG;
|
|
16084
16084
|
function NG(t) {
|
|
16085
16085
|
return t.filter(pI);
|
|
16086
16086
|
}
|
|
@@ -16201,8 +16201,8 @@ var dD = m((X6, fD) => {
|
|
|
16201
16201
|
w.removeListener("merge2UnpipeEnd", D), w.removeListener("end", D), n && w.removeListener("error", N), B();
|
|
16202
16202
|
}
|
|
16203
16203
|
s(D, "onend");
|
|
16204
|
-
function N(
|
|
16205
|
-
o.emit("error",
|
|
16204
|
+
function N(k) {
|
|
16205
|
+
o.emit("error", k);
|
|
16206
16206
|
}
|
|
16207
16207
|
if (s(N, "onerror"), w._readableState.endEmitted)
|
|
16208
16208
|
return B();
|
|
@@ -16369,7 +16369,7 @@ var KD = m((WA) => {
|
|
|
16369
16369
|
});
|
|
16370
16370
|
|
|
16371
16371
|
// ../node_modules/@nodelib/fs.stat/out/providers/async.js
|
|
16372
|
-
var
|
|
16372
|
+
var kD = m((Oo) => {
|
|
16373
16373
|
"use strict";
|
|
16374
16374
|
Object.defineProperty(Oo, "__esModule", { value: !0 });
|
|
16375
16375
|
Oo.read = void 0;
|
|
@@ -16409,7 +16409,7 @@ var bD = m((Oo) => {
|
|
|
16409
16409
|
});
|
|
16410
16410
|
|
|
16411
16411
|
// ../node_modules/@nodelib/fs.stat/out/providers/sync.js
|
|
16412
|
-
var
|
|
16412
|
+
var bD = m((To) => {
|
|
16413
16413
|
"use strict";
|
|
16414
16414
|
Object.defineProperty(To, "__esModule", { value: !0 });
|
|
16415
16415
|
To.read = void 0;
|
|
@@ -16474,27 +16474,27 @@ var ur = m((qt) => {
|
|
|
16474
16474
|
"use strict";
|
|
16475
16475
|
Object.defineProperty(qt, "__esModule", { value: !0 });
|
|
16476
16476
|
qt.statSync = qt.stat = qt.Settings = void 0;
|
|
16477
|
-
var RD =
|
|
16478
|
-
qt.Settings =
|
|
16477
|
+
var RD = kD(), nJ = bD(), kI = MD();
|
|
16478
|
+
qt.Settings = kI.default;
|
|
16479
16479
|
function oJ(t, A, e) {
|
|
16480
16480
|
if (typeof A == "function") {
|
|
16481
|
-
RD.read(t,
|
|
16481
|
+
RD.read(t, bI(), A);
|
|
16482
16482
|
return;
|
|
16483
16483
|
}
|
|
16484
|
-
RD.read(t,
|
|
16484
|
+
RD.read(t, bI(A), e);
|
|
16485
16485
|
}
|
|
16486
16486
|
s(oJ, "stat");
|
|
16487
16487
|
qt.stat = oJ;
|
|
16488
16488
|
function gJ(t, A) {
|
|
16489
|
-
let e =
|
|
16489
|
+
let e = bI(A);
|
|
16490
16490
|
return nJ.read(t, e);
|
|
16491
16491
|
}
|
|
16492
16492
|
s(gJ, "statSync");
|
|
16493
16493
|
qt.statSync = gJ;
|
|
16494
|
-
function
|
|
16495
|
-
return t instanceof
|
|
16494
|
+
function bI(t = {}) {
|
|
16495
|
+
return t instanceof kI.default ? t : new kI.default(t);
|
|
16496
16496
|
}
|
|
16497
|
-
s(
|
|
16497
|
+
s(bI, "getSettings");
|
|
16498
16498
|
});
|
|
16499
16499
|
|
|
16500
16500
|
// ../node_modules/queue-microtask/index.js
|
|
@@ -16793,20 +16793,20 @@ var $o = m((Xt) => {
|
|
|
16793
16793
|
"use strict";
|
|
16794
16794
|
Object.defineProperty(Xt, "__esModule", { value: !0 });
|
|
16795
16795
|
Xt.Settings = Xt.scandirSync = Xt.scandir = void 0;
|
|
16796
|
-
var eS = qD(),
|
|
16796
|
+
var eS = qD(), kJ = $D(), PI = AS();
|
|
16797
16797
|
Xt.Settings = PI.default;
|
|
16798
|
-
function
|
|
16798
|
+
function bJ(t, A, e) {
|
|
16799
16799
|
if (typeof A == "function") {
|
|
16800
16800
|
eS.read(t, UI(), A);
|
|
16801
16801
|
return;
|
|
16802
16802
|
}
|
|
16803
16803
|
eS.read(t, UI(A), e);
|
|
16804
16804
|
}
|
|
16805
|
-
s(
|
|
16806
|
-
Xt.scandir =
|
|
16805
|
+
s(bJ, "scandir");
|
|
16806
|
+
Xt.scandir = bJ;
|
|
16807
16807
|
function NJ(t, A) {
|
|
16808
16808
|
let e = UI(A);
|
|
16809
|
-
return
|
|
16809
|
+
return kJ.read(t, e);
|
|
16810
16810
|
}
|
|
16811
16811
|
s(NJ, "scandirSync");
|
|
16812
16812
|
Xt.scandirSync = NJ;
|
|
@@ -16859,7 +16859,7 @@ var sS = m((Y5, _I) => {
|
|
|
16859
16859
|
throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
16860
16860
|
if (e = U, !C.paused)
|
|
16861
16861
|
for (; i && o < e; )
|
|
16862
|
-
o++,
|
|
16862
|
+
o++, k();
|
|
16863
16863
|
},
|
|
16864
16864
|
running: I,
|
|
16865
16865
|
resume: p,
|
|
@@ -16892,11 +16892,11 @@ var sS = m((Y5, _I) => {
|
|
|
16892
16892
|
function p() {
|
|
16893
16893
|
if (C.paused) {
|
|
16894
16894
|
if (C.paused = !1, i === null) {
|
|
16895
|
-
o++,
|
|
16895
|
+
o++, k();
|
|
16896
16896
|
return;
|
|
16897
16897
|
}
|
|
16898
16898
|
for (; i && o < e; )
|
|
16899
|
-
o++,
|
|
16899
|
+
o++, k();
|
|
16900
16900
|
}
|
|
16901
16901
|
}
|
|
16902
16902
|
function w() {
|
|
@@ -16904,15 +16904,15 @@ var sS = m((Y5, _I) => {
|
|
|
16904
16904
|
}
|
|
16905
16905
|
function D(U, Z) {
|
|
16906
16906
|
var q = r.get();
|
|
16907
|
-
q.context = t, q.release =
|
|
16907
|
+
q.context = t, q.release = k, q.value = U, q.callback = Z || ye, q.errorHandler = g, o >= e || C.paused ? n ? (n.next = q, n = q) : (i =
|
|
16908
16908
|
q, n = q, C.saturated()) : (o++, A.call(t, q.value, q.worked));
|
|
16909
16909
|
}
|
|
16910
16910
|
function N(U, Z) {
|
|
16911
16911
|
var q = r.get();
|
|
16912
|
-
q.context = t, q.release =
|
|
16912
|
+
q.context = t, q.release = k, q.value = U, q.callback = Z || ye, q.errorHandler = g, o >= e || C.paused ? i ? (q.next = i, i = q) : (i =
|
|
16913
16913
|
q, n = q, C.saturated()) : (o++, A.call(t, q.value, q.worked));
|
|
16914
16914
|
}
|
|
16915
|
-
function
|
|
16915
|
+
function k(U) {
|
|
16916
16916
|
U && r.release(U);
|
|
16917
16917
|
var Z = i;
|
|
16918
16918
|
Z && o <= e ? C.paused ? o-- : (n === i && (n = null), i = Z.next, Z.next = null, A.call(t, Z.value, Z.worked), n === null && C.empty()) :
|
|
@@ -17717,15 +17717,15 @@ var wS = m((Fh) => {
|
|
|
17717
17717
|
});
|
|
17718
17718
|
|
|
17719
17719
|
// ../node_modules/fast-glob/out/readers/sync.js
|
|
17720
|
-
var mS = m((
|
|
17720
|
+
var mS = m((bh) => {
|
|
17721
17721
|
"use strict";
|
|
17722
|
-
Object.defineProperty(
|
|
17723
|
-
var F2 = ur(),
|
|
17722
|
+
Object.defineProperty(bh, "__esModule", { value: !0 });
|
|
17723
|
+
var F2 = ur(), k2 = rg(), b2 = ig(), kh = class extends b2.default {
|
|
17724
17724
|
static {
|
|
17725
17725
|
s(this, "ReaderSync");
|
|
17726
17726
|
}
|
|
17727
17727
|
constructor() {
|
|
17728
|
-
super(...arguments), this._walkSync =
|
|
17728
|
+
super(...arguments), this._walkSync = k2.walkSync, this._statSync = F2.statSync;
|
|
17729
17729
|
}
|
|
17730
17730
|
dynamic(A, e) {
|
|
17731
17731
|
return this._walkSync(A, e);
|
|
@@ -17752,7 +17752,7 @@ var mS = m((kh) => {
|
|
|
17752
17752
|
return this._statSync(A, this._fsStatSettings);
|
|
17753
17753
|
}
|
|
17754
17754
|
};
|
|
17755
|
-
|
|
17755
|
+
bh.default = kh;
|
|
17756
17756
|
});
|
|
17757
17757
|
|
|
17758
17758
|
// ../node_modules/fast-glob/out/providers/sync.js
|
|
@@ -17923,11 +17923,11 @@ function Uh(t, A, e) {
|
|
|
17923
17923
|
throw r;
|
|
17924
17924
|
}
|
|
17925
17925
|
}
|
|
17926
|
-
var Y7, FS, P7, U7,
|
|
17926
|
+
var Y7, FS, P7, U7, kS, _7, bS = ue(() => {
|
|
17927
17927
|
s(Ph, "isType");
|
|
17928
17928
|
s(Uh, "isTypeSync");
|
|
17929
17929
|
Y7 = Ph.bind(void 0, "stat", "isFile"), FS = Ph.bind(void 0, "stat", "isDirectory"), P7 = Ph.bind(void 0, "lstat", "isSymbolicLink"), U7 =
|
|
17930
|
-
Uh.bind(void 0, "statSync", "isFile"),
|
|
17930
|
+
Uh.bind(void 0, "statSync", "isFile"), kS = Uh.bind(void 0, "statSync", "isDirectory"), _7 = Uh.bind(void 0, "lstatSync", "isSymbolicLink");
|
|
17931
17931
|
});
|
|
17932
17932
|
|
|
17933
17933
|
// ../node_modules/unicorn-magic/default.js
|
|
@@ -18396,7 +18396,7 @@ import si from "node:path";
|
|
|
18396
18396
|
var ni, BO, WS, VS, jS, qS, Xh, QO, XS, $S, Cg, ZS, fO, AK, eK, tK, rK, iK, sK, $h, dO, pO, wO, mO, yO, DO, SO, oK = ue(() => {
|
|
18397
18397
|
iy();
|
|
18398
18398
|
ni = cA(Yh(), 1);
|
|
18399
|
-
|
|
18399
|
+
bS();
|
|
18400
18400
|
_h();
|
|
18401
18401
|
Vh();
|
|
18402
18402
|
zh();
|
|
@@ -18420,7 +18420,7 @@ var ni, BO, WS, VS, jS, qS, Xh, QO, XS, $S, Cg, ZS, fO, AK, eK, tK, rK, iK, sK,
|
|
|
18420
18420
|
cwd: A = zS.cwd(),
|
|
18421
18421
|
files: e,
|
|
18422
18422
|
extensions: r
|
|
18423
|
-
} = {}) => t.flatMap((i) =>
|
|
18423
|
+
} = {}) => t.flatMap((i) => kS(WS(i, A)) ? VS({ directoryPath: i, files: e, extensions: r }) : i), "directoryToGlobSync"), Xh = /* @__PURE__ */ s(
|
|
18424
18424
|
(t) => (t = [...new Set([t].flat())], BO(t), t), "toPatternsArray"), QO = /* @__PURE__ */ s((t) => {
|
|
18425
18425
|
if (!t)
|
|
18426
18426
|
return;
|
|
@@ -18599,56 +18599,56 @@ var cK = ue(() => {
|
|
|
18599
18599
|
|
|
18600
18600
|
// src/common/versions.ts
|
|
18601
18601
|
var ot = {
|
|
18602
|
-
"@storybook/addon-a11y": "9.
|
|
18603
|
-
"@storybook/addon-docs": "9.
|
|
18604
|
-
"@storybook/addon-jest": "9.
|
|
18605
|
-
"@storybook/addon-links": "9.
|
|
18606
|
-
"@storybook/addon-onboarding": "9.
|
|
18607
|
-
"storybook-addon-pseudo-states": "9.
|
|
18608
|
-
"@storybook/addon-themes": "9.
|
|
18609
|
-
"@storybook/addon-vitest": "9.
|
|
18610
|
-
"@storybook/builder-vite": "9.
|
|
18611
|
-
"@storybook/builder-webpack5": "9.
|
|
18612
|
-
storybook: "9.
|
|
18613
|
-
"@storybook/angular": "9.
|
|
18614
|
-
"@storybook/ember": "9.
|
|
18615
|
-
"@storybook/html-vite": "9.
|
|
18616
|
-
"@storybook/nextjs": "9.
|
|
18617
|
-
"@storybook/nextjs-vite": "9.
|
|
18618
|
-
"@storybook/preact-vite": "9.
|
|
18619
|
-
"@storybook/react-native-web-vite": "9.
|
|
18620
|
-
"@storybook/react-vite": "9.
|
|
18621
|
-
"@storybook/react-webpack5": "9.
|
|
18622
|
-
"@storybook/server-webpack5": "9.
|
|
18623
|
-
"@storybook/svelte-vite": "9.
|
|
18624
|
-
"@storybook/sveltekit": "9.
|
|
18625
|
-
"@storybook/vue3-vite": "9.
|
|
18626
|
-
"@storybook/web-components-vite": "9.
|
|
18627
|
-
sb: "9.
|
|
18628
|
-
"@storybook/cli": "9.
|
|
18629
|
-
"@storybook/codemod": "9.
|
|
18630
|
-
"@storybook/core-webpack": "9.
|
|
18631
|
-
"create-storybook": "9.
|
|
18632
|
-
"@storybook/csf-plugin": "9.
|
|
18633
|
-
"eslint-plugin-storybook": "9.
|
|
18634
|
-
"@storybook/react-dom-shim": "9.
|
|
18635
|
-
"@storybook/preset-create-react-app": "9.
|
|
18636
|
-
"@storybook/preset-react-webpack": "9.
|
|
18637
|
-
"@storybook/preset-server-webpack": "9.
|
|
18638
|
-
"@storybook/html": "9.
|
|
18639
|
-
"@storybook/preact": "9.
|
|
18640
|
-
"@storybook/react": "9.
|
|
18641
|
-
"@storybook/server": "9.
|
|
18642
|
-
"@storybook/svelte": "9.
|
|
18643
|
-
"@storybook/vue3": "9.
|
|
18644
|
-
"@storybook/web-components": "9.
|
|
18602
|
+
"@storybook/addon-a11y": "9.2.0-alpha.0",
|
|
18603
|
+
"@storybook/addon-docs": "9.2.0-alpha.0",
|
|
18604
|
+
"@storybook/addon-jest": "9.2.0-alpha.0",
|
|
18605
|
+
"@storybook/addon-links": "9.2.0-alpha.0",
|
|
18606
|
+
"@storybook/addon-onboarding": "9.2.0-alpha.0",
|
|
18607
|
+
"storybook-addon-pseudo-states": "9.2.0-alpha.0",
|
|
18608
|
+
"@storybook/addon-themes": "9.2.0-alpha.0",
|
|
18609
|
+
"@storybook/addon-vitest": "9.2.0-alpha.0",
|
|
18610
|
+
"@storybook/builder-vite": "9.2.0-alpha.0",
|
|
18611
|
+
"@storybook/builder-webpack5": "9.2.0-alpha.0",
|
|
18612
|
+
storybook: "9.2.0-alpha.0",
|
|
18613
|
+
"@storybook/angular": "9.2.0-alpha.0",
|
|
18614
|
+
"@storybook/ember": "9.2.0-alpha.0",
|
|
18615
|
+
"@storybook/html-vite": "9.2.0-alpha.0",
|
|
18616
|
+
"@storybook/nextjs": "9.2.0-alpha.0",
|
|
18617
|
+
"@storybook/nextjs-vite": "9.2.0-alpha.0",
|
|
18618
|
+
"@storybook/preact-vite": "9.2.0-alpha.0",
|
|
18619
|
+
"@storybook/react-native-web-vite": "9.2.0-alpha.0",
|
|
18620
|
+
"@storybook/react-vite": "9.2.0-alpha.0",
|
|
18621
|
+
"@storybook/react-webpack5": "9.2.0-alpha.0",
|
|
18622
|
+
"@storybook/server-webpack5": "9.2.0-alpha.0",
|
|
18623
|
+
"@storybook/svelte-vite": "9.2.0-alpha.0",
|
|
18624
|
+
"@storybook/sveltekit": "9.2.0-alpha.0",
|
|
18625
|
+
"@storybook/vue3-vite": "9.2.0-alpha.0",
|
|
18626
|
+
"@storybook/web-components-vite": "9.2.0-alpha.0",
|
|
18627
|
+
sb: "9.2.0-alpha.0",
|
|
18628
|
+
"@storybook/cli": "9.2.0-alpha.0",
|
|
18629
|
+
"@storybook/codemod": "9.2.0-alpha.0",
|
|
18630
|
+
"@storybook/core-webpack": "9.2.0-alpha.0",
|
|
18631
|
+
"create-storybook": "9.2.0-alpha.0",
|
|
18632
|
+
"@storybook/csf-plugin": "9.2.0-alpha.0",
|
|
18633
|
+
"eslint-plugin-storybook": "9.2.0-alpha.0",
|
|
18634
|
+
"@storybook/react-dom-shim": "9.2.0-alpha.0",
|
|
18635
|
+
"@storybook/preset-create-react-app": "9.2.0-alpha.0",
|
|
18636
|
+
"@storybook/preset-react-webpack": "9.2.0-alpha.0",
|
|
18637
|
+
"@storybook/preset-server-webpack": "9.2.0-alpha.0",
|
|
18638
|
+
"@storybook/html": "9.2.0-alpha.0",
|
|
18639
|
+
"@storybook/preact": "9.2.0-alpha.0",
|
|
18640
|
+
"@storybook/react": "9.2.0-alpha.0",
|
|
18641
|
+
"@storybook/server": "9.2.0-alpha.0",
|
|
18642
|
+
"@storybook/svelte": "9.2.0-alpha.0",
|
|
18643
|
+
"@storybook/vue3": "9.2.0-alpha.0",
|
|
18644
|
+
"@storybook/web-components": "9.2.0-alpha.0"
|
|
18645
18645
|
};
|
|
18646
18646
|
|
|
18647
18647
|
// src/common/presets.ts
|
|
18648
18648
|
var KE = cA(gt(), 1);
|
|
18649
18649
|
import { join as Tg, parse as SE } from "node:path";
|
|
18650
18650
|
import { logger as Ni } from "storybook/internal/node-logger";
|
|
18651
|
-
import { CriticalPresetLoadError as
|
|
18651
|
+
import { CriticalPresetLoadError as _k } from "storybook/internal/server-errors";
|
|
18652
18652
|
|
|
18653
18653
|
// src/common/utils/interpret-files.ts
|
|
18654
18654
|
import { existsSync as El } from "node:fs";
|
|
@@ -18716,8 +18716,8 @@ import { resolve as Gg } from "node:path";
|
|
|
18716
18716
|
|
|
18717
18717
|
// src/common/utils/validate-configuration-files.ts
|
|
18718
18718
|
import { resolve as EE } from "node:path";
|
|
18719
|
-
import { once as
|
|
18720
|
-
import { MainFileMissingError as
|
|
18719
|
+
import { once as vk } from "storybook/internal/node-logger";
|
|
18720
|
+
import { MainFileMissingError as Lk } from "storybook/internal/server-errors";
|
|
18721
18721
|
|
|
18722
18722
|
// ../node_modules/glob/node_modules/minimatch/dist/esm/index.js
|
|
18723
18723
|
var Ul = cA(Nl(), 1);
|
|
@@ -18767,11 +18767,11 @@ var lF = {
|
|
|
18767
18767
|
continue;
|
|
18768
18768
|
}
|
|
18769
18769
|
if (D === "[" && !C) {
|
|
18770
|
-
for (let [N, [
|
|
18770
|
+
for (let [N, [k, _, L]] of Object.entries(lF))
|
|
18771
18771
|
if (t.startsWith(N, n)) {
|
|
18772
18772
|
if (Q)
|
|
18773
18773
|
return ["$.", !1, t.length - e, !0];
|
|
18774
|
-
n += N.length, L ? i.push(
|
|
18774
|
+
n += N.length, L ? i.push(k) : r.push(k), g = g || _;
|
|
18775
18775
|
continue A;
|
|
18776
18776
|
}
|
|
18777
18777
|
}
|
|
@@ -18802,7 +18802,7 @@ var lF = {
|
|
|
18802
18802
|
}, "parseClass");
|
|
18803
18803
|
|
|
18804
18804
|
// ../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js
|
|
18805
|
-
var
|
|
18805
|
+
var ke = /* @__PURE__ */ s((t, { windowsPathsNoEscape: A = !1 } = {}) => A ? t.replace(/\[([^\/\\])\]/g, "$1") : t.replace(/((?!\\).|^)\[([^\/\\])\]/g,
|
|
18806
18806
|
"$1$2").replace(/\\([^\/])/g, "$1"), "unescape");
|
|
18807
18807
|
|
|
18808
18808
|
// ../node_modules/glob/node_modules/minimatch/dist/esm/ast.js
|
|
@@ -19065,8 +19065,8 @@ var uF = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), vl = /* @__PURE__ *
|
|
|
19065
19065
|
let e = A ?? !!this.#g.dot;
|
|
19066
19066
|
if (this.#A === this && this.#B(), !this.type) {
|
|
19067
19067
|
let C = this.isStart() && this.isEnd(), I = this.#r.map((p) => {
|
|
19068
|
-
let [w, D, N,
|
|
19069
|
-
return this.#e = this.#e || N, this.#t = this.#t ||
|
|
19068
|
+
let [w, D, N, k] = typeof p == "string" ? t.#h(p, this.#e, C) : p.toRegExpSource(A);
|
|
19069
|
+
return this.#e = this.#e || N, this.#t = this.#t || k, w;
|
|
19070
19070
|
}).join(""), E = "";
|
|
19071
19071
|
if (this.isStart() && typeof this.#r[0] == "string" && !(this.#r.length === 1 && fF.has(this.#r[0]))) {
|
|
19072
19072
|
let w = QF, D = (
|
|
@@ -19080,7 +19080,7 @@ var uF = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), vl = /* @__PURE__ *
|
|
|
19080
19080
|
let Q = "";
|
|
19081
19081
|
return this.isEnd() && this.#A.#c && this.#n?.type === "!" && (Q = "(?:$|\\/)"), [
|
|
19082
19082
|
E + I + Q,
|
|
19083
|
-
|
|
19083
|
+
ke(I),
|
|
19084
19084
|
this.#e = !!this.#e,
|
|
19085
19085
|
this.#t
|
|
19086
19086
|
];
|
|
@@ -19088,7 +19088,7 @@ var uF = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), vl = /* @__PURE__ *
|
|
|
19088
19088
|
let r = this.type === "*" || this.type === "+", i = this.type === "!" ? "(?:(?!(?:" : "(?:", n = this.#l(e);
|
|
19089
19089
|
if (this.isStart() && this.isEnd() && !n && this.type !== "!") {
|
|
19090
19090
|
let C = this.toString();
|
|
19091
|
-
return this.#r = [C], this.type = null, this.#e = void 0, [C,
|
|
19091
|
+
return this.#r = [C], this.type = null, this.#e = void 0, [C, ke(this.toString()), !1, !1];
|
|
19092
19092
|
}
|
|
19093
19093
|
let o = !r || A || e || !Fs ? "" : this.#l(!0);
|
|
19094
19094
|
o === n && (o = ""), o && (n = `(?:${n})(?:${o})*?`);
|
|
@@ -19104,7 +19104,7 @@ var uF = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), vl = /* @__PURE__ *
|
|
|
19104
19104
|
}
|
|
19105
19105
|
return [
|
|
19106
19106
|
g,
|
|
19107
|
-
|
|
19107
|
+
ke(n),
|
|
19108
19108
|
this.#e = !!this.#e,
|
|
19109
19109
|
this.#t
|
|
19110
19110
|
];
|
|
@@ -19146,7 +19146,7 @@ var uF = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), vl = /* @__PURE__ *
|
|
|
19146
19146
|
}
|
|
19147
19147
|
n += pF(C);
|
|
19148
19148
|
}
|
|
19149
|
-
return [n,
|
|
19149
|
+
return [n, ke(A), !!e, o];
|
|
19150
19150
|
}
|
|
19151
19151
|
};
|
|
19152
19152
|
|
|
@@ -19159,8 +19159,8 @@ var $A = /* @__PURE__ */ s((t, A, e = {}) => (ui(A), !e.nocomment && A.charAt(0)
|
|
|
19159
19159
|
mF = /* @__PURE__ */ s((t) => (A) => !A.startsWith(".") && A.endsWith(t), "starDotExtTest"), yF = /* @__PURE__ */ s((t) => (A) => A.endsWith(
|
|
19160
19160
|
t), "starDotExtTestDot"), DF = /* @__PURE__ */ s((t) => (t = t.toLowerCase(), (A) => !A.startsWith(".") && A.toLowerCase().endsWith(t)), "st\
|
|
19161
19161
|
arDotExtTestNocase"), SF = /* @__PURE__ */ s((t) => (t = t.toLowerCase(), (A) => A.toLowerCase().endsWith(t)), "starDotExtTestNocaseDot"), KF = /^\*+\.\*+$/,
|
|
19162
|
-
FF = /* @__PURE__ */ s((t) => !t.startsWith(".") && t.includes("."), "starDotStarTest"),
|
|
19163
|
-
." && t.includes("."), "starDotStarTestDot"),
|
|
19162
|
+
FF = /* @__PURE__ */ s((t) => !t.startsWith(".") && t.includes("."), "starDotStarTest"), kF = /* @__PURE__ */ s((t) => t !== "." && t !== ".\
|
|
19163
|
+
." && t.includes("."), "starDotStarTestDot"), bF = /^\.\*+$/, NF = /* @__PURE__ */ s((t) => t !== "." && t !== ".." && t.startsWith("."), "d\
|
|
19164
19164
|
otStarTest"), MF = /^\*+$/, RF = /* @__PURE__ */ s((t) => t.length !== 0 && !t.startsWith("."), "starTest"), vF = /* @__PURE__ */ s((t) => t.
|
|
19165
19165
|
length !== 0 && t !== "." && t !== "..", "starTestDot"), LF = /^\?+([^+@!?\*\[\(]*)?$/, xF = /* @__PURE__ */ s(([t, A = ""]) => {
|
|
19166
19166
|
let e = _l([t]);
|
|
@@ -19477,8 +19477,8 @@ var Pl = /[?*]|[+@!]\(.*?\)|\[|\]/, WF = /* @__PURE__ */ s((t) => t.replace(/[-[
|
|
|
19477
19477
|
let i = this.options;
|
|
19478
19478
|
if (this.isWindows) {
|
|
19479
19479
|
let D = typeof A[0] == "string" && /^[a-z]:$/i.test(A[0]), N = !D && A[0] === "" && A[1] === "" && A[2] === "?" && /^[a-z]:$/i.test(A[3]),
|
|
19480
|
-
|
|
19481
|
-
/^[a-z]:$/i.test(e[3]), L = N ? 3 : D ? 0 : void 0, J = _ ? 3 :
|
|
19480
|
+
k = typeof e[0] == "string" && /^[a-z]:$/i.test(e[0]), _ = !k && e[0] === "" && e[1] === "" && e[2] === "?" && typeof e[3] == "string" &&
|
|
19481
|
+
/^[a-z]:$/i.test(e[3]), L = N ? 3 : D ? 0 : void 0, J = _ ? 3 : k ? 0 : void 0;
|
|
19482
19482
|
if (typeof L == "number" && typeof J == "number") {
|
|
19483
19483
|
let [U, Z] = [A[L], e[J]];
|
|
19484
19484
|
U.toLowerCase() === Z.toLowerCase() && (e[J] = U, J > L ? e = e.slice(J) : L > J && (A = A.slice(L)));
|
|
@@ -19540,7 +19540,7 @@ globstar while`, A, B, e, p, w), this.matchOne(A.slice(B), e.slice(p), r))
|
|
|
19540
19540
|
return "";
|
|
19541
19541
|
let r, i = null;
|
|
19542
19542
|
(r = A.match(MF)) ? i = e.dot ? vF : RF : (r = A.match(wF)) ? i = (e.nocase ? e.dot ? SF : DF : e.dot ? yF : mF)(r[1]) : (r = A.match(LF)) ?
|
|
19543
|
-
i = (e.nocase ? e.dot ? YF : xF : e.dot ? PF : UF)(r) : (r = A.match(KF)) ? i = e.dot ?
|
|
19543
|
+
i = (e.nocase ? e.dot ? YF : xF : e.dot ? PF : UF)(r) : (r = A.match(KF)) ? i = e.dot ? kF : FF : (r = A.match(bF)) && (i = NF);
|
|
19544
19544
|
let n = mr.fromGlob(A, this.options).toMMPattern();
|
|
19545
19545
|
return i && typeof n == "object" && Reflect.defineProperty(n, "test", { value: i }), n;
|
|
19546
19546
|
}
|
|
@@ -19605,17 +19605,17 @@ globstar while`, A, B, e, p, w), this.matchOne(A.slice(B), e.slice(p), r))
|
|
|
19605
19605
|
$A.AST = mr;
|
|
19606
19606
|
$A.Minimatch = Ie;
|
|
19607
19607
|
$A.escape = yr;
|
|
19608
|
-
$A.unescape =
|
|
19608
|
+
$A.unescape = ke;
|
|
19609
19609
|
|
|
19610
19610
|
// ../node_modules/glob/dist/esm/glob.js
|
|
19611
|
-
import { fileURLToPath as
|
|
19611
|
+
import { fileURLToPath as Kk } from "node:url";
|
|
19612
19612
|
|
|
19613
19613
|
// ../node_modules/lru-cache/dist/esm/index.js
|
|
19614
19614
|
var Dr = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, Hl = /* @__PURE__ */ new Set(),
|
|
19615
19615
|
yg = typeof process == "object" && process ? process : {}, jl = /* @__PURE__ */ s((t, A, e, r) => {
|
|
19616
19616
|
typeof yg.emitWarning == "function" ? yg.emitWarning(t, A, e, r) : console.error(`[${e}] ${A}: ${t}`);
|
|
19617
|
-
}, "emitWarning"),
|
|
19618
|
-
if (typeof
|
|
19617
|
+
}, "emitWarning"), ks = globalThis.AbortController, Tl = globalThis.AbortSignal;
|
|
19618
|
+
if (typeof ks > "u") {
|
|
19619
19619
|
Tl = class {
|
|
19620
19620
|
static {
|
|
19621
19621
|
s(this, "AbortSignal");
|
|
@@ -19627,7 +19627,7 @@ if (typeof bs > "u") {
|
|
|
19627
19627
|
addEventListener(r, i) {
|
|
19628
19628
|
this._onabort.push(i);
|
|
19629
19629
|
}
|
|
19630
|
-
},
|
|
19630
|
+
}, ks = class {
|
|
19631
19631
|
static {
|
|
19632
19632
|
s(this, "AbortController");
|
|
19633
19633
|
}
|
|
@@ -19651,8 +19651,8 @@ ing it to other APIs that use AbortController/AbortSignal might have undesirable
|
|
|
19651
19651
|
NING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", A));
|
|
19652
19652
|
}, "warnACPolyfill");
|
|
19653
19653
|
}
|
|
19654
|
-
var VF = /* @__PURE__ */ s((t) => !Hl.has(t), "shouldWarn"), hH = Symbol("type"),
|
|
19655
|
-
0 && isFinite(t), "isPosInt"), ql = /* @__PURE__ */ s((t) =>
|
|
19654
|
+
var VF = /* @__PURE__ */ s((t) => !Hl.has(t), "shouldWarn"), hH = Symbol("type"), bt = /* @__PURE__ */ s((t) => t && t === Math.floor(t) && t >
|
|
19655
|
+
0 && isFinite(t), "isPosInt"), ql = /* @__PURE__ */ s((t) => bt(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array :
|
|
19656
19656
|
t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? Sr : null : null, "getUintArray"), Sr = class extends Array {
|
|
19657
19657
|
static {
|
|
19658
19658
|
s(this, "ZeroArray");
|
|
@@ -19860,9 +19860,9 @@ t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? Sr : null :
|
|
|
19860
19860
|
}
|
|
19861
19861
|
constructor(A) {
|
|
19862
19862
|
let { max: e = 0, ttl: r, ttlResolution: i = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: g, allowStale: C, dispose: I, disposeAfter: E,
|
|
19863
|
-
noDisposeOnSet: Q, noUpdateTTL: B, maxSize: p = 0, maxEntrySize: w = 0, sizeCalculation: D, fetchMethod: N, memoMethod:
|
|
19863
|
+
noDisposeOnSet: Q, noUpdateTTL: B, maxSize: p = 0, maxEntrySize: w = 0, sizeCalculation: D, fetchMethod: N, memoMethod: k, noDeleteOnFetchRejection: _,
|
|
19864
19864
|
noDeleteOnStaleGet: L, allowStaleOnFetchRejection: J, allowStaleOnFetchAbort: U, ignoreFetchAbort: Z } = A;
|
|
19865
|
-
if (e !== 0 && !
|
|
19865
|
+
if (e !== 0 && !bt(e))
|
|
19866
19866
|
throw new TypeError("max option must be a nonnegative integer");
|
|
19867
19867
|
let q = e ? ql(e) : Array;
|
|
19868
19868
|
if (!q)
|
|
@@ -19873,26 +19873,26 @@ t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? Sr : null :
|
|
|
19873
19873
|
if (typeof this.sizeCalculation != "function")
|
|
19874
19874
|
throw new TypeError("sizeCalculation set to non-function");
|
|
19875
19875
|
}
|
|
19876
|
-
if (
|
|
19876
|
+
if (k !== void 0 && typeof k != "function")
|
|
19877
19877
|
throw new TypeError("memoMethod must be a function if defined");
|
|
19878
|
-
if (this.#I =
|
|
19878
|
+
if (this.#I = k, N !== void 0 && typeof N != "function")
|
|
19879
19879
|
throw new TypeError("fetchMethod must be a function if specified");
|
|
19880
19880
|
if (this.#n = N, this.#w = !!N, this.#g = /* @__PURE__ */ new Map(), this.#a = new Array(e).fill(void 0), this.#s = new Array(e).fill(void 0),
|
|
19881
19881
|
this.#B = new q(e), this.#Q = new q(e), this.#l = 0, this.#h = 0, this.#m = Dg.create(e), this.#o = 0, this.#c = 0, typeof I == "functio\
|
|
19882
19882
|
n" && (this.#t = I), typeof E == "function" ? (this.#r = E, this.#u = []) : (this.#r = void 0, this.#u = void 0), this.#p = !!this.#t, this.#E =
|
|
19883
19883
|
!!this.#r, this.noDisposeOnSet = !!Q, this.noUpdateTTL = !!B, this.noDeleteOnFetchRejection = !!_, this.allowStaleOnFetchRejection = !!J,
|
|
19884
19884
|
this.allowStaleOnFetchAbort = !!U, this.ignoreFetchAbort = !!Z, this.maxEntrySize !== 0) {
|
|
19885
|
-
if (this.#e !== 0 && !
|
|
19885
|
+
if (this.#e !== 0 && !bt(this.#e))
|
|
19886
19886
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
19887
|
-
if (!
|
|
19887
|
+
if (!bt(this.maxEntrySize))
|
|
19888
19888
|
throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
19889
|
-
this.#
|
|
19889
|
+
this.#b();
|
|
19890
19890
|
}
|
|
19891
|
-
if (this.allowStale = !!C, this.noDeleteOnStaleGet = !!L, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!g, this.ttlResolution =
|
|
19891
|
+
if (this.allowStale = !!C, this.noDeleteOnStaleGet = !!L, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!g, this.ttlResolution = bt(
|
|
19892
19892
|
i) || i === 0 ? i : 1, this.ttlAutopurge = !!n, this.ttl = r || 0, this.ttl) {
|
|
19893
|
-
if (!
|
|
19893
|
+
if (!bt(this.ttl))
|
|
19894
19894
|
throw new TypeError("ttl must be a positive integer if specified");
|
|
19895
|
-
this.#
|
|
19895
|
+
this.#k();
|
|
19896
19896
|
}
|
|
19897
19897
|
if (this.#A === 0 && this.ttl === 0 && this.#e === 0)
|
|
19898
19898
|
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
@@ -19909,7 +19909,7 @@ heWarning", T, t));
|
|
|
19909
19909
|
getRemainingTTL(A) {
|
|
19910
19910
|
return this.#g.has(A) ? 1 / 0 : 0;
|
|
19911
19911
|
}
|
|
19912
|
-
#
|
|
19912
|
+
#k() {
|
|
19913
19913
|
let A = new Sr(this.#A), e = new Sr(this.#A);
|
|
19914
19914
|
this.#d = A, this.#D = e, this.#M = (n, o, g = Dr.now()) => {
|
|
19915
19915
|
if (e[n] = o !== 0 ? g : 0, A[n] = o, o !== 0 && this.ttlAutopurge) {
|
|
@@ -19962,18 +19962,18 @@ heWarning", T, t));
|
|
|
19962
19962
|
}, "#setItemTTL");
|
|
19963
19963
|
/* c8 ignore stop */
|
|
19964
19964
|
#f = /* @__PURE__ */ s(() => !1, "#isStale");
|
|
19965
|
-
#
|
|
19965
|
+
#b() {
|
|
19966
19966
|
let A = new Sr(this.#A);
|
|
19967
19967
|
this.#c = 0, this.#y = A, this.#R = (e) => {
|
|
19968
19968
|
this.#c -= A[e], A[e] = 0;
|
|
19969
19969
|
}, this.#L = (e, r, i, n) => {
|
|
19970
19970
|
if (this.#C(r))
|
|
19971
19971
|
return 0;
|
|
19972
|
-
if (!
|
|
19972
|
+
if (!bt(i))
|
|
19973
19973
|
if (n) {
|
|
19974
19974
|
if (typeof n != "function")
|
|
19975
19975
|
throw new TypeError("sizeCalculation must be a function");
|
|
19976
|
-
if (i = n(r, e), !
|
|
19976
|
+
if (i = n(r, e), !bt(i))
|
|
19977
19977
|
throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
19978
19978
|
} else
|
|
19979
19979
|
throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size \
|
|
@@ -20263,7 +20263,7 @@ must be set.");
|
|
|
20263
20263
|
}
|
|
20264
20264
|
} else C && (C.set = "update");
|
|
20265
20265
|
}
|
|
20266
|
-
if (i !== 0 && !this.#d && this.#
|
|
20266
|
+
if (i !== 0 && !this.#d && this.#k(), this.#d && (I || this.#M(Q, i, n), C && this.#i(C, Q)), !o && this.#E && this.#u) {
|
|
20267
20267
|
let B = this.#u, p;
|
|
20268
20268
|
for (; p = B?.shift(); )
|
|
20269
20269
|
this.#r?.(...p);
|
|
@@ -20344,7 +20344,7 @@ ict"), this.#E && this.#u?.push([i, r, "evict"])), this.#R(e), A && (this.#a[e]
|
|
|
20344
20344
|
let n = e === void 0 ? void 0 : this.#s[e];
|
|
20345
20345
|
if (this.#C(n))
|
|
20346
20346
|
return n;
|
|
20347
|
-
let o = new
|
|
20347
|
+
let o = new ks(), { signal: g } = r;
|
|
20348
20348
|
g?.addEventListener("abort", () => o.abort(g.reason), {
|
|
20349
20349
|
signal: o.signal
|
|
20350
20350
|
});
|
|
@@ -20353,24 +20353,24 @@ ict"), this.#E && this.#u?.push([i, r, "evict"])), this.#R(e), A && (this.#a[e]
|
|
|
20353
20353
|
options: r,
|
|
20354
20354
|
context: i
|
|
20355
20355
|
}, I = /* @__PURE__ */ s((D, N = !1) => {
|
|
20356
|
-
let { aborted:
|
|
20357
|
-
if (r.status && (
|
|
20358
|
-
r.status.fetchResolved = !0),
|
|
20356
|
+
let { aborted: k } = o.signal, _ = r.ignoreFetchAbort && D !== void 0;
|
|
20357
|
+
if (r.status && (k && !N ? (r.status.fetchAborted = !0, r.status.fetchError = o.signal.reason, _ && (r.status.fetchAbortIgnored = !0)) :
|
|
20358
|
+
r.status.fetchResolved = !0), k && !_ && !N)
|
|
20359
20359
|
return Q(o.signal.reason);
|
|
20360
20360
|
let L = p;
|
|
20361
20361
|
return this.#s[e] === p && (D === void 0 ? L.__staleWhileFetching ? this.#s[e] = L.__staleWhileFetching : this.#N(A, "fetch") : (r.status &&
|
|
20362
20362
|
(r.status.fetchUpdated = !0), this.set(A, D, C.options))), D;
|
|
20363
20363
|
}, "cb"), E = /* @__PURE__ */ s((D) => (r.status && (r.status.fetchRejected = !0, r.status.fetchError = D), Q(D)), "eb"), Q = /* @__PURE__ */ s(
|
|
20364
20364
|
(D) => {
|
|
20365
|
-
let { aborted: N } = o.signal,
|
|
20365
|
+
let { aborted: N } = o.signal, k = N && r.allowStaleOnFetchAbort, _ = k || r.allowStaleOnFetchRejection, L = _ || r.noDeleteOnFetchRejection,
|
|
20366
20366
|
J = p;
|
|
20367
|
-
if (this.#s[e] === p && (!L || J.__staleWhileFetching === void 0 ? this.#N(A, "fetch") :
|
|
20367
|
+
if (this.#s[e] === p && (!L || J.__staleWhileFetching === void 0 ? this.#N(A, "fetch") : k || (this.#s[e] = J.__staleWhileFetching)), _)
|
|
20368
20368
|
return r.status && J.__staleWhileFetching !== void 0 && (r.status.returnedStale = !0), J.__staleWhileFetching;
|
|
20369
20369
|
if (J.__returned === J)
|
|
20370
20370
|
throw D;
|
|
20371
20371
|
}, "fetchFail"), B = /* @__PURE__ */ s((D, N) => {
|
|
20372
|
-
let
|
|
20373
|
-
|
|
20372
|
+
let k = this.#n?.(A, n, C);
|
|
20373
|
+
k && k instanceof Promise && k.then((_) => D(_ === void 0 ? void 0 : _), N), o.signal.addEventListener("abort", () => {
|
|
20374
20374
|
(!r.ignoreFetchAbort || r.allowStaleOnFetchAbort) && (D(void 0), r.allowStaleOnFetchAbort && (D = /* @__PURE__ */ s((_) => I(_, !0),
|
|
20375
20375
|
"res")));
|
|
20376
20376
|
});
|
|
@@ -20387,7 +20387,7 @@ ict"), this.#E && this.#u?.push([i, r, "evict"])), this.#R(e), A && (this.#a[e]
|
|
|
20387
20387
|
if (!this.#w)
|
|
20388
20388
|
return !1;
|
|
20389
20389
|
let e = A;
|
|
20390
|
-
return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof
|
|
20390
|
+
return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof ks;
|
|
20391
20391
|
}
|
|
20392
20392
|
async fetch(A, e = {}) {
|
|
20393
20393
|
let {
|
|
@@ -20408,15 +20408,15 @@ ict"), this.#E && this.#u?.push([i, r, "evict"])), this.#R(e), A && (this.#a[e]
|
|
|
20408
20408
|
allowStaleOnFetchAbort: w = this.allowStaleOnFetchAbort,
|
|
20409
20409
|
context: D,
|
|
20410
20410
|
forceRefresh: N = !1,
|
|
20411
|
-
status:
|
|
20411
|
+
status: k,
|
|
20412
20412
|
signal: _
|
|
20413
20413
|
} = e;
|
|
20414
20414
|
if (!this.#w)
|
|
20415
|
-
return
|
|
20415
|
+
return k && (k.fetch = "get"), this.get(A, {
|
|
20416
20416
|
allowStale: r,
|
|
20417
20417
|
updateAgeOnGet: i,
|
|
20418
20418
|
noDeleteOnStaleGet: n,
|
|
20419
|
-
status:
|
|
20419
|
+
status: k
|
|
20420
20420
|
});
|
|
20421
20421
|
let L = {
|
|
20422
20422
|
allowStale: r,
|
|
@@ -20431,24 +20431,24 @@ ict"), this.#E && this.#u?.push([i, r, "evict"])), this.#R(e), A && (this.#a[e]
|
|
|
20431
20431
|
allowStaleOnFetchRejection: B,
|
|
20432
20432
|
allowStaleOnFetchAbort: w,
|
|
20433
20433
|
ignoreFetchAbort: p,
|
|
20434
|
-
status:
|
|
20434
|
+
status: k,
|
|
20435
20435
|
signal: _
|
|
20436
20436
|
}, J = this.#g.get(A);
|
|
20437
20437
|
if (J === void 0) {
|
|
20438
|
-
|
|
20438
|
+
k && (k.fetch = "miss");
|
|
20439
20439
|
let U = this.#P(A, J, L, D);
|
|
20440
20440
|
return U.__returned = U;
|
|
20441
20441
|
} else {
|
|
20442
20442
|
let U = this.#s[J];
|
|
20443
20443
|
if (this.#C(U)) {
|
|
20444
20444
|
let mA = r && U.__staleWhileFetching !== void 0;
|
|
20445
|
-
return
|
|
20445
|
+
return k && (k.fetch = "inflight", mA && (k.returnedStale = !0)), mA ? U.__staleWhileFetching : U.__returned = U;
|
|
20446
20446
|
}
|
|
20447
20447
|
let Z = this.#f(J);
|
|
20448
20448
|
if (!N && !Z)
|
|
20449
|
-
return
|
|
20449
|
+
return k && (k.fetch = "hit"), this.#_(J), i && this.#S(J), k && this.#i(k, J), U;
|
|
20450
20450
|
let q = this.#P(A, J, L, D), eA = q.__staleWhileFetching !== void 0 && r;
|
|
20451
|
-
return
|
|
20451
|
+
return k && (k.fetch = Z ? "stale" : "refresh", eA && Z && (k.returnedStale = !0)), eA ? q.__staleWhileFetching : q.__returned = q;
|
|
20452
20452
|
}
|
|
20453
20453
|
}
|
|
20454
20454
|
async forceFetch(A, e = {}) {
|
|
@@ -20557,11 +20557,11 @@ ict"), this.#E && this.#u?.push([i, r, "evict"])), this.#R(e), A && (this.#a[e]
|
|
|
20557
20557
|
};
|
|
20558
20558
|
|
|
20559
20559
|
// ../node_modules/path-scurry/dist/esm/index.js
|
|
20560
|
-
import { posix as
|
|
20561
|
-
import { fileURLToPath as
|
|
20562
|
-
import { lstatSync as
|
|
20563
|
-
import * as
|
|
20564
|
-
import { lstat as
|
|
20560
|
+
import { posix as ok, win32 as Lg } from "node:path";
|
|
20561
|
+
import { fileURLToPath as gk } from "node:url";
|
|
20562
|
+
import { lstatSync as ak, readdir as Ck, readdirSync as ck, readlinkSync as Ik, realpathSync as hk } from "fs";
|
|
20563
|
+
import * as lk from "node:fs";
|
|
20564
|
+
import { lstat as uk, readdir as Bk, readlink as Qk, realpath as fk } from "node:fs/promises";
|
|
20565
20565
|
|
|
20566
20566
|
// ../node_modules/minipass/dist/esm/index.js
|
|
20567
20567
|
import { EventEmitter as Mg } from "node:events";
|
|
@@ -20570,18 +20570,18 @@ import { StringDecoder as XF } from "node:string_decoder";
|
|
|
20570
20570
|
var zl = typeof process == "object" && process ? process : {
|
|
20571
20571
|
stdout: null,
|
|
20572
20572
|
stderr: null
|
|
20573
|
-
}, $F = /* @__PURE__ */ s((t) => !!t && typeof t == "object" && (t instanceof Mt || t instanceof $l || ZF(t) ||
|
|
20573
|
+
}, $F = /* @__PURE__ */ s((t) => !!t && typeof t == "object" && (t instanceof Mt || t instanceof $l || ZF(t) || Ak(t)), "isStream"), ZF = /* @__PURE__ */ s(
|
|
20574
20574
|
(t) => !!t && typeof t == "object" && t instanceof Mg && typeof t.pipe == "function" && // node core Writable streams have a pipe() method, but it throws
|
|
20575
|
-
t.pipe !== $l.Writable.prototype.pipe, "isReadable"),
|
|
20575
|
+
t.pipe !== $l.Writable.prototype.pipe, "isReadable"), Ak = /* @__PURE__ */ s((t) => !!t && typeof t == "object" && t instanceof Mg && typeof t.
|
|
20576
20576
|
write == "function" && typeof t.end == "function", "isWritable"), at = Symbol("EOF"), Ct = Symbol("maybeEmitEnd"), Nt = Symbol("emittedEnd"),
|
|
20577
|
-
|
|
20578
|
-
hChunk"),
|
|
20577
|
+
bs = Symbol("emittingEnd"), fi = Symbol("emittedError"), Ns = Symbol("closed"), Wl = Symbol("read"), Ms = Symbol("flush"), Vl = Symbol("flus\
|
|
20578
|
+
hChunk"), be = Symbol("encoding"), Kr = Symbol("decoder"), PA = Symbol("flowing"), di = Symbol("paused"), Fr = Symbol("resume"), UA = Symbol(
|
|
20579
20579
|
"buffer"), ZA = Symbol("pipes"), _A = Symbol("bufferLength"), Sg = Symbol("bufferPush"), Rs = Symbol("bufferShift"), jA = Symbol("objectMode"),
|
|
20580
|
-
|
|
20581
|
-
|
|
20582
|
-
(t) => Promise.resolve().then(t), "defer"),
|
|
20583
|
-
"finish" || t === "prefinish", "isEndish"),
|
|
20584
|
-
t.constructor.name === "ArrayBuffer" && t.byteLength >= 0, "isArrayBufferLike"),
|
|
20580
|
+
kA = Symbol("destroyed"), Kg = Symbol("error"), Fg = Symbol("emitData"), Xl = Symbol("emitEnd"), kg = Symbol("emitEnd2"), He = Symbol("async"),
|
|
20581
|
+
bg = Symbol("abort"), vs = Symbol("aborted"), pi = Symbol("signal"), er = Symbol("dataListeners"), he = Symbol("discarded"), wi = /* @__PURE__ */ s(
|
|
20582
|
+
(t) => Promise.resolve().then(t), "defer"), ek = /* @__PURE__ */ s((t) => t(), "nodefer"), tk = /* @__PURE__ */ s((t) => t === "end" || t ===
|
|
20583
|
+
"finish" || t === "prefinish", "isEndish"), rk = /* @__PURE__ */ s((t) => t instanceof ArrayBuffer || !!t && typeof t == "object" && t.constructor &&
|
|
20584
|
+
t.constructor.name === "ArrayBuffer" && t.byteLength >= 0, "isArrayBufferLike"), ik = /* @__PURE__ */ s((t) => !Buffer.isBuffer(t) && ArrayBuffer.
|
|
20585
20585
|
isView(t), "isArrayBufferView"), Ls = class {
|
|
20586
20586
|
static {
|
|
20587
20587
|
s(this, "Pipe");
|
|
@@ -20614,7 +20614,7 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
20614
20614
|
constructor(A, e, r) {
|
|
20615
20615
|
super(A, e, r), this.proxyErrors = (i) => e.emit("error", i), A.on("error", this.proxyErrors);
|
|
20616
20616
|
}
|
|
20617
|
-
},
|
|
20617
|
+
}, sk = /* @__PURE__ */ s((t) => !!t.objectMode, "isObjectModeOptions"), nk = /* @__PURE__ */ s((t) => !t.objectMode && !!t.encoding && t.encoding !==
|
|
20618
20618
|
"buffer", "isEncodingOptions"), Mt = class extends Mg {
|
|
20619
20619
|
static {
|
|
20620
20620
|
s(this, "Minipass");
|
|
@@ -20624,16 +20624,16 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
20624
20624
|
[ZA] = [];
|
|
20625
20625
|
[UA] = [];
|
|
20626
20626
|
[jA];
|
|
20627
|
-
[
|
|
20627
|
+
[be];
|
|
20628
20628
|
[He];
|
|
20629
20629
|
[Kr];
|
|
20630
20630
|
[at] = !1;
|
|
20631
20631
|
[Nt] = !1;
|
|
20632
|
-
[
|
|
20632
|
+
[bs] = !1;
|
|
20633
20633
|
[Ns] = !1;
|
|
20634
20634
|
[fi] = null;
|
|
20635
20635
|
[_A] = 0;
|
|
20636
|
-
[
|
|
20636
|
+
[kA] = !1;
|
|
20637
20637
|
[pi];
|
|
20638
20638
|
[vs] = !1;
|
|
20639
20639
|
[er] = 0;
|
|
@@ -20656,12 +20656,12 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
20656
20656
|
let e = A[0] || {};
|
|
20657
20657
|
if (super(), e.objectMode && typeof e.encoding == "string")
|
|
20658
20658
|
throw new TypeError("Encoding and objectMode may not be used together");
|
|
20659
|
-
|
|
20660
|
-
!!e.async, this[Kr] = this[
|
|
20659
|
+
sk(e) ? (this[jA] = !0, this[be] = null) : nk(e) ? (this[be] = e.encoding, this[jA] = !1) : (this[jA] = !1, this[be] = null), this[He] =
|
|
20660
|
+
!!e.async, this[Kr] = this[be] ? new XF(this[be]) : null, e && e.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: /* @__PURE__ */ s(
|
|
20661
20661
|
() => this[UA], "get") }), e && e.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: /* @__PURE__ */ s(() => this[ZA],
|
|
20662
20662
|
"get") });
|
|
20663
20663
|
let { signal: r } = e;
|
|
20664
|
-
r && (this[pi] = r, r.aborted ? this[
|
|
20664
|
+
r && (this[pi] = r, r.aborted ? this[bg]() : r.addEventListener("abort", () => this[bg]()));
|
|
20665
20665
|
}
|
|
20666
20666
|
/**
|
|
20667
20667
|
* The amount of data stored in the buffer waiting to be read.
|
|
@@ -20679,7 +20679,7 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
20679
20679
|
* The `BufferEncoding` currently in use, or `null`
|
|
20680
20680
|
*/
|
|
20681
20681
|
get encoding() {
|
|
20682
|
-
return this[
|
|
20682
|
+
return this[be];
|
|
20683
20683
|
}
|
|
20684
20684
|
/**
|
|
20685
20685
|
* @deprecated - This is a read only property
|
|
@@ -20722,7 +20722,7 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
20722
20722
|
this[He] = this[He] || !!A;
|
|
20723
20723
|
}
|
|
20724
20724
|
// drop everything and get out of the flow completely
|
|
20725
|
-
[
|
|
20725
|
+
[bg]() {
|
|
20726
20726
|
this[vs] = !0, this.emit("abort", this[pi]?.reason), this.destroy(this[pi]?.reason);
|
|
20727
20727
|
}
|
|
20728
20728
|
/**
|
|
@@ -20742,22 +20742,22 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
20742
20742
|
return !1;
|
|
20743
20743
|
if (this[at])
|
|
20744
20744
|
throw new Error("write after end");
|
|
20745
|
-
if (this[
|
|
20745
|
+
if (this[kA])
|
|
20746
20746
|
return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })),
|
|
20747
20747
|
!0;
|
|
20748
20748
|
typeof e == "function" && (r = e, e = "utf8"), e || (e = "utf8");
|
|
20749
|
-
let i = this[He] ? wi :
|
|
20749
|
+
let i = this[He] ? wi : ek;
|
|
20750
20750
|
if (!this[jA] && !Buffer.isBuffer(A)) {
|
|
20751
|
-
if (
|
|
20751
|
+
if (ik(A))
|
|
20752
20752
|
A = Buffer.from(A.buffer, A.byteOffset, A.byteLength);
|
|
20753
|
-
else if (
|
|
20753
|
+
else if (rk(A))
|
|
20754
20754
|
A = Buffer.from(A);
|
|
20755
20755
|
else if (typeof A != "string")
|
|
20756
20756
|
throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
20757
20757
|
}
|
|
20758
20758
|
return this[jA] ? (this[PA] && this[_A] !== 0 && this[Ms](!0), this[PA] ? this.emit("data", A) : this[Sg](A), this[_A] !== 0 && this.emit(
|
|
20759
20759
|
"readable"), r && i(r), this[PA]) : A.length ? (typeof A == "string" && // unless it is a string already ready for us to use
|
|
20760
|
-
!(e === this[
|
|
20760
|
+
!(e === this[be] && !this[Kr]?.lastNeed) && (A = Buffer.from(A, e)), Buffer.isBuffer(A) && this[be] && (A = this[Kr].write(A)), this[PA] &&
|
|
20761
20761
|
this[_A] !== 0 && this[Ms](!0), this[PA] ? this.emit("data", A) : this[Sg](A), this[_A] !== 0 && this.emit("readable"), r && i(r), this[PA]) :
|
|
20762
20762
|
(this[_A] !== 0 && this.emit("readable"), r && i(r), this[PA]);
|
|
20763
20763
|
}
|
|
@@ -20775,12 +20775,12 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
20775
20775
|
* then `null` is returned.
|
|
20776
20776
|
*/
|
|
20777
20777
|
read(A) {
|
|
20778
|
-
if (this[
|
|
20778
|
+
if (this[kA])
|
|
20779
20779
|
return null;
|
|
20780
20780
|
if (this[he] = !1, this[_A] === 0 || A === 0 || A && A > this[_A])
|
|
20781
20781
|
return this[Ct](), null;
|
|
20782
20782
|
this[jA] && (A = null), this[UA].length > 1 && !this[jA] && (this[UA] = [
|
|
20783
|
-
this[
|
|
20783
|
+
this[be] ? this[UA].join("") : Buffer.concat(this[UA], this[_A])
|
|
20784
20784
|
]);
|
|
20785
20785
|
let e = this[Wl](A || null, this[UA][0]);
|
|
20786
20786
|
return this[Ct](), e;
|
|
@@ -20801,7 +20801,7 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
20801
20801
|
}
|
|
20802
20802
|
// don't let the internal resume be overwritten
|
|
20803
20803
|
[Fr]() {
|
|
20804
|
-
this[
|
|
20804
|
+
this[kA] || (!this[er] && !this[ZA].length && (this[he] = !0), this[di] = !1, this[PA] = !0, this.emit("resume"), this[UA].length ? this[Ms]() :
|
|
20805
20805
|
this[at] ? this[Ct]() : this.emit("drain"));
|
|
20806
20806
|
}
|
|
20807
20807
|
/**
|
|
@@ -20826,7 +20826,7 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
20826
20826
|
* true if the stream has been forcibly destroyed
|
|
20827
20827
|
*/
|
|
20828
20828
|
get destroyed() {
|
|
20829
|
-
return this[
|
|
20829
|
+
return this[kA];
|
|
20830
20830
|
}
|
|
20831
20831
|
/**
|
|
20832
20832
|
* true if the stream is currently in a flowing state, meaning that
|
|
@@ -20862,7 +20862,7 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
20862
20862
|
* Triggers the flow of data.
|
|
20863
20863
|
*/
|
|
20864
20864
|
pipe(A, e) {
|
|
20865
|
-
if (this[
|
|
20865
|
+
if (this[kA])
|
|
20866
20866
|
return A;
|
|
20867
20867
|
this[he] = !1;
|
|
20868
20868
|
let r = this[Nt];
|
|
@@ -20911,7 +20911,7 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
20911
20911
|
this[he] = !1, this[er]++, !this[ZA].length && !this[PA] && this[Fr]();
|
|
20912
20912
|
else if (A === "readable" && this[_A] !== 0)
|
|
20913
20913
|
super.emit("readable");
|
|
20914
|
-
else if (
|
|
20914
|
+
else if (tk(A) && this[Nt])
|
|
20915
20915
|
super.emit(A), this.removeAllListeners(A);
|
|
20916
20916
|
else if (A === "error" && this[fi]) {
|
|
20917
20917
|
let i = e;
|
|
@@ -20956,8 +20956,8 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
20956
20956
|
return this[Nt];
|
|
20957
20957
|
}
|
|
20958
20958
|
[Ct]() {
|
|
20959
|
-
!this[
|
|
20960
|
-
emit("finish"), this[Ns] && this.emit("close"), this[
|
|
20959
|
+
!this[bs] && !this[Nt] && !this[kA] && this[UA].length === 0 && this[at] && (this[bs] = !0, this.emit("end"), this.emit("prefinish"), this.
|
|
20960
|
+
emit("finish"), this[Ns] && this.emit("close"), this[bs] = !1);
|
|
20961
20961
|
}
|
|
20962
20962
|
/**
|
|
20963
20963
|
* Mostly identical to `EventEmitter.emit`, with the following
|
|
@@ -20985,14 +20985,14 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
20985
20985
|
*/
|
|
20986
20986
|
emit(A, ...e) {
|
|
20987
20987
|
let r = e[0];
|
|
20988
|
-
if (A !== "error" && A !== "close" && A !==
|
|
20988
|
+
if (A !== "error" && A !== "close" && A !== kA && this[kA])
|
|
20989
20989
|
return !1;
|
|
20990
20990
|
if (A === "data")
|
|
20991
20991
|
return !this[jA] && !r ? !1 : this[He] ? (wi(() => this[Fg](r)), !0) : this[Fg](r);
|
|
20992
20992
|
if (A === "end")
|
|
20993
20993
|
return this[Xl]();
|
|
20994
20994
|
if (A === "close") {
|
|
20995
|
-
if (this[Ns] = !0, !this[Nt] && !this[
|
|
20995
|
+
if (this[Ns] = !0, !this[Nt] && !this[kA])
|
|
20996
20996
|
return !1;
|
|
20997
20997
|
let n = super.emit("close");
|
|
20998
20998
|
return this.removeAllListeners("close"), n;
|
|
@@ -21017,9 +21017,9 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
21017
21017
|
return this[Ct](), e;
|
|
21018
21018
|
}
|
|
21019
21019
|
[Xl]() {
|
|
21020
|
-
return this[Nt] ? !1 : (this[Nt] = !0, this.readable = !1, this[He] ? (wi(() => this[
|
|
21020
|
+
return this[Nt] ? !1 : (this[Nt] = !0, this.readable = !1, this[He] ? (wi(() => this[kg]()), !0) : this[kg]());
|
|
21021
21021
|
}
|
|
21022
|
-
[
|
|
21022
|
+
[kg]() {
|
|
21023
21023
|
if (this[Kr]) {
|
|
21024
21024
|
let e = this[Kr].end();
|
|
21025
21025
|
if (e) {
|
|
@@ -21057,14 +21057,14 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
21057
21057
|
if (this[jA])
|
|
21058
21058
|
throw new Error("cannot concat in objectMode");
|
|
21059
21059
|
let A = await this.collect();
|
|
21060
|
-
return this[
|
|
21060
|
+
return this[be] ? A.join("") : Buffer.concat(A, A.dataLength);
|
|
21061
21061
|
}
|
|
21062
21062
|
/**
|
|
21063
21063
|
* Return a void Promise that resolves once the stream ends.
|
|
21064
21064
|
*/
|
|
21065
21065
|
async promise() {
|
|
21066
21066
|
return new Promise((A, e) => {
|
|
21067
|
-
this.on(
|
|
21067
|
+
this.on(kA, () => e(new Error("stream destroyed"))), this.on("error", (r) => e(r)), this.on("end", () => A());
|
|
21068
21068
|
});
|
|
21069
21069
|
}
|
|
21070
21070
|
/**
|
|
@@ -21085,14 +21085,14 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
21085
21085
|
if (this[at])
|
|
21086
21086
|
return e();
|
|
21087
21087
|
let n, o, g = /* @__PURE__ */ s((Q) => {
|
|
21088
|
-
this.off("data", C), this.off("end", I), this.off(
|
|
21088
|
+
this.off("data", C), this.off("end", I), this.off(kA, E), e(), o(Q);
|
|
21089
21089
|
}, "onerr"), C = /* @__PURE__ */ s((Q) => {
|
|
21090
|
-
this.off("error", g), this.off("end", I), this.off(
|
|
21090
|
+
this.off("error", g), this.off("end", I), this.off(kA, E), this.pause(), n({ value: Q, done: !!this[at] });
|
|
21091
21091
|
}, "ondata"), I = /* @__PURE__ */ s(() => {
|
|
21092
|
-
this.off("error", g), this.off("data", C), this.off(
|
|
21092
|
+
this.off("error", g), this.off("data", C), this.off(kA, E), e(), n({ done: !0, value: void 0 });
|
|
21093
21093
|
}, "onend"), E = /* @__PURE__ */ s(() => g(new Error("stream destroyed")), "ondestroy");
|
|
21094
21094
|
return new Promise((Q, B) => {
|
|
21095
|
-
o = B, n = Q, this.once(
|
|
21095
|
+
o = B, n = Q, this.once(kA, E), this.once("error", g), this.once("end", I), this.once("data", C);
|
|
21096
21096
|
});
|
|
21097
21097
|
}, "next"),
|
|
21098
21098
|
throw: e,
|
|
@@ -21110,14 +21110,14 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
21110
21110
|
*/
|
|
21111
21111
|
[Symbol.iterator]() {
|
|
21112
21112
|
this[he] = !1;
|
|
21113
|
-
let A = !1, e = /* @__PURE__ */ s(() => (this.pause(), this.off(Kg, e), this.off(
|
|
21113
|
+
let A = !1, e = /* @__PURE__ */ s(() => (this.pause(), this.off(Kg, e), this.off(kA, e), this.off("end", e), A = !0, { done: !0, value: void 0 }),
|
|
21114
21114
|
"stop"), r = /* @__PURE__ */ s(() => {
|
|
21115
21115
|
if (A)
|
|
21116
21116
|
return e();
|
|
21117
21117
|
let i = this.read();
|
|
21118
21118
|
return i === null ? e() : { done: !1, value: i };
|
|
21119
21119
|
}, "next");
|
|
21120
|
-
return this.once("end", e), this.once(Kg, e), this.once(
|
|
21120
|
+
return this.once("end", e), this.once(Kg, e), this.once(kA, e), {
|
|
21121
21121
|
next: r,
|
|
21122
21122
|
throw: e,
|
|
21123
21123
|
return: e,
|
|
@@ -21139,11 +21139,11 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
21139
21139
|
* 'error' event.
|
|
21140
21140
|
*/
|
|
21141
21141
|
destroy(A) {
|
|
21142
|
-
if (this[
|
|
21143
|
-
return A ? this.emit("error", A) : this.emit(
|
|
21144
|
-
this[
|
|
21142
|
+
if (this[kA])
|
|
21143
|
+
return A ? this.emit("error", A) : this.emit(kA), this;
|
|
21144
|
+
this[kA] = !0, this[he] = !0, this[UA].length = 0, this[_A] = 0;
|
|
21145
21145
|
let e = this;
|
|
21146
|
-
return typeof e.close == "function" && !this[Ns] && e.close(), A ? this.emit("error", A) : this.emit(
|
|
21146
|
+
return typeof e.close == "function" && !this[Ns] && e.close(), A ? this.emit("error", A) : this.emit(kA), this;
|
|
21147
21147
|
}
|
|
21148
21148
|
/**
|
|
21149
21149
|
* Alias for {@link isStream}
|
|
@@ -21158,28 +21158,28 @@ isView(t), "isArrayBufferView"), Ls = class {
|
|
|
21158
21158
|
};
|
|
21159
21159
|
|
|
21160
21160
|
// ../node_modules/path-scurry/dist/esm/index.js
|
|
21161
|
-
var
|
|
21162
|
-
lstatSync:
|
|
21163
|
-
readdir:
|
|
21164
|
-
readdirSync:
|
|
21165
|
-
readlinkSync:
|
|
21166
|
-
realpathSync:
|
|
21161
|
+
var Ek = hk.native, yi = {
|
|
21162
|
+
lstatSync: ak,
|
|
21163
|
+
readdir: Ck,
|
|
21164
|
+
readdirSync: ck,
|
|
21165
|
+
readlinkSync: Ik,
|
|
21166
|
+
realpathSync: Ek,
|
|
21167
21167
|
promises: {
|
|
21168
|
-
lstat:
|
|
21169
|
-
readdir:
|
|
21170
|
-
readlink:
|
|
21171
|
-
realpath:
|
|
21168
|
+
lstat: uk,
|
|
21169
|
+
readdir: Bk,
|
|
21170
|
+
readlink: Qk,
|
|
21171
|
+
realpath: fk
|
|
21172
21172
|
}
|
|
21173
|
-
}, rE = /* @__PURE__ */ s((t) => !t || t === yi || t ===
|
|
21173
|
+
}, rE = /* @__PURE__ */ s((t) => !t || t === yi || t === lk ? yi : {
|
|
21174
21174
|
...yi,
|
|
21175
21175
|
...t,
|
|
21176
21176
|
promises: {
|
|
21177
21177
|
...yi.promises,
|
|
21178
21178
|
...t.promises || {}
|
|
21179
21179
|
}
|
|
21180
|
-
}, "fsFromOption"), iE = /^\\\\\?\\([a-z]:)\\?$/i,
|
|
21180
|
+
}, "fsFromOption"), iE = /^\\\\\?\\([a-z]:)\\?$/i, dk = /* @__PURE__ */ s((t) => t.replace(/\//g, "\\").replace(iE, "$1\\"), "uncToDrive"), pk = /[\\\/]/,
|
|
21181
21181
|
fe = 0, sE = 1, nE = 2, je = 4, oE = 6, gE = 8, tr = 10, aE = 12, Qe = 15, mi = ~Qe, Rg = 16, Zl = 32, Di = 64, Ne = 128, xs = 256, Ps = 512,
|
|
21182
|
-
AE = Di | Ne | Ps,
|
|
21182
|
+
AE = Di | Ne | Ps, wk = 1023, vg = /* @__PURE__ */ s((t) => t.isFile() ? gE : t.isDirectory() ? je : t.isSymbolicLink() ? tr : t.isCharacterDevice() ?
|
|
21183
21183
|
nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToType"), eE = /* @__PURE__ */ new Map(), Si = /* @__PURE__ */ s(
|
|
21184
21184
|
(t) => {
|
|
21185
21185
|
let A = eE.get(t);
|
|
@@ -21332,12 +21332,12 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
21332
21332
|
#p;
|
|
21333
21333
|
#w;
|
|
21334
21334
|
#E;
|
|
21335
|
-
#
|
|
21335
|
+
#k;
|
|
21336
21336
|
#S;
|
|
21337
21337
|
#i;
|
|
21338
21338
|
#M;
|
|
21339
21339
|
#f;
|
|
21340
|
-
#
|
|
21340
|
+
#b;
|
|
21341
21341
|
/**
|
|
21342
21342
|
* This property is for compatibility with the Dirent class as of
|
|
21343
21343
|
* Node v20, where Dirent['parentPath'] refers to the path of the
|
|
@@ -21361,8 +21361,8 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
21361
21361
|
* @internal
|
|
21362
21362
|
*/
|
|
21363
21363
|
constructor(A, e = fe, r, i, n, o, g) {
|
|
21364
|
-
this.name = A, this.#d = n ? Ys(A) : Si(A), this.#i = e &
|
|
21365
|
-
g.fullpath, this.#
|
|
21364
|
+
this.name = A, this.#d = n ? Ys(A) : Si(A), this.#i = e & wk, this.nocase = n, this.roots = i, this.root = r || this, this.#M = o, this.#w =
|
|
21365
|
+
g.fullpath, this.#k = g.relative, this.#S = g.relativePosix, this.parent = g.parent, this.parent ? this.#A = this.parent.#A : this.#A = rE(
|
|
21366
21366
|
g.fs);
|
|
21367
21367
|
}
|
|
21368
21368
|
/**
|
|
@@ -21445,11 +21445,11 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
21445
21445
|
relative() {
|
|
21446
21446
|
if (this.isCWD)
|
|
21447
21447
|
return "";
|
|
21448
|
-
if (this.#
|
|
21449
|
-
return this.#
|
|
21448
|
+
if (this.#k !== void 0)
|
|
21449
|
+
return this.#k;
|
|
21450
21450
|
let A = this.name, e = this.parent;
|
|
21451
21451
|
if (!e)
|
|
21452
|
-
return this.#
|
|
21452
|
+
return this.#k = this.name;
|
|
21453
21453
|
let r = e.relative();
|
|
21454
21454
|
return r + (!r || !e.parent ? "" : this.sep) + A;
|
|
21455
21455
|
}
|
|
@@ -21594,7 +21594,7 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
21594
21594
|
* realpath() has been called at some point.
|
|
21595
21595
|
*/
|
|
21596
21596
|
realpathCached() {
|
|
21597
|
-
return this.#
|
|
21597
|
+
return this.#b;
|
|
21598
21598
|
}
|
|
21599
21599
|
/**
|
|
21600
21600
|
* Returns the cached child Path entries array if the entry has been the
|
|
@@ -21783,9 +21783,9 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
21783
21783
|
}
|
|
21784
21784
|
#H(A) {
|
|
21785
21785
|
let { atime: e, atimeMs: r, birthtime: i, birthtimeMs: n, blksize: o, blocks: g, ctime: C, ctimeMs: I, dev: E, gid: Q, ino: B, mode: p, mtime: w,
|
|
21786
|
-
mtimeMs: D, nlink: N, rdev:
|
|
21786
|
+
mtimeMs: D, nlink: N, rdev: k, size: _, uid: L } = A;
|
|
21787
21787
|
this.#m = e, this.#B = r, this.#D = i, this.#h = n, this.#c = o, this.#s = g, this.#y = C, this.#l = I, this.#e = E, this.#I = Q, this.#g =
|
|
21788
|
-
B, this.#t = p, this.#u = w, this.#Q = D, this.#r = N, this.#o =
|
|
21788
|
+
B, this.#t = p, this.#u = w, this.#Q = D, this.#r = N, this.#o = k, this.#a = _, this.#n = L;
|
|
21789
21789
|
let J = vg(A);
|
|
21790
21790
|
this.#i = this.#i & mi | J | Zl, J !== fe && J !== je && J !== tr && (this.#i |= Di);
|
|
21791
21791
|
}
|
|
@@ -21914,12 +21914,12 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
21914
21914
|
* On success, returns a Path object.
|
|
21915
21915
|
*/
|
|
21916
21916
|
async realpath() {
|
|
21917
|
-
if (this.#
|
|
21918
|
-
return this.#
|
|
21917
|
+
if (this.#b)
|
|
21918
|
+
return this.#b;
|
|
21919
21919
|
if (!((Ps | xs | Ne) & this.#i))
|
|
21920
21920
|
try {
|
|
21921
21921
|
let A = await this.#A.promises.realpath(this.fullpath());
|
|
21922
|
-
return this.#
|
|
21922
|
+
return this.#b = this.resolve(A);
|
|
21923
21923
|
} catch {
|
|
21924
21924
|
this.#F();
|
|
21925
21925
|
}
|
|
@@ -21928,12 +21928,12 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
21928
21928
|
* Synchronous {@link realpath}
|
|
21929
21929
|
*/
|
|
21930
21930
|
realpathSync() {
|
|
21931
|
-
if (this.#
|
|
21932
|
-
return this.#
|
|
21931
|
+
if (this.#b)
|
|
21932
|
+
return this.#b;
|
|
21933
21933
|
if (!((Ps | xs | Ne) & this.#i))
|
|
21934
21934
|
try {
|
|
21935
21935
|
let A = this.#A.realpathSync(this.fullpath());
|
|
21936
|
-
return this.#
|
|
21936
|
+
return this.#b = this.resolve(A);
|
|
21937
21937
|
} catch {
|
|
21938
21938
|
this.#F();
|
|
21939
21939
|
}
|
|
@@ -21950,9 +21950,9 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
21950
21950
|
A.isCWD = !1, this.isCWD = !0;
|
|
21951
21951
|
let e = /* @__PURE__ */ new Set([]), r = [], i = this;
|
|
21952
21952
|
for (; i && i.parent; )
|
|
21953
|
-
e.add(i), i.#
|
|
21953
|
+
e.add(i), i.#k = r.join(this.sep), i.#S = r.join("/"), i = i.parent, r.push("..");
|
|
21954
21954
|
for (i = A; i && i.parent && !e.has(i); )
|
|
21955
|
-
i.#
|
|
21955
|
+
i.#k = void 0, i.#S = void 0, i = i.parent;
|
|
21956
21956
|
}
|
|
21957
21957
|
}, _s = class t extends qA {
|
|
21958
21958
|
static {
|
|
@@ -21965,7 +21965,7 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
21965
21965
|
/**
|
|
21966
21966
|
* Separator for parsing path strings.
|
|
21967
21967
|
*/
|
|
21968
|
-
splitSep =
|
|
21968
|
+
splitSep = pk;
|
|
21969
21969
|
/**
|
|
21970
21970
|
* Do not create new Path objects directly. They should always be accessed
|
|
21971
21971
|
* via the PathScurry class or other methods on the Path class.
|
|
@@ -21991,12 +21991,12 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
21991
21991
|
* @internal
|
|
21992
21992
|
*/
|
|
21993
21993
|
getRoot(A) {
|
|
21994
|
-
if (A =
|
|
21994
|
+
if (A = dk(A.toUpperCase()), A === this.root.name)
|
|
21995
21995
|
return this.root;
|
|
21996
21996
|
for (let [e, r] of Object.entries(this.roots))
|
|
21997
21997
|
if (this.sameRoot(A, e))
|
|
21998
21998
|
return this.roots[A] = r;
|
|
21999
|
-
return this.roots[A] = new
|
|
21999
|
+
return this.roots[A] = new kr(A, this).root;
|
|
22000
22000
|
}
|
|
22001
22001
|
/**
|
|
22002
22002
|
* @internal
|
|
@@ -22081,7 +22081,7 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
22081
22081
|
* @internal
|
|
22082
22082
|
*/
|
|
22083
22083
|
constructor(A = process.cwd(), e, r, { nocase: i, childrenCacheSize: n = 16 * 1024, fs: o = yi } = {}) {
|
|
22084
|
-
this.#r = rE(o), (A instanceof URL || A.startsWith("file://")) && (A =
|
|
22084
|
+
this.#r = rE(o), (A instanceof URL || A.startsWith("file://")) && (A = gk(A));
|
|
22085
22085
|
let g = e.resolve(A);
|
|
22086
22086
|
this.roots = /* @__PURE__ */ Object.create(null), this.rootPath = this.parseRootPath(g), this.#A = new Us(), this.#e = new Us(), this.#t =
|
|
22087
22087
|
new xg(n);
|
|
@@ -22270,9 +22270,9 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
22270
22270
|
let N = /* @__PURE__ */ s(() => {
|
|
22271
22271
|
--D === 0 && B();
|
|
22272
22272
|
}, "next");
|
|
22273
|
-
for (let
|
|
22274
|
-
(!n || n(
|
|
22275
|
-
(_) => _?.shouldWalk(C, o) ? I(_, N) : N()) :
|
|
22273
|
+
for (let k of w)
|
|
22274
|
+
(!n || n(k)) && g.push(r ? k : k.fullpath()), i && k.isSymbolicLink() ? k.realpath().then((_) => _?.isUnknown() ? _.lstat() : _).then(
|
|
22275
|
+
(_) => _?.shouldWalk(C, o) ? I(_, N) : N()) : k.shouldWalk(C, o) ? I(k, N) : N();
|
|
22276
22276
|
}, !0);
|
|
22277
22277
|
}, "walk"), E = A;
|
|
22278
22278
|
return new Promise((Q, B) => {
|
|
@@ -22358,22 +22358,22 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
22358
22358
|
return;
|
|
22359
22359
|
}
|
|
22360
22360
|
E++, C.add(p);
|
|
22361
|
-
let w = /* @__PURE__ */ s((N,
|
|
22361
|
+
let w = /* @__PURE__ */ s((N, k, _ = !1) => {
|
|
22362
22362
|
if (N)
|
|
22363
22363
|
return g.emit("error", N);
|
|
22364
22364
|
if (i && !_) {
|
|
22365
22365
|
let L = [];
|
|
22366
|
-
for (let J of
|
|
22366
|
+
for (let J of k)
|
|
22367
22367
|
J.isSymbolicLink() && L.push(J.realpath().then((U) => U?.isUnknown() ? U.lstat() : U));
|
|
22368
22368
|
if (L.length) {
|
|
22369
|
-
Promise.all(L).then(() => w(null,
|
|
22369
|
+
Promise.all(L).then(() => w(null, k, !0));
|
|
22370
22370
|
return;
|
|
22371
22371
|
}
|
|
22372
22372
|
}
|
|
22373
|
-
for (let L of
|
|
22373
|
+
for (let L of k)
|
|
22374
22374
|
L && (!n || n(L)) && (g.write(r ? L : L.fullpath()) || (B = !0));
|
|
22375
22375
|
E--;
|
|
22376
|
-
for (let L of
|
|
22376
|
+
for (let L of k) {
|
|
22377
22377
|
let J = L.realpathCached() || L;
|
|
22378
22378
|
J.shouldWalk(C, o) && I.push(J);
|
|
22379
22379
|
}
|
|
@@ -22419,7 +22419,7 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
22419
22419
|
let e = this.cwd;
|
|
22420
22420
|
this.cwd = typeof A == "string" ? this.cwd.resolve(A) : A, this.cwd[CE](e);
|
|
22421
22421
|
}
|
|
22422
|
-
},
|
|
22422
|
+
}, kr = class extends Js {
|
|
22423
22423
|
static {
|
|
22424
22424
|
s(this, "PathScurryWin32");
|
|
22425
22425
|
}
|
|
@@ -22451,7 +22451,7 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
22451
22451
|
isAbsolute(A) {
|
|
22452
22452
|
return A.startsWith("/") || A.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(A);
|
|
22453
22453
|
}
|
|
22454
|
-
},
|
|
22454
|
+
}, br = class extends Js {
|
|
22455
22455
|
static {
|
|
22456
22456
|
s(this, "PathScurryPosix");
|
|
22457
22457
|
}
|
|
@@ -22461,7 +22461,7 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
22461
22461
|
sep = "/";
|
|
22462
22462
|
constructor(A = process.cwd(), e = {}) {
|
|
22463
22463
|
let { nocase: r = !1 } = e;
|
|
22464
|
-
super(A,
|
|
22464
|
+
super(A, ok, "/", { ...e, nocase: r }), this.nocase = r;
|
|
22465
22465
|
}
|
|
22466
22466
|
/**
|
|
22467
22467
|
* @internal
|
|
@@ -22481,7 +22481,7 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
22481
22481
|
isAbsolute(A) {
|
|
22482
22482
|
return A.startsWith("/");
|
|
22483
22483
|
}
|
|
22484
|
-
}, Ki = class extends
|
|
22484
|
+
}, Ki = class extends br {
|
|
22485
22485
|
static {
|
|
22486
22486
|
s(this, "PathScurryDarwin");
|
|
22487
22487
|
}
|
|
@@ -22489,10 +22489,10 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
22489
22489
|
let { nocase: r = !0 } = e;
|
|
22490
22490
|
super(A, { ...e, nocase: r });
|
|
22491
22491
|
}
|
|
22492
|
-
}, KH = process.platform === "win32" ? _s : Gs, cE = process.platform === "win32" ?
|
|
22492
|
+
}, KH = process.platform === "win32" ? _s : Gs, cE = process.platform === "win32" ? kr : process.platform === "darwin" ? Ki : br;
|
|
22493
22493
|
|
|
22494
22494
|
// ../node_modules/glob/dist/esm/pattern.js
|
|
22495
|
-
var
|
|
22495
|
+
var mk = /* @__PURE__ */ s((t) => t.length >= 1, "isPatternList"), yk = /* @__PURE__ */ s((t) => t.length >= 1, "isGlobList"), Nr = class t {
|
|
22496
22496
|
static {
|
|
22497
22497
|
s(this, "Pattern");
|
|
22498
22498
|
}
|
|
@@ -22508,9 +22508,9 @@ var mb = /* @__PURE__ */ s((t) => t.length >= 1, "isPatternList"), yb = /* @__PU
|
|
|
22508
22508
|
#g;
|
|
22509
22509
|
#a = !0;
|
|
22510
22510
|
constructor(A, e, r, i) {
|
|
22511
|
-
if (!
|
|
22511
|
+
if (!mk(A))
|
|
22512
22512
|
throw new TypeError("empty pattern list");
|
|
22513
|
-
if (!
|
|
22513
|
+
if (!yk(e))
|
|
22514
22514
|
throw new TypeError("empty glob list");
|
|
22515
22515
|
if (e.length !== A.length)
|
|
22516
22516
|
throw new TypeError("mismatched pattern list and glob list lengths");
|
|
@@ -22628,7 +22628,7 @@ ring" && !!A[2] && typeof A[3] == "string" && !!A[3];
|
|
|
22628
22628
|
};
|
|
22629
22629
|
|
|
22630
22630
|
// ../node_modules/glob/dist/esm/ignore.js
|
|
22631
|
-
var
|
|
22631
|
+
var Dk = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", Mr = class {
|
|
22632
22632
|
static {
|
|
22633
22633
|
s(this, "Ignore");
|
|
22634
22634
|
}
|
|
@@ -22638,7 +22638,7 @@ var Db = typeof process == "object" && process && typeof process.platform == "st
|
|
|
22638
22638
|
absoluteChildren;
|
|
22639
22639
|
platform;
|
|
22640
22640
|
mmopts;
|
|
22641
|
-
constructor(A, { nobrace: e, nocase: r, noext: i, noglobstar: n, platform: o =
|
|
22641
|
+
constructor(A, { nobrace: e, nocase: r, noext: i, noglobstar: n, platform: o = Dk }) {
|
|
22642
22642
|
this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = [], this.platform = o, this.mmopts = {
|
|
22643
22643
|
dot: !0,
|
|
22644
22644
|
nobrace: e,
|
|
@@ -22845,7 +22845,7 @@ var Yg = class t {
|
|
|
22845
22845
|
};
|
|
22846
22846
|
|
|
22847
22847
|
// ../node_modules/glob/dist/esm/walker.js
|
|
22848
|
-
var
|
|
22848
|
+
var Sk = /* @__PURE__ */ s((t, A) => typeof t == "string" ? new Mr([t], A) : Array.isArray(t) ? new Mr(t, A) : t, "makeIgnore"), Os = class {
|
|
22849
22849
|
static {
|
|
22850
22850
|
s(this, "GlobUtil");
|
|
22851
22851
|
}
|
|
@@ -22863,7 +22863,7 @@ var Sb = /* @__PURE__ */ s((t, A) => typeof t == "string" ? new Mr([t], A) : Arr
|
|
|
22863
22863
|
includeChildMatches;
|
|
22864
22864
|
constructor(A, e, r) {
|
|
22865
22865
|
if (this.patterns = A, this.path = e, this.opts = r, this.#t = !r.posix && r.platform === "win32" ? "\\" : "/", this.includeChildMatches =
|
|
22866
|
-
r.includeChildMatches !== !1, (r.ignore || !this.includeChildMatches) && (this.#e =
|
|
22866
|
+
r.includeChildMatches !== !1, (r.ignore || !this.includeChildMatches) && (this.#e = Sk(r.ignore ?? [], r), !this.includeChildMatches && typeof this.#e.
|
|
22867
22867
|
add != "function")) {
|
|
22868
22868
|
let i = "cannot ignore child matches, ignore lacks add() method.";
|
|
22869
22869
|
throw new Error(i);
|
|
@@ -23032,7 +23032,7 @@ var Sb = /* @__PURE__ */ s((t, A) => typeof t == "string" ? new Mr([t], A) : Arr
|
|
|
23032
23032
|
n++, this.walkCB2Sync(g, C, r.child(), o);
|
|
23033
23033
|
o();
|
|
23034
23034
|
}
|
|
23035
|
-
},
|
|
23035
|
+
}, ki = class extends Os {
|
|
23036
23036
|
static {
|
|
23037
23037
|
s(this, "GlobWalker");
|
|
23038
23038
|
}
|
|
@@ -23060,7 +23060,7 @@ var Sb = /* @__PURE__ */ s((t, A) => typeof t == "string" ? new Mr([t], A) : Arr
|
|
|
23060
23060
|
throw this.signal.reason;
|
|
23061
23061
|
}), this.matches;
|
|
23062
23062
|
}
|
|
23063
|
-
},
|
|
23063
|
+
}, bi = class extends Os {
|
|
23064
23064
|
static {
|
|
23065
23065
|
s(this, "GlobStream");
|
|
23066
23066
|
}
|
|
@@ -23086,7 +23086,7 @@ var Sb = /* @__PURE__ */ s((t, A) => typeof t == "string" ? new Mr([t], A) : Arr
|
|
|
23086
23086
|
};
|
|
23087
23087
|
|
|
23088
23088
|
// ../node_modules/glob/dist/esm/glob.js
|
|
23089
|
-
var
|
|
23089
|
+
var Fk = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", Me = class {
|
|
23090
23090
|
static {
|
|
23091
23091
|
s(this, "Glob");
|
|
23092
23092
|
}
|
|
@@ -23139,7 +23139,7 @@ var Fb = typeof process == "object" && process && typeof process.platform == "st
|
|
|
23139
23139
|
if (!e)
|
|
23140
23140
|
throw new TypeError("glob options required");
|
|
23141
23141
|
if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.
|
|
23142
|
-
dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd =
|
|
23142
|
+
dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = Kk(
|
|
23143
23143
|
e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace,
|
|
23144
23144
|
this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== !1,
|
|
23145
23145
|
this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth : 1 / 0, this.
|
|
@@ -23151,11 +23151,11 @@ var Fb = typeof process == "object" && process && typeof process.platform == "st
|
|
|
23151
23151
|
throw new TypeError("base matching requires globstar");
|
|
23152
23152
|
A = A.map((C) => C.includes("/") ? C : `./**/${C}`);
|
|
23153
23153
|
}
|
|
23154
|
-
if (this.pattern = A, this.platform = e.platform ||
|
|
23154
|
+
if (this.pattern = A, this.platform = e.platform || Fk, this.opts = { ...e, platform: this.platform }, e.scurry) {
|
|
23155
23155
|
if (this.scurry = e.scurry, e.nocase !== void 0 && e.nocase !== e.scurry.nocase)
|
|
23156
23156
|
throw new Error("nocase option contradicts provided scurry option");
|
|
23157
23157
|
} else {
|
|
23158
|
-
let C = e.platform === "win32" ?
|
|
23158
|
+
let C = e.platform === "win32" ? kr : e.platform === "darwin" ? Ki : e.platform ? br : cE;
|
|
23159
23159
|
this.scurry = new C(this.cwd, {
|
|
23160
23160
|
nocase: e.nocase,
|
|
23161
23161
|
fs: e.fs
|
|
@@ -23187,7 +23187,7 @@ var Fb = typeof process == "object" && process && typeof process.platform == "st
|
|
|
23187
23187
|
}
|
|
23188
23188
|
async walk() {
|
|
23189
23189
|
return [
|
|
23190
|
-
...await new
|
|
23190
|
+
...await new ki(this.patterns, this.scurry.cwd, {
|
|
23191
23191
|
...this.opts,
|
|
23192
23192
|
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
23193
23193
|
platform: this.platform,
|
|
@@ -23198,7 +23198,7 @@ var Fb = typeof process == "object" && process && typeof process.platform == "st
|
|
|
23198
23198
|
}
|
|
23199
23199
|
walkSync() {
|
|
23200
23200
|
return [
|
|
23201
|
-
...new
|
|
23201
|
+
...new ki(this.patterns, this.scurry.cwd, {
|
|
23202
23202
|
...this.opts,
|
|
23203
23203
|
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
23204
23204
|
platform: this.platform,
|
|
@@ -23208,7 +23208,7 @@ var Fb = typeof process == "object" && process && typeof process.platform == "st
|
|
|
23208
23208
|
];
|
|
23209
23209
|
}
|
|
23210
23210
|
stream() {
|
|
23211
|
-
return new
|
|
23211
|
+
return new bi(this.patterns, this.scurry.cwd, {
|
|
23212
23212
|
...this.opts,
|
|
23213
23213
|
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
23214
23214
|
platform: this.platform,
|
|
@@ -23217,7 +23217,7 @@ var Fb = typeof process == "object" && process && typeof process.platform == "st
|
|
|
23217
23217
|
}).stream();
|
|
23218
23218
|
}
|
|
23219
23219
|
streamSync() {
|
|
23220
|
-
return new
|
|
23220
|
+
return new bi(this.patterns, this.scurry.cwd, {
|
|
23221
23221
|
...this.opts,
|
|
23222
23222
|
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
23223
23223
|
platform: this.platform,
|
|
@@ -23281,27 +23281,27 @@ function lE(t, A = {}) {
|
|
|
23281
23281
|
return new Me(t, A).iterate();
|
|
23282
23282
|
}
|
|
23283
23283
|
s(lE, "globIterate");
|
|
23284
|
-
var
|
|
23284
|
+
var kk = Hs, bk = Object.assign(hE, { sync: Hs }), Nk = qs, Mk = Object.assign(lE, {
|
|
23285
23285
|
sync: qs
|
|
23286
|
-
}),
|
|
23286
|
+
}), Rk = Object.assign(js, {
|
|
23287
23287
|
stream: Hs,
|
|
23288
23288
|
iterate: qs
|
|
23289
23289
|
}), Ts = Object.assign(IE, {
|
|
23290
23290
|
glob: IE,
|
|
23291
23291
|
globSync: js,
|
|
23292
|
-
sync:
|
|
23292
|
+
sync: Rk,
|
|
23293
23293
|
globStream: hE,
|
|
23294
|
-
stream:
|
|
23294
|
+
stream: bk,
|
|
23295
23295
|
globStreamSync: Hs,
|
|
23296
|
-
streamSync:
|
|
23296
|
+
streamSync: kk,
|
|
23297
23297
|
globIterate: lE,
|
|
23298
|
-
iterate:
|
|
23298
|
+
iterate: Mk,
|
|
23299
23299
|
globIterateSync: qs,
|
|
23300
|
-
iterateSync:
|
|
23300
|
+
iterateSync: Nk,
|
|
23301
23301
|
Glob: Me,
|
|
23302
23302
|
hasMagic: _g,
|
|
23303
23303
|
escape: yr,
|
|
23304
|
-
unescape:
|
|
23304
|
+
unescape: ke
|
|
23305
23305
|
});
|
|
23306
23306
|
Ts.glob = Ts;
|
|
23307
23307
|
|
|
@@ -23312,11 +23312,11 @@ async function zs(t, A) {
|
|
|
23312
23312
|
let e = `{${Array.from(fg).join(",")}}`, r = await Ts(Ae(EE(t, `main${e}`)), {
|
|
23313
23313
|
cwd: A ?? process.cwd()
|
|
23314
23314
|
}), [i] = r;
|
|
23315
|
-
if (r.length > 1 &&
|
|
23315
|
+
if (r.length > 1 && vk.warn(uE.dedent`
|
|
23316
23316
|
Multiple main files found in your configDir (${EE(t)}).
|
|
23317
23317
|
Storybook will use the first one found and ignore the others. Please remove the extra files.
|
|
23318
23318
|
`), !i)
|
|
23319
|
-
throw new
|
|
23319
|
+
throw new Lk({ location: t });
|
|
23320
23320
|
}
|
|
23321
23321
|
s(zs, "validateConfigurationFiles");
|
|
23322
23322
|
|
|
@@ -23351,27 +23351,27 @@ var wE = /* @__PURE__ */ s((t, A) => {
|
|
|
23351
23351
|
|
|
23352
23352
|
// src/common/utils/strip-abs-node-modules-path.ts
|
|
23353
23353
|
Rr();
|
|
23354
|
-
import { posix as
|
|
23355
|
-
function
|
|
23356
|
-
return
|
|
23354
|
+
import { posix as Yk, sep as Pk } from "node:path";
|
|
23355
|
+
function Uk(t) {
|
|
23356
|
+
return Yk.normalize(Ae(t));
|
|
23357
23357
|
}
|
|
23358
|
-
s(
|
|
23358
|
+
s(Uk, "normalizePath");
|
|
23359
23359
|
function mE(t) {
|
|
23360
|
-
let A = t.split(`node_modules${
|
|
23361
|
-
return
|
|
23360
|
+
let A = t.split(`node_modules${Pk}`);
|
|
23361
|
+
return Uk(A[A.length - 1]);
|
|
23362
23362
|
}
|
|
23363
23363
|
s(mE, "stripAbsNodeModulesPath");
|
|
23364
23364
|
|
|
23365
23365
|
// src/common/presets.ts
|
|
23366
|
-
var Mi = /* @__PURE__ */ s((t) => t != null && typeof t == "object" && Array.isArray(t) === !1, "isObject"),
|
|
23366
|
+
var Mi = /* @__PURE__ */ s((t) => t != null && typeof t == "object" && Array.isArray(t) === !1, "isObject"), Gk = /* @__PURE__ */ s((t) => typeof t ==
|
|
23367
23367
|
"function", "isFunction");
|
|
23368
|
-
function
|
|
23368
|
+
function Jk(t) {
|
|
23369
23369
|
return t.filter((A) => {
|
|
23370
23370
|
let e = typeof A == "string" ? A : A.name;
|
|
23371
23371
|
return !/@storybook[\\\\/]preset-typescript/.test(e);
|
|
23372
23372
|
});
|
|
23373
23373
|
}
|
|
23374
|
-
s(
|
|
23374
|
+
s(Jk, "filterPresetsConfig");
|
|
23375
23375
|
function yE(t) {
|
|
23376
23376
|
let { dir: A, name: e, ext: r } = SE(t);
|
|
23377
23377
|
if (r === ".mjs")
|
|
@@ -23388,10 +23388,10 @@ function yE(t) {
|
|
|
23388
23388
|
}
|
|
23389
23389
|
s(yE, "resolvePathToESM");
|
|
23390
23390
|
function DE(t, A, e) {
|
|
23391
|
-
return
|
|
23391
|
+
return Gk(t) ? [...t({ ...e, ...A })] : Array.isArray(t) ? [...t] : [];
|
|
23392
23392
|
}
|
|
23393
23393
|
s(DE, "resolvePresetFunction");
|
|
23394
|
-
var
|
|
23394
|
+
var Ok = /* @__PURE__ */ s((t, A, e) => {
|
|
23395
23395
|
let r = A.startsWith("/") ? Ws : wE.bind(null, t), i = r(A);
|
|
23396
23396
|
if (i) {
|
|
23397
23397
|
let { dir: B, name: p } = SE(i);
|
|
@@ -23447,10 +23447,10 @@ var Ob = /* @__PURE__ */ s((t, A, e) => {
|
|
|
23447
23447
|
type: "presets",
|
|
23448
23448
|
name: i
|
|
23449
23449
|
};
|
|
23450
|
-
}, "resolveAddonName"),
|
|
23450
|
+
}, "resolveAddonName"), Tk = /* @__PURE__ */ s(({ configDir: t }) => (A) => {
|
|
23451
23451
|
let e = Mi(A) && A.options || void 0, r = Mi(A) ? A.name : A, i;
|
|
23452
23452
|
try {
|
|
23453
|
-
i =
|
|
23453
|
+
i = Ok(t, r, e);
|
|
23454
23454
|
} catch {
|
|
23455
23455
|
Ni.error(
|
|
23456
23456
|
`Addon value should end in /manager or /preview or /register OR it should be a valid preset https://storybook.js.org/docs/addons/writi\
|
|
@@ -23468,7 +23468,7 @@ ${A}`
|
|
|
23468
23468
|
...i
|
|
23469
23469
|
};
|
|
23470
23470
|
}, "map");
|
|
23471
|
-
async function
|
|
23471
|
+
async function Hk(t) {
|
|
23472
23472
|
if (t.type === "virtual") {
|
|
23473
23473
|
let { type: e, name: r, ...i } = t;
|
|
23474
23474
|
return i;
|
|
@@ -23476,11 +23476,11 @@ async function Hb(t) {
|
|
|
23476
23476
|
let A = t.name ? t.name : t;
|
|
23477
23477
|
return dg(A);
|
|
23478
23478
|
}
|
|
23479
|
-
s(
|
|
23480
|
-
async function
|
|
23479
|
+
s(Hk, "getContent");
|
|
23480
|
+
async function jk(t, A, e) {
|
|
23481
23481
|
let r = t.name ? t.name : t;
|
|
23482
23482
|
try {
|
|
23483
|
-
let i = t.options ? t.options : {}, n = await
|
|
23483
|
+
let i = t.options ? t.options : {}, n = await Hk(t);
|
|
23484
23484
|
if (typeof n == "function" && (n = n(e, i)), Array.isArray(n))
|
|
23485
23485
|
return await Vs(n, A + 1, e);
|
|
23486
23486
|
if (Mi(n)) {
|
|
@@ -23499,7 +23499,7 @@ async function jb(t, A, e) {
|
|
|
23499
23499
|
return [
|
|
23500
23500
|
...await Vs([...E], A + 1, e),
|
|
23501
23501
|
...await Vs(
|
|
23502
|
-
[...Q.map(
|
|
23502
|
+
[...Q.map(Tk(e))].filter(Boolean),
|
|
23503
23503
|
A + 1,
|
|
23504
23504
|
e
|
|
23505
23505
|
),
|
|
@@ -23515,7 +23515,7 @@ async function jb(t, A, e) {
|
|
|
23515
23515
|
`);
|
|
23516
23516
|
} catch (i) {
|
|
23517
23517
|
if (e?.isCritical)
|
|
23518
|
-
throw new
|
|
23518
|
+
throw new _k({
|
|
23519
23519
|
error: i,
|
|
23520
23520
|
presetName: r
|
|
23521
23521
|
});
|
|
@@ -23523,10 +23523,10 @@ async function jb(t, A, e) {
|
|
|
23523
23523
|
return Ni.warn(n), Ni.error(i), [];
|
|
23524
23524
|
}
|
|
23525
23525
|
}
|
|
23526
|
-
s(
|
|
23526
|
+
s(jk, "loadPreset");
|
|
23527
23527
|
async function Vs(t, A, e) {
|
|
23528
23528
|
return !t || !Array.isArray(t) || !t.length ? [] : (await Promise.all(
|
|
23529
|
-
t.map(async (r) =>
|
|
23529
|
+
t.map(async (r) => jk(r, A, e))
|
|
23530
23530
|
)).reduce((r, i) => r.concat(i), []);
|
|
23531
23531
|
}
|
|
23532
23532
|
s(Vs, "loadPresets");
|
|
@@ -23557,41 +23557,41 @@ function FE(t, A, e, r, i) {
|
|
|
23557
23557
|
}, n) : n;
|
|
23558
23558
|
}
|
|
23559
23559
|
s(FE, "applyPresets");
|
|
23560
|
-
async function
|
|
23560
|
+
async function qk(t, A) {
|
|
23561
23561
|
let e = await Vs(t, 0, A);
|
|
23562
23562
|
return {
|
|
23563
23563
|
apply: /* @__PURE__ */ s(async (r, i, n = {}) => FE(e, r, i, n, A), "apply")
|
|
23564
23564
|
};
|
|
23565
23565
|
}
|
|
23566
|
-
s(
|
|
23567
|
-
async function
|
|
23566
|
+
s(qk, "getPresets");
|
|
23567
|
+
async function _j(t) {
|
|
23568
23568
|
let { corePresets: A = [], overridePresets: e = [], ...r } = t, i = [
|
|
23569
23569
|
...A,
|
|
23570
23570
|
...BE(t),
|
|
23571
23571
|
...e
|
|
23572
|
-
], n =
|
|
23572
|
+
], n = Jk(i);
|
|
23573
23573
|
return n.length < i.length && Ni.warn(
|
|
23574
23574
|
"Storybook now supports TypeScript natively. You can safely remove `@storybook/preset-typescript`."
|
|
23575
|
-
),
|
|
23575
|
+
), qk(n, r);
|
|
23576
23576
|
}
|
|
23577
|
-
s(
|
|
23577
|
+
s(_j, "loadAllPresets");
|
|
23578
23578
|
|
|
23579
23579
|
// src/common/utils/file-cache.ts
|
|
23580
|
-
import { createHash as
|
|
23581
|
-
import { mkdirSync as Hg, readFileSync as
|
|
23582
|
-
import { readFile as NE, readdir as ME, rm as RE, writeFile as $
|
|
23583
|
-
import { tmpdir as
|
|
23580
|
+
import { createHash as kE, randomBytes as zk } from "node:crypto";
|
|
23581
|
+
import { mkdirSync as Hg, readFileSync as Wk, readdirSync as Vk, rmSync as bE, writeFileSync as Xk } from "node:fs";
|
|
23582
|
+
import { readFile as NE, readdir as ME, rm as RE, writeFile as $k } from "node:fs/promises";
|
|
23583
|
+
import { tmpdir as Zk } from "node:os";
|
|
23584
23584
|
import { join as Ri } from "node:path";
|
|
23585
23585
|
var Xs = class {
|
|
23586
23586
|
static {
|
|
23587
23587
|
s(this, "FileSystemCache");
|
|
23588
23588
|
}
|
|
23589
23589
|
constructor(A = {}) {
|
|
23590
|
-
this.prefix = (A.ns || A.prefix || "") + "-", this.hash_alg = A.hash_alg || "sha256", this.cache_dir = A.basePath || Ri(
|
|
23591
|
-
"base64").replace(/\//g, "-")), this.ttl = A.ttl || 0,
|
|
23590
|
+
this.prefix = (A.ns || A.prefix || "") + "-", this.hash_alg = A.hash_alg || "sha256", this.cache_dir = A.basePath || Ri(Zk(), zk(15).toString(
|
|
23591
|
+
"base64").replace(/\//g, "-")), this.ttl = A.ttl || 0, kE(this.hash_alg), Hg(this.cache_dir, { recursive: !0 });
|
|
23592
23592
|
}
|
|
23593
23593
|
generateHash(A) {
|
|
23594
|
-
return Ri(this.cache_dir, this.prefix +
|
|
23594
|
+
return Ri(this.cache_dir, this.prefix + kE(this.hash_alg).update(A).digest("hex"));
|
|
23595
23595
|
}
|
|
23596
23596
|
isExpired(A, e) {
|
|
23597
23597
|
return A.ttl != null && e > A.ttl;
|
|
@@ -23614,7 +23614,7 @@ var Xs = class {
|
|
|
23614
23614
|
}
|
|
23615
23615
|
getSync(A, e) {
|
|
23616
23616
|
try {
|
|
23617
|
-
let r =
|
|
23617
|
+
let r = Wk(this.generateHash(A), "utf8");
|
|
23618
23618
|
return this.parseCacheData(r, e);
|
|
23619
23619
|
} catch {
|
|
23620
23620
|
return e;
|
|
@@ -23622,13 +23622,13 @@ var Xs = class {
|
|
|
23622
23622
|
}
|
|
23623
23623
|
async set(A, e, r = {}) {
|
|
23624
23624
|
let i = typeof r == "number" ? { ttl: r } : r;
|
|
23625
|
-
Hg(this.cache_dir, { recursive: !0 }), await $
|
|
23625
|
+
Hg(this.cache_dir, { recursive: !0 }), await $k(this.generateHash(A), this.parseSetData(A, e, i), {
|
|
23626
23626
|
encoding: i.encoding || "utf8"
|
|
23627
23627
|
});
|
|
23628
23628
|
}
|
|
23629
23629
|
setSync(A, e, r = {}) {
|
|
23630
23630
|
let i = typeof r == "number" ? { ttl: r } : r;
|
|
23631
|
-
Hg(this.cache_dir, { recursive: !0 }),
|
|
23631
|
+
Hg(this.cache_dir, { recursive: !0 }), Xk(this.generateHash(A), this.parseSetData(A, e, i), {
|
|
23632
23632
|
encoding: i.encoding || "utf8"
|
|
23633
23633
|
});
|
|
23634
23634
|
}
|
|
@@ -23642,7 +23642,7 @@ var Xs = class {
|
|
|
23642
23642
|
await RE(this.generateHash(A), { force: !0 });
|
|
23643
23643
|
}
|
|
23644
23644
|
removeSync(A) {
|
|
23645
|
-
|
|
23645
|
+
bE(this.generateHash(A), { force: !0 });
|
|
23646
23646
|
}
|
|
23647
23647
|
async clear() {
|
|
23648
23648
|
let A = await ME(this.cache_dir);
|
|
@@ -23651,7 +23651,7 @@ var Xs = class {
|
|
|
23651
23651
|
);
|
|
23652
23652
|
}
|
|
23653
23653
|
clearSync() {
|
|
23654
|
-
|
|
23654
|
+
Vk(this.cache_dir).filter((A) => A.startsWith(this.prefix)).forEach((A) => bE(Ri(this.cache_dir, A), { force: !0 }));
|
|
23655
23655
|
}
|
|
23656
23656
|
async getAll() {
|
|
23657
23657
|
let A = Date.now(), e = await ME(this.cache_dir);
|
|
@@ -23679,22 +23679,22 @@ import { join as WE } from "node:path";
|
|
|
23679
23679
|
|
|
23680
23680
|
// node_modules/find-cache-dir/index.js
|
|
23681
23681
|
var zE = cA(LE(), 1);
|
|
23682
|
-
import
|
|
23682
|
+
import Cb from "node:process";
|
|
23683
23683
|
import vi from "node:path";
|
|
23684
23684
|
import tn from "node:fs";
|
|
23685
23685
|
|
|
23686
23686
|
// ../node_modules/pkg-dir/index.js
|
|
23687
|
-
import
|
|
23687
|
+
import ab from "node:path";
|
|
23688
23688
|
|
|
23689
23689
|
// ../node_modules/pkg-dir/node_modules/find-up/index.js
|
|
23690
23690
|
import en from "node:path";
|
|
23691
|
-
import { fileURLToPath as
|
|
23691
|
+
import { fileURLToPath as sb } from "node:url";
|
|
23692
23692
|
|
|
23693
23693
|
// ../node_modules/locate-path/index.js
|
|
23694
23694
|
import PE from "node:process";
|
|
23695
23695
|
import UE from "node:path";
|
|
23696
23696
|
import xE, { promises as YE } from "node:fs";
|
|
23697
|
-
import { fileURLToPath as
|
|
23697
|
+
import { fileURLToPath as ib } from "node:url";
|
|
23698
23698
|
|
|
23699
23699
|
// ../node_modules/locate-path/node_modules/p-limit/index.js
|
|
23700
23700
|
zg();
|
|
@@ -23741,7 +23741,7 @@ var Zs = class extends Error {
|
|
|
23741
23741
|
constructor(A) {
|
|
23742
23742
|
super(), this.value = A;
|
|
23743
23743
|
}
|
|
23744
|
-
},
|
|
23744
|
+
}, tb = /* @__PURE__ */ s(async (t, A) => A(await t), "testElement"), rb = /* @__PURE__ */ s(async (t) => {
|
|
23745
23745
|
let A = await Promise.all(t);
|
|
23746
23746
|
if (A[1] === !0)
|
|
23747
23747
|
throw new Zs(A[0]);
|
|
@@ -23751,9 +23751,9 @@ async function Wg(t, A, {
|
|
|
23751
23751
|
concurrency: e = Number.POSITIVE_INFINITY,
|
|
23752
23752
|
preserveOrder: r = !0
|
|
23753
23753
|
} = {}) {
|
|
23754
|
-
let i = $s(e), n = [...t].map((g) => [g, i(
|
|
23754
|
+
let i = $s(e), n = [...t].map((g) => [g, i(tb, g, A)]), o = $s(r ? 1 : Number.POSITIVE_INFINITY);
|
|
23755
23755
|
try {
|
|
23756
|
-
await Promise.all(n.map((g) => o(
|
|
23756
|
+
await Promise.all(n.map((g) => o(rb, g)));
|
|
23757
23757
|
} catch (g) {
|
|
23758
23758
|
if (g instanceof Zs)
|
|
23759
23759
|
return g.value;
|
|
@@ -23772,7 +23772,7 @@ function GE(t) {
|
|
|
23772
23772
|
throw new Error(`Invalid type specified: ${t}`);
|
|
23773
23773
|
}
|
|
23774
23774
|
s(GE, "checkType");
|
|
23775
|
-
var JE = /* @__PURE__ */ s((t, A) => A[_E[t]](), "matchType"), OE = /* @__PURE__ */ s((t) => t instanceof URL ?
|
|
23775
|
+
var JE = /* @__PURE__ */ s((t, A) => A[_E[t]](), "matchType"), OE = /* @__PURE__ */ s((t) => t instanceof URL ? ib(t) : t, "toPath");
|
|
23776
23776
|
async function An(t, {
|
|
23777
23777
|
cwd: A = PE.cwd(),
|
|
23778
23778
|
type: e = "file",
|
|
@@ -23814,12 +23814,12 @@ function vr(t, {
|
|
|
23814
23814
|
s(vr, "locatePathSync");
|
|
23815
23815
|
|
|
23816
23816
|
// ../node_modules/pkg-dir/node_modules/path-exists/index.js
|
|
23817
|
-
import
|
|
23817
|
+
import l1, { promises as E1 } from "node:fs";
|
|
23818
23818
|
|
|
23819
23819
|
// ../node_modules/pkg-dir/node_modules/find-up/index.js
|
|
23820
|
-
var
|
|
23821
|
-
function
|
|
23822
|
-
let e = en.resolve(
|
|
23820
|
+
var nb = /* @__PURE__ */ s((t) => t instanceof URL ? sb(t) : t, "toPath"), ob = Symbol("findUpStop");
|
|
23821
|
+
function gb(t, A = {}) {
|
|
23822
|
+
let e = en.resolve(nb(A.cwd) || ""), { root: r } = en.parse(e), i = A.stopAt || r, n = A.limit || Number.POSITIVE_INFINITY, o = [t].flat(),
|
|
23823
23823
|
g = /* @__PURE__ */ s((I) => {
|
|
23824
23824
|
if (typeof t != "function")
|
|
23825
23825
|
return vr(o, I);
|
|
@@ -23828,27 +23828,27 @@ function gk(t, A = {}) {
|
|
|
23828
23828
|
}, "runMatcher"), C = [];
|
|
23829
23829
|
for (; ; ) {
|
|
23830
23830
|
let I = g({ ...A, cwd: e });
|
|
23831
|
-
if (I ===
|
|
23831
|
+
if (I === ob || (I && C.push(en.resolve(e, I)), e === i || C.length >= n))
|
|
23832
23832
|
break;
|
|
23833
23833
|
e = en.dirname(e);
|
|
23834
23834
|
}
|
|
23835
23835
|
return C;
|
|
23836
23836
|
}
|
|
23837
|
-
s(
|
|
23837
|
+
s(gb, "findUpMultipleSync");
|
|
23838
23838
|
function TE(t, A = {}) {
|
|
23839
|
-
return
|
|
23839
|
+
return gb(t, { ...A, limit: 1 })[0];
|
|
23840
23840
|
}
|
|
23841
23841
|
s(TE, "findUpSync");
|
|
23842
23842
|
|
|
23843
23843
|
// ../node_modules/pkg-dir/index.js
|
|
23844
23844
|
function HE({ cwd: t } = {}) {
|
|
23845
23845
|
let A = TE("package.json", { cwd: t });
|
|
23846
|
-
return A &&
|
|
23846
|
+
return A && ab.dirname(A);
|
|
23847
23847
|
}
|
|
23848
23848
|
s(HE, "packageDirectorySync");
|
|
23849
23849
|
|
|
23850
23850
|
// node_modules/find-cache-dir/index.js
|
|
23851
|
-
var { env: Vg, cwd:
|
|
23851
|
+
var { env: Vg, cwd: cb } = Cb, jE = /* @__PURE__ */ s((t) => {
|
|
23852
23852
|
try {
|
|
23853
23853
|
return tn.accessSync(t, tn.constants.W_OK), !0;
|
|
23854
23854
|
} catch {
|
|
@@ -23859,22 +23859,22 @@ function qE(t, A) {
|
|
|
23859
23859
|
return A.create && tn.mkdirSync(t, { recursive: !0 }), t;
|
|
23860
23860
|
}
|
|
23861
23861
|
s(qE, "useDirectory");
|
|
23862
|
-
function
|
|
23862
|
+
function Ib(t) {
|
|
23863
23863
|
let A = vi.join(t, "node_modules");
|
|
23864
23864
|
if (!(!jE(A) && (tn.existsSync(A) || !jE(vi.join(t)))))
|
|
23865
23865
|
return A;
|
|
23866
23866
|
}
|
|
23867
|
-
s(
|
|
23867
|
+
s(Ib, "getNodeModuleDirectory");
|
|
23868
23868
|
function Xg(t = {}) {
|
|
23869
23869
|
if (Vg.CACHE_DIR && !["true", "false", "1", "0"].includes(Vg.CACHE_DIR))
|
|
23870
23870
|
return qE(vi.join(Vg.CACHE_DIR, t.name), t);
|
|
23871
|
-
let { cwd: A =
|
|
23871
|
+
let { cwd: A = cb(), files: e } = t;
|
|
23872
23872
|
if (e) {
|
|
23873
23873
|
if (!Array.isArray(e))
|
|
23874
23874
|
throw new TypeError(`Expected \`files\` option to be an array, got \`${typeof e}\`.`);
|
|
23875
23875
|
A = (0, zE.default)(e.map((i) => vi.resolve(A, i)));
|
|
23876
23876
|
}
|
|
23877
|
-
if (A = HE({ cwd: A }), !(!A || !
|
|
23877
|
+
if (A = HE({ cwd: A }), !(!A || !Ib(A)))
|
|
23878
23878
|
return qE(vi.join(A, "node_modules", ".cache", t.name), t);
|
|
23879
23879
|
}
|
|
23880
23880
|
s(Xg, "findCacheDirectory");
|
|
@@ -23887,7 +23887,7 @@ function VE(t, A = "default") {
|
|
|
23887
23887
|
s(VE, "resolvePathInStorybookCache");
|
|
23888
23888
|
|
|
23889
23889
|
// src/common/utils/cache.ts
|
|
23890
|
-
var
|
|
23890
|
+
var O1 = jg({
|
|
23891
23891
|
basePath: VE("dev-server"),
|
|
23892
23892
|
ns: "storybook"
|
|
23893
23893
|
// Optional. A grouping namespace for items.
|
|
@@ -23900,11 +23900,11 @@ import _M from "node:os";
|
|
|
23900
23900
|
import { join as Ja } from "node:path";
|
|
23901
23901
|
|
|
23902
23902
|
// ../node_modules/crypto-random-string/index.js
|
|
23903
|
-
import { promisify as
|
|
23903
|
+
import { promisify as hb } from "util";
|
|
23904
23904
|
import $g from "crypto";
|
|
23905
|
-
var XE =
|
|
23906
|
-
|
|
23907
|
-
split(""),
|
|
23905
|
+
var XE = hb($g.randomBytes), lb = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""), Eb = "0123456789".split(""),
|
|
23906
|
+
ub = "CDEHKMPRTUWXY012458".split(""), Bb = "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".
|
|
23907
|
+
split(""), Qb = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), fb = /* @__PURE__ */ s((t, A) => {
|
|
23908
23908
|
let e = A.length, r = Math.floor(65536 / e) * e - 1, i = 2 * Math.ceil(1.1 * t), n = "", o = 0;
|
|
23909
23909
|
for (; o < t; ) {
|
|
23910
23910
|
let g = $g.randomBytes(i), C = 0;
|
|
@@ -23914,7 +23914,7 @@ split(""), Qk = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
|
|
|
23914
23914
|
}
|
|
23915
23915
|
}
|
|
23916
23916
|
return n;
|
|
23917
|
-
}, "generateForCustomCharacters"),
|
|
23917
|
+
}, "generateForCustomCharacters"), db = /* @__PURE__ */ s(async (t, A) => {
|
|
23918
23918
|
let e = A.length, r = Math.floor(65536 / e) * e - 1, i = 2 * Math.ceil(1.1 * t), n = "", o = 0;
|
|
23919
23919
|
for (; o < t; ) {
|
|
23920
23920
|
let g = await XE(i), C = 0;
|
|
@@ -23924,8 +23924,8 @@ split(""), Qk = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
|
|
|
23924
23924
|
}
|
|
23925
23925
|
}
|
|
23926
23926
|
return n;
|
|
23927
|
-
}, "generateForCustomCharactersAsync"),
|
|
23928
|
-
|
|
23927
|
+
}, "generateForCustomCharactersAsync"), pb = /* @__PURE__ */ s((t, A, e) => $g.randomBytes(t).toString(A).slice(0, e), "generateRandomBytes"),
|
|
23928
|
+
wb = /* @__PURE__ */ s(async (t, A, e) => (await XE(t)).toString(A).slice(0, e), "generateRandomBytesAsync"), mb = /* @__PURE__ */ new Set([
|
|
23929
23929
|
void 0,
|
|
23930
23930
|
"hex",
|
|
23931
23931
|
"base64",
|
|
@@ -23941,29 +23941,29 @@ wk = /* @__PURE__ */ s(async (t, A, e) => (await XE(t)).toString(A).slice(0, e),
|
|
|
23941
23941
|
throw new TypeError("Expected either `type` or `characters`");
|
|
23942
23942
|
if (i !== void 0 && typeof i != "string")
|
|
23943
23943
|
throw new TypeError("Expected `characters` to be string");
|
|
23944
|
-
if (!
|
|
23944
|
+
if (!mb.has(r))
|
|
23945
23945
|
throw new TypeError(`Unknown type: ${r}`);
|
|
23946
23946
|
if (r === void 0 && i === void 0 && (r = "hex"), r === "hex" || r === void 0 && i === void 0)
|
|
23947
23947
|
return A(Math.ceil(e * 0.5), "hex", e);
|
|
23948
23948
|
if (r === "base64")
|
|
23949
23949
|
return A(Math.ceil(e * 0.75), "base64", e);
|
|
23950
23950
|
if (r === "url-safe")
|
|
23951
|
-
return t(e,
|
|
23951
|
+
return t(e, lb);
|
|
23952
23952
|
if (r === "numeric")
|
|
23953
|
-
return t(e,
|
|
23953
|
+
return t(e, Eb);
|
|
23954
23954
|
if (r === "distinguishable")
|
|
23955
|
-
return t(e,
|
|
23955
|
+
return t(e, ub);
|
|
23956
23956
|
if (r === "ascii-printable")
|
|
23957
|
-
return t(e,
|
|
23957
|
+
return t(e, Bb);
|
|
23958
23958
|
if (r === "alphanumeric")
|
|
23959
|
-
return t(e,
|
|
23959
|
+
return t(e, Qb);
|
|
23960
23960
|
if (i.length === 0)
|
|
23961
23961
|
throw new TypeError("Expected `characters` string length to be greater than or equal to 1");
|
|
23962
23962
|
if (i.length > 65536)
|
|
23963
23963
|
throw new TypeError("Expected `characters` string length to be less or equal to 65536");
|
|
23964
23964
|
return t(e, i.split(""));
|
|
23965
|
-
}, "createGenerator"), ZE = $E(
|
|
23966
|
-
ZE.async = $E(
|
|
23965
|
+
}, "createGenerator"), ZE = $E(fb, pb);
|
|
23966
|
+
ZE.async = $E(db, wb);
|
|
23967
23967
|
var Au = ZE;
|
|
23968
23968
|
|
|
23969
23969
|
// ../node_modules/unique-string/index.js
|
|
@@ -23992,7 +23992,7 @@ var eu = [
|
|
|
23992
23992
|
|
|
23993
23993
|
// src/common/utils/get-storybook-info.ts
|
|
23994
23994
|
import { existsSync as WB, readFileSync as VB } from "node:fs";
|
|
23995
|
-
import { dirname as FM, join as
|
|
23995
|
+
import { dirname as FM, join as kM } from "node:path";
|
|
23996
23996
|
|
|
23997
23997
|
// src/common/js-package-manager/JsPackageManager.ts
|
|
23998
23998
|
import { readFileSync as Kn, writeFileSync as yM } from "node:fs";
|
|
@@ -24000,7 +24000,7 @@ import { dirname as Oi, isAbsolute as DM, join as SM, resolve as TB } from "node
|
|
|
24000
24000
|
import { logger as ct, prompt as HB } from "storybook/internal/node-logger";
|
|
24001
24001
|
|
|
24002
24002
|
// node_modules/execa/index.js
|
|
24003
|
-
var
|
|
24003
|
+
var bB = cA(aa(), 1);
|
|
24004
24004
|
import { Buffer as CM } from "node:buffer";
|
|
24005
24005
|
import cM from "node:path";
|
|
24006
24006
|
import va from "node:child_process";
|
|
@@ -24030,7 +24030,7 @@ function sn(t = {}) {
|
|
|
24030
24030
|
s(sn, "pathKey");
|
|
24031
24031
|
|
|
24032
24032
|
// node_modules/npm-run-path/index.js
|
|
24033
|
-
var
|
|
24033
|
+
var Vb = /* @__PURE__ */ s(({
|
|
24034
24034
|
cwd: t = nn.cwd(),
|
|
24035
24035
|
path: A = nn.env[sn()],
|
|
24036
24036
|
preferLocal: e = !0,
|
|
@@ -24038,22 +24038,22 @@ var Vk = /* @__PURE__ */ s(({
|
|
|
24038
24038
|
addExecPath: i = !0
|
|
24039
24039
|
} = {}) => {
|
|
24040
24040
|
let n = t instanceof URL ? Ou(t) : t, o = Li.resolve(n), g = [];
|
|
24041
|
-
return e &&
|
|
24042
|
-
}, "npmRunPath"),
|
|
24041
|
+
return e && Xb(g, o), i && $b(g, r, o), [...g, A].join(Li.delimiter);
|
|
24042
|
+
}, "npmRunPath"), Xb = /* @__PURE__ */ s((t, A) => {
|
|
24043
24043
|
let e;
|
|
24044
24044
|
for (; e !== A; )
|
|
24045
24045
|
t.push(Li.join(A, "node_modules/.bin")), e = A, A = Li.resolve(A, "..");
|
|
24046
|
-
}, "applyPreferLocal"), $
|
|
24046
|
+
}, "applyPreferLocal"), $b = /* @__PURE__ */ s((t, A, e) => {
|
|
24047
24047
|
let r = A instanceof URL ? Ou(A) : A;
|
|
24048
24048
|
t.push(Li.resolve(e, r, ".."));
|
|
24049
24049
|
}, "applyExecPath"), Tu = /* @__PURE__ */ s(({ env: t = nn.env, ...A } = {}) => {
|
|
24050
24050
|
t = { ...t };
|
|
24051
24051
|
let e = sn({ env: t });
|
|
24052
|
-
return A.path = t[e], t[e] =
|
|
24052
|
+
return A.path = t[e], t[e] = Vb(A), t;
|
|
24053
24053
|
}, "npmRunPathEnv");
|
|
24054
24054
|
|
|
24055
24055
|
// node_modules/mimic-fn/index.js
|
|
24056
|
-
var
|
|
24056
|
+
var Zb = /* @__PURE__ */ s((t, A, e, r) => {
|
|
24057
24057
|
if (e === "length" || e === "prototype" || e === "arguments" || e === "caller")
|
|
24058
24058
|
return;
|
|
24059
24059
|
let i = Object.getOwnPropertyDescriptor(t, e), n = Object.getOwnPropertyDescriptor(A, e);
|
|
@@ -24073,7 +24073,7 @@ prototype.toString, "name"), sN = /* @__PURE__ */ s((t, A, e) => {
|
|
|
24073
24073
|
function ca(t, A, { ignoreNonConfigurable: e = !1 } = {}) {
|
|
24074
24074
|
let { name: r } = t;
|
|
24075
24075
|
for (let i of Reflect.ownKeys(A))
|
|
24076
|
-
|
|
24076
|
+
Zb(t, A, i, e);
|
|
24077
24077
|
return eN(t, A), sN(t, A, r), t;
|
|
24078
24078
|
}
|
|
24079
24079
|
s(ca, "mimicFunction");
|
|
@@ -24469,10 +24469,10 @@ n !== void 0 ? `failed with exit code ${n}` : "failed", "getErrorPrefix"), xi =
|
|
|
24469
24469
|
}) => {
|
|
24470
24470
|
n = n === null ? void 0 : n, i = i === null ? void 0 : i;
|
|
24471
24471
|
let p = i === void 0 ? void 0 : Vu[i].description, w = r && r.code, N = `Command ${uN({ timedOut: C, timeout: Q, errorCode: w, signal: i, signalDescription: p,
|
|
24472
|
-
exitCode: n, isCanceled: I })}: ${o}`,
|
|
24472
|
+
exitCode: n, isCanceled: I })}: ${o}`, k = Object.prototype.toString.call(r) === "[object Error]", _ = k ? `${N}
|
|
24473
24473
|
${r.message}` : N, L = [_, A, t].filter(Boolean).join(`
|
|
24474
24474
|
`);
|
|
24475
|
-
return
|
|
24475
|
+
return k ? (r.originalMessage = r.message, r.message = L) : r = new Error(L), r.shortMessage = _, r.command = o, r.escapedCommand = g, r.exitCode =
|
|
24476
24476
|
n, r.signal = i, r.signalDescription = p, r.stdout = t, r.stderr = A, r.cwd = B, e !== void 0 && (r.all = e), "bufferedData" in r && delete r.
|
|
24477
24477
|
bufferedData, r.failed = !0, r.timedOut = !!C, r.isCanceled = I, r.killed = E && !C, r;
|
|
24478
24478
|
}, "makeError");
|
|
@@ -24752,12 +24752,12 @@ function da(t) {
|
|
|
24752
24752
|
s(da, "isWritableStream");
|
|
24753
24753
|
|
|
24754
24754
|
// node_modules/execa/lib/pipe.js
|
|
24755
|
-
var
|
|
24755
|
+
var kN = /* @__PURE__ */ s((t) => t instanceof FN && typeof t.then == "function", "isExecaChildProcess"), pa = /* @__PURE__ */ s((t, A, e) => {
|
|
24756
24756
|
if (typeof e == "string")
|
|
24757
24757
|
return t[A].pipe(KN(e)), t;
|
|
24758
24758
|
if (da(e))
|
|
24759
24759
|
return t[A].pipe(e), t;
|
|
24760
|
-
if (!
|
|
24760
|
+
if (!kN(e))
|
|
24761
24761
|
throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
|
|
24762
24762
|
if (!da(e.stdin))
|
|
24763
24763
|
throw new TypeError("The target child process's stdin must be available.");
|
|
@@ -24783,11 +24783,11 @@ maxBuffer: C = Number.POSITIVE_INFINITY } = {}) => {
|
|
|
24783
24783
|
let Q = MN(E), B = e[Q](E, I);
|
|
24784
24784
|
oB({ convertedChunk: B, state: I, getSize: r, truncateChunk: i, addChunk: n, maxBuffer: C });
|
|
24785
24785
|
}
|
|
24786
|
-
return
|
|
24786
|
+
return bN({ state: I, convertChunk: e, getSize: r, truncateChunk: i, addChunk: n, getFinalChunk: o, maxBuffer: C }), g(I);
|
|
24787
24787
|
} catch (E) {
|
|
24788
24788
|
throw E.bufferedData = g(I), E;
|
|
24789
24789
|
}
|
|
24790
|
-
}, "getStreamContents"),
|
|
24790
|
+
}, "getStreamContents"), bN = /* @__PURE__ */ s(({ state: t, getSize: A, truncateChunk: e, addChunk: r, getFinalChunk: i, maxBuffer: n }) => {
|
|
24791
24791
|
let o = i(t);
|
|
24792
24792
|
o !== void 0 && oB({ convertedChunk: o, state: t, getSize: A, truncateChunk: e, addChunk: r, maxBuffer: n });
|
|
24793
24793
|
}, "appendFinalChunk"), oB = /* @__PURE__ */ s(({ convertedChunk: t, state: A, getSize: e, truncateChunk: r, addChunk: i, maxBuffer: n }) => {
|
|
@@ -24961,7 +24961,7 @@ var AM = (async () => {
|
|
|
24961
24961
|
})().constructor.prototype, eM = ["then", "catch", "finally"].map((t) => [
|
|
24962
24962
|
t,
|
|
24963
24963
|
Reflect.getOwnPropertyDescriptor(AM, t)
|
|
24964
|
-
]),
|
|
24964
|
+
]), ka = /* @__PURE__ */ s((t, A) => {
|
|
24965
24965
|
for (let [e, r] of eM) {
|
|
24966
24966
|
let i = typeof A == "function" ? (...n) => Reflect.apply(r.value, A(), n) : r.value.bind(A);
|
|
24967
24967
|
Reflect.defineProperty(t, e, { ...r, value: i });
|
|
@@ -24980,7 +24980,7 @@ var AM = (async () => {
|
|
|
24980
24980
|
import { Buffer as tM } from "node:buffer";
|
|
24981
24981
|
import { ChildProcess as rM } from "node:child_process";
|
|
24982
24982
|
var DB = /* @__PURE__ */ s((t, A = []) => Array.isArray(A) ? [t, ...A] : [t], "normalizeArgs"), iM = /^[\w.-]+$/, sM = /* @__PURE__ */ s((t) => typeof t !=
|
|
24983
|
-
"string" || iM.test(t) ? t : `"${t.replaceAll('"', '\\"')}"`, "escapeArg"),
|
|
24983
|
+
"string" || iM.test(t) ? t : `"${t.replaceAll('"', '\\"')}"`, "escapeArg"), ba = /* @__PURE__ */ s((t, A) => DB(t, A).join(" "), "joinComman\
|
|
24984
24984
|
d"), Na = /* @__PURE__ */ s((t, A) => DB(t, A).map((e) => sM(e)).join(" "), "getEscapedCommand"), SB = / +/g, KB = /* @__PURE__ */ s((t) => {
|
|
24985
24985
|
let A = [];
|
|
24986
24986
|
for (let e of t.trim().split(SB)) {
|
|
@@ -25044,7 +25044,7 @@ var IM = 1e3 * 1e3 * 100, hM = /* @__PURE__ */ s(({ env: t, extendEnv: A, prefer
|
|
|
25044
25044
|
let n = A ? { ...Qn.env, ...t } : t;
|
|
25045
25045
|
return e ? Tu({ env: n, cwd: r, execPath: i }) : n;
|
|
25046
25046
|
}, "getEnv"), NB = /* @__PURE__ */ s((t, A, e = {}) => {
|
|
25047
|
-
let r =
|
|
25047
|
+
let r = bB.default._parse(t, A, e);
|
|
25048
25048
|
return t = r.command, A = r.args, e = r.options, e = {
|
|
25049
25049
|
maxBuffer: IM,
|
|
25050
25050
|
buffer: !0,
|
|
@@ -25065,7 +25065,7 @@ var IM = 1e3 * 1e3 * 100, hM = /* @__PURE__ */ s(({ env: t, extendEnv: A, prefer
|
|
|
25065
25065
|
}, "handleArguments"), Pi = /* @__PURE__ */ s((t, A, e) => typeof A != "string" && !CM.isBuffer(A) ? e === void 0 ? void 0 : "" : t.stripFinalNewline ?
|
|
25066
25066
|
Ca(A) : A, "handleOutput");
|
|
25067
25067
|
function La(t, A, e) {
|
|
25068
|
-
let r = NB(t, A, e), i =
|
|
25068
|
+
let r = NB(t, A, e), i = ba(t, A), n = Na(t, A);
|
|
25069
25069
|
Ra(n, r.options), tB(r.options);
|
|
25070
25070
|
let o;
|
|
25071
25071
|
try {
|
|
@@ -25083,12 +25083,12 @@ function La(t, A, e) {
|
|
|
25083
25083
|
isCanceled: !1,
|
|
25084
25084
|
killed: !1
|
|
25085
25085
|
}));
|
|
25086
|
-
return
|
|
25086
|
+
return ka(w, D), w;
|
|
25087
25087
|
}
|
|
25088
25088
|
let g = wB(o), C = eB(o, r.options, g), I = rB(o, r.options, C), E = { isCanceled: !1 };
|
|
25089
25089
|
o.kill = Zu.bind(null, o.kill.bind(o)), o.cancel = AB.bind(null, o, E);
|
|
25090
25090
|
let B = ju(/* @__PURE__ */ s(async () => {
|
|
25091
|
-
let [{ error: p, exitCode: w, signal: D, timedOut: N },
|
|
25091
|
+
let [{ error: p, exitCode: w, signal: D, timedOut: N }, k, _, L] = await pB(o, r.options, I), J = Pi(r.options, k), U = Pi(r.options, _),
|
|
25092
25092
|
Z = Pi(r.options, L);
|
|
25093
25093
|
if (p || w !== 0 || D !== null) {
|
|
25094
25094
|
let q = xi({
|
|
@@ -25122,11 +25122,11 @@ function La(t, A, e) {
|
|
|
25122
25122
|
killed: !1
|
|
25123
25123
|
};
|
|
25124
25124
|
}, "handlePromise"));
|
|
25125
|
-
return fB(o, r.options), o.all = dB(o, r.options), iB(o),
|
|
25125
|
+
return fB(o, r.options), o.all = dB(o, r.options), iB(o), ka(o, B), o;
|
|
25126
25126
|
}
|
|
25127
25127
|
s(La, "execa");
|
|
25128
25128
|
function MB(t, A, e) {
|
|
25129
|
-
let r = NB(t, A, e), i =
|
|
25129
|
+
let r = NB(t, A, e), i = ba(t, A), n = Na(t, A);
|
|
25130
25130
|
Ra(n, r.options);
|
|
25131
25131
|
let o = QB(r.options), g;
|
|
25132
25132
|
try {
|
|
@@ -25178,7 +25178,7 @@ function MB(t, A, e) {
|
|
|
25178
25178
|
}
|
|
25179
25179
|
s(MB, "execaSync");
|
|
25180
25180
|
var lM = /* @__PURE__ */ s(({ input: t, inputFile: A, stdio: e }) => t === void 0 && A === void 0 && e === void 0 ? { stdin: "inherit" } : {},
|
|
25181
|
-
"normalizeScriptStdin"),
|
|
25181
|
+
"normalizeScriptStdin"), kB = /* @__PURE__ */ s((t = {}) => ({
|
|
25182
25182
|
preferLocal: !0,
|
|
25183
25183
|
...lM(t),
|
|
25184
25184
|
...t
|
|
@@ -25188,13 +25188,13 @@ function RB(t) {
|
|
|
25188
25188
|
if (!Array.isArray(e))
|
|
25189
25189
|
return RB({ ...t, ...e });
|
|
25190
25190
|
let [i, ...n] = Ma(e, r);
|
|
25191
|
-
return La(i, n,
|
|
25191
|
+
return La(i, n, kB(t));
|
|
25192
25192
|
}
|
|
25193
25193
|
return s(A, "$"), A.sync = (e, ...r) => {
|
|
25194
25194
|
if (!Array.isArray(e))
|
|
25195
25195
|
throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
|
|
25196
25196
|
let [i, ...n] = Ma(e, r);
|
|
25197
|
-
return MB(i, n,
|
|
25197
|
+
return MB(i, n, kB(t));
|
|
25198
25198
|
}, A;
|
|
25199
25199
|
}
|
|
25200
25200
|
s(RB, "create$");
|
|
@@ -25858,14 +25858,14 @@ var _a = {
|
|
|
25858
25858
|
"storybook-solidjs-vite": "solid",
|
|
25859
25859
|
"storybook-react-rsbuild": "react-rsbuild",
|
|
25860
25860
|
"storybook-vue3-rsbuild": "vue3-rsbuild"
|
|
25861
|
-
}, SW = ["@storybook/builder-webpack5", "@storybook/builder-vite"],
|
|
25861
|
+
}, SW = ["@storybook/builder-webpack5", "@storybook/builder-vite"], bM = /* @__PURE__ */ s(({ dependencies: t, devDependencies: A, peerDependencies: e }, r) => [
|
|
25862
25862
|
Object.entries(t || {}).find(r),
|
|
25863
25863
|
Object.entries(A || {}).find(r),
|
|
25864
25864
|
Object.entries(e || {}).find(r)
|
|
25865
25865
|
], "findDependency"), NM = /* @__PURE__ */ s((t) => {
|
|
25866
25866
|
let A = ee.listAllPackageJsonPaths(FM(t));
|
|
25867
25867
|
for (let e of A) {
|
|
25868
|
-
let r = JSON.parse(VB(e, "utf-8")), [i, n, o] =
|
|
25868
|
+
let r = JSON.parse(VB(e, "utf-8")), [i, n, o] = bM(r, ([I]) => _a[I]), [g, C] = i || n || o || [];
|
|
25869
25869
|
if (g && C)
|
|
25870
25870
|
return {
|
|
25871
25871
|
version: C,
|
|
@@ -25877,7 +25877,7 @@ var _a = {
|
|
|
25877
25877
|
frameworkPackage: void 0
|
|
25878
25878
|
};
|
|
25879
25879
|
}, "getRendererInfo"), MM = ["ts", "js", "tsx", "jsx", "mjs", "cjs"], Ua = /* @__PURE__ */ s((t, A) => {
|
|
25880
|
-
let e =
|
|
25880
|
+
let e = kM(A, t), r = MM.find((i) => WB(`${e}.${i}`));
|
|
25881
25881
|
return r ? `${e}.${r}` : null;
|
|
25882
25882
|
}, "findConfigFile"), Ga = /* @__PURE__ */ s((t) => {
|
|
25883
25883
|
let A = t ?? ".storybook";
|
|
@@ -26014,7 +26014,7 @@ function hQ({ nodeEnv: t, buildTarget: A } = {}) {
|
|
|
26014
26014
|
s(hQ, "getEnvironment");
|
|
26015
26015
|
|
|
26016
26016
|
// src/common/utils/envs.ts
|
|
26017
|
-
function
|
|
26017
|
+
function o4(t = {}) {
|
|
26018
26018
|
let A = t.production ? "production" : "development", e = {
|
|
26019
26019
|
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
26020
26020
|
NODE_ENV: process.env.NODE_ENV || A,
|
|
@@ -26038,8 +26038,8 @@ function o3(t = {}) {
|
|
|
26038
26038
|
raw: o
|
|
26039
26039
|
};
|
|
26040
26040
|
}
|
|
26041
|
-
s(
|
|
26042
|
-
var
|
|
26041
|
+
s(o4, "loadEnvs");
|
|
26042
|
+
var g4 = /* @__PURE__ */ s((t) => Object.entries(t).reduce((A, [e, r]) => (A[e] = JSON.stringify(r), A), {}), "stringifyEnvs"), a4 = /* @__PURE__ */ s(
|
|
26043
26043
|
(t) => Object.entries(t).reduce((e, [r, i]) => (e[`process.env.${r}`] = JSON.stringify(i), e), {}), "stringifyProcessEnvs");
|
|
26044
26044
|
|
|
26045
26045
|
// src/common/utils/common-glob-options.ts
|
|
@@ -26079,14 +26079,14 @@ var EQ = {
|
|
|
26079
26079
|
};
|
|
26080
26080
|
|
|
26081
26081
|
// src/common/utils/get-builder-options.ts
|
|
26082
|
-
async function
|
|
26082
|
+
async function E4(t) {
|
|
26083
26083
|
let A = await t.presets.apply("framework", {}, t);
|
|
26084
26084
|
if (typeof A != "string" && A?.options?.builder)
|
|
26085
26085
|
return A.options.builder;
|
|
26086
26086
|
let { builder: e } = await t.presets.apply("core", {}, t);
|
|
26087
26087
|
return typeof e != "string" && e?.options ? e.options : {};
|
|
26088
26088
|
}
|
|
26089
|
-
s(
|
|
26089
|
+
s(E4, "getBuilderOptions");
|
|
26090
26090
|
|
|
26091
26091
|
// src/common/utils/get-framework-name.ts
|
|
26092
26092
|
var BQ = cA(gt(), 1);
|
|
@@ -26116,16 +26116,16 @@ var fQ = /* @__PURE__ */ s((t) => {
|
|
|
26116
26116
|
}, "extractProperFrameworkName");
|
|
26117
26117
|
|
|
26118
26118
|
// src/common/utils/get-renderer-name.ts
|
|
26119
|
-
async function
|
|
26119
|
+
async function F4(t) {
|
|
26120
26120
|
let A = await t.presets.apply("core", {}, t);
|
|
26121
26121
|
return !A || !A.renderer ? QQ(t) : A.renderer;
|
|
26122
26122
|
}
|
|
26123
|
-
s(
|
|
26124
|
-
async function
|
|
26123
|
+
s(F4, "getRendererName");
|
|
26124
|
+
async function k4(t) {
|
|
26125
26125
|
let A = fQ(t), e = Yr[A];
|
|
26126
26126
|
return e ? EQ[e] : null;
|
|
26127
26127
|
}
|
|
26128
|
-
s(
|
|
26128
|
+
s(k4, "extractProperRendererNameFromFramework");
|
|
26129
26129
|
|
|
26130
26130
|
// src/common/utils/get-storybook-refs.ts
|
|
26131
26131
|
import { readFile as dQ } from "node:fs/promises";
|
|
@@ -26185,7 +26185,7 @@ var ER = /* @__PURE__ */ s(async (t) => {
|
|
|
26185
26185
|
let A = t.replace(/[A-Z]/g, (e) => ` ${e}`).replace(/[-_][A-Z]/gi, (e) => ` ${e.toUpperCase()}`).replace(/-/g, " ").replace(/_/g, " ");
|
|
26186
26186
|
return `${A.substring(0, 1).toUpperCase()}${A.substring(1)}`.trim();
|
|
26187
26187
|
}, "toTitle");
|
|
26188
|
-
async function
|
|
26188
|
+
async function Y4(t) {
|
|
26189
26189
|
if (t.test)
|
|
26190
26190
|
return {};
|
|
26191
26191
|
let A = await t.presets.apply("refs", await ER(t));
|
|
@@ -26207,7 +26207,7 @@ async function Y3(t) {
|
|
|
26207
26207
|
})
|
|
26208
26208
|
), A;
|
|
26209
26209
|
}
|
|
26210
|
-
s(
|
|
26210
|
+
s(Y4, "getRefs");
|
|
26211
26211
|
|
|
26212
26212
|
// src/common/utils/glob-to-regexp.ts
|
|
26213
26213
|
var JQ = cA(Nn(), 1);
|
|
@@ -26226,7 +26226,7 @@ function OQ(t) {
|
|
|
26226
26226
|
s(OQ, "globToRegexp");
|
|
26227
26227
|
|
|
26228
26228
|
// src/common/utils/interpolate.ts
|
|
26229
|
-
var
|
|
26229
|
+
var X4 = /* @__PURE__ */ s((t, A) => Object.entries(A).reduce((e, [r, i]) => {
|
|
26230
26230
|
let n = i.replace(/\\/g, "/").replace(/\$/g, "$$$");
|
|
26231
26231
|
return e.replace(new RegExp(`{{${r}}}`, "g"), n);
|
|
26232
26232
|
}, t), "interpolate");
|
|
@@ -26238,7 +26238,7 @@ import {
|
|
|
26238
26238
|
MainFileESMOnlyImportError as ZR,
|
|
26239
26239
|
MainFileEvaluationError as A0
|
|
26240
26240
|
} from "storybook/internal/server-errors";
|
|
26241
|
-
async function
|
|
26241
|
+
async function s3({
|
|
26242
26242
|
configDir: t = ".storybook",
|
|
26243
26243
|
noCache: A = !1,
|
|
26244
26244
|
cwd: e
|
|
@@ -26271,13 +26271,13 @@ async function s4({
|
|
|
26271
26271
|
});
|
|
26272
26272
|
}
|
|
26273
26273
|
}
|
|
26274
|
-
s(
|
|
26274
|
+
s(s3, "loadMainConfig");
|
|
26275
26275
|
|
|
26276
26276
|
// src/common/utils/load-manager-or-addons-file.ts
|
|
26277
26277
|
var HQ = cA(gt(), 1);
|
|
26278
26278
|
import { resolve as iC } from "node:path";
|
|
26279
26279
|
import { logger as e0 } from "storybook/internal/node-logger";
|
|
26280
|
-
function
|
|
26280
|
+
function c3({ configDir: t }) {
|
|
26281
26281
|
let A = wr(iC(t, "addons")), e = wr(iC(t, "manager"));
|
|
26282
26282
|
if ((A || e) && e0.info("=> Loading custom manager config"), A && e)
|
|
26283
26283
|
throw new Error(HQ.dedent`
|
|
@@ -26287,12 +26287,12 @@ function c4({ configDir: t }) {
|
|
|
26287
26287
|
)})`);
|
|
26288
26288
|
return e || A;
|
|
26289
26289
|
}
|
|
26290
|
-
s(
|
|
26290
|
+
s(c3, "loadManagerOrAddonsFile");
|
|
26291
26291
|
|
|
26292
26292
|
// src/common/utils/load-preview-or-config-file.ts
|
|
26293
26293
|
var jQ = cA(gt(), 1);
|
|
26294
26294
|
import { resolve as sC } from "node:path";
|
|
26295
|
-
function
|
|
26295
|
+
function u3({ configDir: t }) {
|
|
26296
26296
|
let A = wr(sC(t, "config")), e = wr(sC(t, "preview"));
|
|
26297
26297
|
if (A && e)
|
|
26298
26298
|
throw new Error(jQ.dedent`
|
|
@@ -26302,12 +26302,12 @@ function u4({ configDir: t }) {
|
|
|
26302
26302
|
)})`);
|
|
26303
26303
|
return e || A;
|
|
26304
26304
|
}
|
|
26305
|
-
s(
|
|
26305
|
+
s(u3, "loadPreviewOrConfigFile");
|
|
26306
26306
|
|
|
26307
26307
|
// src/common/utils/log.ts
|
|
26308
26308
|
var or = cA(_i(), 1);
|
|
26309
26309
|
import { logger as Mn } from "storybook/internal/node-logger";
|
|
26310
|
-
var
|
|
26310
|
+
var d3 = /* @__PURE__ */ s((t) => (process.stdout.write(or.default.cyan(" \u2022 ") + t), (A, e) => {
|
|
26311
26311
|
if (A) {
|
|
26312
26312
|
if (process.stdout.write(`. ${or.default.red("\u2716")}
|
|
26313
26313
|
`), Mn.error(`
|
|
@@ -26323,13 +26323,13 @@ var d4 = /* @__PURE__ */ s((t) => (process.stdout.write(or.default.cyan(" \u2022
|
|
|
26323
26323
|
process.stdout.write(`. ${or.default.green("\u2713")}
|
|
26324
26324
|
`);
|
|
26325
26325
|
}), "commandLog");
|
|
26326
|
-
function
|
|
26326
|
+
function p3(t) {
|
|
26327
26327
|
let A = t.split(`
|
|
26328
26328
|
`).map((e) => ` ${e}`).join(`
|
|
26329
26329
|
`);
|
|
26330
26330
|
Mn.log(A);
|
|
26331
26331
|
}
|
|
26332
|
-
s(
|
|
26332
|
+
s(p3, "paddedLog");
|
|
26333
26333
|
function qQ(t, A) {
|
|
26334
26334
|
let e = "";
|
|
26335
26335
|
for (let r = 0; r < A; r += 1)
|
|
@@ -26337,7 +26337,7 @@ function qQ(t, A) {
|
|
|
26337
26337
|
return e;
|
|
26338
26338
|
}
|
|
26339
26339
|
s(qQ, "getChars");
|
|
26340
|
-
function
|
|
26340
|
+
function w3(t, A) {
|
|
26341
26341
|
let e = 0, i = t.map((n) => (e = n.length > e ? n.length : e, n)).map((n) => {
|
|
26342
26342
|
let o = e - n.length, g = n + qQ(" ", o);
|
|
26343
26343
|
return g = qQ(" ", A || 2) + or.default.inverse(` ${g} `), g;
|
|
@@ -26345,14 +26345,14 @@ function w4(t, A) {
|
|
|
26345
26345
|
`);
|
|
26346
26346
|
Mn.log(i);
|
|
26347
26347
|
}
|
|
26348
|
-
s(
|
|
26348
|
+
s(w3, "codeLog");
|
|
26349
26349
|
|
|
26350
26350
|
// src/common/utils/log-config.ts
|
|
26351
26351
|
var zQ = cA(_i(), 1);
|
|
26352
|
-
function
|
|
26352
|
+
function D3(t, A) {
|
|
26353
26353
|
console.log(zQ.default.cyan(String(t))), console.dir(A, { depth: null });
|
|
26354
26354
|
}
|
|
26355
|
-
s(
|
|
26355
|
+
s(D3, "logConfig");
|
|
26356
26356
|
|
|
26357
26357
|
// src/common/utils/normalize-stories.ts
|
|
26358
26358
|
var VQ = cA(Nn(), 1);
|
|
@@ -26411,7 +26411,7 @@ var Rn = "", o0 = "**/*.@(mdx|stories.@(js|jsx|mjs|ts|tsx))", g0 = /* @__PURE__
|
|
|
26411
26411
|
directory: g,
|
|
26412
26412
|
importPathMatcher: C
|
|
26413
26413
|
};
|
|
26414
|
-
}, "normalizeStoriesEntry"),
|
|
26414
|
+
}, "normalizeStoriesEntry"), v3 = /* @__PURE__ */ s((t, A) => {
|
|
26415
26415
|
if (!t || Array.isArray(t) && t.length === 0)
|
|
26416
26416
|
throw new n0();
|
|
26417
26417
|
return t.map((e) => C0(e, A));
|
|
@@ -26419,18 +26419,18 @@ var Rn = "", o0 = "**/*.@(mdx|stories.@(js|jsx|mjs|ts|tsx))", g0 = /* @__PURE__
|
|
|
26419
26419
|
|
|
26420
26420
|
// src/common/utils/readTemplate.ts
|
|
26421
26421
|
import { readFile as c0 } from "node:fs/promises";
|
|
26422
|
-
async function
|
|
26422
|
+
async function P3(t) {
|
|
26423
26423
|
return c0(t, {
|
|
26424
26424
|
encoding: "utf8"
|
|
26425
26425
|
});
|
|
26426
26426
|
}
|
|
26427
|
-
s(
|
|
26427
|
+
s(P3, "readTemplate");
|
|
26428
26428
|
|
|
26429
26429
|
// src/common/utils/remove.ts
|
|
26430
26430
|
var XQ = cA(gt(), 1);
|
|
26431
26431
|
import { readConfig as I0, writeConfig as h0 } from "storybook/internal/csf-tools";
|
|
26432
26432
|
import { logger as vn } from "storybook/internal/node-logger";
|
|
26433
|
-
async function
|
|
26433
|
+
async function T3(t, A) {
|
|
26434
26434
|
let { packageManager: e, skipInstall: r } = A, { mainConfigPath: i, configDir: n } = Ga(A.configDir);
|
|
26435
26435
|
if (typeof n > "u")
|
|
26436
26436
|
throw new Error(XQ.dedent`
|
|
@@ -26451,31 +26451,31 @@ async function T4(t, A) {
|
|
|
26451
26451
|
}
|
|
26452
26452
|
}
|
|
26453
26453
|
}
|
|
26454
|
-
s(
|
|
26454
|
+
s(T3, "removeAddon");
|
|
26455
26455
|
|
|
26456
26456
|
// src/common/utils/symlinks.ts
|
|
26457
|
-
function
|
|
26457
|
+
function q3() {
|
|
26458
26458
|
let { NODE_OPTIONS: t, NODE_PRESERVE_SYMLINKS: A } = process.env;
|
|
26459
26459
|
return !!A || t?.includes("--preserve-symlinks");
|
|
26460
26460
|
}
|
|
26461
|
-
s(
|
|
26461
|
+
s(q3, "isPreservingSymlinks");
|
|
26462
26462
|
|
|
26463
26463
|
// src/common/utils/template.ts
|
|
26464
26464
|
import { existsSync as $Q, readFileSync as Ln } from "node:fs";
|
|
26465
26465
|
import { dirname as ZQ, resolve as Af } from "node:path";
|
|
26466
26466
|
var ef = /* @__PURE__ */ s((t, A = {}) => Object.entries(A).reduce((e, [r, i]) => e.replace(new RegExp(`%${r}%`, "g"), i), t), "interpolate");
|
|
26467
|
-
function $
|
|
26467
|
+
function $3(t, A) {
|
|
26468
26468
|
let e = ZQ(v.resolve("storybook/internal/package.json")), r = Ln(`${e}/assets/server/base-preview-body.html`, "utf8"), i = Af(t, "preview-\
|
|
26469
26469
|
body.html"), n = r;
|
|
26470
26470
|
return $Q(i) && (n = Ln(i, "utf8") + n), ef(n, A);
|
|
26471
26471
|
}
|
|
26472
|
-
s($
|
|
26473
|
-
function
|
|
26472
|
+
s($3, "getPreviewBodyTemplate");
|
|
26473
|
+
function Z3(t, A) {
|
|
26474
26474
|
let e = ZQ(v.resolve("storybook/internal/package.json")), r = Ln(`${e}/assets/server/base-preview-head.html`, "utf8"), i = Af(t, "preview-\
|
|
26475
26475
|
head.html"), n = r;
|
|
26476
26476
|
return $Q(i) && (n += Ln(i, "utf8")), ef(n, A);
|
|
26477
26477
|
}
|
|
26478
|
-
s(
|
|
26478
|
+
s(Z3, "getPreviewHeadTemplate");
|
|
26479
26479
|
|
|
26480
26480
|
// src/common/utils/validate-config.ts
|
|
26481
26481
|
import { join as l0 } from "node:path";
|
|
@@ -26538,7 +26538,7 @@ s(f0, "formatWithEditorConfig");
|
|
|
26538
26538
|
var af = cA(gt(), 1);
|
|
26539
26539
|
import { relative as y0 } from "node:path";
|
|
26540
26540
|
import { normalizeStories as D0, normalizeStoryPath as S0 } from "storybook/internal/common";
|
|
26541
|
-
import { sanitize as K0, storyNameFromExport as F0, toId as
|
|
26541
|
+
import { sanitize as K0, storyNameFromExport as F0, toId as k0 } from "storybook/internal/csf";
|
|
26542
26542
|
|
|
26543
26543
|
// src/preview-api/modules/store/autoTitle.ts
|
|
26544
26544
|
Rr();
|
|
@@ -26581,7 +26581,7 @@ var gf = /* @__PURE__ */ s((t, A = m0) => t.split(A).filter(Boolean).join(w0.sep
|
|
|
26581
26581
|
|
|
26582
26582
|
// src/common/utils/get-story-id.ts
|
|
26583
26583
|
async function SV(t, A) {
|
|
26584
|
-
let e = await A.presets.apply("stories", [], A), r =
|
|
26584
|
+
let e = await A.presets.apply("stories", [], A), r = b0({
|
|
26585
26585
|
...t,
|
|
26586
26586
|
stories: e,
|
|
26587
26587
|
configDir: A.configDir
|
|
@@ -26590,11 +26590,11 @@ async function SV(t, A) {
|
|
|
26590
26590
|
throw new Error(af.dedent`
|
|
26591
26591
|
The new story file was successfully generated, but we are unable to index it. Please ensure that the new Story file is matched by the 'stories' glob pattern in your Storybook configuration.
|
|
26592
26592
|
`);
|
|
26593
|
-
let i = F0(t.exportedStoryName), n =
|
|
26593
|
+
let i = F0(t.exportedStoryName), n = k0(r, i), o = K0(r);
|
|
26594
26594
|
return { storyId: n, kind: o };
|
|
26595
26595
|
}
|
|
26596
26596
|
s(SV, "getStoryId");
|
|
26597
|
-
function
|
|
26597
|
+
function b0({
|
|
26598
26598
|
storyFilePath: t,
|
|
26599
26599
|
configDir: A,
|
|
26600
26600
|
stories: e,
|
|
@@ -26607,7 +26607,7 @@ function k0({
|
|
|
26607
26607
|
}), o = y0(r, t), g = gf(S0(o));
|
|
26608
26608
|
return n.map((C) => of(g, C, i)).filter(Boolean)[0];
|
|
26609
26609
|
}
|
|
26610
|
-
s(
|
|
26610
|
+
s(b0, "getStoryTitle");
|
|
26611
26611
|
|
|
26612
26612
|
// src/common/utils/get-addon-names.ts
|
|
26613
26613
|
var Cf = /* @__PURE__ */ s((t) => (t.addons || []).map((r) => {
|
|
@@ -27811,8 +27811,8 @@ async function KAA({
|
|
|
27811
27811
|
s(KAA, "scanAndTransformFiles");
|
|
27812
27812
|
|
|
27813
27813
|
// src/common/utils/transform-imports.ts
|
|
27814
|
-
import { readFile as FO, writeFile as
|
|
27815
|
-
function
|
|
27814
|
+
import { readFile as FO, writeFile as kO } from "node:fs/promises";
|
|
27815
|
+
function bO(t, A) {
|
|
27816
27816
|
let e = !1, r = t;
|
|
27817
27817
|
for (let [i, n] of Object.entries(A)) {
|
|
27818
27818
|
let o = new RegExp(`(['"])${i}(/.*)?\\1`, "g");
|
|
@@ -27820,15 +27820,15 @@ function kO(t, A) {
|
|
|
27820
27820
|
}
|
|
27821
27821
|
return e ? r : null;
|
|
27822
27822
|
}
|
|
27823
|
-
s(
|
|
27823
|
+
s(bO, "transformImports");
|
|
27824
27824
|
var RAA = /* @__PURE__ */ s(async (t, A, e) => {
|
|
27825
27825
|
let r = [], { default: i } = await Promise.resolve().then(() => (cK(), CK)), n = i(10);
|
|
27826
27826
|
return await Promise.all(
|
|
27827
27827
|
t.map(
|
|
27828
27828
|
(o) => n(async () => {
|
|
27829
27829
|
try {
|
|
27830
|
-
let g = await FO(o, "utf-8"), C =
|
|
27831
|
-
!e && C && await
|
|
27830
|
+
let g = await FO(o, "utf-8"), C = bO(g, A);
|
|
27831
|
+
!e && C && await kO(o, C);
|
|
27832
27832
|
} catch (g) {
|
|
27833
27833
|
r.push({ file: o, error: g });
|
|
27834
27834
|
}
|
|
@@ -27845,23 +27845,23 @@ export {
|
|
|
27845
27845
|
dd as JsPackageManagerFactory,
|
|
27846
27846
|
fg as boost,
|
|
27847
27847
|
SW as builderPackages,
|
|
27848
|
-
|
|
27848
|
+
O1 as cache,
|
|
27849
27849
|
jW as checkAddonOrder,
|
|
27850
|
-
|
|
27851
|
-
|
|
27850
|
+
w3 as codeLog,
|
|
27851
|
+
d3 as commandLog,
|
|
27852
27852
|
lQ as commonGlobOptions,
|
|
27853
27853
|
jg as createFileSystemCache,
|
|
27854
27854
|
GW as createLogStream,
|
|
27855
27855
|
fQ as extractProperFrameworkName,
|
|
27856
|
-
|
|
27857
|
-
|
|
27856
|
+
k4 as extractProperRendererNameFromFramework,
|
|
27857
|
+
Jk as filterPresetsConfig,
|
|
27858
27858
|
Ua as findConfigFile,
|
|
27859
27859
|
cV as formatFileContent,
|
|
27860
27860
|
Yr as frameworkPackages,
|
|
27861
27861
|
EQ as frameworkToRenderer,
|
|
27862
27862
|
Cf as getAddonNames,
|
|
27863
27863
|
ER as getAutoRefs,
|
|
27864
|
-
|
|
27864
|
+
E4 as getBuilderOptions,
|
|
27865
27865
|
qQ as getChars,
|
|
27866
27866
|
UW as getCoercedStorybookVersion,
|
|
27867
27867
|
Ga as getConfigInfo,
|
|
@@ -27871,50 +27871,50 @@ export {
|
|
|
27871
27871
|
wr as getInterpretedFile,
|
|
27872
27872
|
Bl as getInterpretedFileWithExt,
|
|
27873
27873
|
qB as getPackageDetails,
|
|
27874
|
-
|
|
27875
|
-
$
|
|
27876
|
-
|
|
27874
|
+
qk as getPresets,
|
|
27875
|
+
$3 as getPreviewBodyTemplate,
|
|
27876
|
+
Z3 as getPreviewHeadTemplate,
|
|
27877
27877
|
pA as getProjectRoot,
|
|
27878
|
-
|
|
27879
|
-
|
|
27878
|
+
Y4 as getRefs,
|
|
27879
|
+
F4 as getRendererName,
|
|
27880
27880
|
SV as getStoryId,
|
|
27881
|
-
|
|
27881
|
+
b0 as getStoryTitle,
|
|
27882
27882
|
zB as getStorybookConfiguration,
|
|
27883
27883
|
KW as getStorybookInfo,
|
|
27884
27884
|
Y0 as getSyncedStorybookAddons,
|
|
27885
27885
|
OQ as globToRegexp,
|
|
27886
27886
|
dg as interopRequireDefault,
|
|
27887
|
-
|
|
27887
|
+
X4 as interpolate,
|
|
27888
27888
|
iW as invalidateProjectRootCache,
|
|
27889
27889
|
$B as isCorePackage,
|
|
27890
|
-
|
|
27890
|
+
q3 as isPreservingSymlinks,
|
|
27891
27891
|
JW as isSatelliteAddon,
|
|
27892
|
-
|
|
27892
|
+
_j as loadAllPresets,
|
|
27893
27893
|
BE as loadCustomPresets,
|
|
27894
|
-
|
|
27895
|
-
|
|
27896
|
-
|
|
27897
|
-
|
|
27898
|
-
|
|
27899
|
-
|
|
27894
|
+
o4 as loadEnvs,
|
|
27895
|
+
s3 as loadMainConfig,
|
|
27896
|
+
c3 as loadManagerOrAddonsFile,
|
|
27897
|
+
jk as loadPreset,
|
|
27898
|
+
u3 as loadPreviewOrConfigFile,
|
|
27899
|
+
D3 as logConfig,
|
|
27900
27900
|
JB as nodePathsToArray,
|
|
27901
|
-
|
|
27901
|
+
v3 as normalizeStories,
|
|
27902
27902
|
C0 as normalizeStoriesEntry,
|
|
27903
27903
|
OB as normalizeStoryPath,
|
|
27904
|
-
|
|
27904
|
+
p3 as paddedLog,
|
|
27905
27905
|
PW as parseList,
|
|
27906
27906
|
gf as posix,
|
|
27907
|
-
|
|
27908
|
-
|
|
27907
|
+
P3 as readTemplate,
|
|
27908
|
+
T3 as removeAddon,
|
|
27909
27909
|
_a as rendererPackages,
|
|
27910
|
-
|
|
27910
|
+
Ok as resolveAddonName,
|
|
27911
27911
|
VE as resolvePathInStorybookCache,
|
|
27912
27912
|
gV as satisfies,
|
|
27913
27913
|
KAA as scanAndTransformFiles,
|
|
27914
27914
|
hi as serverRequire,
|
|
27915
27915
|
li as serverResolve,
|
|
27916
|
-
|
|
27917
|
-
|
|
27916
|
+
g4 as stringifyEnvs,
|
|
27917
|
+
a4 as stringifyProcessEnvs,
|
|
27918
27918
|
mE as stripAbsNodeModulesPath,
|
|
27919
27919
|
_V as syncStorybookAddons,
|
|
27920
27920
|
JM as temporaryDirectory,
|