@batijs/cli 0.0.421 → 0.0.423
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/boilerplates/@batijs/auth0/files/$.env.js +5 -5
- package/dist/boilerplates/@batijs/auth0/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/express/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +10 -10
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +10 -10
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$package.json.js +11 -11
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +7 -7
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +9 -9
- package/dist/boilerplates/@batijs/shared/files/package.json +3 -3
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +6 -6
- package/dist/{chunk-SMRR5K2M.js → chunk-Q4C7XXZZ.js} +45033 -44954
- package/dist/index.js +384 -372
- package/dist/{prompt-KUNVMQLQ.js → prompt-AQUZNUSD.js} +230 -229
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -3,13 +3,13 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
Dit,
|
|
7
|
+
U5e,
|
|
8
|
+
_Ts,
|
|
9
|
+
aQr,
|
|
9
10
|
export_which,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./chunk-SMRR5K2M.js";
|
|
11
|
+
tps
|
|
12
|
+
} from "./chunk-Q4C7XXZZ.js";
|
|
13
13
|
import "./chunk-QY4H25CP.js";
|
|
14
14
|
import {
|
|
15
15
|
__commonJS,
|
|
@@ -440,21 +440,21 @@ var require_conversions = __commonJS({
|
|
|
440
440
|
}
|
|
441
441
|
convert.rgb.hsl = function(rgb) {
|
|
442
442
|
const r2 = rgb[0] / 255;
|
|
443
|
-
const
|
|
444
|
-
const
|
|
445
|
-
const min = Math.min(r2,
|
|
446
|
-
const max = Math.max(r2,
|
|
443
|
+
const g2 = rgb[1] / 255;
|
|
444
|
+
const b2 = rgb[2] / 255;
|
|
445
|
+
const min = Math.min(r2, g2, b2);
|
|
446
|
+
const max = Math.max(r2, g2, b2);
|
|
447
447
|
const delta = max - min;
|
|
448
448
|
let h;
|
|
449
449
|
let s2;
|
|
450
450
|
if (max === min) {
|
|
451
451
|
h = 0;
|
|
452
452
|
} else if (r2 === max) {
|
|
453
|
-
h = (
|
|
454
|
-
} else if (
|
|
455
|
-
h = 2 + (
|
|
456
|
-
} else if (
|
|
457
|
-
h = 4 + (r2 -
|
|
453
|
+
h = (g2 - b2) / delta;
|
|
454
|
+
} else if (g2 === max) {
|
|
455
|
+
h = 2 + (b2 - r2) / delta;
|
|
456
|
+
} else if (b2 === max) {
|
|
457
|
+
h = 4 + (r2 - g2) / delta;
|
|
458
458
|
}
|
|
459
459
|
h = Math.min(h * 60, 360);
|
|
460
460
|
if (h < 0) {
|
|
@@ -477,10 +477,10 @@ var require_conversions = __commonJS({
|
|
|
477
477
|
let h;
|
|
478
478
|
let s2;
|
|
479
479
|
const r2 = rgb[0] / 255;
|
|
480
|
-
const
|
|
481
|
-
const
|
|
482
|
-
const v = Math.max(r2,
|
|
483
|
-
const diff = v - Math.min(r2,
|
|
480
|
+
const g2 = rgb[1] / 255;
|
|
481
|
+
const b2 = rgb[2] / 255;
|
|
482
|
+
const v = Math.max(r2, g2, b2);
|
|
483
|
+
const diff = v - Math.min(r2, g2, b2);
|
|
484
484
|
const diffc = function(c2) {
|
|
485
485
|
return (v - c2) / 6 / diff + 1 / 2;
|
|
486
486
|
};
|
|
@@ -490,13 +490,13 @@ var require_conversions = __commonJS({
|
|
|
490
490
|
} else {
|
|
491
491
|
s2 = diff / v;
|
|
492
492
|
rdif = diffc(r2);
|
|
493
|
-
gdif = diffc(
|
|
494
|
-
bdif = diffc(
|
|
493
|
+
gdif = diffc(g2);
|
|
494
|
+
bdif = diffc(b2);
|
|
495
495
|
if (r2 === v) {
|
|
496
496
|
h = bdif - gdif;
|
|
497
|
-
} else if (
|
|
497
|
+
} else if (g2 === v) {
|
|
498
498
|
h = 1 / 3 + rdif - bdif;
|
|
499
|
-
} else if (
|
|
499
|
+
} else if (b2 === v) {
|
|
500
500
|
h = 2 / 3 + gdif - rdif;
|
|
501
501
|
}
|
|
502
502
|
if (h < 0) {
|
|
@@ -513,21 +513,21 @@ var require_conversions = __commonJS({
|
|
|
513
513
|
};
|
|
514
514
|
convert.rgb.hwb = function(rgb) {
|
|
515
515
|
const r2 = rgb[0];
|
|
516
|
-
const
|
|
517
|
-
let
|
|
516
|
+
const g2 = rgb[1];
|
|
517
|
+
let b2 = rgb[2];
|
|
518
518
|
const h = convert.rgb.hsl(rgb)[0];
|
|
519
|
-
const w = 1 / 255 * Math.min(r2, Math.min(
|
|
520
|
-
|
|
521
|
-
return [h, w * 100,
|
|
519
|
+
const w = 1 / 255 * Math.min(r2, Math.min(g2, b2));
|
|
520
|
+
b2 = 1 - 1 / 255 * Math.max(r2, Math.max(g2, b2));
|
|
521
|
+
return [h, w * 100, b2 * 100];
|
|
522
522
|
};
|
|
523
523
|
convert.rgb.cmyk = function(rgb) {
|
|
524
524
|
const r2 = rgb[0] / 255;
|
|
525
|
-
const
|
|
526
|
-
const
|
|
527
|
-
const k = Math.min(1 - r2, 1 -
|
|
525
|
+
const g2 = rgb[1] / 255;
|
|
526
|
+
const b2 = rgb[2] / 255;
|
|
527
|
+
const k = Math.min(1 - r2, 1 - g2, 1 - b2);
|
|
528
528
|
const c2 = (1 - r2 - k) / (1 - k) || 0;
|
|
529
|
-
const m = (1 -
|
|
530
|
-
const y2 = (1 -
|
|
529
|
+
const m = (1 - g2 - k) / (1 - k) || 0;
|
|
530
|
+
const y2 = (1 - b2 - k) / (1 - k) || 0;
|
|
531
531
|
return [c2 * 100, m * 100, y2 * 100, k * 100];
|
|
532
532
|
};
|
|
533
533
|
function comparativeDistance(x, y2) {
|
|
@@ -555,14 +555,14 @@ var require_conversions = __commonJS({
|
|
|
555
555
|
};
|
|
556
556
|
convert.rgb.xyz = function(rgb) {
|
|
557
557
|
let r2 = rgb[0] / 255;
|
|
558
|
-
let
|
|
559
|
-
let
|
|
558
|
+
let g2 = rgb[1] / 255;
|
|
559
|
+
let b2 = rgb[2] / 255;
|
|
560
560
|
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
const x = r2 * 0.4124 +
|
|
564
|
-
const y2 = r2 * 0.2126 +
|
|
565
|
-
const z = r2 * 0.0193 +
|
|
561
|
+
g2 = g2 > 0.04045 ? ((g2 + 0.055) / 1.055) ** 2.4 : g2 / 12.92;
|
|
562
|
+
b2 = b2 > 0.04045 ? ((b2 + 0.055) / 1.055) ** 2.4 : b2 / 12.92;
|
|
563
|
+
const x = r2 * 0.4124 + g2 * 0.3576 + b2 * 0.1805;
|
|
564
|
+
const y2 = r2 * 0.2126 + g2 * 0.7152 + b2 * 0.0722;
|
|
565
|
+
const z = r2 * 0.0193 + g2 * 0.1192 + b2 * 0.9505;
|
|
566
566
|
return [x * 100, y2 * 100, z * 100];
|
|
567
567
|
};
|
|
568
568
|
convert.rgb.lab = function(rgb) {
|
|
@@ -578,8 +578,8 @@ var require_conversions = __commonJS({
|
|
|
578
578
|
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
579
579
|
const l2 = 116 * y2 - 16;
|
|
580
580
|
const a2 = 500 * (x - y2);
|
|
581
|
-
const
|
|
582
|
-
return [l2, a2,
|
|
581
|
+
const b2 = 200 * (y2 - z);
|
|
582
|
+
return [l2, a2, b2];
|
|
583
583
|
};
|
|
584
584
|
convert.hsl.rgb = function(hsl) {
|
|
585
585
|
const h = hsl[0] / 360;
|
|
@@ -638,24 +638,24 @@ var require_conversions = __commonJS({
|
|
|
638
638
|
const s2 = hsv[1] / 100;
|
|
639
639
|
let v = hsv[2] / 100;
|
|
640
640
|
const hi = Math.floor(h) % 6;
|
|
641
|
-
const
|
|
642
|
-
const
|
|
643
|
-
const q = 255 * v * (1 - s2 *
|
|
644
|
-
const t2 = 255 * v * (1 - s2 * (1 -
|
|
641
|
+
const f2 = h - Math.floor(h);
|
|
642
|
+
const p = 255 * v * (1 - s2);
|
|
643
|
+
const q = 255 * v * (1 - s2 * f2);
|
|
644
|
+
const t2 = 255 * v * (1 - s2 * (1 - f2));
|
|
645
645
|
v *= 255;
|
|
646
646
|
switch (hi) {
|
|
647
647
|
case 0:
|
|
648
|
-
return [v, t2,
|
|
648
|
+
return [v, t2, p];
|
|
649
649
|
case 1:
|
|
650
|
-
return [q, v,
|
|
650
|
+
return [q, v, p];
|
|
651
651
|
case 2:
|
|
652
|
-
return [
|
|
652
|
+
return [p, v, t2];
|
|
653
653
|
case 3:
|
|
654
|
-
return [
|
|
654
|
+
return [p, q, v];
|
|
655
655
|
case 4:
|
|
656
|
-
return [t2,
|
|
656
|
+
return [t2, p, v];
|
|
657
657
|
case 5:
|
|
658
|
-
return [v,
|
|
658
|
+
return [v, p, q];
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
661
|
convert.hsv.hsl = function(hsv) {
|
|
@@ -678,56 +678,56 @@ var require_conversions = __commonJS({
|
|
|
678
678
|
let wh = hwb[1] / 100;
|
|
679
679
|
let bl = hwb[2] / 100;
|
|
680
680
|
const ratio = wh + bl;
|
|
681
|
-
let
|
|
681
|
+
let f2;
|
|
682
682
|
if (ratio > 1) {
|
|
683
683
|
wh /= ratio;
|
|
684
684
|
bl /= ratio;
|
|
685
685
|
}
|
|
686
686
|
const i2 = Math.floor(6 * h);
|
|
687
687
|
const v = 1 - bl;
|
|
688
|
-
|
|
688
|
+
f2 = 6 * h - i2;
|
|
689
689
|
if ((i2 & 1) !== 0) {
|
|
690
|
-
|
|
690
|
+
f2 = 1 - f2;
|
|
691
691
|
}
|
|
692
|
-
const n2 = wh +
|
|
692
|
+
const n2 = wh + f2 * (v - wh);
|
|
693
693
|
let r2;
|
|
694
|
-
let
|
|
695
|
-
let
|
|
694
|
+
let g2;
|
|
695
|
+
let b2;
|
|
696
696
|
switch (i2) {
|
|
697
697
|
default:
|
|
698
698
|
case 6:
|
|
699
699
|
case 0:
|
|
700
700
|
r2 = v;
|
|
701
|
-
|
|
702
|
-
|
|
701
|
+
g2 = n2;
|
|
702
|
+
b2 = wh;
|
|
703
703
|
break;
|
|
704
704
|
case 1:
|
|
705
705
|
r2 = n2;
|
|
706
|
-
|
|
707
|
-
|
|
706
|
+
g2 = v;
|
|
707
|
+
b2 = wh;
|
|
708
708
|
break;
|
|
709
709
|
case 2:
|
|
710
710
|
r2 = wh;
|
|
711
|
-
|
|
712
|
-
|
|
711
|
+
g2 = v;
|
|
712
|
+
b2 = n2;
|
|
713
713
|
break;
|
|
714
714
|
case 3:
|
|
715
715
|
r2 = wh;
|
|
716
|
-
|
|
717
|
-
|
|
716
|
+
g2 = n2;
|
|
717
|
+
b2 = v;
|
|
718
718
|
break;
|
|
719
719
|
case 4:
|
|
720
720
|
r2 = n2;
|
|
721
|
-
|
|
722
|
-
|
|
721
|
+
g2 = wh;
|
|
722
|
+
b2 = v;
|
|
723
723
|
break;
|
|
724
724
|
case 5:
|
|
725
725
|
r2 = v;
|
|
726
|
-
|
|
727
|
-
|
|
726
|
+
g2 = wh;
|
|
727
|
+
b2 = n2;
|
|
728
728
|
break;
|
|
729
729
|
}
|
|
730
|
-
return [r2 * 255,
|
|
730
|
+
return [r2 * 255, g2 * 255, b2 * 255];
|
|
731
731
|
};
|
|
732
732
|
convert.cmyk.rgb = function(cmyk) {
|
|
733
733
|
const c2 = cmyk[0] / 100;
|
|
@@ -735,27 +735,27 @@ var require_conversions = __commonJS({
|
|
|
735
735
|
const y2 = cmyk[2] / 100;
|
|
736
736
|
const k = cmyk[3] / 100;
|
|
737
737
|
const r2 = 1 - Math.min(1, c2 * (1 - k) + k);
|
|
738
|
-
const
|
|
739
|
-
const
|
|
740
|
-
return [r2 * 255,
|
|
738
|
+
const g2 = 1 - Math.min(1, m * (1 - k) + k);
|
|
739
|
+
const b2 = 1 - Math.min(1, y2 * (1 - k) + k);
|
|
740
|
+
return [r2 * 255, g2 * 255, b2 * 255];
|
|
741
741
|
};
|
|
742
742
|
convert.xyz.rgb = function(xyz) {
|
|
743
743
|
const x = xyz[0] / 100;
|
|
744
744
|
const y2 = xyz[1] / 100;
|
|
745
745
|
const z = xyz[2] / 100;
|
|
746
746
|
let r2;
|
|
747
|
-
let
|
|
748
|
-
let
|
|
747
|
+
let g2;
|
|
748
|
+
let b2;
|
|
749
749
|
r2 = x * 3.2406 + y2 * -1.5372 + z * -0.4986;
|
|
750
|
-
|
|
751
|
-
|
|
750
|
+
g2 = x * -0.9689 + y2 * 1.8758 + z * 0.0415;
|
|
751
|
+
b2 = x * 0.0557 + y2 * -0.204 + z * 1.057;
|
|
752
752
|
r2 = r2 > 31308e-7 ? 1.055 * r2 ** (1 / 2.4) - 0.055 : r2 * 12.92;
|
|
753
|
-
|
|
754
|
-
|
|
753
|
+
g2 = g2 > 31308e-7 ? 1.055 * g2 ** (1 / 2.4) - 0.055 : g2 * 12.92;
|
|
754
|
+
b2 = b2 > 31308e-7 ? 1.055 * b2 ** (1 / 2.4) - 0.055 : b2 * 12.92;
|
|
755
755
|
r2 = Math.min(Math.max(0, r2), 1);
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
return [r2 * 255,
|
|
756
|
+
g2 = Math.min(Math.max(0, g2), 1);
|
|
757
|
+
b2 = Math.min(Math.max(0, b2), 1);
|
|
758
|
+
return [r2 * 255, g2 * 255, b2 * 255];
|
|
759
759
|
};
|
|
760
760
|
convert.xyz.lab = function(xyz) {
|
|
761
761
|
let x = xyz[0];
|
|
@@ -769,19 +769,19 @@ var require_conversions = __commonJS({
|
|
|
769
769
|
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
770
770
|
const l2 = 116 * y2 - 16;
|
|
771
771
|
const a2 = 500 * (x - y2);
|
|
772
|
-
const
|
|
773
|
-
return [l2, a2,
|
|
772
|
+
const b2 = 200 * (y2 - z);
|
|
773
|
+
return [l2, a2, b2];
|
|
774
774
|
};
|
|
775
775
|
convert.lab.xyz = function(lab) {
|
|
776
776
|
const l2 = lab[0];
|
|
777
777
|
const a2 = lab[1];
|
|
778
|
-
const
|
|
778
|
+
const b2 = lab[2];
|
|
779
779
|
let x;
|
|
780
780
|
let y2;
|
|
781
781
|
let z;
|
|
782
782
|
y2 = (l2 + 16) / 116;
|
|
783
783
|
x = a2 / 500 + y2;
|
|
784
|
-
z = y2 -
|
|
784
|
+
z = y2 - b2 / 200;
|
|
785
785
|
const y22 = y2 ** 3;
|
|
786
786
|
const x2 = x ** 3;
|
|
787
787
|
const z2 = z ** 3;
|
|
@@ -796,14 +796,14 @@ var require_conversions = __commonJS({
|
|
|
796
796
|
convert.lab.lch = function(lab) {
|
|
797
797
|
const l2 = lab[0];
|
|
798
798
|
const a2 = lab[1];
|
|
799
|
-
const
|
|
799
|
+
const b2 = lab[2];
|
|
800
800
|
let h;
|
|
801
|
-
const hr = Math.atan2(
|
|
801
|
+
const hr = Math.atan2(b2, a2);
|
|
802
802
|
h = hr * 360 / 2 / Math.PI;
|
|
803
803
|
if (h < 0) {
|
|
804
804
|
h += 360;
|
|
805
805
|
}
|
|
806
|
-
const c2 = Math.sqrt(a2 * a2 +
|
|
806
|
+
const c2 = Math.sqrt(a2 * a2 + b2 * b2);
|
|
807
807
|
return [l2, c2, h];
|
|
808
808
|
};
|
|
809
809
|
convert.lch.lab = function(lch) {
|
|
@@ -812,17 +812,17 @@ var require_conversions = __commonJS({
|
|
|
812
812
|
const h = lch[2];
|
|
813
813
|
const hr = h / 360 * 2 * Math.PI;
|
|
814
814
|
const a2 = c2 * Math.cos(hr);
|
|
815
|
-
const
|
|
816
|
-
return [l2, a2,
|
|
815
|
+
const b2 = c2 * Math.sin(hr);
|
|
816
|
+
return [l2, a2, b2];
|
|
817
817
|
};
|
|
818
818
|
convert.rgb.ansi16 = function(args, saturation = null) {
|
|
819
|
-
const [r2,
|
|
819
|
+
const [r2, g2, b2] = args;
|
|
820
820
|
let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
|
|
821
821
|
value = Math.round(value / 50);
|
|
822
822
|
if (value === 0) {
|
|
823
823
|
return 30;
|
|
824
824
|
}
|
|
825
|
-
let ansi = 30 + (Math.round(
|
|
825
|
+
let ansi = 30 + (Math.round(b2 / 255) << 2 | Math.round(g2 / 255) << 1 | Math.round(r2 / 255));
|
|
826
826
|
if (value === 2) {
|
|
827
827
|
ansi += 60;
|
|
828
828
|
}
|
|
@@ -833,9 +833,9 @@ var require_conversions = __commonJS({
|
|
|
833
833
|
};
|
|
834
834
|
convert.rgb.ansi256 = function(args) {
|
|
835
835
|
const r2 = args[0];
|
|
836
|
-
const
|
|
837
|
-
const
|
|
838
|
-
if (r2 ===
|
|
836
|
+
const g2 = args[1];
|
|
837
|
+
const b2 = args[2];
|
|
838
|
+
if (r2 === g2 && g2 === b2) {
|
|
839
839
|
if (r2 < 8) {
|
|
840
840
|
return 16;
|
|
841
841
|
}
|
|
@@ -844,7 +844,7 @@ var require_conversions = __commonJS({
|
|
|
844
844
|
}
|
|
845
845
|
return Math.round((r2 - 8) / 247 * 24) + 232;
|
|
846
846
|
}
|
|
847
|
-
const ansi = 16 + 36 * Math.round(r2 / 255 * 5) + 6 * Math.round(
|
|
847
|
+
const ansi = 16 + 36 * Math.round(r2 / 255 * 5) + 6 * Math.round(g2 / 255 * 5) + Math.round(b2 / 255 * 5);
|
|
848
848
|
return ansi;
|
|
849
849
|
};
|
|
850
850
|
convert.ansi16.rgb = function(args) {
|
|
@@ -858,9 +858,9 @@ var require_conversions = __commonJS({
|
|
|
858
858
|
}
|
|
859
859
|
const mult = (~~(args > 50) + 1) * 0.5;
|
|
860
860
|
const r2 = (color & 1) * mult * 255;
|
|
861
|
-
const
|
|
862
|
-
const
|
|
863
|
-
return [r2,
|
|
861
|
+
const g2 = (color >> 1 & 1) * mult * 255;
|
|
862
|
+
const b2 = (color >> 2 & 1) * mult * 255;
|
|
863
|
+
return [r2, g2, b2];
|
|
864
864
|
};
|
|
865
865
|
convert.ansi256.rgb = function(args) {
|
|
866
866
|
if (args >= 232) {
|
|
@@ -870,9 +870,9 @@ var require_conversions = __commonJS({
|
|
|
870
870
|
args -= 16;
|
|
871
871
|
let rem;
|
|
872
872
|
const r2 = Math.floor(args / 36) / 5 * 255;
|
|
873
|
-
const
|
|
874
|
-
const
|
|
875
|
-
return [r2,
|
|
873
|
+
const g2 = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
|
874
|
+
const b2 = rem % 6 / 5 * 255;
|
|
875
|
+
return [r2, g2, b2];
|
|
876
876
|
};
|
|
877
877
|
convert.rgb.hex = function(args) {
|
|
878
878
|
const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
|
|
@@ -892,16 +892,16 @@ var require_conversions = __commonJS({
|
|
|
892
892
|
}
|
|
893
893
|
const integer = parseInt(colorString, 16);
|
|
894
894
|
const r2 = integer >> 16 & 255;
|
|
895
|
-
const
|
|
896
|
-
const
|
|
897
|
-
return [r2,
|
|
895
|
+
const g2 = integer >> 8 & 255;
|
|
896
|
+
const b2 = integer & 255;
|
|
897
|
+
return [r2, g2, b2];
|
|
898
898
|
};
|
|
899
899
|
convert.rgb.hcg = function(rgb) {
|
|
900
900
|
const r2 = rgb[0] / 255;
|
|
901
|
-
const
|
|
902
|
-
const
|
|
903
|
-
const max = Math.max(Math.max(r2,
|
|
904
|
-
const min = Math.min(Math.min(r2,
|
|
901
|
+
const g2 = rgb[1] / 255;
|
|
902
|
+
const b2 = rgb[2] / 255;
|
|
903
|
+
const max = Math.max(Math.max(r2, g2), b2);
|
|
904
|
+
const min = Math.min(Math.min(r2, g2), b2);
|
|
905
905
|
const chroma = max - min;
|
|
906
906
|
let grayscale;
|
|
907
907
|
let hue;
|
|
@@ -913,11 +913,11 @@ var require_conversions = __commonJS({
|
|
|
913
913
|
if (chroma <= 0) {
|
|
914
914
|
hue = 0;
|
|
915
915
|
} else if (max === r2) {
|
|
916
|
-
hue = (
|
|
917
|
-
} else if (max ===
|
|
918
|
-
hue = 2 + (
|
|
916
|
+
hue = (g2 - b2) / chroma % 6;
|
|
917
|
+
} else if (max === g2) {
|
|
918
|
+
hue = 2 + (b2 - r2) / chroma;
|
|
919
919
|
} else {
|
|
920
|
-
hue = 4 + (r2 -
|
|
920
|
+
hue = 4 + (r2 - g2) / chroma;
|
|
921
921
|
}
|
|
922
922
|
hue /= 6;
|
|
923
923
|
hue %= 1;
|
|
@@ -927,28 +927,28 @@ var require_conversions = __commonJS({
|
|
|
927
927
|
const s2 = hsl[1] / 100;
|
|
928
928
|
const l2 = hsl[2] / 100;
|
|
929
929
|
const c2 = l2 < 0.5 ? 2 * s2 * l2 : 2 * s2 * (1 - l2);
|
|
930
|
-
let
|
|
930
|
+
let f2 = 0;
|
|
931
931
|
if (c2 < 1) {
|
|
932
|
-
|
|
932
|
+
f2 = (l2 - 0.5 * c2) / (1 - c2);
|
|
933
933
|
}
|
|
934
|
-
return [hsl[0], c2 * 100,
|
|
934
|
+
return [hsl[0], c2 * 100, f2 * 100];
|
|
935
935
|
};
|
|
936
936
|
convert.hsv.hcg = function(hsv) {
|
|
937
937
|
const s2 = hsv[1] / 100;
|
|
938
938
|
const v = hsv[2] / 100;
|
|
939
939
|
const c2 = s2 * v;
|
|
940
|
-
let
|
|
940
|
+
let f2 = 0;
|
|
941
941
|
if (c2 < 1) {
|
|
942
|
-
|
|
942
|
+
f2 = (v - c2) / (1 - c2);
|
|
943
943
|
}
|
|
944
|
-
return [hsv[0], c2 * 100,
|
|
944
|
+
return [hsv[0], c2 * 100, f2 * 100];
|
|
945
945
|
};
|
|
946
946
|
convert.hcg.rgb = function(hcg) {
|
|
947
947
|
const h = hcg[0] / 360;
|
|
948
948
|
const c2 = hcg[1] / 100;
|
|
949
|
-
const
|
|
949
|
+
const g2 = hcg[2] / 100;
|
|
950
950
|
if (c2 === 0) {
|
|
951
|
-
return [
|
|
951
|
+
return [g2 * 255, g2 * 255, g2 * 255];
|
|
952
952
|
}
|
|
953
953
|
const pure = [0, 0, 0];
|
|
954
954
|
const hi = h % 1 * 6;
|
|
@@ -986,7 +986,7 @@ var require_conversions = __commonJS({
|
|
|
986
986
|
pure[1] = 0;
|
|
987
987
|
pure[2] = w;
|
|
988
988
|
}
|
|
989
|
-
mg = (1 - c2) *
|
|
989
|
+
mg = (1 - c2) * g2;
|
|
990
990
|
return [
|
|
991
991
|
(c2 * pure[0] + mg) * 255,
|
|
992
992
|
(c2 * pure[1] + mg) * 255,
|
|
@@ -995,18 +995,18 @@ var require_conversions = __commonJS({
|
|
|
995
995
|
};
|
|
996
996
|
convert.hcg.hsv = function(hcg) {
|
|
997
997
|
const c2 = hcg[1] / 100;
|
|
998
|
-
const
|
|
999
|
-
const v = c2 +
|
|
1000
|
-
let
|
|
998
|
+
const g2 = hcg[2] / 100;
|
|
999
|
+
const v = c2 + g2 * (1 - c2);
|
|
1000
|
+
let f2 = 0;
|
|
1001
1001
|
if (v > 0) {
|
|
1002
|
-
|
|
1002
|
+
f2 = c2 / v;
|
|
1003
1003
|
}
|
|
1004
|
-
return [hcg[0],
|
|
1004
|
+
return [hcg[0], f2 * 100, v * 100];
|
|
1005
1005
|
};
|
|
1006
1006
|
convert.hcg.hsl = function(hcg) {
|
|
1007
1007
|
const c2 = hcg[1] / 100;
|
|
1008
|
-
const
|
|
1009
|
-
const l2 =
|
|
1008
|
+
const g2 = hcg[2] / 100;
|
|
1009
|
+
const l2 = g2 * (1 - c2) + 0.5 * c2;
|
|
1010
1010
|
let s2 = 0;
|
|
1011
1011
|
if (l2 > 0 && l2 < 0.5) {
|
|
1012
1012
|
s2 = c2 / (2 * l2);
|
|
@@ -1017,20 +1017,20 @@ var require_conversions = __commonJS({
|
|
|
1017
1017
|
};
|
|
1018
1018
|
convert.hcg.hwb = function(hcg) {
|
|
1019
1019
|
const c2 = hcg[1] / 100;
|
|
1020
|
-
const
|
|
1021
|
-
const v = c2 +
|
|
1020
|
+
const g2 = hcg[2] / 100;
|
|
1021
|
+
const v = c2 + g2 * (1 - c2);
|
|
1022
1022
|
return [hcg[0], (v - c2) * 100, (1 - v) * 100];
|
|
1023
1023
|
};
|
|
1024
1024
|
convert.hwb.hcg = function(hwb) {
|
|
1025
1025
|
const w = hwb[1] / 100;
|
|
1026
|
-
const
|
|
1027
|
-
const v = 1 -
|
|
1026
|
+
const b2 = hwb[2] / 100;
|
|
1027
|
+
const v = 1 - b2;
|
|
1028
1028
|
const c2 = v - w;
|
|
1029
|
-
let
|
|
1029
|
+
let g2 = 0;
|
|
1030
1030
|
if (c2 < 1) {
|
|
1031
|
-
|
|
1031
|
+
g2 = (v - c2) / (1 - c2);
|
|
1032
1032
|
}
|
|
1033
|
-
return [hwb[0], c2 * 100,
|
|
1033
|
+
return [hwb[0], c2 * 100, g2 * 100];
|
|
1034
1034
|
};
|
|
1035
1035
|
convert.apple.rgb = function(apple) {
|
|
1036
1036
|
return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
|
|
@@ -1217,7 +1217,7 @@ var require_ansi_styles = __commonJS({
|
|
|
1217
1217
|
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
1218
1218
|
};
|
|
1219
1219
|
var ansi2ansi = (n2) => n2;
|
|
1220
|
-
var rgb2rgb = (r2,
|
|
1220
|
+
var rgb2rgb = (r2, g2, b2) => [r2, g2, b2];
|
|
1221
1221
|
var setLazyProperty = (object, property, get) => {
|
|
1222
1222
|
Object.defineProperty(object, property, {
|
|
1223
1223
|
get: () => {
|
|
@@ -1752,14 +1752,14 @@ var require_utf8 = __commonJS({
|
|
|
1752
1752
|
hasBOM = true;
|
|
1753
1753
|
}
|
|
1754
1754
|
for (var i2 = 0; i2 < det.fRawLength; i2++) {
|
|
1755
|
-
var
|
|
1756
|
-
if ((
|
|
1755
|
+
var b2 = input[i2];
|
|
1756
|
+
if ((b2 & 128) == 0)
|
|
1757
1757
|
continue;
|
|
1758
|
-
if ((
|
|
1758
|
+
if ((b2 & 224) == 192) {
|
|
1759
1759
|
trailBytes = 1;
|
|
1760
|
-
} else if ((
|
|
1760
|
+
} else if ((b2 & 240) == 224) {
|
|
1761
1761
|
trailBytes = 2;
|
|
1762
|
-
} else if ((
|
|
1762
|
+
} else if ((b2 & 248) == 240) {
|
|
1763
1763
|
trailBytes = 3;
|
|
1764
1764
|
} else {
|
|
1765
1765
|
numInvalid++;
|
|
@@ -2642,8 +2642,8 @@ var require_sbcs = __commonJS({
|
|
|
2642
2642
|
this.hitCount += 1;
|
|
2643
2643
|
}
|
|
2644
2644
|
};
|
|
2645
|
-
this.addByte = function(
|
|
2646
|
-
this.ngram = (this.ngram << 8) + (
|
|
2645
|
+
this.addByte = function(b2) {
|
|
2646
|
+
this.ngram = (this.ngram << 8) + (b2 & 255) & N_GRAM_MASK;
|
|
2647
2647
|
this.lookup(this.ngram);
|
|
2648
2648
|
};
|
|
2649
2649
|
this.nextByte = function(det) {
|
|
@@ -2652,10 +2652,10 @@ var require_sbcs = __commonJS({
|
|
|
2652
2652
|
return det.fInputBytes[this.byteIndex++] & 255;
|
|
2653
2653
|
};
|
|
2654
2654
|
this.parse = function(det, spaceCh) {
|
|
2655
|
-
var
|
|
2655
|
+
var b2, ignoreSpace = false;
|
|
2656
2656
|
this.spaceChar = spaceCh;
|
|
2657
|
-
while ((
|
|
2658
|
-
var mb = this.byteMap[
|
|
2657
|
+
while ((b2 = this.nextByte(det)) >= 0) {
|
|
2658
|
+
var mb = this.byteMap[b2];
|
|
2659
2659
|
if (mb != 0) {
|
|
2660
2660
|
if (!(mb == this.spaceChar && ignoreSpace)) {
|
|
2661
2661
|
this.addByte(mb);
|
|
@@ -7113,8 +7113,8 @@ var require_chardet = __commonJS({
|
|
|
7113
7113
|
return rec.match(context);
|
|
7114
7114
|
}).filter(function(match) {
|
|
7115
7115
|
return !!match;
|
|
7116
|
-
}).sort(function(a2,
|
|
7117
|
-
return
|
|
7116
|
+
}).sort(function(a2, b2) {
|
|
7117
|
+
return b2.confidence - a2.confidence;
|
|
7118
7118
|
});
|
|
7119
7119
|
if (opts && opts.returnAllMatches === true) {
|
|
7120
7120
|
return matches;
|
|
@@ -10907,20 +10907,20 @@ var require_CreateFileError = __commonJS({
|
|
|
10907
10907
|
"../../node_modules/.pnpm/external-editor@3.1.0/node_modules/external-editor/main/errors/CreateFileError.js"(exports) {
|
|
10908
10908
|
"use strict";
|
|
10909
10909
|
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
10910
|
-
var extendStatics2 = function(d,
|
|
10911
|
-
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2,
|
|
10912
|
-
d2.__proto__ =
|
|
10913
|
-
} || function(d2,
|
|
10914
|
-
for (var
|
|
10910
|
+
var extendStatics2 = function(d, b2) {
|
|
10911
|
+
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
|
10912
|
+
d2.__proto__ = b3;
|
|
10913
|
+
} || function(d2, b3) {
|
|
10914
|
+
for (var p in b3) if (b3.hasOwnProperty(p)) d2[p] = b3[p];
|
|
10915
10915
|
};
|
|
10916
|
-
return extendStatics2(d,
|
|
10916
|
+
return extendStatics2(d, b2);
|
|
10917
10917
|
};
|
|
10918
|
-
return function(d,
|
|
10919
|
-
extendStatics2(d,
|
|
10918
|
+
return function(d, b2) {
|
|
10919
|
+
extendStatics2(d, b2);
|
|
10920
10920
|
function __() {
|
|
10921
10921
|
this.constructor = d;
|
|
10922
10922
|
}
|
|
10923
|
-
d.prototype =
|
|
10923
|
+
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
10924
10924
|
};
|
|
10925
10925
|
}();
|
|
10926
10926
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10952,20 +10952,20 @@ var require_LaunchEditorError = __commonJS({
|
|
|
10952
10952
|
"../../node_modules/.pnpm/external-editor@3.1.0/node_modules/external-editor/main/errors/LaunchEditorError.js"(exports) {
|
|
10953
10953
|
"use strict";
|
|
10954
10954
|
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
10955
|
-
var extendStatics2 = function(d,
|
|
10956
|
-
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2,
|
|
10957
|
-
d2.__proto__ =
|
|
10958
|
-
} || function(d2,
|
|
10959
|
-
for (var
|
|
10955
|
+
var extendStatics2 = function(d, b2) {
|
|
10956
|
+
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
|
10957
|
+
d2.__proto__ = b3;
|
|
10958
|
+
} || function(d2, b3) {
|
|
10959
|
+
for (var p in b3) if (b3.hasOwnProperty(p)) d2[p] = b3[p];
|
|
10960
10960
|
};
|
|
10961
|
-
return extendStatics2(d,
|
|
10961
|
+
return extendStatics2(d, b2);
|
|
10962
10962
|
};
|
|
10963
|
-
return function(d,
|
|
10964
|
-
extendStatics2(d,
|
|
10963
|
+
return function(d, b2) {
|
|
10964
|
+
extendStatics2(d, b2);
|
|
10965
10965
|
function __() {
|
|
10966
10966
|
this.constructor = d;
|
|
10967
10967
|
}
|
|
10968
|
-
d.prototype =
|
|
10968
|
+
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
10969
10969
|
};
|
|
10970
10970
|
}();
|
|
10971
10971
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10997,20 +10997,20 @@ var require_ReadFileError = __commonJS({
|
|
|
10997
10997
|
"../../node_modules/.pnpm/external-editor@3.1.0/node_modules/external-editor/main/errors/ReadFileError.js"(exports) {
|
|
10998
10998
|
"use strict";
|
|
10999
10999
|
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
11000
|
-
var extendStatics2 = function(d,
|
|
11001
|
-
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2,
|
|
11002
|
-
d2.__proto__ =
|
|
11003
|
-
} || function(d2,
|
|
11004
|
-
for (var
|
|
11000
|
+
var extendStatics2 = function(d, b2) {
|
|
11001
|
+
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
|
11002
|
+
d2.__proto__ = b3;
|
|
11003
|
+
} || function(d2, b3) {
|
|
11004
|
+
for (var p in b3) if (b3.hasOwnProperty(p)) d2[p] = b3[p];
|
|
11005
11005
|
};
|
|
11006
|
-
return extendStatics2(d,
|
|
11006
|
+
return extendStatics2(d, b2);
|
|
11007
11007
|
};
|
|
11008
|
-
return function(d,
|
|
11009
|
-
extendStatics2(d,
|
|
11008
|
+
return function(d, b2) {
|
|
11009
|
+
extendStatics2(d, b2);
|
|
11010
11010
|
function __() {
|
|
11011
11011
|
this.constructor = d;
|
|
11012
11012
|
}
|
|
11013
|
-
d.prototype =
|
|
11013
|
+
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
11014
11014
|
};
|
|
11015
11015
|
}();
|
|
11016
11016
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -11042,20 +11042,20 @@ var require_RemoveFileError = __commonJS({
|
|
|
11042
11042
|
"../../node_modules/.pnpm/external-editor@3.1.0/node_modules/external-editor/main/errors/RemoveFileError.js"(exports) {
|
|
11043
11043
|
"use strict";
|
|
11044
11044
|
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
11045
|
-
var extendStatics2 = function(d,
|
|
11046
|
-
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2,
|
|
11047
|
-
d2.__proto__ =
|
|
11048
|
-
} || function(d2,
|
|
11049
|
-
for (var
|
|
11045
|
+
var extendStatics2 = function(d, b2) {
|
|
11046
|
+
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
|
11047
|
+
d2.__proto__ = b3;
|
|
11048
|
+
} || function(d2, b3) {
|
|
11049
|
+
for (var p in b3) if (b3.hasOwnProperty(p)) d2[p] = b3[p];
|
|
11050
11050
|
};
|
|
11051
|
-
return extendStatics2(d,
|
|
11051
|
+
return extendStatics2(d, b2);
|
|
11052
11052
|
};
|
|
11053
|
-
return function(d,
|
|
11054
|
-
extendStatics2(d,
|
|
11053
|
+
return function(d, b2) {
|
|
11054
|
+
extendStatics2(d, b2);
|
|
11055
11055
|
function __() {
|
|
11056
11056
|
this.constructor = d;
|
|
11057
11057
|
}
|
|
11058
|
-
d.prototype =
|
|
11058
|
+
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
11059
11059
|
};
|
|
11060
11060
|
}();
|
|
11061
11061
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -11278,7 +11278,7 @@ import { access, constants, lstat, readdir, readFile as readFile2 } from "node:f
|
|
|
11278
11278
|
import { dirname, join, parse as parse2 } from "node:path";
|
|
11279
11279
|
import { fileURLToPath } from "node:url";
|
|
11280
11280
|
|
|
11281
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11281
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
11282
11282
|
var isUpKey = (key) => (
|
|
11283
11283
|
// The up key
|
|
11284
11284
|
key.name === "up" || // Vim keybinding
|
|
@@ -11296,7 +11296,7 @@ var isBackspaceKey = (key) => key.name === "backspace";
|
|
|
11296
11296
|
var isNumberKey = (key) => "1234567890".includes(key.name);
|
|
11297
11297
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
|
11298
11298
|
|
|
11299
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11299
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
11300
11300
|
var AbortPromptError = class extends Error {
|
|
11301
11301
|
name = "AbortPromptError";
|
|
11302
11302
|
message = "Prompt was aborted";
|
|
@@ -11319,10 +11319,10 @@ var ValidationError = class extends Error {
|
|
|
11319
11319
|
name = "ValidationError";
|
|
11320
11320
|
};
|
|
11321
11321
|
|
|
11322
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11322
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
11323
11323
|
import { AsyncResource as AsyncResource2 } from "node:async_hooks";
|
|
11324
11324
|
|
|
11325
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11325
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
11326
11326
|
import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
|
|
11327
11327
|
var hookStorage = new AsyncLocalStorage();
|
|
11328
11328
|
function createStore(rl) {
|
|
@@ -11428,7 +11428,7 @@ var effectScheduler = {
|
|
|
11428
11428
|
}
|
|
11429
11429
|
};
|
|
11430
11430
|
|
|
11431
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11431
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
11432
11432
|
function useState(defaultValue) {
|
|
11433
11433
|
return withPointer((pointer) => {
|
|
11434
11434
|
const setFn = (newValue) => {
|
|
@@ -11446,7 +11446,7 @@ function useState(defaultValue) {
|
|
|
11446
11446
|
});
|
|
11447
11447
|
}
|
|
11448
11448
|
|
|
11449
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11449
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
11450
11450
|
function useEffect(cb, depArray) {
|
|
11451
11451
|
withPointer((pointer) => {
|
|
11452
11452
|
const oldDeps = pointer.get();
|
|
@@ -11458,7 +11458,7 @@ function useEffect(cb, depArray) {
|
|
|
11458
11458
|
});
|
|
11459
11459
|
}
|
|
11460
11460
|
|
|
11461
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11461
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
11462
11462
|
var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
|
|
11463
11463
|
|
|
11464
11464
|
// ../../node_modules/.pnpm/@inquirer+figures@1.0.11/node_modules/@inquirer/figures/dist/esm/index.js
|
|
@@ -11750,7 +11750,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
11750
11750
|
var esm_default = figures;
|
|
11751
11751
|
var replacements = Object.entries(specialMainSymbols);
|
|
11752
11752
|
|
|
11753
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11753
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
11754
11754
|
var defaultTheme = {
|
|
11755
11755
|
prefix: {
|
|
11756
11756
|
idle: import_yoctocolors_cjs.default.blue("?"),
|
|
@@ -11772,7 +11772,7 @@ var defaultTheme = {
|
|
|
11772
11772
|
}
|
|
11773
11773
|
};
|
|
11774
11774
|
|
|
11775
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11775
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
11776
11776
|
function isPlainObject(value) {
|
|
11777
11777
|
if (typeof value !== "object" || value === null)
|
|
11778
11778
|
return false;
|
|
@@ -11800,7 +11800,7 @@ function makeTheme(...themes) {
|
|
|
11800
11800
|
return deepMerge(...themesToMerge);
|
|
11801
11801
|
}
|
|
11802
11802
|
|
|
11803
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11803
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
11804
11804
|
function usePrefix({ status = "idle", theme }) {
|
|
11805
11805
|
const [showLoader, setShowLoader] = useState(false);
|
|
11806
11806
|
const [tick, setTick] = useState(0);
|
|
@@ -11831,7 +11831,7 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
11831
11831
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
11832
11832
|
}
|
|
11833
11833
|
|
|
11834
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11834
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
|
11835
11835
|
function useMemo(fn, dependencies) {
|
|
11836
11836
|
return withPointer((pointer) => {
|
|
11837
11837
|
const prev = pointer.get();
|
|
@@ -11844,12 +11844,12 @@ function useMemo(fn, dependencies) {
|
|
|
11844
11844
|
});
|
|
11845
11845
|
}
|
|
11846
11846
|
|
|
11847
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11847
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
11848
11848
|
function useRef(val) {
|
|
11849
11849
|
return useState({ current: val })[0];
|
|
11850
11850
|
}
|
|
11851
11851
|
|
|
11852
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11852
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
11853
11853
|
function useKeypress(userHandler) {
|
|
11854
11854
|
const signal = useRef(userHandler);
|
|
11855
11855
|
signal.current = userHandler;
|
|
@@ -11868,7 +11868,7 @@ function useKeypress(userHandler) {
|
|
|
11868
11868
|
}, []);
|
|
11869
11869
|
}
|
|
11870
11870
|
|
|
11871
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11871
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
11872
11872
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
|
11873
11873
|
var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
|
|
11874
11874
|
function breakLines(content, width) {
|
|
@@ -11878,7 +11878,7 @@ function readlineWidth() {
|
|
|
11878
11878
|
return (0, import_cli_width.default)({ defaultWidth: 80, output: readline().output });
|
|
11879
11879
|
}
|
|
11880
11880
|
|
|
11881
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11881
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
|
|
11882
11882
|
function split(content, width) {
|
|
11883
11883
|
return breakLines(content, width).split("\n");
|
|
11884
11884
|
}
|
|
@@ -11922,7 +11922,7 @@ function lines({ items, width, renderItem, active, position: requested, pageSize
|
|
|
11922
11922
|
return pageBuffer.filter((line) => typeof line === "string");
|
|
11923
11923
|
}
|
|
11924
11924
|
|
|
11925
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11925
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
|
|
11926
11926
|
function finite({ active, pageSize, total }) {
|
|
11927
11927
|
const middle = Math.floor(pageSize / 2);
|
|
11928
11928
|
if (total <= pageSize || active < middle)
|
|
@@ -11940,7 +11940,7 @@ function infinite({ active, lastActive, total, pageSize, pointer }) {
|
|
|
11940
11940
|
return pointer;
|
|
11941
11941
|
}
|
|
11942
11942
|
|
|
11943
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11943
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
11944
11944
|
function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
11945
11945
|
const state = useRef({ position: 0, lastActive: 0 });
|
|
11946
11946
|
const position = loop ? infinite({
|
|
@@ -11966,7 +11966,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
11966
11966
|
}).join("\n");
|
|
11967
11967
|
}
|
|
11968
11968
|
|
|
11969
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11969
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
11970
11970
|
var import_mute_stream = __toESM(require_lib(), 1);
|
|
11971
11971
|
import * as readline2 from "node:readline";
|
|
11972
11972
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
@@ -12097,9 +12097,9 @@ var SignalExit = class extends SignalExitBase {
|
|
|
12097
12097
|
this.#sigListeners[sig] = () => {
|
|
12098
12098
|
const listeners = this.#process.listeners(sig);
|
|
12099
12099
|
let { count } = this.#emitter;
|
|
12100
|
-
const
|
|
12101
|
-
if (typeof
|
|
12102
|
-
count +=
|
|
12100
|
+
const p = process4;
|
|
12101
|
+
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
12102
|
+
count += p.__signal_exit_emitter__.count;
|
|
12103
12103
|
}
|
|
12104
12104
|
if (listeners.length === count) {
|
|
12105
12105
|
this.unload();
|
|
@@ -12222,7 +12222,7 @@ var {
|
|
|
12222
12222
|
unload
|
|
12223
12223
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback());
|
|
12224
12224
|
|
|
12225
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
12225
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
12226
12226
|
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
|
12227
12227
|
import { stripVTControlCharacters } from "node:util";
|
|
12228
12228
|
var height = (content) => content.split("\n").length;
|
|
@@ -12287,7 +12287,7 @@ var ScreenManager = class {
|
|
|
12287
12287
|
}
|
|
12288
12288
|
};
|
|
12289
12289
|
|
|
12290
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
12290
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
12291
12291
|
var PromisePolyfill = class extends Promise {
|
|
12292
12292
|
// Available starting from Node 22
|
|
12293
12293
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
|
|
@@ -12302,7 +12302,7 @@ var PromisePolyfill = class extends Promise {
|
|
|
12302
12302
|
}
|
|
12303
12303
|
};
|
|
12304
12304
|
|
|
12305
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
12305
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
12306
12306
|
function getCallSites() {
|
|
12307
12307
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
12308
12308
|
let result = [];
|
|
@@ -12359,7 +12359,7 @@ function createPrompt(view) {
|
|
|
12359
12359
|
setImmediate(() => resolve(value));
|
|
12360
12360
|
});
|
|
12361
12361
|
if (nextView === void 0) {
|
|
12362
|
-
const callerFilename = callSites[1]?.getFileName
|
|
12362
|
+
const callerFilename = callSites[1]?.getFileName();
|
|
12363
12363
|
throw new Error(`Prompt functions must return a string.
|
|
12364
12364
|
at ${callerFilename}`);
|
|
12365
12365
|
}
|
|
@@ -12386,7 +12386,7 @@ function createPrompt(view) {
|
|
|
12386
12386
|
return prompt;
|
|
12387
12387
|
}
|
|
12388
12388
|
|
|
12389
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
12389
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.86/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
|
12390
12390
|
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
|
12391
12391
|
var Separator = class {
|
|
12392
12392
|
separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
|
|
@@ -12401,7 +12401,7 @@ var Separator = class {
|
|
|
12401
12401
|
}
|
|
12402
12402
|
};
|
|
12403
12403
|
|
|
12404
|
-
// ../../node_modules/.pnpm/@inquirer+checkbox@4.1.
|
|
12404
|
+
// ../../node_modules/.pnpm/@inquirer+checkbox@4.1.5_@types+node@18.19.86/node_modules/@inquirer/checkbox/dist/esm/index.js
|
|
12405
12405
|
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
|
12406
12406
|
var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
|
|
12407
12407
|
var checkboxTheme = {
|
|
@@ -12445,14 +12445,17 @@ function normalizeChoices(choices2) {
|
|
|
12445
12445
|
};
|
|
12446
12446
|
}
|
|
12447
12447
|
const name = choice.name ?? String(choice.value);
|
|
12448
|
-
|
|
12448
|
+
const normalizedChoice = {
|
|
12449
12449
|
value: choice.value,
|
|
12450
12450
|
name,
|
|
12451
12451
|
short: choice.short ?? name,
|
|
12452
|
-
description: choice.description,
|
|
12453
12452
|
disabled: choice.disabled ?? false,
|
|
12454
12453
|
checked: choice.checked ?? false
|
|
12455
12454
|
};
|
|
12455
|
+
if (choice.description) {
|
|
12456
|
+
normalizedChoice.description = choice.description;
|
|
12457
|
+
}
|
|
12458
|
+
return normalizedChoice;
|
|
12456
12459
|
});
|
|
12457
12460
|
}
|
|
12458
12461
|
var esm_default2 = createPrompt((config, done) => {
|
|
@@ -12574,7 +12577,7 @@ ${theme.style.error(errorMsg)}`;
|
|
|
12574
12577
|
${page}${helpTipBottom}${choiceDescription}${error2}${import_ansi_escapes2.default.cursorHide}`;
|
|
12575
12578
|
});
|
|
12576
12579
|
|
|
12577
|
-
// ../../node_modules/.pnpm/@inquirer+editor@4.2.
|
|
12580
|
+
// ../../node_modules/.pnpm/@inquirer+editor@4.2.10_@types+node@18.19.86/node_modules/@inquirer/editor/dist/esm/index.js
|
|
12578
12581
|
var import_external_editor = __toESM(require_main(), 1);
|
|
12579
12582
|
import { AsyncResource as AsyncResource4 } from "node:async_hooks";
|
|
12580
12583
|
var editorTheme = {
|
|
@@ -12644,7 +12647,7 @@ var esm_default3 = createPrompt((config, done) => {
|
|
|
12644
12647
|
return [[prefix, message, helpTip].filter(Boolean).join(" "), error2];
|
|
12645
12648
|
});
|
|
12646
12649
|
|
|
12647
|
-
// ../../node_modules/.pnpm/@inquirer+confirm@5.1.
|
|
12650
|
+
// ../../node_modules/.pnpm/@inquirer+confirm@5.1.9_@types+node@18.19.86/node_modules/@inquirer/confirm/dist/esm/index.js
|
|
12648
12651
|
function getBooleanValue(value, defaultValue) {
|
|
12649
12652
|
let answer = defaultValue !== false;
|
|
12650
12653
|
if (/^(y|yes)/i.test(value))
|
|
@@ -12688,7 +12691,7 @@ var esm_default4 = createPrompt((config, done) => {
|
|
|
12688
12691
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
|
12689
12692
|
});
|
|
12690
12693
|
|
|
12691
|
-
// ../../node_modules/.pnpm/@inquirer+input@4.1.
|
|
12694
|
+
// ../../node_modules/.pnpm/@inquirer+input@4.1.9_@types+node@18.19.86/node_modules/@inquirer/input/dist/esm/index.js
|
|
12692
12695
|
var inputTheme = {
|
|
12693
12696
|
validationFailureMode: "keep"
|
|
12694
12697
|
};
|
|
@@ -12754,7 +12757,7 @@ var esm_default5 = createPrompt((config, done) => {
|
|
|
12754
12757
|
];
|
|
12755
12758
|
});
|
|
12756
12759
|
|
|
12757
|
-
// ../../node_modules/.pnpm/@inquirer+number@3.0.
|
|
12760
|
+
// ../../node_modules/.pnpm/@inquirer+number@3.0.12_@types+node@18.19.86/node_modules/@inquirer/number/dist/esm/index.js
|
|
12758
12761
|
function isStepOf(value, step, min) {
|
|
12759
12762
|
const valuePow = value * Math.pow(10, 6);
|
|
12760
12763
|
const stepPow = step * Math.pow(10, 6);
|
|
@@ -12835,7 +12838,7 @@ var esm_default6 = createPrompt((config, done) => {
|
|
|
12835
12838
|
];
|
|
12836
12839
|
});
|
|
12837
12840
|
|
|
12838
|
-
// ../../node_modules/.pnpm/@inquirer+expand@4.0.
|
|
12841
|
+
// ../../node_modules/.pnpm/@inquirer+expand@4.0.12_@types+node@18.19.86/node_modules/@inquirer/expand/dist/esm/index.js
|
|
12839
12842
|
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
|
12840
12843
|
function normalizeChoices2(choices2) {
|
|
12841
12844
|
return choices2.map((choice) => {
|
|
@@ -12931,7 +12934,7 @@ var esm_default7 = createPrompt((config, done) => {
|
|
|
12931
12934
|
];
|
|
12932
12935
|
});
|
|
12933
12936
|
|
|
12934
|
-
// ../../node_modules/.pnpm/@inquirer+rawlist@4.0.
|
|
12937
|
+
// ../../node_modules/.pnpm/@inquirer+rawlist@4.0.12_@types+node@18.19.86/node_modules/@inquirer/rawlist/dist/esm/index.js
|
|
12935
12938
|
var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
|
|
12936
12939
|
var numberRegex = /\d+/;
|
|
12937
12940
|
function isSelectableChoice(choice) {
|
|
@@ -13014,7 +13017,7 @@ var esm_default8 = createPrompt((config, done) => {
|
|
|
13014
13017
|
];
|
|
13015
13018
|
});
|
|
13016
13019
|
|
|
13017
|
-
// ../../node_modules/.pnpm/@inquirer+password@4.0.
|
|
13020
|
+
// ../../node_modules/.pnpm/@inquirer+password@4.0.12_@types+node@18.19.86/node_modules/@inquirer/password/dist/esm/index.js
|
|
13018
13021
|
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
|
13019
13022
|
var esm_default9 = createPrompt((config, done) => {
|
|
13020
13023
|
const { validate: validate2 = () => true } = config;
|
|
@@ -13064,7 +13067,7 @@ var esm_default9 = createPrompt((config, done) => {
|
|
|
13064
13067
|
return [[prefix, message, config.mask ? formattedValue : helpTip].join(" "), error2];
|
|
13065
13068
|
});
|
|
13066
13069
|
|
|
13067
|
-
// ../../node_modules/.pnpm/@inquirer+search@3.0.
|
|
13070
|
+
// ../../node_modules/.pnpm/@inquirer+search@3.0.12_@types+node@18.19.86/node_modules/@inquirer/search/dist/esm/index.js
|
|
13068
13071
|
var import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);
|
|
13069
13072
|
var searchTheme = {
|
|
13070
13073
|
icon: { cursor: esm_default.pointer },
|
|
@@ -13091,13 +13094,16 @@ function normalizeChoices4(choices2) {
|
|
|
13091
13094
|
};
|
|
13092
13095
|
}
|
|
13093
13096
|
const name = choice.name ?? String(choice.value);
|
|
13094
|
-
|
|
13097
|
+
const normalizedChoice = {
|
|
13095
13098
|
value: choice.value,
|
|
13096
13099
|
name,
|
|
13097
|
-
description: choice.description,
|
|
13098
13100
|
short: choice.short ?? name,
|
|
13099
13101
|
disabled: choice.disabled ?? false
|
|
13100
13102
|
};
|
|
13103
|
+
if (choice.description) {
|
|
13104
|
+
normalizedChoice.description = choice.description;
|
|
13105
|
+
}
|
|
13106
|
+
return normalizedChoice;
|
|
13101
13107
|
});
|
|
13102
13108
|
}
|
|
13103
13109
|
var esm_default10 = createPrompt((config, done) => {
|
|
@@ -13227,7 +13233,7 @@ ${theme.style.description(selectedChoice.description)}` : ``;
|
|
|
13227
13233
|
];
|
|
13228
13234
|
});
|
|
13229
13235
|
|
|
13230
|
-
// ../../node_modules/.pnpm/@inquirer+select@4.1.
|
|
13236
|
+
// ../../node_modules/.pnpm/@inquirer+select@4.1.1_@types+node@18.19.86/node_modules/@inquirer/select/dist/esm/index.js
|
|
13231
13237
|
var import_yoctocolors_cjs7 = __toESM(require_yoctocolors_cjs(), 1);
|
|
13232
13238
|
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
|
13233
13239
|
var selectTheme = {
|
|
@@ -13255,13 +13261,16 @@ function normalizeChoices5(choices2) {
|
|
|
13255
13261
|
};
|
|
13256
13262
|
}
|
|
13257
13263
|
const name = choice.name ?? String(choice.value);
|
|
13258
|
-
|
|
13264
|
+
const normalizedChoice = {
|
|
13259
13265
|
value: choice.value,
|
|
13260
13266
|
name,
|
|
13261
|
-
description: choice.description,
|
|
13262
13267
|
short: choice.short ?? name,
|
|
13263
13268
|
disabled: choice.disabled ?? false
|
|
13264
13269
|
};
|
|
13270
|
+
if (choice.description) {
|
|
13271
|
+
normalizedChoice.description = choice.description;
|
|
13272
|
+
}
|
|
13273
|
+
return normalizedChoice;
|
|
13265
13274
|
});
|
|
13266
13275
|
}
|
|
13267
13276
|
var esm_default11 = createPrompt((config, done) => {
|
|
@@ -13385,8 +13394,8 @@ async function mergeDts({
|
|
|
13385
13394
|
filepath,
|
|
13386
13395
|
meta
|
|
13387
13396
|
}) {
|
|
13388
|
-
const previousAst =
|
|
13389
|
-
const currentAst =
|
|
13397
|
+
const previousAst = U5e(previousContent);
|
|
13398
|
+
const currentAst = U5e(fileContent);
|
|
13390
13399
|
for (const imp of previousAst.imports.$items) {
|
|
13391
13400
|
currentAst.imports[imp.local] = imp;
|
|
13392
13401
|
}
|
|
@@ -13403,7 +13412,7 @@ async function mergeDts({
|
|
|
13403
13412
|
currentAst.$ast.body.splice(index, 0, node);
|
|
13404
13413
|
}
|
|
13405
13414
|
}
|
|
13406
|
-
const res = await
|
|
13415
|
+
const res = await tps(currentAst.generate().code, meta, {
|
|
13407
13416
|
filepath
|
|
13408
13417
|
});
|
|
13409
13418
|
return clearExports(res.code, meta);
|
|
@@ -13424,7 +13433,7 @@ async function executeOperationFile(op, {
|
|
|
13424
13433
|
}) {
|
|
13425
13434
|
const code = await readFile(op.sourceAbsolute, { encoding: "utf-8" });
|
|
13426
13435
|
const filepath = relative(op.source, op.sourceAbsolute);
|
|
13427
|
-
const result = await
|
|
13436
|
+
const result = await tps(code, meta, {
|
|
13428
13437
|
filepath
|
|
13429
13438
|
});
|
|
13430
13439
|
let fileContent = result.code;
|
|
@@ -13462,7 +13471,7 @@ async function transformFileAfterExec(filepath, fileContent) {
|
|
|
13462
13471
|
case ".js":
|
|
13463
13472
|
case ".tsx":
|
|
13464
13473
|
case ".jsx":
|
|
13465
|
-
return
|
|
13474
|
+
return Dit(fileContent, {
|
|
13466
13475
|
filepath
|
|
13467
13476
|
});
|
|
13468
13477
|
case ".env":
|
|
@@ -13488,10 +13497,10 @@ async function transformFileAfterExec(filepath, fileContent) {
|
|
|
13488
13497
|
}
|
|
13489
13498
|
throw new Error(`Unsupported file extension ${parsed.base} (${filepath})`);
|
|
13490
13499
|
}
|
|
13491
|
-
async function importTransformer(
|
|
13492
|
-
const importFile = isWin ? "file://" +
|
|
13493
|
-
const
|
|
13494
|
-
return
|
|
13500
|
+
async function importTransformer(p) {
|
|
13501
|
+
const importFile = isWin ? "file://" + p : p;
|
|
13502
|
+
const f2 = await import(importFile);
|
|
13503
|
+
return f2.default;
|
|
13495
13504
|
}
|
|
13496
13505
|
async function executeOperationTransform(op, {
|
|
13497
13506
|
meta,
|
|
@@ -13513,9 +13522,9 @@ async function executeOperationTransform(op, {
|
|
|
13513
13522
|
};
|
|
13514
13523
|
}
|
|
13515
13524
|
function orderBy(array, getter) {
|
|
13516
|
-
return array.slice().sort((a2,
|
|
13525
|
+
return array.slice().sort((a2, b2) => {
|
|
13517
13526
|
const valueA = getter(a2);
|
|
13518
|
-
const valueB = getter(
|
|
13527
|
+
const valueB = getter(b2);
|
|
13519
13528
|
if (valueA < valueB) return -1;
|
|
13520
13529
|
if (valueA > valueB) return 1;
|
|
13521
13530
|
return 0;
|
|
@@ -13684,21 +13693,21 @@ async function main(options, meta) {
|
|
|
13684
13693
|
}
|
|
13685
13694
|
const rearranger = new OperationsRearranger();
|
|
13686
13695
|
for (const source of sources) {
|
|
13687
|
-
for await (const
|
|
13688
|
-
const target = toDist(
|
|
13696
|
+
for await (const p of walk(source)) {
|
|
13697
|
+
const target = toDist(p, source, options.dist);
|
|
13689
13698
|
const targetAbsolute = path.isAbsolute(target) ? target : path.resolve(target);
|
|
13690
|
-
const parsed = path.parse(
|
|
13699
|
+
const parsed = path.parse(p);
|
|
13691
13700
|
if (parsed.name.match(reIgnoreFile)) {
|
|
13692
13701
|
continue;
|
|
13693
13702
|
} else if (parsed.name.startsWith("$") && parsed.ext.match(/\.tsx?$/)) {
|
|
13694
13703
|
throw new Error(
|
|
13695
|
-
`Typescript file needs to be compiled before it can be executed: '${
|
|
13704
|
+
`Typescript file needs to be compiled before it can be executed: '${p}'.
|
|
13696
13705
|
Please report this issue to https://github.com/vikejs/bati`
|
|
13697
13706
|
);
|
|
13698
13707
|
} else if ((parsed.name.startsWith("!$") || parsed.name.startsWith("$")) && parsed.ext.match(/\.jsx?$/)) {
|
|
13699
13708
|
rearranger.addFile({
|
|
13700
13709
|
source,
|
|
13701
|
-
sourceAbsolute:
|
|
13710
|
+
sourceAbsolute: p,
|
|
13702
13711
|
destination: target,
|
|
13703
13712
|
destinationAbsolute: targetAbsolute,
|
|
13704
13713
|
kind: "transform",
|
|
@@ -13708,7 +13717,7 @@ Please report this issue to https://github.com/vikejs/bati`
|
|
|
13708
13717
|
} else {
|
|
13709
13718
|
rearranger.addFile({
|
|
13710
13719
|
source,
|
|
13711
|
-
sourceAbsolute:
|
|
13720
|
+
sourceAbsolute: p,
|
|
13712
13721
|
destination: target,
|
|
13713
13722
|
destinationAbsolute: targetAbsolute,
|
|
13714
13723
|
kind: "file",
|
|
@@ -14371,8 +14380,8 @@ var features = [
|
|
|
14371
14380
|
disabled: true
|
|
14372
14381
|
}
|
|
14373
14382
|
];
|
|
14374
|
-
var flags = features.map((
|
|
14375
|
-
var cliFlags = features.filter((
|
|
14383
|
+
var flags = features.map((f2) => f2.flag);
|
|
14384
|
+
var cliFlags = features.filter((f2) => !f2.invisibleCli).map((f2) => f2.flag);
|
|
14376
14385
|
|
|
14377
14386
|
// ../features/dist/index.js
|
|
14378
14387
|
var BatiSet = class extends Set {
|
|
@@ -14381,8 +14390,8 @@ var BatiSet = class extends Set {
|
|
|
14381
14390
|
#databases;
|
|
14382
14391
|
constructor(flags2, allFeatures) {
|
|
14383
14392
|
super(flags2);
|
|
14384
|
-
this.#servers = new Set(allFeatures.filter((
|
|
14385
|
-
this.#databases = new Set(allFeatures.filter((
|
|
14393
|
+
this.#servers = new Set(allFeatures.filter((f2) => f2.category === "Server").map((f2) => f2.flag));
|
|
14394
|
+
this.#databases = new Set(allFeatures.filter((f2) => f2.category === "Database").map((f2) => f2.flag));
|
|
14386
14395
|
}
|
|
14387
14396
|
hasOneOf(a2) {
|
|
14388
14397
|
for (const x of this) if (a2.has(x)) return true;
|
|
@@ -14427,11 +14436,11 @@ function filter(message, callback) {
|
|
|
14427
14436
|
}
|
|
14428
14437
|
function prepare(fts) {
|
|
14429
14438
|
const s2 = /* @__PURE__ */ new Set();
|
|
14430
|
-
for (const
|
|
14431
|
-
if (flags.includes(
|
|
14432
|
-
s2.add(features.find((feat) => feat.flag ===
|
|
14439
|
+
for (const f2 of fts) {
|
|
14440
|
+
if (flags.includes(f2)) {
|
|
14441
|
+
s2.add(features.find((feat) => feat.flag === f2).category);
|
|
14433
14442
|
}
|
|
14434
|
-
s2.add(
|
|
14443
|
+
s2.add(f2);
|
|
14435
14444
|
}
|
|
14436
14445
|
return s2;
|
|
14437
14446
|
}
|
|
@@ -14503,7 +14512,7 @@ function execRules(fts, rulesMessages2) {
|
|
|
14503
14512
|
return messages;
|
|
14504
14513
|
}
|
|
14505
14514
|
|
|
14506
|
-
// ../../node_modules/.pnpm/consola@3.4.
|
|
14515
|
+
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/core.mjs
|
|
14507
14516
|
var LogLevels = {
|
|
14508
14517
|
silent: Number.NEGATIVE_INFINITY,
|
|
14509
14518
|
fatal: 0,
|
|
@@ -14622,7 +14631,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
14622
14631
|
function createDefu(merger) {
|
|
14623
14632
|
return (...arguments_) => (
|
|
14624
14633
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
14625
|
-
arguments_.reduce((
|
|
14634
|
+
arguments_.reduce((p, c2) => _defu(p, c2, "", merger), {})
|
|
14626
14635
|
);
|
|
14627
14636
|
}
|
|
14628
14637
|
var defu = createDefu();
|
|
@@ -15011,12 +15020,12 @@ function createConsola(options = {}) {
|
|
|
15011
15020
|
return new Consola(options);
|
|
15012
15021
|
}
|
|
15013
15022
|
|
|
15014
|
-
// ../../node_modules/.pnpm/consola@3.4.
|
|
15023
|
+
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs
|
|
15015
15024
|
import { formatWithOptions } from "node:util";
|
|
15016
15025
|
import { sep } from "node:path";
|
|
15017
|
-
function parseStack(stack) {
|
|
15026
|
+
function parseStack(stack, message) {
|
|
15018
15027
|
const cwd = process.cwd() + sep;
|
|
15019
|
-
const lines2 = stack.split("\n").splice(
|
|
15028
|
+
const lines2 = stack.split("\n").splice(message.split("\n").length).map((l2) => l2.trim().replace("file://", "").replace(cwd, ""));
|
|
15020
15029
|
return lines2;
|
|
15021
15030
|
}
|
|
15022
15031
|
function writeStream(data, stream) {
|
|
@@ -15025,14 +15034,14 @@ function writeStream(data, stream) {
|
|
|
15025
15034
|
}
|
|
15026
15035
|
var bracket = (x) => x ? `[${x}]` : "";
|
|
15027
15036
|
var BasicReporter = class {
|
|
15028
|
-
formatStack(stack, opts) {
|
|
15037
|
+
formatStack(stack, message, opts) {
|
|
15029
15038
|
const indent = " ".repeat((opts?.errorLevel || 0) + 1);
|
|
15030
|
-
return indent + parseStack(stack).join(`
|
|
15039
|
+
return indent + parseStack(stack, message).join(`
|
|
15031
15040
|
${indent}`);
|
|
15032
15041
|
}
|
|
15033
15042
|
formatError(err, opts) {
|
|
15034
15043
|
const message = err.message ?? formatWithOptions(opts, err);
|
|
15035
|
-
const stack = err.stack ? this.formatStack(err.stack, opts) : "";
|
|
15044
|
+
const stack = err.stack ? this.formatStack(err.stack, message, opts) : "";
|
|
15036
15045
|
const level = opts?.errorLevel || 0;
|
|
15037
15046
|
const causedPrefix = level > 0 ? `${" ".repeat(level)}[cause]: ` : "";
|
|
15038
15047
|
const causedError = err.cause ? "\n\n" + this.formatError(err.cause, { ...opts, errorLevel: level + 1 }) : "";
|
|
@@ -15080,10 +15089,10 @@ ${indent}`);
|
|
|
15080
15089
|
}
|
|
15081
15090
|
};
|
|
15082
15091
|
|
|
15083
|
-
// ../../node_modules/.pnpm/consola@3.4.
|
|
15084
|
-
import
|
|
15092
|
+
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
|
|
15093
|
+
import g$1 from "node:process";
|
|
15085
15094
|
|
|
15086
|
-
// ../../node_modules/.pnpm/consola@3.4.
|
|
15095
|
+
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs
|
|
15087
15096
|
import * as tty from "node:tty";
|
|
15088
15097
|
var {
|
|
15089
15098
|
env = {},
|
|
@@ -15270,7 +15279,10 @@ function box(text, _opts = {}) {
|
|
|
15270
15279
|
}
|
|
15271
15280
|
const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
|
|
15272
15281
|
const height2 = textLines.length + paddingOffset;
|
|
15273
|
-
const width = Math.max(
|
|
15282
|
+
const width = Math.max(
|
|
15283
|
+
...textLines.map((line) => stripAnsi(line).length),
|
|
15284
|
+
opts.title ? stripAnsi(opts.title).length : 0
|
|
15285
|
+
) + paddingOffset;
|
|
15274
15286
|
const widthOffset = width + paddingOffset;
|
|
15275
15287
|
const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
|
|
15276
15288
|
if (opts.style.marginTop > 0) {
|
|
@@ -15316,70 +15328,70 @@ function box(text, _opts = {}) {
|
|
|
15316
15328
|
return boxLines.join("\n");
|
|
15317
15329
|
}
|
|
15318
15330
|
|
|
15319
|
-
// ../../node_modules/.pnpm/consola@3.4.
|
|
15331
|
+
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
|
|
15320
15332
|
var r = /* @__PURE__ */ Object.create(null);
|
|
15321
15333
|
var i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis);
|
|
15322
|
-
var
|
|
15323
|
-
return i()[
|
|
15324
|
-
}, has(e,
|
|
15334
|
+
var o = new Proxy(r, { get(e, s2) {
|
|
15335
|
+
return i()[s2] ?? r[s2];
|
|
15336
|
+
}, has(e, s2) {
|
|
15325
15337
|
const E = i();
|
|
15326
|
-
return
|
|
15327
|
-
}, set(e,
|
|
15328
|
-
const
|
|
15329
|
-
return
|
|
15330
|
-
}, deleteProperty(e,
|
|
15331
|
-
if (!
|
|
15338
|
+
return s2 in E || s2 in r;
|
|
15339
|
+
}, set(e, s2, E) {
|
|
15340
|
+
const B = i(true);
|
|
15341
|
+
return B[s2] = E, true;
|
|
15342
|
+
}, deleteProperty(e, s2) {
|
|
15343
|
+
if (!s2) return false;
|
|
15332
15344
|
const E = i(true);
|
|
15333
|
-
return delete E[
|
|
15345
|
+
return delete E[s2], true;
|
|
15334
15346
|
}, ownKeys() {
|
|
15335
15347
|
const e = i(true);
|
|
15336
15348
|
return Object.keys(e);
|
|
15337
15349
|
} });
|
|
15338
15350
|
var t = typeof process < "u" && process.env && process.env.NODE_ENV || "";
|
|
15339
|
-
var
|
|
15340
|
-
function
|
|
15341
|
-
if (globalThis.process?.env) for (const e of
|
|
15342
|
-
const
|
|
15343
|
-
if (globalThis.process?.env[
|
|
15351
|
+
var f = [["APPVEYOR"], ["AWS_AMPLIFY", "AWS_APP_ID", { ci: true }], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", { ci: false }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["VERCEL", "VERCEL", { ci: false }], ["VERCEL", "VERCEL_ENV", { ci: false }], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }], ["CODESANDBOX", "CODESANDBOX_HOST", { ci: false }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"], ["ZEABUR"], ["CODESPHERE", "CODESPHERE_APP_ID", { ci: true }], ["RAILWAY", "RAILWAY_PROJECT_ID"], ["RAILWAY", "RAILWAY_SERVICE_ID"], ["DENO-DEPLOY", "DENO_DEPLOYMENT_ID"], ["FIREBASE_APP_HOSTING", "FIREBASE_APP_HOSTING", { ci: true }]];
|
|
15352
|
+
function b() {
|
|
15353
|
+
if (globalThis.process?.env) for (const e of f) {
|
|
15354
|
+
const s2 = e[1] || e[0];
|
|
15355
|
+
if (globalThis.process?.env[s2]) return { name: e[0].toLowerCase(), ...e[2] };
|
|
15344
15356
|
}
|
|
15345
15357
|
return globalThis.process?.env?.SHELL === "/bin/jsh" && globalThis.process?.versions?.webcontainer ? { name: "stackblitz", ci: false } : { name: "", ci: false };
|
|
15346
15358
|
}
|
|
15347
|
-
var l =
|
|
15359
|
+
var l = b();
|
|
15348
15360
|
l.name;
|
|
15349
15361
|
function n(e) {
|
|
15350
15362
|
return e ? e !== "false" : false;
|
|
15351
15363
|
}
|
|
15352
15364
|
var I = globalThis.process?.platform || "";
|
|
15353
|
-
var T = n(
|
|
15354
|
-
var
|
|
15355
|
-
var
|
|
15356
|
-
var
|
|
15357
|
-
n(
|
|
15358
|
-
var
|
|
15359
|
-
!n(
|
|
15365
|
+
var T = n(o.CI) || l.ci !== false;
|
|
15366
|
+
var a = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY);
|
|
15367
|
+
var g = n(o.DEBUG);
|
|
15368
|
+
var R = t === "test" || n(o.TEST);
|
|
15369
|
+
n(o.MINIMAL) || T || R || !a;
|
|
15370
|
+
var A = /^win/i.test(I);
|
|
15371
|
+
!n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM !== "dumb" || T);
|
|
15360
15372
|
var C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
|
|
15361
15373
|
Number(C?.split(".")[0]) || null;
|
|
15362
15374
|
var y = globalThis.process || /* @__PURE__ */ Object.create(null);
|
|
15363
|
-
var
|
|
15364
|
-
new Proxy(y, { get(e,
|
|
15365
|
-
if (
|
|
15366
|
-
if (
|
|
15367
|
-
if (
|
|
15375
|
+
var _ = { versions: {} };
|
|
15376
|
+
new Proxy(y, { get(e, s2) {
|
|
15377
|
+
if (s2 === "env") return o;
|
|
15378
|
+
if (s2 in e) return e[s2];
|
|
15379
|
+
if (s2 in _) return _[s2];
|
|
15368
15380
|
} });
|
|
15369
|
-
var
|
|
15370
|
-
var
|
|
15381
|
+
var c = globalThis.process?.release?.name === "node";
|
|
15382
|
+
var O = !!globalThis.Bun || !!globalThis.process?.versions?.bun;
|
|
15371
15383
|
var D = !!globalThis.Deno;
|
|
15372
|
-
var
|
|
15384
|
+
var L = !!globalThis.fastly;
|
|
15373
15385
|
var S = !!globalThis.Netlify;
|
|
15374
|
-
var
|
|
15375
|
-
var
|
|
15376
|
-
var F = [[S, "netlify"], [
|
|
15386
|
+
var u = !!globalThis.EdgeRuntime;
|
|
15387
|
+
var N = globalThis.navigator?.userAgent === "Cloudflare-Workers";
|
|
15388
|
+
var F = [[S, "netlify"], [u, "edge-light"], [N, "workerd"], [L, "fastly"], [D, "deno"], [O, "bun"], [c, "node"]];
|
|
15377
15389
|
function G() {
|
|
15378
|
-
const e = F.find((
|
|
15390
|
+
const e = F.find((s2) => s2[0]);
|
|
15379
15391
|
if (e) return { name: e[1] };
|
|
15380
15392
|
}
|
|
15381
|
-
var
|
|
15382
|
-
|
|
15393
|
+
var P = G();
|
|
15394
|
+
P?.name || "";
|
|
15383
15395
|
function ansiRegex2({ onlyFirst = false } = {}) {
|
|
15384
15396
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
15385
15397
|
const pattern = [
|
|
@@ -15466,9 +15478,9 @@ function stringWidth$1(string, options = {}) {
|
|
|
15466
15478
|
return width;
|
|
15467
15479
|
}
|
|
15468
15480
|
function isUnicodeSupported2() {
|
|
15469
|
-
const { env: env3 } =
|
|
15481
|
+
const { env: env3 } = g$1;
|
|
15470
15482
|
const { TERM, TERM_PROGRAM } = env3;
|
|
15471
|
-
if (
|
|
15483
|
+
if (g$1.platform !== "win32") {
|
|
15472
15484
|
return TERM !== "linux";
|
|
15473
15485
|
}
|
|
15474
15486
|
return Boolean(env3.WT_SESSION) || Boolean(env3.TERMINUS_SUBLIME) || env3.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env3.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
@@ -15507,10 +15519,10 @@ function stringWidth(str) {
|
|
|
15507
15519
|
return stringWidth$1(str);
|
|
15508
15520
|
}
|
|
15509
15521
|
var FancyReporter = class extends BasicReporter {
|
|
15510
|
-
formatStack(stack, opts) {
|
|
15522
|
+
formatStack(stack, message, opts) {
|
|
15511
15523
|
const indent = " ".repeat((opts?.errorLevel || 0) + 1);
|
|
15512
15524
|
return `
|
|
15513
|
-
${indent}` + parseStack(stack).map(
|
|
15525
|
+
${indent}` + parseStack(stack, message).map(
|
|
15514
15526
|
(line) => " " + line.replace(/^at +/, (m) => colors8.gray(m)).replace(/\((.+)\)/, (_2, m) => `(${colors8.cyan(m)})`)
|
|
15515
15527
|
).join(`
|
|
15516
15528
|
${indent}`);
|
|
@@ -15555,7 +15567,7 @@ ${indent}`);
|
|
|
15555
15567
|
);
|
|
15556
15568
|
if (logObj.type === "trace") {
|
|
15557
15569
|
const _err = new Error("Trace: " + logObj.message);
|
|
15558
|
-
line += this.formatStack(_err.stack || "");
|
|
15570
|
+
line += this.formatStack(_err.stack || "", _err.message);
|
|
15559
15571
|
}
|
|
15560
15572
|
return isBadge ? "\n" + line + "\n" : line;
|
|
15561
15573
|
}
|
|
@@ -15579,19 +15591,19 @@ function createConsola2(options = {}) {
|
|
|
15579
15591
|
defaults: { level },
|
|
15580
15592
|
stdout: process.stdout,
|
|
15581
15593
|
stderr: process.stderr,
|
|
15582
|
-
prompt: (...args) => import("./prompt-
|
|
15594
|
+
prompt: (...args) => import("./prompt-AQUZNUSD.js").then((m) => m.prompt(...args)),
|
|
15583
15595
|
reporters: options.reporters || [
|
|
15584
|
-
options.fancy ?? !(T ||
|
|
15596
|
+
options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()
|
|
15585
15597
|
],
|
|
15586
15598
|
...options
|
|
15587
15599
|
});
|
|
15588
15600
|
return consola2;
|
|
15589
15601
|
}
|
|
15590
15602
|
function _getDefaultLogLevel() {
|
|
15591
|
-
if (
|
|
15603
|
+
if (g) {
|
|
15592
15604
|
return LogLevels.debug;
|
|
15593
15605
|
}
|
|
15594
|
-
if (
|
|
15606
|
+
if (R) {
|
|
15595
15607
|
return LogLevels.warn;
|
|
15596
15608
|
}
|
|
15597
15609
|
return LogLevels.info;
|
|
@@ -15683,13 +15695,13 @@ function lowerFirst(str) {
|
|
|
15683
15695
|
return str ? str[0].toLowerCase() + str.slice(1) : "";
|
|
15684
15696
|
}
|
|
15685
15697
|
function pascalCase(str, opts) {
|
|
15686
|
-
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((
|
|
15698
|
+
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => upperFirst(opts?.normalize ? p.toLowerCase() : p)).join("") : "";
|
|
15687
15699
|
}
|
|
15688
15700
|
function camelCase(str, opts) {
|
|
15689
15701
|
return lowerFirst(pascalCase(str || "", opts));
|
|
15690
15702
|
}
|
|
15691
15703
|
function kebabCase(str, joiner) {
|
|
15692
|
-
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((
|
|
15704
|
+
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => p.toLowerCase()).join(joiner ?? "-") : "";
|
|
15693
15705
|
}
|
|
15694
15706
|
function toArr(any) {
|
|
15695
15707
|
return any == void 0 ? [] : Array.isArray(any) ? any : [any];
|
|
@@ -16165,22 +16177,22 @@ var {
|
|
|
16165
16177
|
} = createColors2();
|
|
16166
16178
|
|
|
16167
16179
|
// ../../node_modules/.pnpm/sift@17.1.3/node_modules/sift/es5m/index.js
|
|
16168
|
-
var extendStatics = function(d,
|
|
16169
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2,
|
|
16170
|
-
d2.__proto__ =
|
|
16171
|
-
} || function(d2,
|
|
16172
|
-
for (var
|
|
16180
|
+
var extendStatics = function(d, b2) {
|
|
16181
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
|
16182
|
+
d2.__proto__ = b3;
|
|
16183
|
+
} || function(d2, b3) {
|
|
16184
|
+
for (var p in b3) if (Object.prototype.hasOwnProperty.call(b3, p)) d2[p] = b3[p];
|
|
16173
16185
|
};
|
|
16174
|
-
return extendStatics(d,
|
|
16186
|
+
return extendStatics(d, b2);
|
|
16175
16187
|
};
|
|
16176
|
-
function __extends(d,
|
|
16177
|
-
if (typeof
|
|
16178
|
-
throw new TypeError("Class extends value " + String(
|
|
16179
|
-
extendStatics(d,
|
|
16188
|
+
function __extends(d, b2) {
|
|
16189
|
+
if (typeof b2 !== "function" && b2 !== null)
|
|
16190
|
+
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
16191
|
+
extendStatics(d, b2);
|
|
16180
16192
|
function __() {
|
|
16181
16193
|
this.constructor = d;
|
|
16182
16194
|
}
|
|
16183
|
-
d.prototype =
|
|
16195
|
+
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
16184
16196
|
}
|
|
16185
16197
|
var typeChecker = function(type) {
|
|
16186
16198
|
var typeString = "[object " + type + "]";
|
|
@@ -16213,31 +16225,31 @@ var isProperty = function(item, key) {
|
|
|
16213
16225
|
var isVanillaObject = function(value) {
|
|
16214
16226
|
return value && (value.constructor === Object || value.constructor === Array || value.constructor.toString() === "function Object() { [native code] }" || value.constructor.toString() === "function Array() { [native code] }") && !value.toJSON;
|
|
16215
16227
|
};
|
|
16216
|
-
var equals = function(a2,
|
|
16217
|
-
if (a2 == null && a2 ==
|
|
16228
|
+
var equals = function(a2, b2) {
|
|
16229
|
+
if (a2 == null && a2 == b2) {
|
|
16218
16230
|
return true;
|
|
16219
16231
|
}
|
|
16220
|
-
if (a2 ===
|
|
16232
|
+
if (a2 === b2) {
|
|
16221
16233
|
return true;
|
|
16222
16234
|
}
|
|
16223
|
-
if (Object.prototype.toString.call(a2) !== Object.prototype.toString.call(
|
|
16235
|
+
if (Object.prototype.toString.call(a2) !== Object.prototype.toString.call(b2)) {
|
|
16224
16236
|
return false;
|
|
16225
16237
|
}
|
|
16226
16238
|
if (isArray(a2)) {
|
|
16227
|
-
if (a2.length !==
|
|
16239
|
+
if (a2.length !== b2.length) {
|
|
16228
16240
|
return false;
|
|
16229
16241
|
}
|
|
16230
16242
|
for (var i2 = 0, length_1 = a2.length; i2 < length_1; i2++) {
|
|
16231
|
-
if (!equals(a2[i2],
|
|
16243
|
+
if (!equals(a2[i2], b2[i2]))
|
|
16232
16244
|
return false;
|
|
16233
16245
|
}
|
|
16234
16246
|
return true;
|
|
16235
16247
|
} else if (isObject(a2)) {
|
|
16236
|
-
if (Object.keys(a2).length !== Object.keys(
|
|
16248
|
+
if (Object.keys(a2).length !== Object.keys(b2).length) {
|
|
16237
16249
|
return false;
|
|
16238
16250
|
}
|
|
16239
16251
|
for (var key in a2) {
|
|
16240
|
-
if (!equals(a2[key],
|
|
16252
|
+
if (!equals(a2[key], b2[key]))
|
|
16241
16253
|
return false;
|
|
16242
16254
|
}
|
|
16243
16255
|
return true;
|
|
@@ -16370,15 +16382,15 @@ var createTester = function(a2, compare) {
|
|
|
16370
16382
|
return a2;
|
|
16371
16383
|
}
|
|
16372
16384
|
if (a2 instanceof RegExp) {
|
|
16373
|
-
return function(
|
|
16374
|
-
var result = typeof
|
|
16385
|
+
return function(b2) {
|
|
16386
|
+
var result = typeof b2 === "string" && a2.test(b2);
|
|
16375
16387
|
a2.lastIndex = 0;
|
|
16376
16388
|
return result;
|
|
16377
16389
|
};
|
|
16378
16390
|
}
|
|
16379
16391
|
var comparableA = comparable(a2);
|
|
16380
|
-
return function(
|
|
16381
|
-
return compare(comparableA, comparable(
|
|
16392
|
+
return function(b2) {
|
|
16393
|
+
return compare(comparableA, comparable(b2));
|
|
16382
16394
|
};
|
|
16383
16395
|
};
|
|
16384
16396
|
var EqualsOperation = (
|
|
@@ -16413,8 +16425,8 @@ var numericalOperation = function(createTester2) {
|
|
|
16413
16425
|
return numericalOperationCreator(function(params, owneryQuery, options, name) {
|
|
16414
16426
|
var typeofParams = typeof comparable(params);
|
|
16415
16427
|
var test = createTester2(params);
|
|
16416
|
-
return new EqualsOperation(function(
|
|
16417
|
-
var actualValue = coercePotentiallyNull(
|
|
16428
|
+
return new EqualsOperation(function(b2) {
|
|
16429
|
+
var actualValue = coercePotentiallyNull(b2);
|
|
16418
16430
|
return typeof comparable(actualValue) === typeofParams && test(actualValue);
|
|
16419
16431
|
}, owneryQuery, options, name);
|
|
16420
16432
|
});
|
|
@@ -16814,29 +16826,29 @@ var $in = function(params, owneryQuery, options, name) {
|
|
|
16814
16826
|
return new $In(params, owneryQuery, options, name);
|
|
16815
16827
|
};
|
|
16816
16828
|
var $lt = numericalOperation(function(params) {
|
|
16817
|
-
return function(
|
|
16818
|
-
return
|
|
16829
|
+
return function(b2) {
|
|
16830
|
+
return b2 != null && b2 < params;
|
|
16819
16831
|
};
|
|
16820
16832
|
});
|
|
16821
16833
|
var $lte = numericalOperation(function(params) {
|
|
16822
|
-
return function(
|
|
16823
|
-
return
|
|
16834
|
+
return function(b2) {
|
|
16835
|
+
return b2 === params || b2 <= params;
|
|
16824
16836
|
};
|
|
16825
16837
|
});
|
|
16826
16838
|
var $gt = numericalOperation(function(params) {
|
|
16827
|
-
return function(
|
|
16828
|
-
return
|
|
16839
|
+
return function(b2) {
|
|
16840
|
+
return b2 != null && b2 > params;
|
|
16829
16841
|
};
|
|
16830
16842
|
});
|
|
16831
16843
|
var $gte = numericalOperation(function(params) {
|
|
16832
|
-
return function(
|
|
16833
|
-
return
|
|
16844
|
+
return function(b2) {
|
|
16845
|
+
return b2 === params || b2 >= params;
|
|
16834
16846
|
};
|
|
16835
16847
|
});
|
|
16836
16848
|
var $mod = function(_a, owneryQuery, options) {
|
|
16837
16849
|
var mod = _a[0], equalsValue = _a[1];
|
|
16838
|
-
return new EqualsOperation(function(
|
|
16839
|
-
return comparable(
|
|
16850
|
+
return new EqualsOperation(function(b2) {
|
|
16851
|
+
return comparable(b2) % mod === equalsValue;
|
|
16840
16852
|
}, owneryQuery, options);
|
|
16841
16853
|
};
|
|
16842
16854
|
var $exists = function(params, owneryQuery, options, name) {
|
|
@@ -16869,14 +16881,14 @@ var typeAliases = {
|
|
|
16869
16881
|
}
|
|
16870
16882
|
};
|
|
16871
16883
|
var $type = function(clazz, owneryQuery, options) {
|
|
16872
|
-
return new EqualsOperation(function(
|
|
16884
|
+
return new EqualsOperation(function(b2) {
|
|
16873
16885
|
if (typeof clazz === "string") {
|
|
16874
16886
|
if (!typeAliases[clazz]) {
|
|
16875
16887
|
throw new Error("Type alias does not exist");
|
|
16876
16888
|
}
|
|
16877
|
-
return typeAliases[clazz](
|
|
16889
|
+
return typeAliases[clazz](b2);
|
|
16878
16890
|
}
|
|
16879
|
-
return
|
|
16891
|
+
return b2 != null ? b2 instanceof clazz || b2.constructor === clazz : false;
|
|
16880
16892
|
}, owneryQuery, options);
|
|
16881
16893
|
};
|
|
16882
16894
|
var $and = function(params, ownerQuery, options, name) {
|
|
@@ -16900,8 +16912,8 @@ var $where = function(params, ownerQuery, options) {
|
|
|
16900
16912
|
} else {
|
|
16901
16913
|
throw new Error('In CSP mode, sift does not support strings in "$where" condition');
|
|
16902
16914
|
}
|
|
16903
|
-
return new EqualsOperation(function(
|
|
16904
|
-
return test.bind(
|
|
16915
|
+
return new EqualsOperation(function(b2) {
|
|
16916
|
+
return test.bind(b2)(b2);
|
|
16905
16917
|
}, ownerQuery, options);
|
|
16906
16918
|
};
|
|
16907
16919
|
var defaultOperations = /* @__PURE__ */ Object.freeze({
|
|
@@ -16947,7 +16959,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
16947
16959
|
// package.json
|
|
16948
16960
|
var package_default = {
|
|
16949
16961
|
name: "@batijs/cli",
|
|
16950
|
-
version: "0.0.
|
|
16962
|
+
version: "0.0.423",
|
|
16951
16963
|
type: "module",
|
|
16952
16964
|
scripts: {
|
|
16953
16965
|
"check-types": "tsc --noEmit",
|
|
@@ -16963,19 +16975,19 @@ var package_default = {
|
|
|
16963
16975
|
devDependencies: {
|
|
16964
16976
|
"@batijs/build": "workspace:*",
|
|
16965
16977
|
"@batijs/compile": "workspace:*",
|
|
16966
|
-
"@inquirer/prompts": "^7.4.
|
|
16967
|
-
"@types/node": "^18.19.
|
|
16978
|
+
"@inquirer/prompts": "^7.4.1",
|
|
16979
|
+
"@types/node": "^18.19.86",
|
|
16968
16980
|
"@types/which": "^3.0.4",
|
|
16969
16981
|
citty: "^0.1.6",
|
|
16970
16982
|
colorette: "^2.0.20",
|
|
16971
|
-
esbuild: "^0.25.
|
|
16983
|
+
esbuild: "^0.25.2",
|
|
16972
16984
|
execa: "^9.5.2",
|
|
16973
16985
|
rimraf: "^6.0.1",
|
|
16974
16986
|
sift: "^17.1.3",
|
|
16975
16987
|
tsup: "^8.4.0",
|
|
16976
|
-
typescript: "^5.8.
|
|
16988
|
+
typescript: "^5.8.3",
|
|
16977
16989
|
"unplugin-purge-polyfills": "^0.0.7",
|
|
16978
|
-
vite: "^6.2.
|
|
16990
|
+
vite: "^6.2.5"
|
|
16979
16991
|
},
|
|
16980
16992
|
dependencies: {
|
|
16981
16993
|
"@batijs/core": "workspace:*",
|
|
@@ -17052,7 +17064,7 @@ Choose one of them, or simply remove selected Server`
|
|
|
17052
17064
|
var __filename = fileURLToPath(import.meta.url);
|
|
17053
17065
|
var __dirname = dirname(__filename);
|
|
17054
17066
|
var isWin2 = process.platform === "win32";
|
|
17055
|
-
var pm =
|
|
17067
|
+
var pm = _Ts();
|
|
17056
17068
|
function boilerplatesDir() {
|
|
17057
17069
|
if (existsSync2(join(__dirname, "boilerplates", "boilerplates.json"))) {
|
|
17058
17070
|
return join(__dirname, "boilerplates");
|
|
@@ -17075,7 +17087,7 @@ function toArg(flag, description) {
|
|
|
17075
17087
|
};
|
|
17076
17088
|
}
|
|
17077
17089
|
function findDescription(key) {
|
|
17078
|
-
const feat = features.find((
|
|
17090
|
+
const feat = features.find((f2) => f2.flag === key);
|
|
17079
17091
|
if (!feat) return;
|
|
17080
17092
|
if (feat.description) {
|
|
17081
17093
|
return feat.description;
|
|
@@ -17086,14 +17098,14 @@ function findDescription(key) {
|
|
|
17086
17098
|
}
|
|
17087
17099
|
}
|
|
17088
17100
|
function printOK(dist, flags2) {
|
|
17089
|
-
const arrow0 =
|
|
17090
|
-
const book0 =
|
|
17091
|
-
const list3 =
|
|
17092
|
-
const cmd3 =
|
|
17101
|
+
const arrow0 = aQr("\u2192", blueBright);
|
|
17102
|
+
const book0 = aQr("\u{1F4DA}", blueBright);
|
|
17103
|
+
const list3 = aQr("-", void 0, 3);
|
|
17104
|
+
const cmd3 = aQr("$", gray, 3);
|
|
17093
17105
|
console.log(bold(`${green("\u2713")} Project created at ${cyan(dist)} with:`));
|
|
17094
17106
|
console.log(list3(green("Vike")));
|
|
17095
17107
|
for (const key of flags2) {
|
|
17096
|
-
const feature = features.find((
|
|
17108
|
+
const feature = features.find((f2) => f2.flag === key);
|
|
17097
17109
|
if (!feature || !feature.label) continue;
|
|
17098
17110
|
console.log(list3(green(feature.label)));
|
|
17099
17111
|
}
|
|
@@ -17231,7 +17243,7 @@ function colorFirstLetter(choice) {
|
|
|
17231
17243
|
}
|
|
17232
17244
|
async function checkFlagsIncludesUiFramework(flags2) {
|
|
17233
17245
|
const uiFlags = features.filter((fs) => fs.category === "UI Framework").map((fs) => fs.flag);
|
|
17234
|
-
const uiFlagFound = flags2.some((
|
|
17246
|
+
const uiFlagFound = flags2.some((f2) => uiFlags.includes(f2));
|
|
17235
17247
|
if (!uiFlagFound) {
|
|
17236
17248
|
console.warn(
|
|
17237
17249
|
`${yellow("\u{1F6C8} You are scaffolding a barebone app.")} Go to ${underline("https://vike.dev/new")} to scaffold a full-fledged app with tools such as Tailwind, authentication, RPC, database, deployment, ...
|
|
@@ -17257,7 +17269,7 @@ async function checkFlagsIncludesUiFramework(flags2) {
|
|
|
17257
17269
|
}
|
|
17258
17270
|
function checkFlagsExist(flags2) {
|
|
17259
17271
|
const inValidOptions = flags2.reduce((acc, flag) => {
|
|
17260
|
-
if (!Object.prototype.hasOwnProperty.call(defaultDef, flag) && !features.some((
|
|
17272
|
+
if (!Object.prototype.hasOwnProperty.call(defaultDef, flag) && !features.some((f2) => f2.flag === flag)) {
|
|
17261
17273
|
acc.push(flag);
|
|
17262
17274
|
}
|
|
17263
17275
|
return acc;
|
|
@@ -17317,7 +17329,7 @@ async function retrieveHooks(hooks) {
|
|
|
17317
17329
|
}
|
|
17318
17330
|
function testFlags(flags2, bl) {
|
|
17319
17331
|
if (bl.config.if) {
|
|
17320
|
-
return createDefaultQueryTester(bl.config.if)(flags2.map((
|
|
17332
|
+
return createDefaultQueryTester(bl.config.if)(flags2.map((f2) => ({ flag: f2 })));
|
|
17321
17333
|
}
|
|
17322
17334
|
return true;
|
|
17323
17335
|
}
|
|
@@ -17367,7 +17379,7 @@ async function run() {
|
|
|
17367
17379
|
...new Set(
|
|
17368
17380
|
Object.entries(args).filter(([, val]) => val === true).map(([key]) => {
|
|
17369
17381
|
const flag = [key];
|
|
17370
|
-
const dependsOn = features.find((
|
|
17382
|
+
const dependsOn = features.find((f2) => f2.flag === key)?.dependsOn;
|
|
17371
17383
|
if (dependsOn) {
|
|
17372
17384
|
flag.push(...dependsOn);
|
|
17373
17385
|
}
|