@modern-js/create 2.0.2 → 2.2.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/index.js +1258 -1098
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __pow = Math.pow;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
7
25
|
var __commonJS = (cb, mod) => function __require() {
|
|
8
26
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
27
|
};
|
|
@@ -24,6 +42,26 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
42
|
mod
|
|
25
43
|
));
|
|
26
44
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
45
|
+
var __async = (__this, __arguments, generator) => {
|
|
46
|
+
return new Promise((resolve, reject) => {
|
|
47
|
+
var fulfilled = (value) => {
|
|
48
|
+
try {
|
|
49
|
+
step(generator.next(value));
|
|
50
|
+
} catch (e) {
|
|
51
|
+
reject(e);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var rejected = (value) => {
|
|
55
|
+
try {
|
|
56
|
+
step(generator.throw(value));
|
|
57
|
+
} catch (e) {
|
|
58
|
+
reject(e);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
62
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
63
|
+
});
|
|
64
|
+
};
|
|
27
65
|
|
|
28
66
|
// ../utils/compiled/import-lazy/index.js
|
|
29
67
|
var require_import_lazy = __commonJS({
|
|
@@ -465,20 +503,22 @@ var require_fs_extra = __commonJS({
|
|
|
465
503
|
const o = r2(17);
|
|
466
504
|
const c = r2(971);
|
|
467
505
|
const s = r2(95);
|
|
468
|
-
const a = n(
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
506
|
+
const a = n(function emptyDir(e3) {
|
|
507
|
+
return __async(this, null, function* () {
|
|
508
|
+
let t3;
|
|
509
|
+
try {
|
|
510
|
+
t3 = yield i.readdir(e3);
|
|
511
|
+
} catch (e4) {
|
|
512
|
+
return c.mkdirs(e3);
|
|
513
|
+
}
|
|
514
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
515
|
+
});
|
|
476
516
|
});
|
|
477
517
|
function emptyDirSync(e3) {
|
|
478
518
|
let t3;
|
|
479
519
|
try {
|
|
480
520
|
t3 = i.readdirSync(e3);
|
|
481
|
-
} catch {
|
|
521
|
+
} catch (e4) {
|
|
482
522
|
return c.mkdirsSync(e3);
|
|
483
523
|
}
|
|
484
524
|
t3.forEach((t4) => {
|
|
@@ -531,7 +571,7 @@ var require_fs_extra = __commonJS({
|
|
|
531
571
|
let t3;
|
|
532
572
|
try {
|
|
533
573
|
t3 = o.statSync(e3);
|
|
534
|
-
} catch {
|
|
574
|
+
} catch (e4) {
|
|
535
575
|
}
|
|
536
576
|
if (t3 && t3.isFile())
|
|
537
577
|
return;
|
|
@@ -598,7 +638,7 @@ var require_fs_extra = __commonJS({
|
|
|
598
638
|
let r3;
|
|
599
639
|
try {
|
|
600
640
|
r3 = o.lstatSync(t3);
|
|
601
|
-
} catch {
|
|
641
|
+
} catch (e4) {
|
|
602
642
|
}
|
|
603
643
|
try {
|
|
604
644
|
const t4 = o.lstatSync(e3);
|
|
@@ -693,7 +733,7 @@ var require_fs_extra = __commonJS({
|
|
|
693
733
|
return t3;
|
|
694
734
|
try {
|
|
695
735
|
r3 = n.lstatSync(e3);
|
|
696
|
-
} catch {
|
|
736
|
+
} catch (e4) {
|
|
697
737
|
return "file";
|
|
698
738
|
}
|
|
699
739
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
|
@@ -756,7 +796,7 @@ var require_fs_extra = __commonJS({
|
|
|
756
796
|
let n2;
|
|
757
797
|
try {
|
|
758
798
|
n2 = o.lstatSync(t3);
|
|
759
|
-
} catch {
|
|
799
|
+
} catch (e4) {
|
|
760
800
|
}
|
|
761
801
|
if (n2 && n2.isSymbolicLink()) {
|
|
762
802
|
const r4 = o.statSync(e3);
|
|
@@ -831,7 +871,7 @@ var require_fs_extra = __commonJS({
|
|
|
831
871
|
}
|
|
832
872
|
}, 81: (e2, t2, r2) => {
|
|
833
873
|
"use strict";
|
|
834
|
-
e2.exports = {
|
|
874
|
+
e2.exports = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, r2(812)), r2(2)), r2(708)), r2(726)), r2(779)), r2(971)), r2(511)), r2(701)), r2(725)), r2(95));
|
|
835
875
|
}, 779: (e2, t2, r2) => {
|
|
836
876
|
"use strict";
|
|
837
877
|
const n = r2(5).fromPromise;
|
|
@@ -862,9 +902,11 @@ var require_fs_extra = __commonJS({
|
|
|
862
902
|
"use strict";
|
|
863
903
|
const { stringify: n } = r2(208);
|
|
864
904
|
const { outputFile: i } = r2(701);
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
905
|
+
function outputJson(_0, _1) {
|
|
906
|
+
return __async(this, arguments, function* (e3, t3, r3 = {}) {
|
|
907
|
+
const o = n(t3, r3);
|
|
908
|
+
yield i(e3, o, r3);
|
|
909
|
+
});
|
|
868
910
|
}
|
|
869
911
|
e2.exports = outputJson;
|
|
870
912
|
}, 971: (e2, t2, r2) => {
|
|
@@ -881,12 +923,12 @@ var require_fs_extra = __commonJS({
|
|
|
881
923
|
const t3 = { mode: 511 };
|
|
882
924
|
if (typeof e3 === "number")
|
|
883
925
|
return e3;
|
|
884
|
-
return {
|
|
926
|
+
return __spreadValues(__spreadValues({}, t3), e3).mode;
|
|
885
927
|
};
|
|
886
|
-
e2.exports.makeDir =
|
|
928
|
+
e2.exports.makeDir = (e3, t3) => __async(exports, null, function* () {
|
|
887
929
|
i(e3);
|
|
888
930
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
|
889
|
-
};
|
|
931
|
+
});
|
|
890
932
|
e2.exports.makeDirSync = (e3, t3) => {
|
|
891
933
|
i(e3);
|
|
892
934
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
|
@@ -1304,7 +1346,7 @@ var require_fs_extra = __commonJS({
|
|
|
1304
1346
|
try {
|
|
1305
1347
|
const r4 = t3.rmdirSync(e3, t3);
|
|
1306
1348
|
return r4;
|
|
1307
|
-
} catch {
|
|
1349
|
+
} catch (e4) {
|
|
1308
1350
|
}
|
|
1309
1351
|
} while (Date.now() - r3 < 500);
|
|
1310
1352
|
} else {
|
|
@@ -2203,26 +2245,28 @@ var require_fs_extra = __commonJS({
|
|
|
2203
2245
|
}
|
|
2204
2246
|
const i = r2(5);
|
|
2205
2247
|
const { stringify: o, stripBom: c } = r2(208);
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2248
|
+
function _readFile(_0) {
|
|
2249
|
+
return __async(this, arguments, function* (e3, t3 = {}) {
|
|
2250
|
+
if (typeof t3 === "string") {
|
|
2251
|
+
t3 = { encoding: t3 };
|
|
2252
|
+
}
|
|
2253
|
+
const r3 = t3.fs || n;
|
|
2254
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
|
2255
|
+
let s2 = yield i.fromCallback(r3.readFile)(e3, t3);
|
|
2256
|
+
s2 = c(s2);
|
|
2257
|
+
let a2;
|
|
2258
|
+
try {
|
|
2259
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
|
2260
|
+
} catch (t4) {
|
|
2261
|
+
if (o2) {
|
|
2262
|
+
t4.message = `${e3}: ${t4.message}`;
|
|
2263
|
+
throw t4;
|
|
2264
|
+
} else {
|
|
2265
|
+
return null;
|
|
2266
|
+
}
|
|
2223
2267
|
}
|
|
2224
|
-
|
|
2225
|
-
|
|
2268
|
+
return a2;
|
|
2269
|
+
});
|
|
2226
2270
|
}
|
|
2227
2271
|
const s = i.fromPromise(_readFile);
|
|
2228
2272
|
function readFileSync(e3, t3 = {}) {
|
|
@@ -2244,10 +2288,12 @@ var require_fs_extra = __commonJS({
|
|
|
2244
2288
|
}
|
|
2245
2289
|
}
|
|
2246
2290
|
}
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2291
|
+
function _writeFile(_0, _1) {
|
|
2292
|
+
return __async(this, arguments, function* (e3, t3, r3 = {}) {
|
|
2293
|
+
const c2 = r3.fs || n;
|
|
2294
|
+
const s2 = o(t3, r3);
|
|
2295
|
+
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
2296
|
+
});
|
|
2251
2297
|
}
|
|
2252
2298
|
const a = i.fromPromise(_writeFile);
|
|
2253
2299
|
function writeFileSync(e3, t3, r3 = {}) {
|
|
@@ -2475,11 +2521,11 @@ var require_chalk = __commonJS({
|
|
|
2475
2521
|
} };
|
|
2476
2522
|
}
|
|
2477
2523
|
const f = Object.defineProperties(() => {
|
|
2478
|
-
}, {
|
|
2524
|
+
}, __spreadProps(__spreadValues({}, u), { level: { enumerable: true, get() {
|
|
2479
2525
|
return this._generator.level;
|
|
2480
2526
|
}, set(e3) {
|
|
2481
2527
|
this._generator.level = e3;
|
|
2482
|
-
} } });
|
|
2528
|
+
} } }));
|
|
2483
2529
|
const createStyler = (e3, t3, n3) => {
|
|
2484
2530
|
let r2;
|
|
2485
2531
|
let s2;
|
|
@@ -2790,7 +2836,7 @@ var require_chalk = __commonJS({
|
|
|
2790
2836
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
|
2791
2837
|
};
|
|
2792
2838
|
function comparativeDistance(e3, t3) {
|
|
2793
|
-
return (e3[0] - t3[0]
|
|
2839
|
+
return __pow(e3[0] - t3[0], 2) + __pow(e3[1] - t3[1], 2) + __pow(e3[2] - t3[2], 2);
|
|
2794
2840
|
}
|
|
2795
2841
|
o.rgb.keyword = function(e3) {
|
|
2796
2842
|
const t3 = s[e3];
|
|
@@ -2816,9 +2862,9 @@ var require_chalk = __commonJS({
|
|
|
2816
2862
|
let t3 = e3[0] / 255;
|
|
2817
2863
|
let n3 = e3[1] / 255;
|
|
2818
2864
|
let r2 = e3[2] / 255;
|
|
2819
|
-
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055
|
|
2820
|
-
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055
|
|
2821
|
-
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055
|
|
2865
|
+
t3 = t3 > 0.04045 ? __pow((t3 + 0.055) / 1.055, 2.4) : t3 / 12.92;
|
|
2866
|
+
n3 = n3 > 0.04045 ? __pow((n3 + 0.055) / 1.055, 2.4) : n3 / 12.92;
|
|
2867
|
+
r2 = r2 > 0.04045 ? __pow((r2 + 0.055) / 1.055, 2.4) : r2 / 12.92;
|
|
2822
2868
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
|
2823
2869
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
|
2824
2870
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
|
@@ -2832,9 +2878,9 @@ var require_chalk = __commonJS({
|
|
|
2832
2878
|
n3 /= 95.047;
|
|
2833
2879
|
r2 /= 100;
|
|
2834
2880
|
s2 /= 108.883;
|
|
2835
|
-
n3 = n3 > 8856e-6 ? n3
|
|
2836
|
-
r2 = r2 > 8856e-6 ? r2
|
|
2837
|
-
s2 = s2 > 8856e-6 ? s2
|
|
2881
|
+
n3 = n3 > 8856e-6 ? __pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116;
|
|
2882
|
+
r2 = r2 > 8856e-6 ? __pow(r2, 1 / 3) : 7.787 * r2 + 16 / 116;
|
|
2883
|
+
s2 = s2 > 8856e-6 ? __pow(s2, 1 / 3) : 7.787 * s2 + 16 / 116;
|
|
2838
2884
|
const l = 116 * r2 - 16;
|
|
2839
2885
|
const c = 500 * (n3 - r2);
|
|
2840
2886
|
const i = 200 * (r2 - s2);
|
|
@@ -3008,9 +3054,9 @@ var require_chalk = __commonJS({
|
|
|
3008
3054
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
|
3009
3055
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
|
3010
3056
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
|
3011
|
-
s2 = s2 > 31308e-7 ? 1.055 * s2
|
|
3012
|
-
o2 = o2 > 31308e-7 ? 1.055 * o2
|
|
3013
|
-
l = l > 31308e-7 ? 1.055 * l
|
|
3057
|
+
s2 = s2 > 31308e-7 ? 1.055 * __pow(s2, 1 / 2.4) - 0.055 : s2 * 12.92;
|
|
3058
|
+
o2 = o2 > 31308e-7 ? 1.055 * __pow(o2, 1 / 2.4) - 0.055 : o2 * 12.92;
|
|
3059
|
+
l = l > 31308e-7 ? 1.055 * __pow(l, 1 / 2.4) - 0.055 : l * 12.92;
|
|
3014
3060
|
s2 = Math.min(Math.max(0, s2), 1);
|
|
3015
3061
|
o2 = Math.min(Math.max(0, o2), 1);
|
|
3016
3062
|
l = Math.min(Math.max(0, l), 1);
|
|
@@ -3023,9 +3069,9 @@ var require_chalk = __commonJS({
|
|
|
3023
3069
|
t3 /= 95.047;
|
|
3024
3070
|
n3 /= 100;
|
|
3025
3071
|
r2 /= 108.883;
|
|
3026
|
-
t3 = t3 > 8856e-6 ? t3
|
|
3027
|
-
n3 = n3 > 8856e-6 ? n3
|
|
3028
|
-
r2 = r2 > 8856e-6 ? r2
|
|
3072
|
+
t3 = t3 > 8856e-6 ? __pow(t3, 1 / 3) : 7.787 * t3 + 16 / 116;
|
|
3073
|
+
n3 = n3 > 8856e-6 ? __pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116;
|
|
3074
|
+
r2 = r2 > 8856e-6 ? __pow(r2, 1 / 3) : 7.787 * r2 + 16 / 116;
|
|
3029
3075
|
const s2 = 116 * n3 - 16;
|
|
3030
3076
|
const o2 = 500 * (t3 - n3);
|
|
3031
3077
|
const l = 200 * (n3 - r2);
|
|
@@ -3041,9 +3087,9 @@ var require_chalk = __commonJS({
|
|
|
3041
3087
|
o2 = (t3 + 16) / 116;
|
|
3042
3088
|
s2 = n3 / 500 + o2;
|
|
3043
3089
|
l = o2 - r2 / 200;
|
|
3044
|
-
const c = o2
|
|
3045
|
-
const i = s2
|
|
3046
|
-
const a = l
|
|
3090
|
+
const c = __pow(o2, 3);
|
|
3091
|
+
const i = __pow(s2, 3);
|
|
3092
|
+
const a = __pow(l, 3);
|
|
3047
3093
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
|
3048
3094
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
|
3049
3095
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
|
@@ -4299,7 +4345,7 @@ var require_ora = __commonJS({
|
|
|
4299
4345
|
if (typeof e3 === "string") {
|
|
4300
4346
|
e3 = { text: e3 };
|
|
4301
4347
|
}
|
|
4302
|
-
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true,
|
|
4348
|
+
this.options = __spreadValues({ text: "", color: "cyan", stream: process.stderr, discardStdin: true }, e3);
|
|
4303
4349
|
this.spinner = this.options.spinner;
|
|
4304
4350
|
this.color = this.options.color;
|
|
4305
4351
|
this.hideCursor = this.options.hideCursor !== false;
|
|
@@ -4516,14 +4562,14 @@ var require_ora = __commonJS({
|
|
|
4516
4562
|
}
|
|
4517
4563
|
const r3 = new Ora(t3);
|
|
4518
4564
|
r3.start();
|
|
4519
|
-
(
|
|
4565
|
+
(() => __async(exports, null, function* () {
|
|
4520
4566
|
try {
|
|
4521
|
-
|
|
4567
|
+
yield e3;
|
|
4522
4568
|
r3.succeed();
|
|
4523
|
-
} catch {
|
|
4569
|
+
} catch (e4) {
|
|
4524
4570
|
r3.fail();
|
|
4525
4571
|
}
|
|
4526
|
-
})();
|
|
4572
|
+
}))();
|
|
4527
4573
|
return r3;
|
|
4528
4574
|
};
|
|
4529
4575
|
}, 959: (e2) => {
|
|
@@ -12943,7 +12989,7 @@ var require_execa = __commonJS({
|
|
|
12943
12989
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
|
12944
12990
|
const T = 1e3 * 1e3 * 100;
|
|
12945
12991
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
|
12946
|
-
const s2 = t3 ? {
|
|
12992
|
+
const s2 = t3 ? __spreadValues(__spreadValues({}, process.env), e3) : e3;
|
|
12947
12993
|
if (n3) {
|
|
12948
12994
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
|
12949
12995
|
}
|
|
@@ -12954,7 +13000,7 @@ var require_execa = __commonJS({
|
|
|
12954
13000
|
e3 = o2.command;
|
|
12955
13001
|
t3 = o2.args;
|
|
12956
13002
|
n3 = o2.options;
|
|
12957
|
-
n3 = { maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true,
|
|
13003
|
+
n3 = __spreadValues({ maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true }, n3);
|
|
12958
13004
|
n3.env = getEnv(n3);
|
|
12959
13005
|
n3.stdio = u(n3);
|
|
12960
13006
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
|
@@ -12990,8 +13036,8 @@ var require_execa = __commonJS({
|
|
|
12990
13036
|
const T2 = { isCanceled: false };
|
|
12991
13037
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
|
12992
13038
|
a2.cancel = f.bind(null, a2, T2);
|
|
12993
|
-
const handlePromise =
|
|
12994
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
|
13039
|
+
const handlePromise = () => __async(exports, null, function* () {
|
|
13040
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = yield h(a2, r2.options, E2);
|
|
12995
13041
|
const f2 = handleOutput(r2.options, c2);
|
|
12996
13042
|
const p2 = handleOutput(r2.options, u3);
|
|
12997
13043
|
const m2 = handleOutput(r2.options, l2);
|
|
@@ -13003,7 +13049,7 @@ var require_execa = __commonJS({
|
|
|
13003
13049
|
throw c3;
|
|
13004
13050
|
}
|
|
13005
13051
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
13006
|
-
};
|
|
13052
|
+
});
|
|
13007
13053
|
const C = c(handlePromise);
|
|
13008
13054
|
x(a2, r2.options.input);
|
|
13009
13055
|
a2.all = y(a2, r2.options);
|
|
@@ -13048,7 +13094,7 @@ var require_execa = __commonJS({
|
|
|
13048
13094
|
const r2 = u.node(n3);
|
|
13049
13095
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
|
13050
13096
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
|
13051
|
-
return execa(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], {
|
|
13097
|
+
return execa(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], __spreadProps(__spreadValues({}, n3), { stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false }));
|
|
13052
13098
|
};
|
|
13053
13099
|
}, 192: (e2) => {
|
|
13054
13100
|
"use strict";
|
|
@@ -13204,7 +13250,7 @@ ${o.message}` : x;
|
|
|
13204
13250
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
|
13205
13251
|
}
|
|
13206
13252
|
};
|
|
13207
|
-
const setExitHandler =
|
|
13253
|
+
const setExitHandler = (_0, _1, _2) => __async(exports, [_0, _1, _2], function* (e3, { cleanup: t3, detached: n3 }, r2) {
|
|
13208
13254
|
if (!t3 || n3) {
|
|
13209
13255
|
return r2;
|
|
13210
13256
|
}
|
|
@@ -13214,17 +13260,17 @@ ${o.message}` : x;
|
|
|
13214
13260
|
return r2.finally(() => {
|
|
13215
13261
|
s2();
|
|
13216
13262
|
});
|
|
13217
|
-
};
|
|
13263
|
+
});
|
|
13218
13264
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
|
13219
13265
|
}, 210: (e2) => {
|
|
13220
13266
|
"use strict";
|
|
13221
|
-
const t2 = (
|
|
13222
|
-
})().constructor.prototype;
|
|
13267
|
+
const t2 = (() => __async(exports, null, function* () {
|
|
13268
|
+
}))().constructor.prototype;
|
|
13223
13269
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
|
13224
13270
|
const mergePromise = (e3, t3) => {
|
|
13225
13271
|
for (const [r, o] of n2) {
|
|
13226
13272
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
|
13227
|
-
Reflect.defineProperty(e3, r, {
|
|
13273
|
+
Reflect.defineProperty(e3, r, __spreadProps(__spreadValues({}, o), { value: n3 }));
|
|
13228
13274
|
}
|
|
13229
13275
|
return e3;
|
|
13230
13276
|
};
|
|
@@ -13308,17 +13354,17 @@ ${o.message}` : x;
|
|
|
13308
13354
|
}
|
|
13309
13355
|
return n3;
|
|
13310
13356
|
};
|
|
13311
|
-
const getBufferedData =
|
|
13357
|
+
const getBufferedData = (e3, t3) => __async(exports, null, function* () {
|
|
13312
13358
|
if (!e3) {
|
|
13313
13359
|
return;
|
|
13314
13360
|
}
|
|
13315
13361
|
e3.destroy();
|
|
13316
13362
|
try {
|
|
13317
|
-
return
|
|
13363
|
+
return yield t3;
|
|
13318
13364
|
} catch (e4) {
|
|
13319
13365
|
return e4.bufferedData;
|
|
13320
13366
|
}
|
|
13321
|
-
};
|
|
13367
|
+
});
|
|
13322
13368
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
|
13323
13369
|
if (!e3 || !n3) {
|
|
13324
13370
|
return;
|
|
@@ -13328,16 +13374,16 @@ ${o.message}` : x;
|
|
|
13328
13374
|
}
|
|
13329
13375
|
return o.buffer(e3, { maxBuffer: r2 });
|
|
13330
13376
|
};
|
|
13331
|
-
const getSpawnedResult =
|
|
13377
|
+
const getSpawnedResult = (_0, _1, _2) => __async(exports, [_0, _1, _2], function* ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) {
|
|
13332
13378
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
13333
13379
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
13334
13380
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
|
13335
13381
|
try {
|
|
13336
|
-
return
|
|
13382
|
+
return yield Promise.all([i, a, c, d]);
|
|
13337
13383
|
} catch (r3) {
|
|
13338
13384
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
|
13339
13385
|
}
|
|
13340
|
-
};
|
|
13386
|
+
});
|
|
13341
13387
|
const validateInputSync = ({ input: e3 }) => {
|
|
13342
13388
|
if (r(e3)) {
|
|
13343
13389
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
@@ -13348,7 +13394,7 @@ ${o.message}` : x;
|
|
|
13348
13394
|
"use strict";
|
|
13349
13395
|
const { PassThrough: r } = n2(781);
|
|
13350
13396
|
e2.exports = (e3) => {
|
|
13351
|
-
e3 = {
|
|
13397
|
+
e3 = __spreadValues({}, e3);
|
|
13352
13398
|
const { array: t3 } = e3;
|
|
13353
13399
|
let { encoding: n3 } = e3;
|
|
13354
13400
|
const o = n3 === "buffer";
|
|
@@ -13397,39 +13443,41 @@ ${o.message}` : x;
|
|
|
13397
13443
|
this.name = "MaxBufferError";
|
|
13398
13444
|
}
|
|
13399
13445
|
}
|
|
13400
|
-
|
|
13401
|
-
|
|
13402
|
-
|
|
13403
|
-
|
|
13404
|
-
|
|
13405
|
-
|
|
13406
|
-
|
|
13407
|
-
|
|
13408
|
-
|
|
13409
|
-
|
|
13410
|
-
e4
|
|
13411
|
-
|
|
13412
|
-
|
|
13413
|
-
|
|
13414
|
-
|
|
13415
|
-
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
13421
|
-
|
|
13422
|
-
|
|
13423
|
-
|
|
13424
|
-
|
|
13425
|
-
|
|
13446
|
+
function getStream(e3, t3) {
|
|
13447
|
+
return __async(this, null, function* () {
|
|
13448
|
+
if (!e3) {
|
|
13449
|
+
throw new Error("Expected a stream");
|
|
13450
|
+
}
|
|
13451
|
+
t3 = __spreadValues({ maxBuffer: Infinity }, t3);
|
|
13452
|
+
const { maxBuffer: n3 } = t3;
|
|
13453
|
+
const o2 = i(t3);
|
|
13454
|
+
yield new Promise((t4, s2) => {
|
|
13455
|
+
const rejectPromise = (e4) => {
|
|
13456
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
|
13457
|
+
e4.bufferedData = o2.getBufferedValue();
|
|
13458
|
+
}
|
|
13459
|
+
s2(e4);
|
|
13460
|
+
};
|
|
13461
|
+
(() => __async(this, null, function* () {
|
|
13462
|
+
try {
|
|
13463
|
+
yield a(e3, o2);
|
|
13464
|
+
t4();
|
|
13465
|
+
} catch (e4) {
|
|
13466
|
+
rejectPromise(e4);
|
|
13467
|
+
}
|
|
13468
|
+
}))();
|
|
13469
|
+
o2.on("data", () => {
|
|
13470
|
+
if (o2.getBufferedLength() > n3) {
|
|
13471
|
+
rejectPromise(new MaxBufferError());
|
|
13472
|
+
}
|
|
13473
|
+
});
|
|
13426
13474
|
});
|
|
13475
|
+
return o2.getBufferedValue();
|
|
13427
13476
|
});
|
|
13428
|
-
return o2.getBufferedValue();
|
|
13429
13477
|
}
|
|
13430
13478
|
e2.exports = getStream;
|
|
13431
|
-
e2.exports.buffer = (e3, t3) => getStream(e3, {
|
|
13432
|
-
e2.exports.array = (e3, t3) => getStream(e3, {
|
|
13479
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, __spreadProps(__spreadValues({}, t3), { encoding: "buffer" }));
|
|
13480
|
+
e2.exports.array = (e3, t3) => getStream(e3, __spreadProps(__spreadValues({}, t3), { array: true }));
|
|
13433
13481
|
e2.exports.MaxBufferError = MaxBufferError;
|
|
13434
13482
|
}, 221: (e2, t2) => {
|
|
13435
13483
|
"use strict";
|
|
@@ -13449,7 +13497,7 @@ ${o.message}` : x;
|
|
|
13449
13497
|
return e3.reduce(getSignalByName, {});
|
|
13450
13498
|
};
|
|
13451
13499
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
|
13452
|
-
return {
|
|
13500
|
+
return __spreadProps(__spreadValues({}, e3), { [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } });
|
|
13453
13501
|
};
|
|
13454
13502
|
const i = getSignalsByName();
|
|
13455
13503
|
t2.signalsByName = i;
|
|
@@ -13681,7 +13729,7 @@ ${o.message}` : x;
|
|
|
13681
13729
|
const r = n2(17);
|
|
13682
13730
|
const o = n2(460);
|
|
13683
13731
|
const npmRunPath = (e3) => {
|
|
13684
|
-
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath,
|
|
13732
|
+
e3 = __spreadValues({ cwd: process.cwd(), path: process.env[o()], execPath: process.execPath }, e3);
|
|
13685
13733
|
let t3;
|
|
13686
13734
|
let n3 = r.resolve(e3.cwd);
|
|
13687
13735
|
const s = [];
|
|
@@ -13697,8 +13745,8 @@ ${o.message}` : x;
|
|
|
13697
13745
|
e2.exports = npmRunPath;
|
|
13698
13746
|
e2.exports["default"] = npmRunPath;
|
|
13699
13747
|
e2.exports.env = (t3) => {
|
|
13700
|
-
t3 = { env: process.env,
|
|
13701
|
-
const n3 = {
|
|
13748
|
+
t3 = __spreadValues({ env: process.env }, t3);
|
|
13749
|
+
const n3 = __spreadValues({}, t3.env);
|
|
13702
13750
|
const r2 = o({ env: n3 });
|
|
13703
13751
|
t3.path = n3[r2];
|
|
13704
13752
|
n3[r2] = e2.exports(t3);
|
|
@@ -14067,20 +14115,20 @@ ${o.message}` : x;
|
|
|
14067
14115
|
var require_json5 = __commonJS({
|
|
14068
14116
|
"../utils/compiled/json5/index.js"(exports, module2) {
|
|
14069
14117
|
(() => {
|
|
14070
|
-
var u = {
|
|
14071
|
-
const r = e2(
|
|
14072
|
-
const F = e2(
|
|
14118
|
+
var u = { 361: (u2, D2, e2) => {
|
|
14119
|
+
const r = e2(108);
|
|
14120
|
+
const F = e2(440);
|
|
14073
14121
|
const C = { parse: r, stringify: F };
|
|
14074
14122
|
u2.exports = C;
|
|
14075
|
-
},
|
|
14076
|
-
const r = e2(
|
|
14123
|
+
}, 108: (u2, D2, e2) => {
|
|
14124
|
+
const r = e2(812);
|
|
14077
14125
|
let F;
|
|
14078
14126
|
let C;
|
|
14079
14127
|
let t;
|
|
14080
14128
|
let A;
|
|
14081
14129
|
let n;
|
|
14082
|
-
let E;
|
|
14083
14130
|
let a;
|
|
14131
|
+
let E;
|
|
14084
14132
|
let i;
|
|
14085
14133
|
let B;
|
|
14086
14134
|
u2.exports = function parse(u3, D3) {
|
|
@@ -14089,14 +14137,14 @@ var require_json5 = __commonJS({
|
|
|
14089
14137
|
t = [];
|
|
14090
14138
|
A = 0;
|
|
14091
14139
|
n = 1;
|
|
14092
|
-
|
|
14093
|
-
|
|
14140
|
+
a = 0;
|
|
14141
|
+
E = void 0;
|
|
14094
14142
|
i = void 0;
|
|
14095
14143
|
B = void 0;
|
|
14096
14144
|
do {
|
|
14097
|
-
|
|
14145
|
+
E = lex();
|
|
14098
14146
|
p[C]();
|
|
14099
|
-
} while (
|
|
14147
|
+
} while (E.type !== "eof");
|
|
14100
14148
|
if (typeof D3 === "function") {
|
|
14101
14149
|
return internalize({ "": B }, "", D3);
|
|
14102
14150
|
}
|
|
@@ -14105,12 +14153,24 @@ var require_json5 = __commonJS({
|
|
|
14105
14153
|
function internalize(u3, D3, e3) {
|
|
14106
14154
|
const r2 = u3[D3];
|
|
14107
14155
|
if (r2 != null && typeof r2 === "object") {
|
|
14108
|
-
|
|
14109
|
-
|
|
14110
|
-
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
|
|
14156
|
+
if (Array.isArray(r2)) {
|
|
14157
|
+
for (let u4 = 0; u4 < r2.length; u4++) {
|
|
14158
|
+
const D4 = String(u4);
|
|
14159
|
+
const F2 = internalize(r2, D4, e3);
|
|
14160
|
+
if (F2 === void 0) {
|
|
14161
|
+
delete r2[D4];
|
|
14162
|
+
} else {
|
|
14163
|
+
Object.defineProperty(r2, D4, { value: F2, writable: true, enumerable: true, configurable: true });
|
|
14164
|
+
}
|
|
14165
|
+
}
|
|
14166
|
+
} else {
|
|
14167
|
+
for (const u4 in r2) {
|
|
14168
|
+
const D4 = internalize(r2, u4, e3);
|
|
14169
|
+
if (D4 === void 0) {
|
|
14170
|
+
delete r2[u4];
|
|
14171
|
+
} else {
|
|
14172
|
+
Object.defineProperty(r2, u4, { value: D4, writable: true, enumerable: true, configurable: true });
|
|
14173
|
+
}
|
|
14114
14174
|
}
|
|
14115
14175
|
}
|
|
14116
14176
|
}
|
|
@@ -14119,15 +14179,15 @@ var require_json5 = __commonJS({
|
|
|
14119
14179
|
let s;
|
|
14120
14180
|
let c;
|
|
14121
14181
|
let o;
|
|
14122
|
-
let d;
|
|
14123
14182
|
let l;
|
|
14183
|
+
let d;
|
|
14124
14184
|
function lex() {
|
|
14125
14185
|
s = "default";
|
|
14126
14186
|
c = "";
|
|
14127
14187
|
o = false;
|
|
14128
|
-
|
|
14188
|
+
l = 1;
|
|
14129
14189
|
for (; ; ) {
|
|
14130
|
-
|
|
14190
|
+
d = peek();
|
|
14131
14191
|
const u3 = f[s]();
|
|
14132
14192
|
if (u3) {
|
|
14133
14193
|
return u3;
|
|
@@ -14143,11 +14203,11 @@ var require_json5 = __commonJS({
|
|
|
14143
14203
|
const u3 = peek();
|
|
14144
14204
|
if (u3 === "\n") {
|
|
14145
14205
|
n++;
|
|
14146
|
-
|
|
14206
|
+
a = 0;
|
|
14147
14207
|
} else if (u3) {
|
|
14148
|
-
|
|
14208
|
+
a += u3.length;
|
|
14149
14209
|
} else {
|
|
14150
|
-
|
|
14210
|
+
a++;
|
|
14151
14211
|
}
|
|
14152
14212
|
if (u3) {
|
|
14153
14213
|
A += u3.length;
|
|
@@ -14155,7 +14215,7 @@ var require_json5 = __commonJS({
|
|
|
14155
14215
|
return u3;
|
|
14156
14216
|
}
|
|
14157
14217
|
const f = { default() {
|
|
14158
|
-
switch (
|
|
14218
|
+
switch (d) {
|
|
14159
14219
|
case " ":
|
|
14160
14220
|
case "\v":
|
|
14161
14221
|
case "\f":
|
|
@@ -14176,13 +14236,13 @@ var require_json5 = __commonJS({
|
|
|
14176
14236
|
read();
|
|
14177
14237
|
return newToken("eof");
|
|
14178
14238
|
}
|
|
14179
|
-
if (r.isSpaceSeparator(
|
|
14239
|
+
if (r.isSpaceSeparator(d)) {
|
|
14180
14240
|
read();
|
|
14181
14241
|
return;
|
|
14182
14242
|
}
|
|
14183
14243
|
return f[C]();
|
|
14184
14244
|
}, comment() {
|
|
14185
|
-
switch (
|
|
14245
|
+
switch (d) {
|
|
14186
14246
|
case "*":
|
|
14187
14247
|
read();
|
|
14188
14248
|
s = "multiLineComment";
|
|
@@ -14194,7 +14254,7 @@ var require_json5 = __commonJS({
|
|
|
14194
14254
|
}
|
|
14195
14255
|
throw invalidChar(read());
|
|
14196
14256
|
}, multiLineComment() {
|
|
14197
|
-
switch (
|
|
14257
|
+
switch (d) {
|
|
14198
14258
|
case "*":
|
|
14199
14259
|
read();
|
|
14200
14260
|
s = "multiLineCommentAsterisk";
|
|
@@ -14204,7 +14264,7 @@ var require_json5 = __commonJS({
|
|
|
14204
14264
|
}
|
|
14205
14265
|
read();
|
|
14206
14266
|
}, multiLineCommentAsterisk() {
|
|
14207
|
-
switch (
|
|
14267
|
+
switch (d) {
|
|
14208
14268
|
case "*":
|
|
14209
14269
|
read();
|
|
14210
14270
|
return;
|
|
@@ -14218,7 +14278,7 @@ var require_json5 = __commonJS({
|
|
|
14218
14278
|
read();
|
|
14219
14279
|
s = "multiLineComment";
|
|
14220
14280
|
}, singleLineComment() {
|
|
14221
|
-
switch (
|
|
14281
|
+
switch (d) {
|
|
14222
14282
|
case "\n":
|
|
14223
14283
|
case "\r":
|
|
14224
14284
|
case "\u2028":
|
|
@@ -14232,7 +14292,7 @@ var require_json5 = __commonJS({
|
|
|
14232
14292
|
}
|
|
14233
14293
|
read();
|
|
14234
14294
|
}, value() {
|
|
14235
|
-
switch (
|
|
14295
|
+
switch (d) {
|
|
14236
14296
|
case "{":
|
|
14237
14297
|
case "[":
|
|
14238
14298
|
return newToken("punctuator", read());
|
|
@@ -14251,7 +14311,7 @@ var require_json5 = __commonJS({
|
|
|
14251
14311
|
case "-":
|
|
14252
14312
|
case "+":
|
|
14253
14313
|
if (read() === "-") {
|
|
14254
|
-
|
|
14314
|
+
l = -1;
|
|
14255
14315
|
}
|
|
14256
14316
|
s = "sign";
|
|
14257
14317
|
return;
|
|
@@ -14292,7 +14352,7 @@ var require_json5 = __commonJS({
|
|
|
14292
14352
|
}
|
|
14293
14353
|
throw invalidChar(read());
|
|
14294
14354
|
}, identifierNameStartEscape() {
|
|
14295
|
-
if (
|
|
14355
|
+
if (d !== "u") {
|
|
14296
14356
|
throw invalidChar(read());
|
|
14297
14357
|
}
|
|
14298
14358
|
read();
|
|
@@ -14310,7 +14370,7 @@ var require_json5 = __commonJS({
|
|
|
14310
14370
|
c += u3;
|
|
14311
14371
|
s = "identifierName";
|
|
14312
14372
|
}, identifierName() {
|
|
14313
|
-
switch (
|
|
14373
|
+
switch (d) {
|
|
14314
14374
|
case "$":
|
|
14315
14375
|
case "_":
|
|
14316
14376
|
case "":
|
|
@@ -14322,13 +14382,13 @@ var require_json5 = __commonJS({
|
|
|
14322
14382
|
s = "identifierNameEscape";
|
|
14323
14383
|
return;
|
|
14324
14384
|
}
|
|
14325
|
-
if (r.isIdContinueChar(
|
|
14385
|
+
if (r.isIdContinueChar(d)) {
|
|
14326
14386
|
c += read();
|
|
14327
14387
|
return;
|
|
14328
14388
|
}
|
|
14329
14389
|
return newToken("identifier", c);
|
|
14330
14390
|
}, identifierNameEscape() {
|
|
14331
|
-
if (
|
|
14391
|
+
if (d !== "u") {
|
|
14332
14392
|
throw invalidChar(read());
|
|
14333
14393
|
}
|
|
14334
14394
|
read();
|
|
@@ -14348,7 +14408,7 @@ var require_json5 = __commonJS({
|
|
|
14348
14408
|
c += u3;
|
|
14349
14409
|
s = "identifierName";
|
|
14350
14410
|
}, sign() {
|
|
14351
|
-
switch (
|
|
14411
|
+
switch (d) {
|
|
14352
14412
|
case ".":
|
|
14353
14413
|
c = read();
|
|
14354
14414
|
s = "decimalPointLeading";
|
|
@@ -14372,7 +14432,7 @@ var require_json5 = __commonJS({
|
|
|
14372
14432
|
case "I":
|
|
14373
14433
|
read();
|
|
14374
14434
|
literal("nfinity");
|
|
14375
|
-
return newToken("numeric",
|
|
14435
|
+
return newToken("numeric", l * Infinity);
|
|
14376
14436
|
case "N":
|
|
14377
14437
|
read();
|
|
14378
14438
|
literal("aN");
|
|
@@ -14380,7 +14440,7 @@ var require_json5 = __commonJS({
|
|
|
14380
14440
|
}
|
|
14381
14441
|
throw invalidChar(read());
|
|
14382
14442
|
}, zero() {
|
|
14383
|
-
switch (
|
|
14443
|
+
switch (d) {
|
|
14384
14444
|
case ".":
|
|
14385
14445
|
c += read();
|
|
14386
14446
|
s = "decimalPoint";
|
|
@@ -14396,9 +14456,9 @@ var require_json5 = __commonJS({
|
|
|
14396
14456
|
s = "hexadecimal";
|
|
14397
14457
|
return;
|
|
14398
14458
|
}
|
|
14399
|
-
return newToken("numeric",
|
|
14459
|
+
return newToken("numeric", l * 0);
|
|
14400
14460
|
}, decimalInteger() {
|
|
14401
|
-
switch (
|
|
14461
|
+
switch (d) {
|
|
14402
14462
|
case ".":
|
|
14403
14463
|
c += read();
|
|
14404
14464
|
s = "decimalPoint";
|
|
@@ -14409,87 +14469,87 @@ var require_json5 = __commonJS({
|
|
|
14409
14469
|
s = "decimalExponent";
|
|
14410
14470
|
return;
|
|
14411
14471
|
}
|
|
14412
|
-
if (r.isDigit(
|
|
14472
|
+
if (r.isDigit(d)) {
|
|
14413
14473
|
c += read();
|
|
14414
14474
|
return;
|
|
14415
14475
|
}
|
|
14416
|
-
return newToken("numeric",
|
|
14476
|
+
return newToken("numeric", l * Number(c));
|
|
14417
14477
|
}, decimalPointLeading() {
|
|
14418
|
-
if (r.isDigit(
|
|
14478
|
+
if (r.isDigit(d)) {
|
|
14419
14479
|
c += read();
|
|
14420
14480
|
s = "decimalFraction";
|
|
14421
14481
|
return;
|
|
14422
14482
|
}
|
|
14423
14483
|
throw invalidChar(read());
|
|
14424
14484
|
}, decimalPoint() {
|
|
14425
|
-
switch (
|
|
14485
|
+
switch (d) {
|
|
14426
14486
|
case "e":
|
|
14427
14487
|
case "E":
|
|
14428
14488
|
c += read();
|
|
14429
14489
|
s = "decimalExponent";
|
|
14430
14490
|
return;
|
|
14431
14491
|
}
|
|
14432
|
-
if (r.isDigit(
|
|
14492
|
+
if (r.isDigit(d)) {
|
|
14433
14493
|
c += read();
|
|
14434
14494
|
s = "decimalFraction";
|
|
14435
14495
|
return;
|
|
14436
14496
|
}
|
|
14437
|
-
return newToken("numeric",
|
|
14497
|
+
return newToken("numeric", l * Number(c));
|
|
14438
14498
|
}, decimalFraction() {
|
|
14439
|
-
switch (
|
|
14499
|
+
switch (d) {
|
|
14440
14500
|
case "e":
|
|
14441
14501
|
case "E":
|
|
14442
14502
|
c += read();
|
|
14443
14503
|
s = "decimalExponent";
|
|
14444
14504
|
return;
|
|
14445
14505
|
}
|
|
14446
|
-
if (r.isDigit(
|
|
14506
|
+
if (r.isDigit(d)) {
|
|
14447
14507
|
c += read();
|
|
14448
14508
|
return;
|
|
14449
14509
|
}
|
|
14450
|
-
return newToken("numeric",
|
|
14510
|
+
return newToken("numeric", l * Number(c));
|
|
14451
14511
|
}, decimalExponent() {
|
|
14452
|
-
switch (
|
|
14512
|
+
switch (d) {
|
|
14453
14513
|
case "+":
|
|
14454
14514
|
case "-":
|
|
14455
14515
|
c += read();
|
|
14456
14516
|
s = "decimalExponentSign";
|
|
14457
14517
|
return;
|
|
14458
14518
|
}
|
|
14459
|
-
if (r.isDigit(
|
|
14519
|
+
if (r.isDigit(d)) {
|
|
14460
14520
|
c += read();
|
|
14461
14521
|
s = "decimalExponentInteger";
|
|
14462
14522
|
return;
|
|
14463
14523
|
}
|
|
14464
14524
|
throw invalidChar(read());
|
|
14465
14525
|
}, decimalExponentSign() {
|
|
14466
|
-
if (r.isDigit(
|
|
14526
|
+
if (r.isDigit(d)) {
|
|
14467
14527
|
c += read();
|
|
14468
14528
|
s = "decimalExponentInteger";
|
|
14469
14529
|
return;
|
|
14470
14530
|
}
|
|
14471
14531
|
throw invalidChar(read());
|
|
14472
14532
|
}, decimalExponentInteger() {
|
|
14473
|
-
if (r.isDigit(
|
|
14533
|
+
if (r.isDigit(d)) {
|
|
14474
14534
|
c += read();
|
|
14475
14535
|
return;
|
|
14476
14536
|
}
|
|
14477
|
-
return newToken("numeric",
|
|
14537
|
+
return newToken("numeric", l * Number(c));
|
|
14478
14538
|
}, hexadecimal() {
|
|
14479
|
-
if (r.isHexDigit(
|
|
14539
|
+
if (r.isHexDigit(d)) {
|
|
14480
14540
|
c += read();
|
|
14481
14541
|
s = "hexadecimalInteger";
|
|
14482
14542
|
return;
|
|
14483
14543
|
}
|
|
14484
14544
|
throw invalidChar(read());
|
|
14485
14545
|
}, hexadecimalInteger() {
|
|
14486
|
-
if (r.isHexDigit(
|
|
14546
|
+
if (r.isHexDigit(d)) {
|
|
14487
14547
|
c += read();
|
|
14488
14548
|
return;
|
|
14489
14549
|
}
|
|
14490
|
-
return newToken("numeric",
|
|
14550
|
+
return newToken("numeric", l * Number(c));
|
|
14491
14551
|
}, string() {
|
|
14492
|
-
switch (
|
|
14552
|
+
switch (d) {
|
|
14493
14553
|
case "\\":
|
|
14494
14554
|
read();
|
|
14495
14555
|
c += escape();
|
|
@@ -14513,21 +14573,21 @@ var require_json5 = __commonJS({
|
|
|
14513
14573
|
throw invalidChar(read());
|
|
14514
14574
|
case "\u2028":
|
|
14515
14575
|
case "\u2029":
|
|
14516
|
-
separatorChar(
|
|
14576
|
+
separatorChar(d);
|
|
14517
14577
|
break;
|
|
14518
14578
|
case void 0:
|
|
14519
14579
|
throw invalidChar(read());
|
|
14520
14580
|
}
|
|
14521
14581
|
c += read();
|
|
14522
14582
|
}, start() {
|
|
14523
|
-
switch (
|
|
14583
|
+
switch (d) {
|
|
14524
14584
|
case "{":
|
|
14525
14585
|
case "[":
|
|
14526
14586
|
return newToken("punctuator", read());
|
|
14527
14587
|
}
|
|
14528
14588
|
s = "value";
|
|
14529
14589
|
}, beforePropertyName() {
|
|
14530
|
-
switch (
|
|
14590
|
+
switch (d) {
|
|
14531
14591
|
case "$":
|
|
14532
14592
|
case "_":
|
|
14533
14593
|
c = read();
|
|
@@ -14545,33 +14605,33 @@ var require_json5 = __commonJS({
|
|
|
14545
14605
|
s = "string";
|
|
14546
14606
|
return;
|
|
14547
14607
|
}
|
|
14548
|
-
if (r.isIdStartChar(
|
|
14608
|
+
if (r.isIdStartChar(d)) {
|
|
14549
14609
|
c += read();
|
|
14550
14610
|
s = "identifierName";
|
|
14551
14611
|
return;
|
|
14552
14612
|
}
|
|
14553
14613
|
throw invalidChar(read());
|
|
14554
14614
|
}, afterPropertyName() {
|
|
14555
|
-
if (
|
|
14615
|
+
if (d === ":") {
|
|
14556
14616
|
return newToken("punctuator", read());
|
|
14557
14617
|
}
|
|
14558
14618
|
throw invalidChar(read());
|
|
14559
14619
|
}, beforePropertyValue() {
|
|
14560
14620
|
s = "value";
|
|
14561
14621
|
}, afterPropertyValue() {
|
|
14562
|
-
switch (
|
|
14622
|
+
switch (d) {
|
|
14563
14623
|
case ",":
|
|
14564
14624
|
case "}":
|
|
14565
14625
|
return newToken("punctuator", read());
|
|
14566
14626
|
}
|
|
14567
14627
|
throw invalidChar(read());
|
|
14568
14628
|
}, beforeArrayValue() {
|
|
14569
|
-
if (
|
|
14629
|
+
if (d === "]") {
|
|
14570
14630
|
return newToken("punctuator", read());
|
|
14571
14631
|
}
|
|
14572
14632
|
s = "value";
|
|
14573
14633
|
}, afterArrayValue() {
|
|
14574
|
-
switch (
|
|
14634
|
+
switch (d) {
|
|
14575
14635
|
case ",":
|
|
14576
14636
|
case "]":
|
|
14577
14637
|
return newToken("punctuator", read());
|
|
@@ -14581,7 +14641,7 @@ var require_json5 = __commonJS({
|
|
|
14581
14641
|
throw invalidChar(read());
|
|
14582
14642
|
} };
|
|
14583
14643
|
function newToken(u3, D3) {
|
|
14584
|
-
return { type: u3, value: D3, line: n, column:
|
|
14644
|
+
return { type: u3, value: D3, line: n, column: a };
|
|
14585
14645
|
}
|
|
14586
14646
|
function literal(u3) {
|
|
14587
14647
|
for (const D3 of u3) {
|
|
@@ -14678,15 +14738,15 @@ var require_json5 = __commonJS({
|
|
|
14678
14738
|
return String.fromCodePoint(parseInt(u3, 16));
|
|
14679
14739
|
}
|
|
14680
14740
|
const p = { start() {
|
|
14681
|
-
if (
|
|
14741
|
+
if (E.type === "eof") {
|
|
14682
14742
|
throw invalidEOF();
|
|
14683
14743
|
}
|
|
14684
14744
|
push();
|
|
14685
14745
|
}, beforePropertyName() {
|
|
14686
|
-
switch (
|
|
14746
|
+
switch (E.type) {
|
|
14687
14747
|
case "identifier":
|
|
14688
14748
|
case "string":
|
|
14689
|
-
i =
|
|
14749
|
+
i = E.value;
|
|
14690
14750
|
C = "afterPropertyName";
|
|
14691
14751
|
return;
|
|
14692
14752
|
case "punctuator":
|
|
@@ -14696,29 +14756,29 @@ var require_json5 = __commonJS({
|
|
|
14696
14756
|
throw invalidEOF();
|
|
14697
14757
|
}
|
|
14698
14758
|
}, afterPropertyName() {
|
|
14699
|
-
if (
|
|
14759
|
+
if (E.type === "eof") {
|
|
14700
14760
|
throw invalidEOF();
|
|
14701
14761
|
}
|
|
14702
14762
|
C = "beforePropertyValue";
|
|
14703
14763
|
}, beforePropertyValue() {
|
|
14704
|
-
if (
|
|
14764
|
+
if (E.type === "eof") {
|
|
14705
14765
|
throw invalidEOF();
|
|
14706
14766
|
}
|
|
14707
14767
|
push();
|
|
14708
14768
|
}, beforeArrayValue() {
|
|
14709
|
-
if (
|
|
14769
|
+
if (E.type === "eof") {
|
|
14710
14770
|
throw invalidEOF();
|
|
14711
14771
|
}
|
|
14712
|
-
if (
|
|
14772
|
+
if (E.type === "punctuator" && E.value === "]") {
|
|
14713
14773
|
pop();
|
|
14714
14774
|
return;
|
|
14715
14775
|
}
|
|
14716
14776
|
push();
|
|
14717
14777
|
}, afterPropertyValue() {
|
|
14718
|
-
if (
|
|
14778
|
+
if (E.type === "eof") {
|
|
14719
14779
|
throw invalidEOF();
|
|
14720
14780
|
}
|
|
14721
|
-
switch (
|
|
14781
|
+
switch (E.value) {
|
|
14722
14782
|
case ",":
|
|
14723
14783
|
C = "beforePropertyName";
|
|
14724
14784
|
return;
|
|
@@ -14726,10 +14786,10 @@ var require_json5 = __commonJS({
|
|
|
14726
14786
|
pop();
|
|
14727
14787
|
}
|
|
14728
14788
|
}, afterArrayValue() {
|
|
14729
|
-
if (
|
|
14789
|
+
if (E.type === "eof") {
|
|
14730
14790
|
throw invalidEOF();
|
|
14731
14791
|
}
|
|
14732
|
-
switch (
|
|
14792
|
+
switch (E.value) {
|
|
14733
14793
|
case ",":
|
|
14734
14794
|
C = "beforeArrayValue";
|
|
14735
14795
|
return;
|
|
@@ -14740,9 +14800,9 @@ var require_json5 = __commonJS({
|
|
|
14740
14800
|
} };
|
|
14741
14801
|
function push() {
|
|
14742
14802
|
let u3;
|
|
14743
|
-
switch (
|
|
14803
|
+
switch (E.type) {
|
|
14744
14804
|
case "punctuator":
|
|
14745
|
-
switch (
|
|
14805
|
+
switch (E.value) {
|
|
14746
14806
|
case "{":
|
|
14747
14807
|
u3 = {};
|
|
14748
14808
|
break;
|
|
@@ -14755,7 +14815,7 @@ var require_json5 = __commonJS({
|
|
|
14755
14815
|
case "boolean":
|
|
14756
14816
|
case "numeric":
|
|
14757
14817
|
case "string":
|
|
14758
|
-
u3 =
|
|
14818
|
+
u3 = E.value;
|
|
14759
14819
|
break;
|
|
14760
14820
|
}
|
|
14761
14821
|
if (B === void 0) {
|
|
@@ -14765,7 +14825,7 @@ var require_json5 = __commonJS({
|
|
|
14765
14825
|
if (Array.isArray(D3)) {
|
|
14766
14826
|
D3.push(u3);
|
|
14767
14827
|
} else {
|
|
14768
|
-
D3
|
|
14828
|
+
Object.defineProperty(D3, i, { value: u3, writable: true, enumerable: true, configurable: true });
|
|
14769
14829
|
}
|
|
14770
14830
|
}
|
|
14771
14831
|
if (u3 !== null && typeof u3 === "object") {
|
|
@@ -14799,16 +14859,16 @@ var require_json5 = __commonJS({
|
|
|
14799
14859
|
}
|
|
14800
14860
|
function invalidChar(u3) {
|
|
14801
14861
|
if (u3 === void 0) {
|
|
14802
|
-
return syntaxError(`JSON5: invalid end of input at ${n}:${
|
|
14862
|
+
return syntaxError(`JSON5: invalid end of input at ${n}:${a}`);
|
|
14803
14863
|
}
|
|
14804
|
-
return syntaxError(`JSON5: invalid character '${formatChar(u3)}' at ${n}:${
|
|
14864
|
+
return syntaxError(`JSON5: invalid character '${formatChar(u3)}' at ${n}:${a}`);
|
|
14805
14865
|
}
|
|
14806
14866
|
function invalidEOF() {
|
|
14807
|
-
return syntaxError(`JSON5: invalid end of input at ${n}:${
|
|
14867
|
+
return syntaxError(`JSON5: invalid end of input at ${n}:${a}`);
|
|
14808
14868
|
}
|
|
14809
14869
|
function invalidIdentifier() {
|
|
14810
|
-
|
|
14811
|
-
return syntaxError(`JSON5: invalid identifier character at ${n}:${
|
|
14870
|
+
a -= 5;
|
|
14871
|
+
return syntaxError(`JSON5: invalid identifier character at ${n}:${a}`);
|
|
14812
14872
|
}
|
|
14813
14873
|
function separatorChar(u3) {
|
|
14814
14874
|
console.warn(`JSON5: '${formatChar(u3)}' in strings is not valid ECMAScript; consider escaping`);
|
|
@@ -14827,21 +14887,21 @@ var require_json5 = __commonJS({
|
|
|
14827
14887
|
function syntaxError(u3) {
|
|
14828
14888
|
const D3 = new SyntaxError(u3);
|
|
14829
14889
|
D3.lineNumber = n;
|
|
14830
|
-
D3.columnNumber =
|
|
14890
|
+
D3.columnNumber = a;
|
|
14831
14891
|
return D3;
|
|
14832
14892
|
}
|
|
14833
|
-
},
|
|
14834
|
-
const r = e2(
|
|
14893
|
+
}, 440: (u2, D2, e2) => {
|
|
14894
|
+
const r = e2(812);
|
|
14835
14895
|
u2.exports = function stringify(u3, D3, e3) {
|
|
14836
14896
|
const F = [];
|
|
14837
14897
|
let C = "";
|
|
14838
14898
|
let t;
|
|
14839
14899
|
let A;
|
|
14840
14900
|
let n = "";
|
|
14841
|
-
let
|
|
14901
|
+
let a;
|
|
14842
14902
|
if (D3 != null && typeof D3 === "object" && !Array.isArray(D3)) {
|
|
14843
14903
|
e3 = D3.space;
|
|
14844
|
-
|
|
14904
|
+
a = D3.quote;
|
|
14845
14905
|
D3 = D3.replacer;
|
|
14846
14906
|
}
|
|
14847
14907
|
if (typeof D3 === "function") {
|
|
@@ -14941,7 +15001,7 @@ var require_json5 = __commonJS({
|
|
|
14941
15001
|
}
|
|
14942
15002
|
F2 += t2;
|
|
14943
15003
|
}
|
|
14944
|
-
const C2 =
|
|
15004
|
+
const C2 = a || Object.keys(D4).reduce((u5, e5) => D4[u5] < D4[e5] ? u5 : e5);
|
|
14945
15005
|
F2 = F2.replace(new RegExp(C2, "g"), e4[C2]);
|
|
14946
15006
|
return C2 + F2 + C2;
|
|
14947
15007
|
}
|
|
@@ -15028,12 +15088,12 @@ var require_json5 = __commonJS({
|
|
|
15028
15088
|
return r2;
|
|
15029
15089
|
}
|
|
15030
15090
|
};
|
|
15031
|
-
},
|
|
15091
|
+
}, 271: (u2) => {
|
|
15032
15092
|
u2.exports.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
15033
15093
|
u2.exports.ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
|
|
15034
15094
|
u2.exports.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
|
|
15035
|
-
},
|
|
15036
|
-
const r = e2(
|
|
15095
|
+
}, 812: (u2, D2, e2) => {
|
|
15096
|
+
const r = e2(271);
|
|
15037
15097
|
u2.exports = { isSpaceSeparator(u3) {
|
|
15038
15098
|
return typeof u3 === "string" && r.Space_Separator.test(u3);
|
|
15039
15099
|
}, isIdStartChar(u3) {
|
|
@@ -15065,7 +15125,7 @@ var require_json5 = __commonJS({
|
|
|
15065
15125
|
}
|
|
15066
15126
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
15067
15127
|
__nccwpck_require__.ab = __dirname + "/";
|
|
15068
|
-
var e = __nccwpck_require__(
|
|
15128
|
+
var e = __nccwpck_require__(361);
|
|
15069
15129
|
module2.exports = e;
|
|
15070
15130
|
})();
|
|
15071
15131
|
}
|
|
@@ -15095,7 +15155,7 @@ var require_upath = __commonJS({
|
|
|
15095
15155
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
|
15096
15156
|
p = function(e3) {
|
|
15097
15157
|
e3 = e3.replace(/\\/g, "/");
|
|
15098
|
-
e3 = e3.replace(
|
|
15158
|
+
e3 = e3.replace(new RegExp("(?<!^)\\/+", "g"), "/");
|
|
15099
15159
|
return e3;
|
|
15100
15160
|
};
|
|
15101
15161
|
for (c in o) {
|
|
@@ -15391,7 +15451,9 @@ var require_pkg_up = __commonJS({
|
|
|
15391
15451
|
};
|
|
15392
15452
|
}, 800: (e2, r2, n2) => {
|
|
15393
15453
|
const t = n2(485);
|
|
15394
|
-
e2.exports =
|
|
15454
|
+
e2.exports = (..._0) => __async(exports, [..._0], function* ({ cwd: e3 } = {}) {
|
|
15455
|
+
return t("package.json", { cwd: e3 });
|
|
15456
|
+
});
|
|
15395
15457
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
|
15396
15458
|
}, 147: (e2) => {
|
|
15397
15459
|
e2.exports = require("fs");
|
|
@@ -23880,7 +23942,7 @@ var require_fast_glob = __commonJS({
|
|
|
23880
23942
|
}
|
|
23881
23943
|
if (t4.nodes && t4.ranges > 0) {
|
|
23882
23944
|
let r4 = s.reduce(t4.nodes);
|
|
23883
|
-
let i2 = n(...r4, {
|
|
23945
|
+
let i2 = n(...r4, __spreadProps(__spreadValues({}, e3), { wrap: false, toRegex: true }));
|
|
23884
23946
|
if (i2.length !== 0) {
|
|
23885
23947
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
|
23886
23948
|
}
|
|
@@ -24306,11 +24368,13 @@ var require_fast_glob = __commonJS({
|
|
|
24306
24368
|
const a = r2(1066);
|
|
24307
24369
|
const u = r2(7190);
|
|
24308
24370
|
const c = r2(3828);
|
|
24309
|
-
|
|
24310
|
-
|
|
24311
|
-
|
|
24312
|
-
|
|
24313
|
-
|
|
24371
|
+
function FastGlob(t3, e3) {
|
|
24372
|
+
return __async(this, null, function* () {
|
|
24373
|
+
assertPatternsInput(t3);
|
|
24374
|
+
const r3 = getWorks(t3, i.default, e3);
|
|
24375
|
+
const n2 = yield Promise.all(r3);
|
|
24376
|
+
return c.array.flatten(n2);
|
|
24377
|
+
});
|
|
24314
24378
|
}
|
|
24315
24379
|
(function(t3) {
|
|
24316
24380
|
function sync(t4, e3) {
|
|
@@ -25481,7 +25545,7 @@ var require_fast_glob = __commonJS({
|
|
|
25481
25545
|
};
|
|
25482
25546
|
const toRange = (t3, e3, r3, n2) => {
|
|
25483
25547
|
if (r3) {
|
|
25484
|
-
return s(t3, e3, { wrap: false,
|
|
25548
|
+
return s(t3, e3, __spreadValues({ wrap: false }, n2));
|
|
25485
25549
|
}
|
|
25486
25550
|
let i = String.fromCharCode(t3);
|
|
25487
25551
|
if (t3 === e3)
|
|
@@ -25547,7 +25611,7 @@ var require_fast_glob = __commonJS({
|
|
|
25547
25611
|
g++;
|
|
25548
25612
|
}
|
|
25549
25613
|
if (n2.toRegex === true) {
|
|
25550
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false,
|
|
25614
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, __spreadValues({ wrap: false }, n2));
|
|
25551
25615
|
}
|
|
25552
25616
|
return _;
|
|
25553
25617
|
};
|
|
@@ -25589,7 +25653,7 @@ var require_fast_glob = __commonJS({
|
|
|
25589
25653
|
if (isObject2(r3)) {
|
|
25590
25654
|
return fill(t3, e3, 0, r3);
|
|
25591
25655
|
}
|
|
25592
|
-
let s2 = {
|
|
25656
|
+
let s2 = __spreadValues({}, n2);
|
|
25593
25657
|
if (s2.capture === true)
|
|
25594
25658
|
s2.wrap = true;
|
|
25595
25659
|
r3 = r3 || s2.step || 1;
|
|
@@ -25913,7 +25977,7 @@ var require_fast_glob = __commonJS({
|
|
|
25913
25977
|
}
|
|
25914
25978
|
};
|
|
25915
25979
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
25916
|
-
let u2 = i(String(e3[o3]), {
|
|
25980
|
+
let u2 = i(String(e3[o3]), __spreadProps(__spreadValues({}, r3), { onResult }), true);
|
|
25917
25981
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
|
25918
25982
|
if (c2)
|
|
25919
25983
|
a++;
|
|
@@ -25955,7 +26019,7 @@ var require_fast_glob = __commonJS({
|
|
|
25955
26019
|
r3.onResult(t4);
|
|
25956
26020
|
s2.push(t4.output);
|
|
25957
26021
|
};
|
|
25958
|
-
let i2 = new Set(micromatch(t3, e3, {
|
|
26022
|
+
let i2 = new Set(micromatch(t3, e3, __spreadProps(__spreadValues({}, r3), { onResult })));
|
|
25959
26023
|
for (let t4 of s2) {
|
|
25960
26024
|
if (!i2.has(t4)) {
|
|
25961
26025
|
n2.add(t4);
|
|
@@ -25978,7 +26042,7 @@ var require_fast_glob = __commonJS({
|
|
|
25978
26042
|
return true;
|
|
25979
26043
|
}
|
|
25980
26044
|
}
|
|
25981
|
-
return micromatch.isMatch(t3, e3, {
|
|
26045
|
+
return micromatch.isMatch(t3, e3, __spreadProps(__spreadValues({}, r3), { contains: true }));
|
|
25982
26046
|
};
|
|
25983
26047
|
micromatch.matchKeys = (t3, e3, r3) => {
|
|
25984
26048
|
if (!o.isObject(t3)) {
|
|
@@ -26018,7 +26082,7 @@ var require_fast_glob = __commonJS({
|
|
|
26018
26082
|
};
|
|
26019
26083
|
micromatch.capture = (t3, e3, r3) => {
|
|
26020
26084
|
let n2 = o.isWindows(r3);
|
|
26021
|
-
let s2 = i.makeRe(String(t3), {
|
|
26085
|
+
let s2 = i.makeRe(String(t3), __spreadProps(__spreadValues({}, r3), { capture: true }));
|
|
26022
26086
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
|
26023
26087
|
if (a) {
|
|
26024
26088
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
|
@@ -26046,7 +26110,7 @@ var require_fast_glob = __commonJS({
|
|
|
26046
26110
|
micromatch.braceExpand = (t3, e3) => {
|
|
26047
26111
|
if (typeof t3 !== "string")
|
|
26048
26112
|
throw new TypeError("Expected a string");
|
|
26049
|
-
return micromatch.braces(t3, {
|
|
26113
|
+
return micromatch.braces(t3, __spreadProps(__spreadValues({}, e3), { expand: true }));
|
|
26050
26114
|
};
|
|
26051
26115
|
t2.exports = micromatch;
|
|
26052
26116
|
}, 376: (t2, e2, r2) => {
|
|
@@ -26073,7 +26137,7 @@ var require_fast_glob = __commonJS({
|
|
|
26073
26137
|
const m = `[^.${c}]`;
|
|
26074
26138
|
const v = `${f}*?`;
|
|
26075
26139
|
const E = { DOT_LITERAL: o, PLUS_LITERAL: a, QMARK_LITERAL: u, SLASH_LITERAL: c, ONE_CHAR: l, QMARK: f, END_ANCHOR: p, DOTS_SLASH: d, NO_DOT: _, NO_DOTS: g, NO_DOT_SLASH: y, NO_DOTS_SLASH: S, QMARK_NO_DOT: m, STAR: v, START_ANCHOR: h };
|
|
26076
|
-
const A = {
|
|
26140
|
+
const A = __spreadProps(__spreadValues({}, E), { SLASH_LITERAL: `[${s}]`, QMARK: i, STAR: `${i}*?`, DOTS_SLASH: `${o}{1,2}(?:[${s}]|$)`, NO_DOT: `(?!${o})`, NO_DOTS: `(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`, NO_DOT_SLASH: `(?!${o}{0,1}(?:[${s}]|$))`, NO_DOTS_SLASH: `(?!${o}{1,2}(?:[${s}]|$))`, QMARK_NO_DOT: `[^.${s}]`, START_ANCHOR: `(?:^|[${s}])`, END_ANCHOR: `(?:[${s}]|$)` });
|
|
26077
26141
|
const b = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
|
|
26078
26142
|
t2.exports = { MAX_LENGTH: 1024 * 64, POSIX_REGEX_SOURCE: b, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, SEP: n.sep, extglobChars(t3) {
|
|
26079
26143
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
@@ -26104,7 +26168,7 @@ var require_fast_glob = __commonJS({
|
|
|
26104
26168
|
throw new TypeError("Expected a string");
|
|
26105
26169
|
}
|
|
26106
26170
|
t3 = c[t3] || t3;
|
|
26107
|
-
const r3 = {
|
|
26171
|
+
const r3 = __spreadValues({}, e3);
|
|
26108
26172
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
26109
26173
|
let f = t3.length;
|
|
26110
26174
|
if (f > l) {
|
|
@@ -26196,7 +26260,7 @@ var require_fast_glob = __commonJS({
|
|
|
26196
26260
|
M = t4;
|
|
26197
26261
|
};
|
|
26198
26262
|
const extglobOpen = (t4, e4) => {
|
|
26199
|
-
const n2 = {
|
|
26263
|
+
const n2 = __spreadProps(__spreadValues({}, y[e4]), { conditions: 1, inner: "" });
|
|
26200
26264
|
n2.prev = M;
|
|
26201
26265
|
n2.parens = H.parens;
|
|
26202
26266
|
n2.output = H.output;
|
|
@@ -26218,7 +26282,7 @@ var require_fast_glob = __commonJS({
|
|
|
26218
26282
|
n2 = t4.close = `)$))${i2}`;
|
|
26219
26283
|
}
|
|
26220
26284
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
|
26221
|
-
const r4 = parse(s2, {
|
|
26285
|
+
const r4 = parse(s2, __spreadProps(__spreadValues({}, e3), { fastpaths: false })).output;
|
|
26222
26286
|
n2 = t4.close = `)${r4})${i2})`;
|
|
26223
26287
|
}
|
|
26224
26288
|
if (t4.prev.type === "bos") {
|
|
@@ -26740,7 +26804,7 @@ var require_fast_glob = __commonJS({
|
|
|
26740
26804
|
return H;
|
|
26741
26805
|
};
|
|
26742
26806
|
parse.fastpaths = (t3, e3) => {
|
|
26743
|
-
const r3 = {
|
|
26807
|
+
const r3 = __spreadValues({}, e3);
|
|
26744
26808
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
26745
26809
|
const a2 = t3.length;
|
|
26746
26810
|
if (a2 > o2) {
|
|
@@ -26831,7 +26895,7 @@ var require_fast_glob = __commonJS({
|
|
|
26831
26895
|
delete a2.state;
|
|
26832
26896
|
let isIgnored = () => false;
|
|
26833
26897
|
if (s2.ignore) {
|
|
26834
|
-
const t4 = {
|
|
26898
|
+
const t4 = __spreadProps(__spreadValues({}, e3), { ignore: null, onMatch: null, onResult: null });
|
|
26835
26899
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
|
26836
26900
|
}
|
|
26837
26901
|
const matcher = (r4, n3 = false) => {
|
|
@@ -26893,7 +26957,7 @@ var require_fast_glob = __commonJS({
|
|
|
26893
26957
|
picomatch.parse = (t3, e3) => {
|
|
26894
26958
|
if (Array.isArray(t3))
|
|
26895
26959
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
|
26896
|
-
return i(t3, {
|
|
26960
|
+
return i(t3, __spreadProps(__spreadValues({}, e3), { fastpaths: false }));
|
|
26897
26961
|
};
|
|
26898
26962
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
|
26899
26963
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
|
@@ -27358,7 +27422,7 @@ var require_fast_glob = __commonJS({
|
|
|
27358
27422
|
if (n(e3) === false) {
|
|
27359
27423
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
27360
27424
|
}
|
|
27361
|
-
let s = { relaxZeros: true,
|
|
27425
|
+
let s = __spreadValues({ relaxZeros: true }, r3);
|
|
27362
27426
|
if (typeof s.strictZeros === "boolean") {
|
|
27363
27427
|
s.relaxZeros = s.strictZeros === false;
|
|
27364
27428
|
}
|
|
@@ -27636,19 +27700,19 @@ var require_globby = __commonJS({
|
|
|
27636
27700
|
}
|
|
27637
27701
|
return [n.posix.join(t3, "**")];
|
|
27638
27702
|
};
|
|
27639
|
-
t2.exports =
|
|
27640
|
-
e3 = { cwd: process.cwd(),
|
|
27703
|
+
t2.exports = (t3, e3) => __async(exports, null, function* () {
|
|
27704
|
+
e3 = __spreadValues({ cwd: process.cwd() }, e3);
|
|
27641
27705
|
if (typeof e3.cwd !== "string") {
|
|
27642
27706
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
27643
27707
|
}
|
|
27644
|
-
const r3 =
|
|
27645
|
-
const r4 =
|
|
27708
|
+
const r3 = yield Promise.all([].concat(t3).map((t4) => __async(exports, null, function* () {
|
|
27709
|
+
const r4 = yield s.isDirectory(getPath(t4, e3.cwd));
|
|
27646
27710
|
return r4 ? getGlob(t4, e3) : t4;
|
|
27647
|
-
}));
|
|
27711
|
+
})));
|
|
27648
27712
|
return [].concat.apply([], r3);
|
|
27649
|
-
};
|
|
27713
|
+
});
|
|
27650
27714
|
t2.exports.sync = (t3, e3) => {
|
|
27651
|
-
e3 = { cwd: process.cwd(),
|
|
27715
|
+
e3 = __spreadValues({ cwd: process.cwd() }, e3);
|
|
27652
27716
|
if (typeof e3.cwd !== "string") {
|
|
27653
27717
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
27654
27718
|
}
|
|
@@ -27693,24 +27757,24 @@ var require_globby = __commonJS({
|
|
|
27693
27757
|
return o.join(t3, e3);
|
|
27694
27758
|
};
|
|
27695
27759
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
|
27696
|
-
const getFile =
|
|
27760
|
+
const getFile = (t3, e3) => __async(exports, null, function* () {
|
|
27697
27761
|
const r3 = o.join(e3, t3);
|
|
27698
|
-
const n2 =
|
|
27762
|
+
const n2 = yield u(r3, "utf8");
|
|
27699
27763
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
27700
|
-
};
|
|
27764
|
+
});
|
|
27701
27765
|
const getFileSync = (t3, e3) => {
|
|
27702
27766
|
const r3 = o.join(e3, t3);
|
|
27703
27767
|
const n2 = s.readFileSync(r3, "utf8");
|
|
27704
27768
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
27705
27769
|
};
|
|
27706
27770
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
|
27707
|
-
t2.exports =
|
|
27771
|
+
t2.exports = (t3) => __async(exports, null, function* () {
|
|
27708
27772
|
t3 = normalizeOptions(t3);
|
|
27709
|
-
const e3 =
|
|
27710
|
-
const r3 =
|
|
27773
|
+
const e3 = yield i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
27774
|
+
const r3 = yield Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
|
27711
27775
|
const n2 = reduceIgnore(r3);
|
|
27712
27776
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
|
27713
|
-
};
|
|
27777
|
+
});
|
|
27714
27778
|
t2.exports.sync = (t3) => {
|
|
27715
27779
|
t3 = normalizeOptions(t3);
|
|
27716
27780
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
@@ -27741,7 +27805,7 @@ var require_globby = __commonJS({
|
|
|
27741
27805
|
let e3;
|
|
27742
27806
|
try {
|
|
27743
27807
|
e3 = n.statSync(t3.cwd);
|
|
27744
|
-
} catch {
|
|
27808
|
+
} catch (e4) {
|
|
27745
27809
|
return;
|
|
27746
27810
|
}
|
|
27747
27811
|
if (!e3.isDirectory()) {
|
|
@@ -27754,13 +27818,13 @@ var require_globby = __commonJS({
|
|
|
27754
27818
|
assertPatternsInput(t3);
|
|
27755
27819
|
checkCwdOption(e3);
|
|
27756
27820
|
const r3 = [];
|
|
27757
|
-
e3 = { ignore: [], expandDirectories: true,
|
|
27821
|
+
e3 = __spreadValues({ ignore: [], expandDirectories: true }, e3);
|
|
27758
27822
|
for (const [n2, s2] of t3.entries()) {
|
|
27759
27823
|
if (isNegative(s2)) {
|
|
27760
27824
|
continue;
|
|
27761
27825
|
}
|
|
27762
27826
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
|
27763
|
-
const i2 = {
|
|
27827
|
+
const i2 = __spreadProps(__spreadValues({}, e3), { ignore: e3.ignore.concat(o2) });
|
|
27764
27828
|
r3.push({ pattern: s2, options: i2 });
|
|
27765
27829
|
}
|
|
27766
27830
|
return r3;
|
|
@@ -27771,9 +27835,9 @@ var require_globby = __commonJS({
|
|
|
27771
27835
|
r3.cwd = t3.options.cwd;
|
|
27772
27836
|
}
|
|
27773
27837
|
if (Array.isArray(t3.options.expandDirectories)) {
|
|
27774
|
-
r3 = {
|
|
27838
|
+
r3 = __spreadProps(__spreadValues({}, r3), { files: t3.options.expandDirectories });
|
|
27775
27839
|
} else if (typeof t3.options.expandDirectories === "object") {
|
|
27776
|
-
r3 = {
|
|
27840
|
+
r3 = __spreadValues(__spreadValues({}, r3), t3.options.expandDirectories);
|
|
27777
27841
|
}
|
|
27778
27842
|
return e3(t3.pattern, r3);
|
|
27779
27843
|
};
|
|
@@ -27786,20 +27850,22 @@ var require_globby = __commonJS({
|
|
|
27786
27850
|
}
|
|
27787
27851
|
return { pattern: e3, options: r3 };
|
|
27788
27852
|
};
|
|
27789
|
-
t2.exports =
|
|
27853
|
+
t2.exports = (t3, e3) => __async(exports, null, function* () {
|
|
27790
27854
|
const r3 = generateGlobTasks(t3, e3);
|
|
27791
|
-
const getFilter =
|
|
27792
|
-
|
|
27793
|
-
|
|
27794
|
-
|
|
27855
|
+
const getFilter = () => __async(exports, null, function* () {
|
|
27856
|
+
return e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
|
27857
|
+
});
|
|
27858
|
+
const getTasks = () => __async(exports, null, function* () {
|
|
27859
|
+
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
|
27860
|
+
const e4 = yield getPattern(t5, c);
|
|
27795
27861
|
return Promise.all(e4.map(globToTask(t5)));
|
|
27796
|
-
}));
|
|
27862
|
+
})));
|
|
27797
27863
|
return s(...t4);
|
|
27798
|
-
};
|
|
27799
|
-
const [n2, o2] =
|
|
27800
|
-
const p2 =
|
|
27864
|
+
});
|
|
27865
|
+
const [n2, o2] = yield Promise.all([getFilter(), getTasks()]);
|
|
27866
|
+
const p2 = yield Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
|
27801
27867
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
|
27802
|
-
};
|
|
27868
|
+
});
|
|
27803
27869
|
t2.exports.sync = (t3, e3) => {
|
|
27804
27870
|
const r3 = generateGlobTasks(t3, e3);
|
|
27805
27871
|
const n2 = [];
|
|
@@ -28153,19 +28219,21 @@ var require_globby = __commonJS({
|
|
|
28153
28219
|
"use strict";
|
|
28154
28220
|
const { promisify: n } = r2(837);
|
|
28155
28221
|
const s = r2(147);
|
|
28156
|
-
|
|
28157
|
-
|
|
28158
|
-
|
|
28159
|
-
|
|
28160
|
-
try {
|
|
28161
|
-
const o = await n(s[t3])(r3);
|
|
28162
|
-
return o[e3]();
|
|
28163
|
-
} catch (t4) {
|
|
28164
|
-
if (t4.code === "ENOENT") {
|
|
28165
|
-
return false;
|
|
28222
|
+
function isType(t3, e3, r3) {
|
|
28223
|
+
return __async(this, null, function* () {
|
|
28224
|
+
if (typeof r3 !== "string") {
|
|
28225
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
|
28166
28226
|
}
|
|
28167
|
-
|
|
28168
|
-
|
|
28227
|
+
try {
|
|
28228
|
+
const o = yield n(s[t3])(r3);
|
|
28229
|
+
return o[e3]();
|
|
28230
|
+
} catch (t4) {
|
|
28231
|
+
if (t4.code === "ENOENT") {
|
|
28232
|
+
return false;
|
|
28233
|
+
}
|
|
28234
|
+
throw t4;
|
|
28235
|
+
}
|
|
28236
|
+
});
|
|
28169
28237
|
}
|
|
28170
28238
|
function isTypeSync(t3, e3, r3) {
|
|
28171
28239
|
if (typeof r3 !== "string") {
|
|
@@ -30540,15 +30608,15 @@ var require_gzip_size = __commonJS({
|
|
|
30540
30608
|
const i = t2(796);
|
|
30541
30609
|
const { promisify: a } = t2(837);
|
|
30542
30610
|
const s = t2(325);
|
|
30543
|
-
const getOptions = (e3) => ({ level: 9,
|
|
30611
|
+
const getOptions = (e3) => __spreadValues({ level: 9 }, e3);
|
|
30544
30612
|
const p = a(i.gzip);
|
|
30545
|
-
e2.exports =
|
|
30613
|
+
e2.exports = (e3, r3) => __async(exports, null, function* () {
|
|
30546
30614
|
if (!e3) {
|
|
30547
30615
|
return 0;
|
|
30548
30616
|
}
|
|
30549
|
-
const t3 =
|
|
30617
|
+
const t3 = yield p(e3, getOptions(r3));
|
|
30550
30618
|
return t3.length;
|
|
30551
|
-
};
|
|
30619
|
+
});
|
|
30552
30620
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
|
30553
30621
|
e2.exports.stream = (e3) => {
|
|
30554
30622
|
const r3 = new o.PassThrough();
|
|
@@ -33492,10 +33560,12 @@ Expecting one of '${i3.join("', '")}'`);
|
|
|
33492
33560
|
this._parseCommand([], i3);
|
|
33493
33561
|
return this;
|
|
33494
33562
|
}
|
|
33495
|
-
|
|
33496
|
-
|
|
33497
|
-
|
|
33498
|
-
|
|
33563
|
+
parseAsync(e3, t3) {
|
|
33564
|
+
return __async(this, null, function* () {
|
|
33565
|
+
const i3 = this._prepareUserArgs(e3, t3);
|
|
33566
|
+
yield this._parseCommand([], i3);
|
|
33567
|
+
return this;
|
|
33568
|
+
});
|
|
33499
33569
|
}
|
|
33500
33570
|
_executeSubCommand(e3, t3) {
|
|
33501
33571
|
t3 = t3.slice();
|
|
@@ -34767,11 +34837,8 @@ var require_logger = __commonJS({
|
|
|
34767
34837
|
var Logger2 = class {
|
|
34768
34838
|
constructor(options = {}) {
|
|
34769
34839
|
this.level = options.level || LOG_TYPES.log.level;
|
|
34770
|
-
this.config = {
|
|
34771
|
-
this.types = {
|
|
34772
|
-
...LOG_TYPES,
|
|
34773
|
-
...options.types || {}
|
|
34774
|
-
};
|
|
34840
|
+
this.config = __spreadValues(__spreadValues({}, DEFAULT_CONFIG), options.config || {});
|
|
34841
|
+
this.types = __spreadValues(__spreadValues({}, LOG_TYPES), options.types || {});
|
|
34775
34842
|
this.longestLabel = this.getLongestLabel();
|
|
34776
34843
|
Object.keys(this.types).forEach((type) => {
|
|
34777
34844
|
this[type] = this._log.bind(this, type);
|
|
@@ -35180,11 +35247,10 @@ var require_compatRequire = __commonJS({
|
|
|
35180
35247
|
exports.compatRequire = compatRequire;
|
|
35181
35248
|
exports.dynamicImport = new Function("modulePath", "return import(modulePath)");
|
|
35182
35249
|
var requireExistModule = (filename, opt) => {
|
|
35183
|
-
const final = {
|
|
35250
|
+
const final = __spreadValues({
|
|
35184
35251
|
extensions: [".ts", ".js"],
|
|
35185
|
-
interop: true
|
|
35186
|
-
|
|
35187
|
-
};
|
|
35252
|
+
interop: true
|
|
35253
|
+
}, opt);
|
|
35188
35254
|
const exist = (0, findExists_1.findExists)(final.extensions.map((ext) => `${filename}${ext}`));
|
|
35189
35255
|
if (!exist) {
|
|
35190
35256
|
return null;
|
|
@@ -35544,7 +35610,7 @@ var require_getEntryOptions = __commonJS({
|
|
|
35544
35610
|
if (optionsByEntry === void 0 && name === constants_1.MAIN_ENTRY_NAME && packageName) {
|
|
35545
35611
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
|
35546
35612
|
}
|
|
35547
|
-
return optionsByEntry !== void 0 ? (0, is_1.isPlainObject)(optionsByEntry) && (0, is_1.isPlainObject)(baseOptions) ? {
|
|
35613
|
+
return optionsByEntry !== void 0 ? (0, is_1.isPlainObject)(optionsByEntry) && (0, is_1.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
|
|
35548
35614
|
} else {
|
|
35549
35615
|
return baseOptions;
|
|
35550
35616
|
}
|
|
@@ -35566,7 +35632,7 @@ var require_getPort = __commonJS({
|
|
|
35566
35632
|
var net_1 = __importDefault(require("net"));
|
|
35567
35633
|
var compiled_1 = require_compiled();
|
|
35568
35634
|
var logger_1 = require_logger();
|
|
35569
|
-
var getPort =
|
|
35635
|
+
var getPort = (_0, ..._1) => __async(exports, [_0, ..._1], function* (port, { tryLimits = 20, strictPort = false } = {}) {
|
|
35570
35636
|
if (typeof port === "string") {
|
|
35571
35637
|
port = parseInt(port, 10);
|
|
35572
35638
|
}
|
|
@@ -35578,7 +35644,7 @@ var require_getPort = __commonJS({
|
|
|
35578
35644
|
let attempts = 0;
|
|
35579
35645
|
while (!found && attempts <= tryLimits) {
|
|
35580
35646
|
try {
|
|
35581
|
-
|
|
35647
|
+
yield new Promise((resolve, reject) => {
|
|
35582
35648
|
const server = net_1.default.createServer();
|
|
35583
35649
|
server.unref();
|
|
35584
35650
|
server.on("error", reject);
|
|
@@ -35606,7 +35672,7 @@ var require_getPort = __commonJS({
|
|
|
35606
35672
|
}
|
|
35607
35673
|
}
|
|
35608
35674
|
return port;
|
|
35609
|
-
};
|
|
35675
|
+
});
|
|
35610
35676
|
exports.getPort = getPort;
|
|
35611
35677
|
}
|
|
35612
35678
|
});
|
|
@@ -35651,10 +35717,7 @@ var require_monorepo = __commonJS({
|
|
|
35651
35717
|
return false;
|
|
35652
35718
|
}
|
|
35653
35719
|
const json = JSON.parse(fs_1.default.readFileSync(pkgJsonPath, "utf8"));
|
|
35654
|
-
const deps = {
|
|
35655
|
-
...json.dependencies || {},
|
|
35656
|
-
...json.devDependencies || {}
|
|
35657
|
-
};
|
|
35720
|
+
const deps = __spreadValues(__spreadValues({}, json.dependencies || {}), json.devDependencies || {});
|
|
35658
35721
|
return Boolean(deps["@modern-js/monorepo-tools"]);
|
|
35659
35722
|
};
|
|
35660
35723
|
exports.isModernjsMonorepo = isModernjsMonorepo;
|
|
@@ -35702,31 +35765,37 @@ var require_nodeEnv = __commonJS({
|
|
|
35702
35765
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35703
35766
|
exports.canUsePnpm = exports.canUseYarn = exports.canUseNpm = void 0;
|
|
35704
35767
|
var compiled_1 = require_compiled();
|
|
35705
|
-
|
|
35706
|
-
|
|
35707
|
-
|
|
35708
|
-
|
|
35709
|
-
|
|
35710
|
-
|
|
35711
|
-
|
|
35768
|
+
function canUseNpm() {
|
|
35769
|
+
return __async(this, null, function* () {
|
|
35770
|
+
try {
|
|
35771
|
+
yield (0, compiled_1.execa)("npm", ["--version"], { env: process.env });
|
|
35772
|
+
return true;
|
|
35773
|
+
} catch (e) {
|
|
35774
|
+
return false;
|
|
35775
|
+
}
|
|
35776
|
+
});
|
|
35712
35777
|
}
|
|
35713
35778
|
exports.canUseNpm = canUseNpm;
|
|
35714
|
-
|
|
35715
|
-
|
|
35716
|
-
|
|
35717
|
-
|
|
35718
|
-
|
|
35719
|
-
|
|
35720
|
-
|
|
35779
|
+
function canUseYarn() {
|
|
35780
|
+
return __async(this, null, function* () {
|
|
35781
|
+
try {
|
|
35782
|
+
yield (0, compiled_1.execa)("yarn", ["--version"], { env: process.env });
|
|
35783
|
+
return true;
|
|
35784
|
+
} catch (e) {
|
|
35785
|
+
return false;
|
|
35786
|
+
}
|
|
35787
|
+
});
|
|
35721
35788
|
}
|
|
35722
35789
|
exports.canUseYarn = canUseYarn;
|
|
35723
|
-
|
|
35724
|
-
|
|
35725
|
-
|
|
35726
|
-
|
|
35727
|
-
|
|
35728
|
-
|
|
35729
|
-
|
|
35790
|
+
function canUsePnpm() {
|
|
35791
|
+
return __async(this, null, function* () {
|
|
35792
|
+
try {
|
|
35793
|
+
yield (0, compiled_1.execa)("pnpm", ["--version"], { env: process.env });
|
|
35794
|
+
return true;
|
|
35795
|
+
} catch (e) {
|
|
35796
|
+
return false;
|
|
35797
|
+
}
|
|
35798
|
+
});
|
|
35730
35799
|
}
|
|
35731
35800
|
exports.canUsePnpm = canUsePnpm;
|
|
35732
35801
|
}
|
|
@@ -35746,29 +35815,31 @@ var require_getPackageManager = __commonJS({
|
|
|
35746
35815
|
var compiled_1 = require_compiled();
|
|
35747
35816
|
var nodeEnv_1 = require_nodeEnv();
|
|
35748
35817
|
var MAX_TIMES = 5;
|
|
35749
|
-
|
|
35750
|
-
|
|
35751
|
-
|
|
35752
|
-
|
|
35753
|
-
times
|
|
35754
|
-
|
|
35818
|
+
function getPackageManager() {
|
|
35819
|
+
return __async(this, arguments, function* (cwd = process.cwd()) {
|
|
35820
|
+
let appDirectory = cwd;
|
|
35821
|
+
let times = 0;
|
|
35822
|
+
while (os_1.default.homedir() !== appDirectory && times < MAX_TIMES) {
|
|
35823
|
+
times++;
|
|
35824
|
+
if (compiled_1.fs.existsSync(path_1.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
|
35825
|
+
return "pnpm";
|
|
35826
|
+
}
|
|
35827
|
+
if (compiled_1.fs.existsSync(path_1.default.resolve(appDirectory, "yarn.lock"))) {
|
|
35828
|
+
return "yarn";
|
|
35829
|
+
}
|
|
35830
|
+
if (compiled_1.fs.existsSync(path_1.default.resolve(appDirectory, "package-lock.json"))) {
|
|
35831
|
+
return "npm";
|
|
35832
|
+
}
|
|
35833
|
+
appDirectory = path_1.default.join(appDirectory, "..");
|
|
35834
|
+
}
|
|
35835
|
+
if (yield (0, nodeEnv_1.canUsePnpm)()) {
|
|
35755
35836
|
return "pnpm";
|
|
35756
35837
|
}
|
|
35757
|
-
if (
|
|
35838
|
+
if (yield (0, nodeEnv_1.canUseYarn)()) {
|
|
35758
35839
|
return "yarn";
|
|
35759
35840
|
}
|
|
35760
|
-
|
|
35761
|
-
|
|
35762
|
-
}
|
|
35763
|
-
appDirectory = path_1.default.join(appDirectory, "..");
|
|
35764
|
-
}
|
|
35765
|
-
if (await (0, nodeEnv_1.canUsePnpm)()) {
|
|
35766
|
-
return "pnpm";
|
|
35767
|
-
}
|
|
35768
|
-
if (await (0, nodeEnv_1.canUseYarn)()) {
|
|
35769
|
-
return "yarn";
|
|
35770
|
-
}
|
|
35771
|
-
return "npm";
|
|
35841
|
+
return "npm";
|
|
35842
|
+
});
|
|
35772
35843
|
}
|
|
35773
35844
|
exports.getPackageManager = getPackageManager;
|
|
35774
35845
|
}
|
|
@@ -35822,7 +35893,7 @@ var require_path = __commonJS({
|
|
|
35822
35893
|
try {
|
|
35823
35894
|
ret = os_1.default.tmpdir();
|
|
35824
35895
|
ret = fs_1.default.realpathSync(ret);
|
|
35825
|
-
} catch {
|
|
35896
|
+
} catch (e) {
|
|
35826
35897
|
}
|
|
35827
35898
|
return ret;
|
|
35828
35899
|
}
|
|
@@ -35869,7 +35940,7 @@ var require_runtimeExports = __commonJS({
|
|
|
35869
35940
|
compiled_1.fs.appendFileSync(entryExportFile, `${statement}
|
|
35870
35941
|
`);
|
|
35871
35942
|
}
|
|
35872
|
-
} catch {
|
|
35943
|
+
} catch (e) {
|
|
35873
35944
|
}
|
|
35874
35945
|
};
|
|
35875
35946
|
const getPath = () => entryExportFile;
|
|
@@ -35939,7 +36010,7 @@ var require_pathSerializer = __commonJS({
|
|
|
35939
36010
|
var createDefaultPathMatchers = (root) => {
|
|
35940
36011
|
const ret = [
|
|
35941
36012
|
{
|
|
35942
|
-
match:
|
|
36013
|
+
match: new RegExp("(?<=\\/)(\\.pnpm\\/.+?\\/node_modules)(?=\\/)"),
|
|
35943
36014
|
mark: "pnpmInner"
|
|
35944
36015
|
}
|
|
35945
36016
|
];
|
|
@@ -36118,10 +36189,7 @@ var require_alias = __commonJS({
|
|
|
36118
36189
|
const baseUrl = (_a = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _a === void 0 ? void 0 : _a.baseUrl;
|
|
36119
36190
|
return {
|
|
36120
36191
|
absoluteBaseUrl: baseUrl ? path_1.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
|
36121
|
-
paths: {
|
|
36122
|
-
...alias,
|
|
36123
|
-
...(_b = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _b === void 0 ? void 0 : _b.paths
|
|
36124
|
-
},
|
|
36192
|
+
paths: __spreadValues(__spreadValues({}, alias), (_b = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _b === void 0 ? void 0 : _b.paths),
|
|
36125
36193
|
isTsPath: true,
|
|
36126
36194
|
isTsProject
|
|
36127
36195
|
};
|
|
@@ -36188,20 +36256,20 @@ var require_watch = __commonJS({
|
|
|
36188
36256
|
ignored
|
|
36189
36257
|
});
|
|
36190
36258
|
watcher.on("ready", () => ready = true);
|
|
36191
|
-
watcher.on("change",
|
|
36259
|
+
watcher.on("change", (filePath) => __async(exports, null, function* () {
|
|
36192
36260
|
const changedFilePath = path4.resolve(filePath);
|
|
36193
|
-
|
|
36194
|
-
});
|
|
36195
|
-
watcher.on("add",
|
|
36261
|
+
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.CHANGE });
|
|
36262
|
+
}));
|
|
36263
|
+
watcher.on("add", (filePath) => __async(exports, null, function* () {
|
|
36196
36264
|
const changedFilePath = path4.resolve(filePath);
|
|
36197
36265
|
if (ready) {
|
|
36198
|
-
|
|
36266
|
+
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.ADD });
|
|
36199
36267
|
}
|
|
36200
|
-
});
|
|
36201
|
-
watcher.on("unlink",
|
|
36268
|
+
}));
|
|
36269
|
+
watcher.on("unlink", (filePath) => __async(exports, null, function* () {
|
|
36202
36270
|
const changedFilePath = path4.resolve(filePath);
|
|
36203
|
-
|
|
36204
|
-
});
|
|
36271
|
+
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.UNLINK });
|
|
36272
|
+
}));
|
|
36205
36273
|
watcher.on("error", (err) => {
|
|
36206
36274
|
throw err;
|
|
36207
36275
|
});
|
|
@@ -36231,11 +36299,11 @@ var require_emptyDir = __commonJS({
|
|
|
36231
36299
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36232
36300
|
exports.emptyDir = void 0;
|
|
36233
36301
|
var compiled_1 = require_compiled();
|
|
36234
|
-
var emptyDir =
|
|
36235
|
-
if (
|
|
36236
|
-
|
|
36302
|
+
var emptyDir = (dir) => __async(exports, null, function* () {
|
|
36303
|
+
if (yield compiled_1.fs.pathExists(dir)) {
|
|
36304
|
+
yield compiled_1.fs.emptyDir(dir);
|
|
36237
36305
|
}
|
|
36238
|
-
};
|
|
36306
|
+
});
|
|
36239
36307
|
exports.emptyDir = emptyDir;
|
|
36240
36308
|
}
|
|
36241
36309
|
});
|
|
@@ -36281,10 +36349,10 @@ var require_getServerConfig = __commonJS({
|
|
|
36281
36349
|
var path4 = __importStar(require("path"));
|
|
36282
36350
|
var constants_1 = require_constants();
|
|
36283
36351
|
var findExists_1 = require_findExists();
|
|
36284
|
-
var getServerConfig =
|
|
36352
|
+
var getServerConfig = (appDirectory, configFile) => __async(exports, null, function* () {
|
|
36285
36353
|
const configFilePath = (0, findExists_1.findExists)(constants_1.CONFIG_FILE_EXTENSIONS.map((extension) => path4.resolve(appDirectory, `${configFile}${extension}`)));
|
|
36286
36354
|
return configFilePath;
|
|
36287
|
-
};
|
|
36355
|
+
});
|
|
36288
36356
|
exports.getServerConfig = getServerConfig;
|
|
36289
36357
|
}
|
|
36290
36358
|
});
|
|
@@ -36454,12 +36522,12 @@ var require_analyzeProject = __commonJS({
|
|
|
36454
36522
|
exports.isApiOnly = void 0;
|
|
36455
36523
|
var path4 = __importStar(require("path"));
|
|
36456
36524
|
var compiled_1 = require_compiled();
|
|
36457
|
-
var isApiOnly =
|
|
36525
|
+
var isApiOnly = (appDirectory, entryDir) => __async(exports, null, function* () {
|
|
36458
36526
|
const srcDir = path4.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src");
|
|
36459
|
-
const existSrc =
|
|
36527
|
+
const existSrc = yield compiled_1.fs.pathExists(srcDir);
|
|
36460
36528
|
const options = (0, compiled_1.minimist)(process.argv.slice(2));
|
|
36461
36529
|
return !existSrc || Boolean(options["api-only"]);
|
|
36462
|
-
};
|
|
36530
|
+
});
|
|
36463
36531
|
exports.isApiOnly = isApiOnly;
|
|
36464
36532
|
}
|
|
36465
36533
|
});
|
|
@@ -36563,7 +36631,8 @@ var require_chainId = __commonJS({
|
|
|
36563
36631
|
ASSETS_RETRY: "ASSETS_RETRY",
|
|
36564
36632
|
AUTO_SET_ROOT_SIZE: "auto-set-root-size",
|
|
36565
36633
|
HTML_ASYNC_CHUNK: "html-async-chunk",
|
|
36566
|
-
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
|
36634
|
+
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin",
|
|
36635
|
+
HTML_TAGS: "html-tags"
|
|
36567
36636
|
},
|
|
36568
36637
|
MINIMIZER: {
|
|
36569
36638
|
JS: "js",
|
|
@@ -36590,9 +36659,11 @@ var require_version = __commonJS({
|
|
|
36590
36659
|
exports.isReact18 = exports.getPnpmVersion = void 0;
|
|
36591
36660
|
var path_1 = __importDefault(require("path"));
|
|
36592
36661
|
var compiled_1 = require_compiled();
|
|
36593
|
-
|
|
36594
|
-
|
|
36595
|
-
|
|
36662
|
+
function getPnpmVersion() {
|
|
36663
|
+
return __async(this, null, function* () {
|
|
36664
|
+
const { stdout } = yield (0, compiled_1.execa)("pnpm", ["--version"]);
|
|
36665
|
+
return stdout;
|
|
36666
|
+
});
|
|
36596
36667
|
}
|
|
36597
36668
|
exports.getPnpmVersion = getPnpmVersion;
|
|
36598
36669
|
var isReact18 = (cwd) => {
|
|
@@ -36601,10 +36672,7 @@ var require_version = __commonJS({
|
|
|
36601
36672
|
return false;
|
|
36602
36673
|
}
|
|
36603
36674
|
const pkgInfo = JSON.parse(compiled_1.fs.readFileSync(pkgPath, "utf8"));
|
|
36604
|
-
const deps = {
|
|
36605
|
-
...pkgInfo.devDependencies,
|
|
36606
|
-
...pkgInfo.dependencies
|
|
36607
|
-
};
|
|
36675
|
+
const deps = __spreadValues(__spreadValues({}, pkgInfo.devDependencies), pkgInfo.dependencies);
|
|
36608
36676
|
if (typeof deps.react !== "string") {
|
|
36609
36677
|
return false;
|
|
36610
36678
|
}
|
|
@@ -36744,6 +36812,33 @@ var require_getCoreJsVersion = __commonJS({
|
|
|
36744
36812
|
}
|
|
36745
36813
|
});
|
|
36746
36814
|
|
|
36815
|
+
// ../utils/dist/react.js
|
|
36816
|
+
var require_react = __commonJS({
|
|
36817
|
+
"../utils/dist/react.js"(exports) {
|
|
36818
|
+
"use strict";
|
|
36819
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
36820
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
36821
|
+
};
|
|
36822
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36823
|
+
exports.isBeyondReact17 = void 0;
|
|
36824
|
+
var path_1 = __importDefault(require("path"));
|
|
36825
|
+
var _1 = require_dist();
|
|
36826
|
+
var isBeyondReact17 = (cwd) => {
|
|
36827
|
+
const pkgPath = path_1.default.join(cwd, "package.json");
|
|
36828
|
+
if (!_1.fs.existsSync(pkgPath)) {
|
|
36829
|
+
return false;
|
|
36830
|
+
}
|
|
36831
|
+
const pkgInfo = JSON.parse(_1.fs.readFileSync(pkgPath, "utf8"));
|
|
36832
|
+
const deps = __spreadValues(__spreadValues({}, pkgInfo.devDependencies), pkgInfo.dependencies);
|
|
36833
|
+
if (typeof deps.react !== "string") {
|
|
36834
|
+
return false;
|
|
36835
|
+
}
|
|
36836
|
+
return _1.semver.satisfies(_1.semver.minVersion(deps.react), ">=17.0.0");
|
|
36837
|
+
};
|
|
36838
|
+
exports.isBeyondReact17 = isBeyondReact17;
|
|
36839
|
+
}
|
|
36840
|
+
});
|
|
36841
|
+
|
|
36747
36842
|
// ../utils/dist/index.js
|
|
36748
36843
|
var require_dist = __commonJS({
|
|
36749
36844
|
"../utils/dist/index.js"(exports) {
|
|
@@ -36811,6 +36906,7 @@ var require_dist = __commonJS({
|
|
|
36811
36906
|
__exportStar(require_routes(), exports);
|
|
36812
36907
|
__exportStar(require_test_utils(), exports);
|
|
36813
36908
|
__exportStar(require_getCoreJsVersion(), exports);
|
|
36909
|
+
__exportStar(require_react(), exports);
|
|
36814
36910
|
}
|
|
36815
36911
|
});
|
|
36816
36912
|
|
|
@@ -37277,20 +37373,22 @@ var require_fs_extra2 = __commonJS({
|
|
|
37277
37373
|
const o = r2(17);
|
|
37278
37374
|
const c = r2(971);
|
|
37279
37375
|
const s = r2(95);
|
|
37280
|
-
const a = n(
|
|
37281
|
-
|
|
37282
|
-
|
|
37283
|
-
|
|
37284
|
-
|
|
37285
|
-
|
|
37286
|
-
|
|
37287
|
-
|
|
37376
|
+
const a = n(function emptyDir(e3) {
|
|
37377
|
+
return __async(this, null, function* () {
|
|
37378
|
+
let t3;
|
|
37379
|
+
try {
|
|
37380
|
+
t3 = yield i.readdir(e3);
|
|
37381
|
+
} catch (e4) {
|
|
37382
|
+
return c.mkdirs(e3);
|
|
37383
|
+
}
|
|
37384
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
37385
|
+
});
|
|
37288
37386
|
});
|
|
37289
37387
|
function emptyDirSync(e3) {
|
|
37290
37388
|
let t3;
|
|
37291
37389
|
try {
|
|
37292
37390
|
t3 = i.readdirSync(e3);
|
|
37293
|
-
} catch {
|
|
37391
|
+
} catch (e4) {
|
|
37294
37392
|
return c.mkdirsSync(e3);
|
|
37295
37393
|
}
|
|
37296
37394
|
t3.forEach((t4) => {
|
|
@@ -37343,7 +37441,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37343
37441
|
let t3;
|
|
37344
37442
|
try {
|
|
37345
37443
|
t3 = o.statSync(e3);
|
|
37346
|
-
} catch {
|
|
37444
|
+
} catch (e4) {
|
|
37347
37445
|
}
|
|
37348
37446
|
if (t3 && t3.isFile())
|
|
37349
37447
|
return;
|
|
@@ -37410,7 +37508,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37410
37508
|
let r3;
|
|
37411
37509
|
try {
|
|
37412
37510
|
r3 = o.lstatSync(t3);
|
|
37413
|
-
} catch {
|
|
37511
|
+
} catch (e4) {
|
|
37414
37512
|
}
|
|
37415
37513
|
try {
|
|
37416
37514
|
const t4 = o.lstatSync(e3);
|
|
@@ -37505,7 +37603,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37505
37603
|
return t3;
|
|
37506
37604
|
try {
|
|
37507
37605
|
r3 = n.lstatSync(e3);
|
|
37508
|
-
} catch {
|
|
37606
|
+
} catch (e4) {
|
|
37509
37607
|
return "file";
|
|
37510
37608
|
}
|
|
37511
37609
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
|
@@ -37568,7 +37666,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37568
37666
|
let n2;
|
|
37569
37667
|
try {
|
|
37570
37668
|
n2 = o.lstatSync(t3);
|
|
37571
|
-
} catch {
|
|
37669
|
+
} catch (e4) {
|
|
37572
37670
|
}
|
|
37573
37671
|
if (n2 && n2.isSymbolicLink()) {
|
|
37574
37672
|
const r4 = o.statSync(e3);
|
|
@@ -37643,7 +37741,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37643
37741
|
}
|
|
37644
37742
|
}, 81: (e2, t2, r2) => {
|
|
37645
37743
|
"use strict";
|
|
37646
|
-
e2.exports = {
|
|
37744
|
+
e2.exports = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, r2(812)), r2(2)), r2(708)), r2(726)), r2(779)), r2(971)), r2(511)), r2(701)), r2(725)), r2(95));
|
|
37647
37745
|
}, 779: (e2, t2, r2) => {
|
|
37648
37746
|
"use strict";
|
|
37649
37747
|
const n = r2(5).fromPromise;
|
|
@@ -37674,9 +37772,11 @@ var require_fs_extra2 = __commonJS({
|
|
|
37674
37772
|
"use strict";
|
|
37675
37773
|
const { stringify: n } = r2(208);
|
|
37676
37774
|
const { outputFile: i } = r2(701);
|
|
37677
|
-
|
|
37678
|
-
|
|
37679
|
-
|
|
37775
|
+
function outputJson(_0, _1) {
|
|
37776
|
+
return __async(this, arguments, function* (e3, t3, r3 = {}) {
|
|
37777
|
+
const o = n(t3, r3);
|
|
37778
|
+
yield i(e3, o, r3);
|
|
37779
|
+
});
|
|
37680
37780
|
}
|
|
37681
37781
|
e2.exports = outputJson;
|
|
37682
37782
|
}, 971: (e2, t2, r2) => {
|
|
@@ -37693,12 +37793,12 @@ var require_fs_extra2 = __commonJS({
|
|
|
37693
37793
|
const t3 = { mode: 511 };
|
|
37694
37794
|
if (typeof e3 === "number")
|
|
37695
37795
|
return e3;
|
|
37696
|
-
return {
|
|
37796
|
+
return __spreadValues(__spreadValues({}, t3), e3).mode;
|
|
37697
37797
|
};
|
|
37698
|
-
e2.exports.makeDir =
|
|
37798
|
+
e2.exports.makeDir = (e3, t3) => __async(exports, null, function* () {
|
|
37699
37799
|
i(e3);
|
|
37700
37800
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
|
37701
|
-
};
|
|
37801
|
+
});
|
|
37702
37802
|
e2.exports.makeDirSync = (e3, t3) => {
|
|
37703
37803
|
i(e3);
|
|
37704
37804
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
|
@@ -38116,7 +38216,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
38116
38216
|
try {
|
|
38117
38217
|
const r4 = t3.rmdirSync(e3, t3);
|
|
38118
38218
|
return r4;
|
|
38119
|
-
} catch {
|
|
38219
|
+
} catch (e4) {
|
|
38120
38220
|
}
|
|
38121
38221
|
} while (Date.now() - r3 < 500);
|
|
38122
38222
|
} else {
|
|
@@ -39015,26 +39115,28 @@ var require_fs_extra2 = __commonJS({
|
|
|
39015
39115
|
}
|
|
39016
39116
|
const i = r2(5);
|
|
39017
39117
|
const { stringify: o, stripBom: c } = r2(208);
|
|
39018
|
-
|
|
39019
|
-
|
|
39020
|
-
|
|
39021
|
-
|
|
39022
|
-
|
|
39023
|
-
|
|
39024
|
-
|
|
39025
|
-
|
|
39026
|
-
|
|
39027
|
-
|
|
39028
|
-
|
|
39029
|
-
|
|
39030
|
-
|
|
39031
|
-
|
|
39032
|
-
|
|
39033
|
-
|
|
39034
|
-
|
|
39118
|
+
function _readFile(_0) {
|
|
39119
|
+
return __async(this, arguments, function* (e3, t3 = {}) {
|
|
39120
|
+
if (typeof t3 === "string") {
|
|
39121
|
+
t3 = { encoding: t3 };
|
|
39122
|
+
}
|
|
39123
|
+
const r3 = t3.fs || n;
|
|
39124
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
|
39125
|
+
let s2 = yield i.fromCallback(r3.readFile)(e3, t3);
|
|
39126
|
+
s2 = c(s2);
|
|
39127
|
+
let a2;
|
|
39128
|
+
try {
|
|
39129
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
|
39130
|
+
} catch (t4) {
|
|
39131
|
+
if (o2) {
|
|
39132
|
+
t4.message = `${e3}: ${t4.message}`;
|
|
39133
|
+
throw t4;
|
|
39134
|
+
} else {
|
|
39135
|
+
return null;
|
|
39136
|
+
}
|
|
39035
39137
|
}
|
|
39036
|
-
|
|
39037
|
-
|
|
39138
|
+
return a2;
|
|
39139
|
+
});
|
|
39038
39140
|
}
|
|
39039
39141
|
const s = i.fromPromise(_readFile);
|
|
39040
39142
|
function readFileSync(e3, t3 = {}) {
|
|
@@ -39056,10 +39158,12 @@ var require_fs_extra2 = __commonJS({
|
|
|
39056
39158
|
}
|
|
39057
39159
|
}
|
|
39058
39160
|
}
|
|
39059
|
-
|
|
39060
|
-
|
|
39061
|
-
|
|
39062
|
-
|
|
39161
|
+
function _writeFile(_0, _1) {
|
|
39162
|
+
return __async(this, arguments, function* (e3, t3, r3 = {}) {
|
|
39163
|
+
const c2 = r3.fs || n;
|
|
39164
|
+
const s2 = o(t3, r3);
|
|
39165
|
+
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
39166
|
+
});
|
|
39063
39167
|
}
|
|
39064
39168
|
const a = i.fromPromise(_writeFile);
|
|
39065
39169
|
function writeFileSync(e3, t3, r3 = {}) {
|
|
@@ -39287,11 +39391,11 @@ var require_chalk2 = __commonJS({
|
|
|
39287
39391
|
} };
|
|
39288
39392
|
}
|
|
39289
39393
|
const f = Object.defineProperties(() => {
|
|
39290
|
-
}, {
|
|
39394
|
+
}, __spreadProps(__spreadValues({}, u), { level: { enumerable: true, get() {
|
|
39291
39395
|
return this._generator.level;
|
|
39292
39396
|
}, set(e3) {
|
|
39293
39397
|
this._generator.level = e3;
|
|
39294
|
-
} } });
|
|
39398
|
+
} } }));
|
|
39295
39399
|
const createStyler = (e3, t3, n3) => {
|
|
39296
39400
|
let r2;
|
|
39297
39401
|
let s2;
|
|
@@ -39602,7 +39706,7 @@ var require_chalk2 = __commonJS({
|
|
|
39602
39706
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
|
39603
39707
|
};
|
|
39604
39708
|
function comparativeDistance(e3, t3) {
|
|
39605
|
-
return (e3[0] - t3[0]
|
|
39709
|
+
return __pow(e3[0] - t3[0], 2) + __pow(e3[1] - t3[1], 2) + __pow(e3[2] - t3[2], 2);
|
|
39606
39710
|
}
|
|
39607
39711
|
o.rgb.keyword = function(e3) {
|
|
39608
39712
|
const t3 = s[e3];
|
|
@@ -39628,9 +39732,9 @@ var require_chalk2 = __commonJS({
|
|
|
39628
39732
|
let t3 = e3[0] / 255;
|
|
39629
39733
|
let n3 = e3[1] / 255;
|
|
39630
39734
|
let r2 = e3[2] / 255;
|
|
39631
|
-
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055
|
|
39632
|
-
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055
|
|
39633
|
-
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055
|
|
39735
|
+
t3 = t3 > 0.04045 ? __pow((t3 + 0.055) / 1.055, 2.4) : t3 / 12.92;
|
|
39736
|
+
n3 = n3 > 0.04045 ? __pow((n3 + 0.055) / 1.055, 2.4) : n3 / 12.92;
|
|
39737
|
+
r2 = r2 > 0.04045 ? __pow((r2 + 0.055) / 1.055, 2.4) : r2 / 12.92;
|
|
39634
39738
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
|
39635
39739
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
|
39636
39740
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
|
@@ -39644,9 +39748,9 @@ var require_chalk2 = __commonJS({
|
|
|
39644
39748
|
n3 /= 95.047;
|
|
39645
39749
|
r2 /= 100;
|
|
39646
39750
|
s2 /= 108.883;
|
|
39647
|
-
n3 = n3 > 8856e-6 ? n3
|
|
39648
|
-
r2 = r2 > 8856e-6 ? r2
|
|
39649
|
-
s2 = s2 > 8856e-6 ? s2
|
|
39751
|
+
n3 = n3 > 8856e-6 ? __pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116;
|
|
39752
|
+
r2 = r2 > 8856e-6 ? __pow(r2, 1 / 3) : 7.787 * r2 + 16 / 116;
|
|
39753
|
+
s2 = s2 > 8856e-6 ? __pow(s2, 1 / 3) : 7.787 * s2 + 16 / 116;
|
|
39650
39754
|
const l = 116 * r2 - 16;
|
|
39651
39755
|
const c = 500 * (n3 - r2);
|
|
39652
39756
|
const i = 200 * (r2 - s2);
|
|
@@ -39820,9 +39924,9 @@ var require_chalk2 = __commonJS({
|
|
|
39820
39924
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
|
39821
39925
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
|
39822
39926
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
|
39823
|
-
s2 = s2 > 31308e-7 ? 1.055 * s2
|
|
39824
|
-
o2 = o2 > 31308e-7 ? 1.055 * o2
|
|
39825
|
-
l = l > 31308e-7 ? 1.055 * l
|
|
39927
|
+
s2 = s2 > 31308e-7 ? 1.055 * __pow(s2, 1 / 2.4) - 0.055 : s2 * 12.92;
|
|
39928
|
+
o2 = o2 > 31308e-7 ? 1.055 * __pow(o2, 1 / 2.4) - 0.055 : o2 * 12.92;
|
|
39929
|
+
l = l > 31308e-7 ? 1.055 * __pow(l, 1 / 2.4) - 0.055 : l * 12.92;
|
|
39826
39930
|
s2 = Math.min(Math.max(0, s2), 1);
|
|
39827
39931
|
o2 = Math.min(Math.max(0, o2), 1);
|
|
39828
39932
|
l = Math.min(Math.max(0, l), 1);
|
|
@@ -39835,9 +39939,9 @@ var require_chalk2 = __commonJS({
|
|
|
39835
39939
|
t3 /= 95.047;
|
|
39836
39940
|
n3 /= 100;
|
|
39837
39941
|
r2 /= 108.883;
|
|
39838
|
-
t3 = t3 > 8856e-6 ? t3
|
|
39839
|
-
n3 = n3 > 8856e-6 ? n3
|
|
39840
|
-
r2 = r2 > 8856e-6 ? r2
|
|
39942
|
+
t3 = t3 > 8856e-6 ? __pow(t3, 1 / 3) : 7.787 * t3 + 16 / 116;
|
|
39943
|
+
n3 = n3 > 8856e-6 ? __pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116;
|
|
39944
|
+
r2 = r2 > 8856e-6 ? __pow(r2, 1 / 3) : 7.787 * r2 + 16 / 116;
|
|
39841
39945
|
const s2 = 116 * n3 - 16;
|
|
39842
39946
|
const o2 = 500 * (t3 - n3);
|
|
39843
39947
|
const l = 200 * (n3 - r2);
|
|
@@ -39853,9 +39957,9 @@ var require_chalk2 = __commonJS({
|
|
|
39853
39957
|
o2 = (t3 + 16) / 116;
|
|
39854
39958
|
s2 = n3 / 500 + o2;
|
|
39855
39959
|
l = o2 - r2 / 200;
|
|
39856
|
-
const c = o2
|
|
39857
|
-
const i = s2
|
|
39858
|
-
const a = l
|
|
39960
|
+
const c = __pow(o2, 3);
|
|
39961
|
+
const i = __pow(s2, 3);
|
|
39962
|
+
const a = __pow(l, 3);
|
|
39859
39963
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
|
39860
39964
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
|
39861
39965
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
|
@@ -41111,7 +41215,7 @@ var require_ora2 = __commonJS({
|
|
|
41111
41215
|
if (typeof e3 === "string") {
|
|
41112
41216
|
e3 = { text: e3 };
|
|
41113
41217
|
}
|
|
41114
|
-
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true,
|
|
41218
|
+
this.options = __spreadValues({ text: "", color: "cyan", stream: process.stderr, discardStdin: true }, e3);
|
|
41115
41219
|
this.spinner = this.options.spinner;
|
|
41116
41220
|
this.color = this.options.color;
|
|
41117
41221
|
this.hideCursor = this.options.hideCursor !== false;
|
|
@@ -41328,14 +41432,14 @@ var require_ora2 = __commonJS({
|
|
|
41328
41432
|
}
|
|
41329
41433
|
const r3 = new Ora(t3);
|
|
41330
41434
|
r3.start();
|
|
41331
|
-
(
|
|
41435
|
+
(() => __async(exports, null, function* () {
|
|
41332
41436
|
try {
|
|
41333
|
-
|
|
41437
|
+
yield e3;
|
|
41334
41438
|
r3.succeed();
|
|
41335
|
-
} catch {
|
|
41439
|
+
} catch (e4) {
|
|
41336
41440
|
r3.fail();
|
|
41337
41441
|
}
|
|
41338
|
-
})();
|
|
41442
|
+
}))();
|
|
41339
41443
|
return r3;
|
|
41340
41444
|
};
|
|
41341
41445
|
}, 959: (e2) => {
|
|
@@ -49755,7 +49859,7 @@ var require_execa2 = __commonJS({
|
|
|
49755
49859
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
|
49756
49860
|
const T = 1e3 * 1e3 * 100;
|
|
49757
49861
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
|
49758
|
-
const s2 = t3 ? {
|
|
49862
|
+
const s2 = t3 ? __spreadValues(__spreadValues({}, process.env), e3) : e3;
|
|
49759
49863
|
if (n3) {
|
|
49760
49864
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
|
49761
49865
|
}
|
|
@@ -49766,7 +49870,7 @@ var require_execa2 = __commonJS({
|
|
|
49766
49870
|
e3 = o2.command;
|
|
49767
49871
|
t3 = o2.args;
|
|
49768
49872
|
n3 = o2.options;
|
|
49769
|
-
n3 = { maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true,
|
|
49873
|
+
n3 = __spreadValues({ maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true }, n3);
|
|
49770
49874
|
n3.env = getEnv(n3);
|
|
49771
49875
|
n3.stdio = u(n3);
|
|
49772
49876
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
|
@@ -49802,8 +49906,8 @@ var require_execa2 = __commonJS({
|
|
|
49802
49906
|
const T2 = { isCanceled: false };
|
|
49803
49907
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
|
49804
49908
|
a2.cancel = f.bind(null, a2, T2);
|
|
49805
|
-
const handlePromise =
|
|
49806
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
|
49909
|
+
const handlePromise = () => __async(exports, null, function* () {
|
|
49910
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = yield h(a2, r2.options, E2);
|
|
49807
49911
|
const f2 = handleOutput(r2.options, c2);
|
|
49808
49912
|
const p2 = handleOutput(r2.options, u3);
|
|
49809
49913
|
const m2 = handleOutput(r2.options, l2);
|
|
@@ -49815,7 +49919,7 @@ var require_execa2 = __commonJS({
|
|
|
49815
49919
|
throw c3;
|
|
49816
49920
|
}
|
|
49817
49921
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
49818
|
-
};
|
|
49922
|
+
});
|
|
49819
49923
|
const C = c(handlePromise);
|
|
49820
49924
|
x(a2, r2.options.input);
|
|
49821
49925
|
a2.all = y(a2, r2.options);
|
|
@@ -49860,7 +49964,7 @@ var require_execa2 = __commonJS({
|
|
|
49860
49964
|
const r2 = u.node(n3);
|
|
49861
49965
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
|
49862
49966
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
|
49863
|
-
return execa(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], {
|
|
49967
|
+
return execa(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], __spreadProps(__spreadValues({}, n3), { stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false }));
|
|
49864
49968
|
};
|
|
49865
49969
|
}, 192: (e2) => {
|
|
49866
49970
|
"use strict";
|
|
@@ -50016,7 +50120,7 @@ ${o.message}` : x;
|
|
|
50016
50120
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
|
50017
50121
|
}
|
|
50018
50122
|
};
|
|
50019
|
-
const setExitHandler =
|
|
50123
|
+
const setExitHandler = (_0, _1, _2) => __async(exports, [_0, _1, _2], function* (e3, { cleanup: t3, detached: n3 }, r2) {
|
|
50020
50124
|
if (!t3 || n3) {
|
|
50021
50125
|
return r2;
|
|
50022
50126
|
}
|
|
@@ -50026,17 +50130,17 @@ ${o.message}` : x;
|
|
|
50026
50130
|
return r2.finally(() => {
|
|
50027
50131
|
s2();
|
|
50028
50132
|
});
|
|
50029
|
-
};
|
|
50133
|
+
});
|
|
50030
50134
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
|
50031
50135
|
}, 210: (e2) => {
|
|
50032
50136
|
"use strict";
|
|
50033
|
-
const t2 = (
|
|
50034
|
-
})().constructor.prototype;
|
|
50137
|
+
const t2 = (() => __async(exports, null, function* () {
|
|
50138
|
+
}))().constructor.prototype;
|
|
50035
50139
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
|
50036
50140
|
const mergePromise = (e3, t3) => {
|
|
50037
50141
|
for (const [r, o] of n2) {
|
|
50038
50142
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
|
50039
|
-
Reflect.defineProperty(e3, r, {
|
|
50143
|
+
Reflect.defineProperty(e3, r, __spreadProps(__spreadValues({}, o), { value: n3 }));
|
|
50040
50144
|
}
|
|
50041
50145
|
return e3;
|
|
50042
50146
|
};
|
|
@@ -50120,17 +50224,17 @@ ${o.message}` : x;
|
|
|
50120
50224
|
}
|
|
50121
50225
|
return n3;
|
|
50122
50226
|
};
|
|
50123
|
-
const getBufferedData =
|
|
50227
|
+
const getBufferedData = (e3, t3) => __async(exports, null, function* () {
|
|
50124
50228
|
if (!e3) {
|
|
50125
50229
|
return;
|
|
50126
50230
|
}
|
|
50127
50231
|
e3.destroy();
|
|
50128
50232
|
try {
|
|
50129
|
-
return
|
|
50233
|
+
return yield t3;
|
|
50130
50234
|
} catch (e4) {
|
|
50131
50235
|
return e4.bufferedData;
|
|
50132
50236
|
}
|
|
50133
|
-
};
|
|
50237
|
+
});
|
|
50134
50238
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
|
50135
50239
|
if (!e3 || !n3) {
|
|
50136
50240
|
return;
|
|
@@ -50140,16 +50244,16 @@ ${o.message}` : x;
|
|
|
50140
50244
|
}
|
|
50141
50245
|
return o.buffer(e3, { maxBuffer: r2 });
|
|
50142
50246
|
};
|
|
50143
|
-
const getSpawnedResult =
|
|
50247
|
+
const getSpawnedResult = (_0, _1, _2) => __async(exports, [_0, _1, _2], function* ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) {
|
|
50144
50248
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
50145
50249
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
50146
50250
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
|
50147
50251
|
try {
|
|
50148
|
-
return
|
|
50252
|
+
return yield Promise.all([i, a, c, d]);
|
|
50149
50253
|
} catch (r3) {
|
|
50150
50254
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
|
50151
50255
|
}
|
|
50152
|
-
};
|
|
50256
|
+
});
|
|
50153
50257
|
const validateInputSync = ({ input: e3 }) => {
|
|
50154
50258
|
if (r(e3)) {
|
|
50155
50259
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
@@ -50160,7 +50264,7 @@ ${o.message}` : x;
|
|
|
50160
50264
|
"use strict";
|
|
50161
50265
|
const { PassThrough: r } = n2(781);
|
|
50162
50266
|
e2.exports = (e3) => {
|
|
50163
|
-
e3 = {
|
|
50267
|
+
e3 = __spreadValues({}, e3);
|
|
50164
50268
|
const { array: t3 } = e3;
|
|
50165
50269
|
let { encoding: n3 } = e3;
|
|
50166
50270
|
const o = n3 === "buffer";
|
|
@@ -50209,39 +50313,41 @@ ${o.message}` : x;
|
|
|
50209
50313
|
this.name = "MaxBufferError";
|
|
50210
50314
|
}
|
|
50211
50315
|
}
|
|
50212
|
-
|
|
50213
|
-
|
|
50214
|
-
|
|
50215
|
-
|
|
50216
|
-
|
|
50217
|
-
|
|
50218
|
-
|
|
50219
|
-
|
|
50220
|
-
|
|
50221
|
-
|
|
50222
|
-
e4
|
|
50223
|
-
|
|
50224
|
-
|
|
50225
|
-
|
|
50226
|
-
|
|
50227
|
-
|
|
50228
|
-
|
|
50229
|
-
|
|
50230
|
-
|
|
50231
|
-
|
|
50232
|
-
|
|
50233
|
-
|
|
50234
|
-
|
|
50235
|
-
|
|
50236
|
-
|
|
50237
|
-
|
|
50316
|
+
function getStream(e3, t3) {
|
|
50317
|
+
return __async(this, null, function* () {
|
|
50318
|
+
if (!e3) {
|
|
50319
|
+
throw new Error("Expected a stream");
|
|
50320
|
+
}
|
|
50321
|
+
t3 = __spreadValues({ maxBuffer: Infinity }, t3);
|
|
50322
|
+
const { maxBuffer: n3 } = t3;
|
|
50323
|
+
const o2 = i(t3);
|
|
50324
|
+
yield new Promise((t4, s2) => {
|
|
50325
|
+
const rejectPromise = (e4) => {
|
|
50326
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
|
50327
|
+
e4.bufferedData = o2.getBufferedValue();
|
|
50328
|
+
}
|
|
50329
|
+
s2(e4);
|
|
50330
|
+
};
|
|
50331
|
+
(() => __async(this, null, function* () {
|
|
50332
|
+
try {
|
|
50333
|
+
yield a(e3, o2);
|
|
50334
|
+
t4();
|
|
50335
|
+
} catch (e4) {
|
|
50336
|
+
rejectPromise(e4);
|
|
50337
|
+
}
|
|
50338
|
+
}))();
|
|
50339
|
+
o2.on("data", () => {
|
|
50340
|
+
if (o2.getBufferedLength() > n3) {
|
|
50341
|
+
rejectPromise(new MaxBufferError());
|
|
50342
|
+
}
|
|
50343
|
+
});
|
|
50238
50344
|
});
|
|
50345
|
+
return o2.getBufferedValue();
|
|
50239
50346
|
});
|
|
50240
|
-
return o2.getBufferedValue();
|
|
50241
50347
|
}
|
|
50242
50348
|
e2.exports = getStream;
|
|
50243
|
-
e2.exports.buffer = (e3, t3) => getStream(e3, {
|
|
50244
|
-
e2.exports.array = (e3, t3) => getStream(e3, {
|
|
50349
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, __spreadProps(__spreadValues({}, t3), { encoding: "buffer" }));
|
|
50350
|
+
e2.exports.array = (e3, t3) => getStream(e3, __spreadProps(__spreadValues({}, t3), { array: true }));
|
|
50245
50351
|
e2.exports.MaxBufferError = MaxBufferError;
|
|
50246
50352
|
}, 221: (e2, t2) => {
|
|
50247
50353
|
"use strict";
|
|
@@ -50261,7 +50367,7 @@ ${o.message}` : x;
|
|
|
50261
50367
|
return e3.reduce(getSignalByName, {});
|
|
50262
50368
|
};
|
|
50263
50369
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
|
50264
|
-
return {
|
|
50370
|
+
return __spreadProps(__spreadValues({}, e3), { [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } });
|
|
50265
50371
|
};
|
|
50266
50372
|
const i = getSignalsByName();
|
|
50267
50373
|
t2.signalsByName = i;
|
|
@@ -50493,7 +50599,7 @@ ${o.message}` : x;
|
|
|
50493
50599
|
const r = n2(17);
|
|
50494
50600
|
const o = n2(460);
|
|
50495
50601
|
const npmRunPath = (e3) => {
|
|
50496
|
-
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath,
|
|
50602
|
+
e3 = __spreadValues({ cwd: process.cwd(), path: process.env[o()], execPath: process.execPath }, e3);
|
|
50497
50603
|
let t3;
|
|
50498
50604
|
let n3 = r.resolve(e3.cwd);
|
|
50499
50605
|
const s = [];
|
|
@@ -50509,8 +50615,8 @@ ${o.message}` : x;
|
|
|
50509
50615
|
e2.exports = npmRunPath;
|
|
50510
50616
|
e2.exports["default"] = npmRunPath;
|
|
50511
50617
|
e2.exports.env = (t3) => {
|
|
50512
|
-
t3 = { env: process.env,
|
|
50513
|
-
const n3 = {
|
|
50618
|
+
t3 = __spreadValues({ env: process.env }, t3);
|
|
50619
|
+
const n3 = __spreadValues({}, t3.env);
|
|
50514
50620
|
const r2 = o({ env: n3 });
|
|
50515
50621
|
t3.path = n3[r2];
|
|
50516
50622
|
n3[r2] = e2.exports(t3);
|
|
@@ -51907,7 +52013,7 @@ var require_upath2 = __commonJS({
|
|
|
51907
52013
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
|
51908
52014
|
p = function(e3) {
|
|
51909
52015
|
e3 = e3.replace(/\\/g, "/");
|
|
51910
|
-
e3 = e3.replace(
|
|
52016
|
+
e3 = e3.replace(new RegExp("(?<!^)\\/+", "g"), "/");
|
|
51911
52017
|
return e3;
|
|
51912
52018
|
};
|
|
51913
52019
|
for (c in o) {
|
|
@@ -52203,7 +52309,9 @@ var require_pkg_up2 = __commonJS({
|
|
|
52203
52309
|
};
|
|
52204
52310
|
}, 800: (e2, r2, n2) => {
|
|
52205
52311
|
const t = n2(485);
|
|
52206
|
-
e2.exports =
|
|
52312
|
+
e2.exports = (..._0) => __async(exports, [..._0], function* ({ cwd: e3 } = {}) {
|
|
52313
|
+
return t("package.json", { cwd: e3 });
|
|
52314
|
+
});
|
|
52207
52315
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
|
52208
52316
|
}, 147: (e2) => {
|
|
52209
52317
|
e2.exports = require("fs");
|
|
@@ -55254,7 +55362,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
55254
55362
|
}
|
|
55255
55363
|
if (t4.nodes && t4.ranges > 0) {
|
|
55256
55364
|
let r4 = s.reduce(t4.nodes);
|
|
55257
|
-
let i2 = n(...r4, {
|
|
55365
|
+
let i2 = n(...r4, __spreadProps(__spreadValues({}, e3), { wrap: false, toRegex: true }));
|
|
55258
55366
|
if (i2.length !== 0) {
|
|
55259
55367
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
|
55260
55368
|
}
|
|
@@ -55680,11 +55788,13 @@ var require_fast_glob2 = __commonJS({
|
|
|
55680
55788
|
const a = r2(1066);
|
|
55681
55789
|
const u = r2(7190);
|
|
55682
55790
|
const c = r2(3828);
|
|
55683
|
-
|
|
55684
|
-
|
|
55685
|
-
|
|
55686
|
-
|
|
55687
|
-
|
|
55791
|
+
function FastGlob(t3, e3) {
|
|
55792
|
+
return __async(this, null, function* () {
|
|
55793
|
+
assertPatternsInput(t3);
|
|
55794
|
+
const r3 = getWorks(t3, i.default, e3);
|
|
55795
|
+
const n2 = yield Promise.all(r3);
|
|
55796
|
+
return c.array.flatten(n2);
|
|
55797
|
+
});
|
|
55688
55798
|
}
|
|
55689
55799
|
(function(t3) {
|
|
55690
55800
|
function sync(t4, e3) {
|
|
@@ -56855,7 +56965,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
56855
56965
|
};
|
|
56856
56966
|
const toRange = (t3, e3, r3, n2) => {
|
|
56857
56967
|
if (r3) {
|
|
56858
|
-
return s(t3, e3, { wrap: false,
|
|
56968
|
+
return s(t3, e3, __spreadValues({ wrap: false }, n2));
|
|
56859
56969
|
}
|
|
56860
56970
|
let i = String.fromCharCode(t3);
|
|
56861
56971
|
if (t3 === e3)
|
|
@@ -56921,7 +57031,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
56921
57031
|
g++;
|
|
56922
57032
|
}
|
|
56923
57033
|
if (n2.toRegex === true) {
|
|
56924
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false,
|
|
57034
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, __spreadValues({ wrap: false }, n2));
|
|
56925
57035
|
}
|
|
56926
57036
|
return _;
|
|
56927
57037
|
};
|
|
@@ -56963,7 +57073,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
56963
57073
|
if (isObject2(r3)) {
|
|
56964
57074
|
return fill(t3, e3, 0, r3);
|
|
56965
57075
|
}
|
|
56966
|
-
let s2 = {
|
|
57076
|
+
let s2 = __spreadValues({}, n2);
|
|
56967
57077
|
if (s2.capture === true)
|
|
56968
57078
|
s2.wrap = true;
|
|
56969
57079
|
r3 = r3 || s2.step || 1;
|
|
@@ -57287,7 +57397,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57287
57397
|
}
|
|
57288
57398
|
};
|
|
57289
57399
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
57290
|
-
let u2 = i(String(e3[o3]), {
|
|
57400
|
+
let u2 = i(String(e3[o3]), __spreadProps(__spreadValues({}, r3), { onResult }), true);
|
|
57291
57401
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
|
57292
57402
|
if (c2)
|
|
57293
57403
|
a++;
|
|
@@ -57329,7 +57439,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57329
57439
|
r3.onResult(t4);
|
|
57330
57440
|
s2.push(t4.output);
|
|
57331
57441
|
};
|
|
57332
|
-
let i2 = new Set(micromatch(t3, e3, {
|
|
57442
|
+
let i2 = new Set(micromatch(t3, e3, __spreadProps(__spreadValues({}, r3), { onResult })));
|
|
57333
57443
|
for (let t4 of s2) {
|
|
57334
57444
|
if (!i2.has(t4)) {
|
|
57335
57445
|
n2.add(t4);
|
|
@@ -57352,7 +57462,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57352
57462
|
return true;
|
|
57353
57463
|
}
|
|
57354
57464
|
}
|
|
57355
|
-
return micromatch.isMatch(t3, e3, {
|
|
57465
|
+
return micromatch.isMatch(t3, e3, __spreadProps(__spreadValues({}, r3), { contains: true }));
|
|
57356
57466
|
};
|
|
57357
57467
|
micromatch.matchKeys = (t3, e3, r3) => {
|
|
57358
57468
|
if (!o.isObject(t3)) {
|
|
@@ -57392,7 +57502,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57392
57502
|
};
|
|
57393
57503
|
micromatch.capture = (t3, e3, r3) => {
|
|
57394
57504
|
let n2 = o.isWindows(r3);
|
|
57395
|
-
let s2 = i.makeRe(String(t3), {
|
|
57505
|
+
let s2 = i.makeRe(String(t3), __spreadProps(__spreadValues({}, r3), { capture: true }));
|
|
57396
57506
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
|
57397
57507
|
if (a) {
|
|
57398
57508
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
|
@@ -57420,7 +57530,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57420
57530
|
micromatch.braceExpand = (t3, e3) => {
|
|
57421
57531
|
if (typeof t3 !== "string")
|
|
57422
57532
|
throw new TypeError("Expected a string");
|
|
57423
|
-
return micromatch.braces(t3, {
|
|
57533
|
+
return micromatch.braces(t3, __spreadProps(__spreadValues({}, e3), { expand: true }));
|
|
57424
57534
|
};
|
|
57425
57535
|
t2.exports = micromatch;
|
|
57426
57536
|
}, 376: (t2, e2, r2) => {
|
|
@@ -57447,7 +57557,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57447
57557
|
const m = `[^.${c}]`;
|
|
57448
57558
|
const v = `${f}*?`;
|
|
57449
57559
|
const E = { DOT_LITERAL: o, PLUS_LITERAL: a, QMARK_LITERAL: u, SLASH_LITERAL: c, ONE_CHAR: l, QMARK: f, END_ANCHOR: p, DOTS_SLASH: d, NO_DOT: _, NO_DOTS: g, NO_DOT_SLASH: y, NO_DOTS_SLASH: S, QMARK_NO_DOT: m, STAR: v, START_ANCHOR: h };
|
|
57450
|
-
const A = {
|
|
57560
|
+
const A = __spreadProps(__spreadValues({}, E), { SLASH_LITERAL: `[${s}]`, QMARK: i, STAR: `${i}*?`, DOTS_SLASH: `${o}{1,2}(?:[${s}]|$)`, NO_DOT: `(?!${o})`, NO_DOTS: `(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`, NO_DOT_SLASH: `(?!${o}{0,1}(?:[${s}]|$))`, NO_DOTS_SLASH: `(?!${o}{1,2}(?:[${s}]|$))`, QMARK_NO_DOT: `[^.${s}]`, START_ANCHOR: `(?:^|[${s}])`, END_ANCHOR: `(?:[${s}]|$)` });
|
|
57451
57561
|
const b = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
|
|
57452
57562
|
t2.exports = { MAX_LENGTH: 1024 * 64, POSIX_REGEX_SOURCE: b, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, SEP: n.sep, extglobChars(t3) {
|
|
57453
57563
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
@@ -57478,7 +57588,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57478
57588
|
throw new TypeError("Expected a string");
|
|
57479
57589
|
}
|
|
57480
57590
|
t3 = c[t3] || t3;
|
|
57481
|
-
const r3 = {
|
|
57591
|
+
const r3 = __spreadValues({}, e3);
|
|
57482
57592
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
57483
57593
|
let f = t3.length;
|
|
57484
57594
|
if (f > l) {
|
|
@@ -57570,7 +57680,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57570
57680
|
M = t4;
|
|
57571
57681
|
};
|
|
57572
57682
|
const extglobOpen = (t4, e4) => {
|
|
57573
|
-
const n2 = {
|
|
57683
|
+
const n2 = __spreadProps(__spreadValues({}, y[e4]), { conditions: 1, inner: "" });
|
|
57574
57684
|
n2.prev = M;
|
|
57575
57685
|
n2.parens = H.parens;
|
|
57576
57686
|
n2.output = H.output;
|
|
@@ -57592,7 +57702,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57592
57702
|
n2 = t4.close = `)$))${i2}`;
|
|
57593
57703
|
}
|
|
57594
57704
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
|
57595
|
-
const r4 = parse(s2, {
|
|
57705
|
+
const r4 = parse(s2, __spreadProps(__spreadValues({}, e3), { fastpaths: false })).output;
|
|
57596
57706
|
n2 = t4.close = `)${r4})${i2})`;
|
|
57597
57707
|
}
|
|
57598
57708
|
if (t4.prev.type === "bos") {
|
|
@@ -58114,7 +58224,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
58114
58224
|
return H;
|
|
58115
58225
|
};
|
|
58116
58226
|
parse.fastpaths = (t3, e3) => {
|
|
58117
|
-
const r3 = {
|
|
58227
|
+
const r3 = __spreadValues({}, e3);
|
|
58118
58228
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
58119
58229
|
const a2 = t3.length;
|
|
58120
58230
|
if (a2 > o2) {
|
|
@@ -58205,7 +58315,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
58205
58315
|
delete a2.state;
|
|
58206
58316
|
let isIgnored = () => false;
|
|
58207
58317
|
if (s2.ignore) {
|
|
58208
|
-
const t4 = {
|
|
58318
|
+
const t4 = __spreadProps(__spreadValues({}, e3), { ignore: null, onMatch: null, onResult: null });
|
|
58209
58319
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
|
58210
58320
|
}
|
|
58211
58321
|
const matcher = (r4, n3 = false) => {
|
|
@@ -58267,7 +58377,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
58267
58377
|
picomatch.parse = (t3, e3) => {
|
|
58268
58378
|
if (Array.isArray(t3))
|
|
58269
58379
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
|
58270
|
-
return i(t3, {
|
|
58380
|
+
return i(t3, __spreadProps(__spreadValues({}, e3), { fastpaths: false }));
|
|
58271
58381
|
};
|
|
58272
58382
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
|
58273
58383
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
|
@@ -58732,7 +58842,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
58732
58842
|
if (n(e3) === false) {
|
|
58733
58843
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
58734
58844
|
}
|
|
58735
|
-
let s = { relaxZeros: true,
|
|
58845
|
+
let s = __spreadValues({ relaxZeros: true }, r3);
|
|
58736
58846
|
if (typeof s.strictZeros === "boolean") {
|
|
58737
58847
|
s.relaxZeros = s.strictZeros === false;
|
|
58738
58848
|
}
|
|
@@ -59010,19 +59120,19 @@ var require_globby2 = __commonJS({
|
|
|
59010
59120
|
}
|
|
59011
59121
|
return [n.posix.join(t3, "**")];
|
|
59012
59122
|
};
|
|
59013
|
-
t2.exports =
|
|
59014
|
-
e3 = { cwd: process.cwd(),
|
|
59123
|
+
t2.exports = (t3, e3) => __async(exports, null, function* () {
|
|
59124
|
+
e3 = __spreadValues({ cwd: process.cwd() }, e3);
|
|
59015
59125
|
if (typeof e3.cwd !== "string") {
|
|
59016
59126
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
59017
59127
|
}
|
|
59018
|
-
const r3 =
|
|
59019
|
-
const r4 =
|
|
59128
|
+
const r3 = yield Promise.all([].concat(t3).map((t4) => __async(exports, null, function* () {
|
|
59129
|
+
const r4 = yield s.isDirectory(getPath(t4, e3.cwd));
|
|
59020
59130
|
return r4 ? getGlob(t4, e3) : t4;
|
|
59021
|
-
}));
|
|
59131
|
+
})));
|
|
59022
59132
|
return [].concat.apply([], r3);
|
|
59023
|
-
};
|
|
59133
|
+
});
|
|
59024
59134
|
t2.exports.sync = (t3, e3) => {
|
|
59025
|
-
e3 = { cwd: process.cwd(),
|
|
59135
|
+
e3 = __spreadValues({ cwd: process.cwd() }, e3);
|
|
59026
59136
|
if (typeof e3.cwd !== "string") {
|
|
59027
59137
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
59028
59138
|
}
|
|
@@ -59067,24 +59177,24 @@ var require_globby2 = __commonJS({
|
|
|
59067
59177
|
return o.join(t3, e3);
|
|
59068
59178
|
};
|
|
59069
59179
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
|
59070
|
-
const getFile =
|
|
59180
|
+
const getFile = (t3, e3) => __async(exports, null, function* () {
|
|
59071
59181
|
const r3 = o.join(e3, t3);
|
|
59072
|
-
const n2 =
|
|
59182
|
+
const n2 = yield u(r3, "utf8");
|
|
59073
59183
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
59074
|
-
};
|
|
59184
|
+
});
|
|
59075
59185
|
const getFileSync = (t3, e3) => {
|
|
59076
59186
|
const r3 = o.join(e3, t3);
|
|
59077
59187
|
const n2 = s.readFileSync(r3, "utf8");
|
|
59078
59188
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
59079
59189
|
};
|
|
59080
59190
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
|
59081
|
-
t2.exports =
|
|
59191
|
+
t2.exports = (t3) => __async(exports, null, function* () {
|
|
59082
59192
|
t3 = normalizeOptions(t3);
|
|
59083
|
-
const e3 =
|
|
59084
|
-
const r3 =
|
|
59193
|
+
const e3 = yield i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
59194
|
+
const r3 = yield Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
|
59085
59195
|
const n2 = reduceIgnore(r3);
|
|
59086
59196
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
|
59087
|
-
};
|
|
59197
|
+
});
|
|
59088
59198
|
t2.exports.sync = (t3) => {
|
|
59089
59199
|
t3 = normalizeOptions(t3);
|
|
59090
59200
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
@@ -59115,7 +59225,7 @@ var require_globby2 = __commonJS({
|
|
|
59115
59225
|
let e3;
|
|
59116
59226
|
try {
|
|
59117
59227
|
e3 = n.statSync(t3.cwd);
|
|
59118
|
-
} catch {
|
|
59228
|
+
} catch (e4) {
|
|
59119
59229
|
return;
|
|
59120
59230
|
}
|
|
59121
59231
|
if (!e3.isDirectory()) {
|
|
@@ -59128,13 +59238,13 @@ var require_globby2 = __commonJS({
|
|
|
59128
59238
|
assertPatternsInput(t3);
|
|
59129
59239
|
checkCwdOption(e3);
|
|
59130
59240
|
const r3 = [];
|
|
59131
|
-
e3 = { ignore: [], expandDirectories: true,
|
|
59241
|
+
e3 = __spreadValues({ ignore: [], expandDirectories: true }, e3);
|
|
59132
59242
|
for (const [n2, s2] of t3.entries()) {
|
|
59133
59243
|
if (isNegative(s2)) {
|
|
59134
59244
|
continue;
|
|
59135
59245
|
}
|
|
59136
59246
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
|
59137
|
-
const i2 = {
|
|
59247
|
+
const i2 = __spreadProps(__spreadValues({}, e3), { ignore: e3.ignore.concat(o2) });
|
|
59138
59248
|
r3.push({ pattern: s2, options: i2 });
|
|
59139
59249
|
}
|
|
59140
59250
|
return r3;
|
|
@@ -59145,9 +59255,9 @@ var require_globby2 = __commonJS({
|
|
|
59145
59255
|
r3.cwd = t3.options.cwd;
|
|
59146
59256
|
}
|
|
59147
59257
|
if (Array.isArray(t3.options.expandDirectories)) {
|
|
59148
|
-
r3 = {
|
|
59258
|
+
r3 = __spreadProps(__spreadValues({}, r3), { files: t3.options.expandDirectories });
|
|
59149
59259
|
} else if (typeof t3.options.expandDirectories === "object") {
|
|
59150
|
-
r3 = {
|
|
59260
|
+
r3 = __spreadValues(__spreadValues({}, r3), t3.options.expandDirectories);
|
|
59151
59261
|
}
|
|
59152
59262
|
return e3(t3.pattern, r3);
|
|
59153
59263
|
};
|
|
@@ -59160,20 +59270,22 @@ var require_globby2 = __commonJS({
|
|
|
59160
59270
|
}
|
|
59161
59271
|
return { pattern: e3, options: r3 };
|
|
59162
59272
|
};
|
|
59163
|
-
t2.exports =
|
|
59273
|
+
t2.exports = (t3, e3) => __async(exports, null, function* () {
|
|
59164
59274
|
const r3 = generateGlobTasks(t3, e3);
|
|
59165
|
-
const getFilter =
|
|
59166
|
-
|
|
59167
|
-
|
|
59168
|
-
|
|
59275
|
+
const getFilter = () => __async(exports, null, function* () {
|
|
59276
|
+
return e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
|
59277
|
+
});
|
|
59278
|
+
const getTasks = () => __async(exports, null, function* () {
|
|
59279
|
+
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
|
59280
|
+
const e4 = yield getPattern(t5, c);
|
|
59169
59281
|
return Promise.all(e4.map(globToTask(t5)));
|
|
59170
|
-
}));
|
|
59282
|
+
})));
|
|
59171
59283
|
return s(...t4);
|
|
59172
|
-
};
|
|
59173
|
-
const [n2, o2] =
|
|
59174
|
-
const p2 =
|
|
59284
|
+
});
|
|
59285
|
+
const [n2, o2] = yield Promise.all([getFilter(), getTasks()]);
|
|
59286
|
+
const p2 = yield Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
|
59175
59287
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
|
59176
|
-
};
|
|
59288
|
+
});
|
|
59177
59289
|
t2.exports.sync = (t3, e3) => {
|
|
59178
59290
|
const r3 = generateGlobTasks(t3, e3);
|
|
59179
59291
|
const n2 = [];
|
|
@@ -59527,19 +59639,21 @@ var require_globby2 = __commonJS({
|
|
|
59527
59639
|
"use strict";
|
|
59528
59640
|
const { promisify: n } = r2(837);
|
|
59529
59641
|
const s = r2(147);
|
|
59530
|
-
|
|
59531
|
-
|
|
59532
|
-
|
|
59533
|
-
|
|
59534
|
-
try {
|
|
59535
|
-
const o = await n(s[t3])(r3);
|
|
59536
|
-
return o[e3]();
|
|
59537
|
-
} catch (t4) {
|
|
59538
|
-
if (t4.code === "ENOENT") {
|
|
59539
|
-
return false;
|
|
59642
|
+
function isType(t3, e3, r3) {
|
|
59643
|
+
return __async(this, null, function* () {
|
|
59644
|
+
if (typeof r3 !== "string") {
|
|
59645
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
|
59540
59646
|
}
|
|
59541
|
-
|
|
59542
|
-
|
|
59647
|
+
try {
|
|
59648
|
+
const o = yield n(s[t3])(r3);
|
|
59649
|
+
return o[e3]();
|
|
59650
|
+
} catch (t4) {
|
|
59651
|
+
if (t4.code === "ENOENT") {
|
|
59652
|
+
return false;
|
|
59653
|
+
}
|
|
59654
|
+
throw t4;
|
|
59655
|
+
}
|
|
59656
|
+
});
|
|
59543
59657
|
}
|
|
59544
59658
|
function isTypeSync(t3, e3, r3) {
|
|
59545
59659
|
if (typeof r3 !== "string") {
|
|
@@ -61914,15 +62028,15 @@ var require_gzip_size2 = __commonJS({
|
|
|
61914
62028
|
const i = t2(796);
|
|
61915
62029
|
const { promisify: a } = t2(837);
|
|
61916
62030
|
const s = t2(325);
|
|
61917
|
-
const getOptions = (e3) => ({ level: 9,
|
|
62031
|
+
const getOptions = (e3) => __spreadValues({ level: 9 }, e3);
|
|
61918
62032
|
const p = a(i.gzip);
|
|
61919
|
-
e2.exports =
|
|
62033
|
+
e2.exports = (e3, r3) => __async(exports, null, function* () {
|
|
61920
62034
|
if (!e3) {
|
|
61921
62035
|
return 0;
|
|
61922
62036
|
}
|
|
61923
|
-
const t3 =
|
|
62037
|
+
const t3 = yield p(e3, getOptions(r3));
|
|
61924
62038
|
return t3.length;
|
|
61925
|
-
};
|
|
62039
|
+
});
|
|
61926
62040
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
|
61927
62041
|
e2.exports.stream = (e3) => {
|
|
61928
62042
|
const r3 = new o.PassThrough();
|
|
@@ -64681,10 +64795,12 @@ Expecting one of '${i3.join("', '")}'`);
|
|
|
64681
64795
|
this._parseCommand([], i3);
|
|
64682
64796
|
return this;
|
|
64683
64797
|
}
|
|
64684
|
-
|
|
64685
|
-
|
|
64686
|
-
|
|
64687
|
-
|
|
64798
|
+
parseAsync(e3, t3) {
|
|
64799
|
+
return __async(this, null, function* () {
|
|
64800
|
+
const i3 = this._prepareUserArgs(e3, t3);
|
|
64801
|
+
yield this._parseCommand([], i3);
|
|
64802
|
+
return this;
|
|
64803
|
+
});
|
|
64688
64804
|
}
|
|
64689
64805
|
_executeSubCommand(e3, t3) {
|
|
64690
64806
|
t3 = t3.slice();
|
|
@@ -65956,11 +66072,8 @@ var require_logger2 = __commonJS({
|
|
|
65956
66072
|
var Logger2 = class {
|
|
65957
66073
|
constructor(options = {}) {
|
|
65958
66074
|
this.level = options.level || LOG_TYPES.log.level;
|
|
65959
|
-
this.config = {
|
|
65960
|
-
this.types = {
|
|
65961
|
-
...LOG_TYPES,
|
|
65962
|
-
...options.types || {}
|
|
65963
|
-
};
|
|
66075
|
+
this.config = __spreadValues(__spreadValues({}, DEFAULT_CONFIG), options.config || {});
|
|
66076
|
+
this.types = __spreadValues(__spreadValues({}, LOG_TYPES), options.types || {});
|
|
65964
66077
|
this.longestLabel = this.getLongestLabel();
|
|
65965
66078
|
Object.keys(this.types).forEach((type) => {
|
|
65966
66079
|
this[type] = this._log.bind(this, type);
|
|
@@ -66715,7 +66828,7 @@ var require_getEntryOptions2 = __commonJS({
|
|
|
66715
66828
|
if (optionsByEntry === void 0 && name === constants_1.MAIN_ENTRY_NAME && packageName) {
|
|
66716
66829
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
|
66717
66830
|
}
|
|
66718
|
-
return optionsByEntry !== void 0 ? (0, is_1.isPlainObject)(optionsByEntry) && (0, is_1.isPlainObject)(baseOptions) ? {
|
|
66831
|
+
return optionsByEntry !== void 0 ? (0, is_1.isPlainObject)(optionsByEntry) && (0, is_1.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
|
|
66719
66832
|
} else {
|
|
66720
66833
|
return baseOptions;
|
|
66721
66834
|
}
|
|
@@ -66737,7 +66850,7 @@ var require_getPort2 = __commonJS({
|
|
|
66737
66850
|
var net_1 = __importDefault(require("net"));
|
|
66738
66851
|
var compiled_1 = require_compiled2();
|
|
66739
66852
|
var logger_1 = require_logger2();
|
|
66740
|
-
var getPort =
|
|
66853
|
+
var getPort = (_0, ..._1) => __async(exports, [_0, ..._1], function* (port, { tryLimits = 20, strictPort = false } = {}) {
|
|
66741
66854
|
if (typeof port === "string") {
|
|
66742
66855
|
port = parseInt(port, 10);
|
|
66743
66856
|
}
|
|
@@ -66749,7 +66862,7 @@ var require_getPort2 = __commonJS({
|
|
|
66749
66862
|
let attempts = 0;
|
|
66750
66863
|
while (!found && attempts <= tryLimits) {
|
|
66751
66864
|
try {
|
|
66752
|
-
|
|
66865
|
+
yield new Promise((resolve, reject) => {
|
|
66753
66866
|
const server = net_1.default.createServer();
|
|
66754
66867
|
server.unref();
|
|
66755
66868
|
server.on("error", reject);
|
|
@@ -66777,7 +66890,7 @@ var require_getPort2 = __commonJS({
|
|
|
66777
66890
|
}
|
|
66778
66891
|
}
|
|
66779
66892
|
return port;
|
|
66780
|
-
};
|
|
66893
|
+
});
|
|
66781
66894
|
exports.getPort = getPort;
|
|
66782
66895
|
}
|
|
66783
66896
|
});
|
|
@@ -66822,10 +66935,7 @@ var require_monorepo2 = __commonJS({
|
|
|
66822
66935
|
return false;
|
|
66823
66936
|
}
|
|
66824
66937
|
const json = JSON.parse(fs_1.default.readFileSync(pkgJsonPath, "utf8"));
|
|
66825
|
-
const deps = {
|
|
66826
|
-
...json.dependencies || {},
|
|
66827
|
-
...json.devDependencies || {}
|
|
66828
|
-
};
|
|
66938
|
+
const deps = __spreadValues(__spreadValues({}, json.dependencies || {}), json.devDependencies || {});
|
|
66829
66939
|
return Boolean(deps["@modern-js/monorepo-tools"]);
|
|
66830
66940
|
};
|
|
66831
66941
|
exports.isModernjsMonorepo = isModernjsMonorepo;
|
|
@@ -66873,31 +66983,37 @@ var require_nodeEnv2 = __commonJS({
|
|
|
66873
66983
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66874
66984
|
exports.canUsePnpm = exports.canUseYarn = exports.canUseNpm = void 0;
|
|
66875
66985
|
var compiled_1 = require_compiled2();
|
|
66876
|
-
|
|
66877
|
-
|
|
66878
|
-
|
|
66879
|
-
|
|
66880
|
-
|
|
66881
|
-
|
|
66882
|
-
|
|
66986
|
+
function canUseNpm() {
|
|
66987
|
+
return __async(this, null, function* () {
|
|
66988
|
+
try {
|
|
66989
|
+
yield (0, compiled_1.execa)("npm", ["--version"], { env: process.env });
|
|
66990
|
+
return true;
|
|
66991
|
+
} catch (e) {
|
|
66992
|
+
return false;
|
|
66993
|
+
}
|
|
66994
|
+
});
|
|
66883
66995
|
}
|
|
66884
66996
|
exports.canUseNpm = canUseNpm;
|
|
66885
|
-
|
|
66886
|
-
|
|
66887
|
-
|
|
66888
|
-
|
|
66889
|
-
|
|
66890
|
-
|
|
66891
|
-
|
|
66997
|
+
function canUseYarn() {
|
|
66998
|
+
return __async(this, null, function* () {
|
|
66999
|
+
try {
|
|
67000
|
+
yield (0, compiled_1.execa)("yarn", ["--version"], { env: process.env });
|
|
67001
|
+
return true;
|
|
67002
|
+
} catch (e) {
|
|
67003
|
+
return false;
|
|
67004
|
+
}
|
|
67005
|
+
});
|
|
66892
67006
|
}
|
|
66893
67007
|
exports.canUseYarn = canUseYarn;
|
|
66894
|
-
|
|
66895
|
-
|
|
66896
|
-
|
|
66897
|
-
|
|
66898
|
-
|
|
66899
|
-
|
|
66900
|
-
|
|
67008
|
+
function canUsePnpm() {
|
|
67009
|
+
return __async(this, null, function* () {
|
|
67010
|
+
try {
|
|
67011
|
+
yield (0, compiled_1.execa)("pnpm", ["--version"], { env: process.env });
|
|
67012
|
+
return true;
|
|
67013
|
+
} catch (e) {
|
|
67014
|
+
return false;
|
|
67015
|
+
}
|
|
67016
|
+
});
|
|
66901
67017
|
}
|
|
66902
67018
|
exports.canUsePnpm = canUsePnpm;
|
|
66903
67019
|
}
|
|
@@ -66917,29 +67033,31 @@ var require_getPackageManager2 = __commonJS({
|
|
|
66917
67033
|
var compiled_1 = require_compiled2();
|
|
66918
67034
|
var nodeEnv_1 = require_nodeEnv2();
|
|
66919
67035
|
var MAX_TIMES = 5;
|
|
66920
|
-
|
|
66921
|
-
|
|
66922
|
-
|
|
66923
|
-
|
|
66924
|
-
times
|
|
66925
|
-
|
|
67036
|
+
function getPackageManager() {
|
|
67037
|
+
return __async(this, arguments, function* (cwd = process.cwd()) {
|
|
67038
|
+
let appDirectory = cwd;
|
|
67039
|
+
let times = 0;
|
|
67040
|
+
while (os_1.default.homedir() !== appDirectory && times < MAX_TIMES) {
|
|
67041
|
+
times++;
|
|
67042
|
+
if (compiled_1.fs.existsSync(path_1.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
|
67043
|
+
return "pnpm";
|
|
67044
|
+
}
|
|
67045
|
+
if (compiled_1.fs.existsSync(path_1.default.resolve(appDirectory, "yarn.lock"))) {
|
|
67046
|
+
return "yarn";
|
|
67047
|
+
}
|
|
67048
|
+
if (compiled_1.fs.existsSync(path_1.default.resolve(appDirectory, "package-lock.json"))) {
|
|
67049
|
+
return "npm";
|
|
67050
|
+
}
|
|
67051
|
+
appDirectory = path_1.default.join(appDirectory, "..");
|
|
67052
|
+
}
|
|
67053
|
+
if (yield (0, nodeEnv_1.canUsePnpm)()) {
|
|
66926
67054
|
return "pnpm";
|
|
66927
67055
|
}
|
|
66928
|
-
if (
|
|
67056
|
+
if (yield (0, nodeEnv_1.canUseYarn)()) {
|
|
66929
67057
|
return "yarn";
|
|
66930
67058
|
}
|
|
66931
|
-
|
|
66932
|
-
|
|
66933
|
-
}
|
|
66934
|
-
appDirectory = path_1.default.join(appDirectory, "..");
|
|
66935
|
-
}
|
|
66936
|
-
if (await (0, nodeEnv_1.canUsePnpm)()) {
|
|
66937
|
-
return "pnpm";
|
|
66938
|
-
}
|
|
66939
|
-
if (await (0, nodeEnv_1.canUseYarn)()) {
|
|
66940
|
-
return "yarn";
|
|
66941
|
-
}
|
|
66942
|
-
return "npm";
|
|
67059
|
+
return "npm";
|
|
67060
|
+
});
|
|
66943
67061
|
}
|
|
66944
67062
|
exports.getPackageManager = getPackageManager;
|
|
66945
67063
|
}
|
|
@@ -67012,7 +67130,7 @@ var require_runtimeExports2 = __commonJS({
|
|
|
67012
67130
|
compiled_1.fs.appendFileSync(entryExportFile, `${statement}
|
|
67013
67131
|
`);
|
|
67014
67132
|
}
|
|
67015
|
-
} catch {
|
|
67133
|
+
} catch (e) {
|
|
67016
67134
|
}
|
|
67017
67135
|
};
|
|
67018
67136
|
const getPath = () => entryExportFile;
|
|
@@ -67209,10 +67327,7 @@ var require_alias2 = __commonJS({
|
|
|
67209
67327
|
const baseUrl = (_a = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _a === void 0 ? void 0 : _a.baseUrl;
|
|
67210
67328
|
aliasConfig = {
|
|
67211
67329
|
absoluteBaseUrl: baseUrl ? path_1.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
|
67212
|
-
paths: {
|
|
67213
|
-
...aliasOption || {},
|
|
67214
|
-
...(_b = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _b === void 0 ? void 0 : _b.paths
|
|
67215
|
-
},
|
|
67330
|
+
paths: __spreadValues(__spreadValues({}, aliasOption || {}), (_b = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _b === void 0 ? void 0 : _b.paths),
|
|
67216
67331
|
isTsPath: true,
|
|
67217
67332
|
isTsProject
|
|
67218
67333
|
};
|
|
@@ -67281,20 +67396,20 @@ var require_watch2 = __commonJS({
|
|
|
67281
67396
|
ignored
|
|
67282
67397
|
});
|
|
67283
67398
|
watcher.on("ready", () => ready = true);
|
|
67284
|
-
watcher.on("change",
|
|
67399
|
+
watcher.on("change", (filePath) => __async(exports, null, function* () {
|
|
67285
67400
|
const changedFilePath = path4.resolve(filePath);
|
|
67286
|
-
|
|
67287
|
-
});
|
|
67288
|
-
watcher.on("add",
|
|
67401
|
+
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.CHANGE });
|
|
67402
|
+
}));
|
|
67403
|
+
watcher.on("add", (filePath) => __async(exports, null, function* () {
|
|
67289
67404
|
const changedFilePath = path4.resolve(filePath);
|
|
67290
67405
|
if (ready) {
|
|
67291
|
-
|
|
67406
|
+
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.ADD });
|
|
67292
67407
|
}
|
|
67293
|
-
});
|
|
67294
|
-
watcher.on("unlink",
|
|
67408
|
+
}));
|
|
67409
|
+
watcher.on("unlink", (filePath) => __async(exports, null, function* () {
|
|
67295
67410
|
const changedFilePath = path4.resolve(filePath);
|
|
67296
|
-
|
|
67297
|
-
});
|
|
67411
|
+
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.UNLINK });
|
|
67412
|
+
}));
|
|
67298
67413
|
watcher.on("error", (err) => {
|
|
67299
67414
|
throw err;
|
|
67300
67415
|
});
|
|
@@ -67324,11 +67439,11 @@ var require_emptyDir2 = __commonJS({
|
|
|
67324
67439
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67325
67440
|
exports.emptyDir = void 0;
|
|
67326
67441
|
var compiled_1 = require_compiled2();
|
|
67327
|
-
var emptyDir =
|
|
67328
|
-
if (
|
|
67329
|
-
|
|
67442
|
+
var emptyDir = (dir) => __async(exports, null, function* () {
|
|
67443
|
+
if (yield compiled_1.fs.pathExists(dir)) {
|
|
67444
|
+
yield compiled_1.fs.emptyDir(dir);
|
|
67330
67445
|
}
|
|
67331
|
-
};
|
|
67446
|
+
});
|
|
67332
67447
|
exports.emptyDir = emptyDir;
|
|
67333
67448
|
}
|
|
67334
67449
|
});
|
|
@@ -67374,10 +67489,10 @@ var require_getServerConfig2 = __commonJS({
|
|
|
67374
67489
|
var path4 = __importStar(require("path"));
|
|
67375
67490
|
var constants_1 = require_constants3();
|
|
67376
67491
|
var findExists_1 = require_findExists2();
|
|
67377
|
-
var getServerConfig =
|
|
67492
|
+
var getServerConfig = (appDirectory, configFile) => __async(exports, null, function* () {
|
|
67378
67493
|
const configFilePath = (0, findExists_1.findExists)(constants_1.CONFIG_FILE_EXTENSIONS.map((extension) => path4.resolve(appDirectory, `${configFile}${extension}`)));
|
|
67379
67494
|
return configFilePath;
|
|
67380
|
-
};
|
|
67495
|
+
});
|
|
67381
67496
|
exports.getServerConfig = getServerConfig;
|
|
67382
67497
|
}
|
|
67383
67498
|
});
|
|
@@ -67547,12 +67662,12 @@ var require_analyzeProject2 = __commonJS({
|
|
|
67547
67662
|
exports.isApiOnly = void 0;
|
|
67548
67663
|
var path4 = __importStar(require("path"));
|
|
67549
67664
|
var compiled_1 = require_compiled2();
|
|
67550
|
-
var isApiOnly =
|
|
67665
|
+
var isApiOnly = (appDirectory, entryDir) => __async(exports, null, function* () {
|
|
67551
67666
|
const srcDir = path4.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src");
|
|
67552
|
-
const existSrc =
|
|
67667
|
+
const existSrc = yield compiled_1.fs.pathExists(srcDir);
|
|
67553
67668
|
const options = (0, compiled_1.minimist)(process.argv.slice(2));
|
|
67554
67669
|
return !existSrc || Boolean(options["api-only"]);
|
|
67555
|
-
};
|
|
67670
|
+
});
|
|
67556
67671
|
exports.isApiOnly = isApiOnly;
|
|
67557
67672
|
}
|
|
67558
67673
|
});
|
|
@@ -67671,9 +67786,11 @@ var require_version2 = __commonJS({
|
|
|
67671
67786
|
exports.isReact18 = exports.getPnpmVersion = void 0;
|
|
67672
67787
|
var path_1 = __importDefault(require("path"));
|
|
67673
67788
|
var compiled_1 = require_compiled2();
|
|
67674
|
-
|
|
67675
|
-
|
|
67676
|
-
|
|
67789
|
+
function getPnpmVersion() {
|
|
67790
|
+
return __async(this, null, function* () {
|
|
67791
|
+
const { stdout } = yield (0, compiled_1.execa)("pnpm", ["--version"]);
|
|
67792
|
+
return stdout;
|
|
67793
|
+
});
|
|
67677
67794
|
}
|
|
67678
67795
|
exports.getPnpmVersion = getPnpmVersion;
|
|
67679
67796
|
var isReact18 = (cwd) => {
|
|
@@ -67682,10 +67799,7 @@ var require_version2 = __commonJS({
|
|
|
67682
67799
|
return false;
|
|
67683
67800
|
}
|
|
67684
67801
|
const pkgInfo = JSON.parse(compiled_1.fs.readFileSync(pkgPath, "utf8"));
|
|
67685
|
-
const deps = {
|
|
67686
|
-
...pkgInfo.devDependencies,
|
|
67687
|
-
...pkgInfo.dependencies
|
|
67688
|
-
};
|
|
67802
|
+
const deps = __spreadValues(__spreadValues({}, pkgInfo.devDependencies), pkgInfo.dependencies);
|
|
67689
67803
|
if (typeof deps.react !== "string") {
|
|
67690
67804
|
return false;
|
|
67691
67805
|
}
|
|
@@ -67875,19 +67989,21 @@ var require_FsResource = __commonJS({
|
|
|
67875
67989
|
this.filePath = filePath;
|
|
67876
67990
|
this.resourceKey = resourceKey;
|
|
67877
67991
|
}
|
|
67878
|
-
|
|
67879
|
-
|
|
67880
|
-
|
|
67881
|
-
|
|
67882
|
-
|
|
67883
|
-
|
|
67884
|
-
|
|
67885
|
-
|
|
67886
|
-
|
|
67887
|
-
|
|
67888
|
-
|
|
67889
|
-
|
|
67890
|
-
|
|
67992
|
+
value() {
|
|
67993
|
+
return __async(this, null, function* () {
|
|
67994
|
+
const resourceFileExt = _path.default.extname(this.filePath);
|
|
67995
|
+
if (_constants.IMAGE_EXT_LIST.includes(resourceFileExt)) {
|
|
67996
|
+
const buffer = yield _utils.fs.readFile(_path.default.resolve(this.filePath));
|
|
67997
|
+
return {
|
|
67998
|
+
content: buffer
|
|
67999
|
+
};
|
|
68000
|
+
} else {
|
|
68001
|
+
const text = yield _utils.fs.readFile(_path.default.resolve(this.filePath), "utf8");
|
|
68002
|
+
return {
|
|
68003
|
+
content: text
|
|
68004
|
+
};
|
|
68005
|
+
}
|
|
68006
|
+
});
|
|
67891
68007
|
}
|
|
67892
68008
|
};
|
|
67893
68009
|
exports.FsResource = FsResource;
|
|
@@ -67929,17 +68045,19 @@ var require_FsMaterial = __commonJS({
|
|
|
67929
68045
|
get(resourceKey) {
|
|
67930
68046
|
return new _FsResource.FsResource(_path.default.resolve(this.basePath, resourceKey), resourceKey);
|
|
67931
68047
|
}
|
|
67932
|
-
|
|
67933
|
-
|
|
67934
|
-
|
|
67935
|
-
|
|
67936
|
-
|
|
67937
|
-
|
|
68048
|
+
find(globStr, options) {
|
|
68049
|
+
return __async(this, null, function* () {
|
|
68050
|
+
const matches = yield promisifyGlob(globStr, {
|
|
68051
|
+
cwd: _path.default.resolve(this.basePath),
|
|
68052
|
+
nodir: options === null || options === void 0 ? void 0 : options.nodir,
|
|
68053
|
+
dot: options === null || options === void 0 ? void 0 : options.dot,
|
|
68054
|
+
ignore: options === null || options === void 0 ? void 0 : options.ignore
|
|
68055
|
+
});
|
|
68056
|
+
return matches.reduce((pre, cur) => {
|
|
68057
|
+
pre[cur] = new _FsResource.FsResource(_path.default.resolve(this.basePath, cur), cur);
|
|
68058
|
+
return pre;
|
|
68059
|
+
}, {});
|
|
67938
68060
|
});
|
|
67939
|
-
return matches.reduce((pre, cur) => {
|
|
67940
|
-
pre[cur] = new _FsResource.FsResource(_path.default.resolve(this.basePath, cur), cur);
|
|
67941
|
-
return pre;
|
|
67942
|
-
}, {});
|
|
67943
68061
|
}
|
|
67944
68062
|
};
|
|
67945
68063
|
exports.FsMaterial = FsMaterial;
|
|
@@ -67982,13 +68100,15 @@ var require_fsExists = __commonJS({
|
|
|
67982
68100
|
});
|
|
67983
68101
|
exports.fsExists = fsExists;
|
|
67984
68102
|
var _utils = require_dist2();
|
|
67985
|
-
|
|
67986
|
-
|
|
67987
|
-
|
|
67988
|
-
|
|
67989
|
-
|
|
67990
|
-
|
|
67991
|
-
|
|
68103
|
+
function fsExists(path4) {
|
|
68104
|
+
return __async(this, null, function* () {
|
|
68105
|
+
try {
|
|
68106
|
+
yield _utils.fs.access(path4);
|
|
68107
|
+
return true;
|
|
68108
|
+
} catch (e) {
|
|
68109
|
+
return false;
|
|
68110
|
+
}
|
|
68111
|
+
});
|
|
67992
68112
|
}
|
|
67993
68113
|
}
|
|
67994
68114
|
});
|
|
@@ -68008,21 +68128,23 @@ var require_getGeneratorDir = __commonJS({
|
|
|
68008
68128
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
68009
68129
|
}
|
|
68010
68130
|
var MaxTimes = 5;
|
|
68011
|
-
|
|
68012
|
-
|
|
68013
|
-
|
|
68014
|
-
|
|
68015
|
-
|
|
68016
|
-
|
|
68017
|
-
|
|
68018
|
-
|
|
68019
|
-
|
|
68020
|
-
|
|
68021
|
-
|
|
68022
|
-
|
|
68023
|
-
|
|
68024
|
-
|
|
68025
|
-
|
|
68131
|
+
function getGeneratorDir(generator) {
|
|
68132
|
+
return __async(this, null, function* () {
|
|
68133
|
+
let result = generator;
|
|
68134
|
+
const isDirectory = (yield _utils.fs.stat(generator)).isDirectory();
|
|
68135
|
+
if (!isDirectory) {
|
|
68136
|
+
result = _path.default.dirname(generator);
|
|
68137
|
+
}
|
|
68138
|
+
let times = 0;
|
|
68139
|
+
while (times < MaxTimes && !(yield (0, _fsExists.fsExists)(_path.default.join(result, "package.json")))) {
|
|
68140
|
+
result = _path.default.join(result, "../");
|
|
68141
|
+
times++;
|
|
68142
|
+
}
|
|
68143
|
+
if (times >= MaxTimes) {
|
|
68144
|
+
throw Error("generator is not valid");
|
|
68145
|
+
}
|
|
68146
|
+
return result;
|
|
68147
|
+
});
|
|
68026
68148
|
}
|
|
68027
68149
|
}
|
|
68028
68150
|
});
|
|
@@ -68083,11 +68205,11 @@ var require_generator = __commonJS({
|
|
|
68083
68205
|
_defineProperty(this, "materialsManager", void 0);
|
|
68084
68206
|
_defineProperty(this, "outputPath", void 0);
|
|
68085
68207
|
_defineProperty(this, "output", {
|
|
68086
|
-
fs:
|
|
68208
|
+
fs: (file, content, options) => __async(this, null, function* () {
|
|
68087
68209
|
const filePath = _path.default.resolve(this.outputPath, file.toString());
|
|
68088
|
-
|
|
68089
|
-
|
|
68090
|
-
}
|
|
68210
|
+
yield _utils.fs.mkdirp(_path.default.dirname(filePath));
|
|
68211
|
+
yield _utils.fs.writeFile(filePath, content, options);
|
|
68212
|
+
})
|
|
68091
68213
|
});
|
|
68092
68214
|
_defineProperty(this, "_context", void 0);
|
|
68093
68215
|
_defineProperty(this, "event", void 0);
|
|
@@ -68120,58 +68242,62 @@ var require_generator = __commonJS({
|
|
|
68120
68242
|
setOutputPath(outputPath) {
|
|
68121
68243
|
this.outputPath = outputPath;
|
|
68122
68244
|
}
|
|
68123
|
-
|
|
68124
|
-
this
|
|
68125
|
-
|
|
68126
|
-
|
|
68127
|
-
|
|
68128
|
-
|
|
68129
|
-
|
|
68130
|
-
|
|
68131
|
-
|
|
68132
|
-
|
|
68133
|
-
|
|
68134
|
-
|
|
68135
|
-
|
|
68136
|
-
|
|
68137
|
-
|
|
68138
|
-
|
|
68139
|
-
|
|
68140
|
-
|
|
68141
|
-
|
|
68245
|
+
loadLocalGenerator(generator) {
|
|
68246
|
+
return __async(this, null, function* () {
|
|
68247
|
+
this.logger.debug("[runGenerator] generator is absolute, using local generator");
|
|
68248
|
+
let generatorPkg;
|
|
68249
|
+
let pkgJson;
|
|
68250
|
+
try {
|
|
68251
|
+
const generatorDir = yield (0, _getGeneratorDir.getGeneratorDir)(generator);
|
|
68252
|
+
generatorPkg = yield this.materialsManager.loadLocalGenerator(generatorDir);
|
|
68253
|
+
} catch (e) {
|
|
68254
|
+
this.logger.debug("load local generator failed:", e);
|
|
68255
|
+
return {
|
|
68256
|
+
generatorPkg: null
|
|
68257
|
+
};
|
|
68258
|
+
}
|
|
68259
|
+
try {
|
|
68260
|
+
pkgJson = (0, _nodeRequire.nodeRequire)(generatorPkg.get("package.json").filePath);
|
|
68261
|
+
} catch (e) {
|
|
68262
|
+
this.logger.debug("nodeRequire fail:", e);
|
|
68263
|
+
this.logger.error("can not require package.json");
|
|
68264
|
+
this.logger.warn(`generator need a package.json in top directory
|
|
68142
68265
|
check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file or not`);
|
|
68143
|
-
|
|
68144
|
-
|
|
68145
|
-
|
|
68146
|
-
|
|
68147
|
-
|
|
68148
|
-
|
|
68149
|
-
|
|
68150
|
-
return {
|
|
68151
|
-
generatorPkg,
|
|
68152
|
-
pkgJson,
|
|
68153
|
-
materialKey
|
|
68154
|
-
};
|
|
68155
|
-
}
|
|
68156
|
-
async loadRemoteGenerator(generator) {
|
|
68157
|
-
this.logger.debug("[runGenerator] task.generator is remote package");
|
|
68158
|
-
try {
|
|
68159
|
-
const generatorPkg = await this.materialsManager.loadRemoteGenerator(generator);
|
|
68160
|
-
const pkgJson = (0, _nodeRequire.nodeRequire)(generatorPkg.get("package.json").filePath);
|
|
68161
|
-
const materialKey = `${pkgJson.name}@${pkgJson.version}`;
|
|
68162
|
-
this.logger.debug(`[runTask] loaded remote generator, ${pkgJson.name}@${pkgJson.version}`);
|
|
68266
|
+
return {
|
|
68267
|
+
generatorPkg: null
|
|
68268
|
+
};
|
|
68269
|
+
}
|
|
68270
|
+
this.logger.debug(`[runGenerator] generator version is ${pkgJson.version}`);
|
|
68271
|
+
const materialKey = `${pkgJson.name}@local`;
|
|
68272
|
+
this.logger.debug(`[runGenerator] loaded local generator, ${generator}`);
|
|
68163
68273
|
return {
|
|
68164
68274
|
generatorPkg,
|
|
68165
68275
|
pkgJson,
|
|
68166
68276
|
materialKey
|
|
68167
68277
|
};
|
|
68168
|
-
}
|
|
68169
|
-
|
|
68170
|
-
|
|
68171
|
-
|
|
68172
|
-
|
|
68173
|
-
|
|
68174
|
-
|
|
68278
|
+
});
|
|
68279
|
+
}
|
|
68280
|
+
loadRemoteGenerator(generator) {
|
|
68281
|
+
return __async(this, null, function* () {
|
|
68282
|
+
this.logger.debug("[runGenerator] task.generator is remote package");
|
|
68283
|
+
try {
|
|
68284
|
+
const generatorPkg = yield this.materialsManager.loadRemoteGenerator(generator);
|
|
68285
|
+
const pkgJson = (0, _nodeRequire.nodeRequire)(generatorPkg.get("package.json").filePath);
|
|
68286
|
+
const materialKey = `${pkgJson.name}@${pkgJson.version}`;
|
|
68287
|
+
this.logger.debug(`[runTask] loaded remote generator, ${pkgJson.name}@${pkgJson.version}`);
|
|
68288
|
+
return {
|
|
68289
|
+
generatorPkg,
|
|
68290
|
+
pkgJson,
|
|
68291
|
+
materialKey
|
|
68292
|
+
};
|
|
68293
|
+
} catch (e) {
|
|
68294
|
+
this.logger.debug("load remote generator failed:", e);
|
|
68295
|
+
this.logger.error(`load remote generator failed: Package ${generator} could not be found or get timeout`);
|
|
68296
|
+
return {
|
|
68297
|
+
generatorPkg: null
|
|
68298
|
+
};
|
|
68299
|
+
}
|
|
68300
|
+
});
|
|
68175
68301
|
}
|
|
68176
68302
|
handleForged(generatorName, context, needWait = false, projectPath = "") {
|
|
68177
68303
|
if (needWait) {
|
|
@@ -68186,79 +68312,85 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
|
|
|
68186
68312
|
}
|
|
68187
68313
|
return Promise.resolve();
|
|
68188
68314
|
}
|
|
68189
|
-
|
|
68190
|
-
|
|
68191
|
-
|
|
68192
|
-
|
|
68193
|
-
|
|
68194
|
-
|
|
68195
|
-
|
|
68196
|
-
|
|
68197
|
-
|
|
68198
|
-
|
|
68199
|
-
|
|
68200
|
-
|
|
68201
|
-
|
|
68202
|
-
|
|
68203
|
-
|
|
68204
|
-
|
|
68205
|
-
|
|
68206
|
-
|
|
68207
|
-
|
|
68208
|
-
|
|
68209
|
-
|
|
68210
|
-
|
|
68211
|
-
async runGenerator(generator, config = {}) {
|
|
68212
|
-
const spinner = (0, _utils.ora)({
|
|
68213
|
-
text: "Load Generator...",
|
|
68214
|
-
spinner: "runner"
|
|
68215
|
-
}).start();
|
|
68216
|
-
const {
|
|
68217
|
-
materialKey,
|
|
68218
|
-
generatorPkg,
|
|
68219
|
-
generatorScript
|
|
68220
|
-
} = await this.loadGenerator(generator);
|
|
68221
|
-
if (!materialKey || !generatorPkg) {
|
|
68222
|
-
throw new Error("load generator failed");
|
|
68223
|
-
}
|
|
68224
|
-
this.addMaterial(materialKey, generatorPkg);
|
|
68225
|
-
this.setConfig(config || {});
|
|
68226
|
-
this.setCurrent({
|
|
68227
|
-
material: generatorPkg
|
|
68315
|
+
loadGenerator(generator) {
|
|
68316
|
+
return __async(this, null, function* () {
|
|
68317
|
+
const loadGeneratorPromise = _path.default.isAbsolute(generator) ? this.loadLocalGenerator(generator) : this.loadRemoteGenerator(generator);
|
|
68318
|
+
const {
|
|
68319
|
+
generatorPkg,
|
|
68320
|
+
pkgJson,
|
|
68321
|
+
materialKey
|
|
68322
|
+
} = yield loadGeneratorPromise;
|
|
68323
|
+
if (!generatorPkg || !pkgJson || !materialKey) {
|
|
68324
|
+
return {};
|
|
68325
|
+
}
|
|
68326
|
+
this.logger.debug("[runGenerator] task.generator loaded");
|
|
68327
|
+
const generatorScript = (0, _nodeRequire.nodeRequire)(generatorPkg.basePath);
|
|
68328
|
+
if (typeof generatorScript !== "function") {
|
|
68329
|
+
this.logger.debug(`generator module [${pkgJson.name}] export default is not a function`, generatorScript);
|
|
68330
|
+
throw new Error(`generator module [${pkgJson.name}] export default is not a function`);
|
|
68331
|
+
}
|
|
68332
|
+
return {
|
|
68333
|
+
materialKey,
|
|
68334
|
+
generatorPkg,
|
|
68335
|
+
generatorScript
|
|
68336
|
+
};
|
|
68228
68337
|
});
|
|
68229
|
-
|
|
68230
|
-
|
|
68231
|
-
this
|
|
68232
|
-
|
|
68233
|
-
|
|
68234
|
-
|
|
68235
|
-
|
|
68236
|
-
|
|
68237
|
-
|
|
68238
|
-
|
|
68239
|
-
|
|
68240
|
-
|
|
68241
|
-
|
|
68242
|
-
|
|
68243
|
-
|
|
68244
|
-
|
|
68245
|
-
|
|
68246
|
-
|
|
68247
|
-
const subContext = _objectSpread(_objectSpread({}, this._context), {}, {
|
|
68248
|
-
config: _objectSpread(_objectSpread({}, this._context.config), config),
|
|
68249
|
-
materials: _objectSpread(_objectSpread({}, this._context.materials), {}, {
|
|
68250
|
-
default: new _FsMaterial.FsMaterial(_path.default.resolve(this.outputPath, relativePwdPath))
|
|
68251
|
-
}),
|
|
68252
|
-
current: {
|
|
68338
|
+
}
|
|
68339
|
+
runGenerator(_0) {
|
|
68340
|
+
return __async(this, arguments, function* (generator, config = {}) {
|
|
68341
|
+
const spinner = (0, _utils.ora)({
|
|
68342
|
+
text: "Load Generator...",
|
|
68343
|
+
spinner: "runner"
|
|
68344
|
+
}).start();
|
|
68345
|
+
const {
|
|
68346
|
+
materialKey,
|
|
68347
|
+
generatorPkg,
|
|
68348
|
+
generatorScript
|
|
68349
|
+
} = yield this.loadGenerator(generator);
|
|
68350
|
+
if (!materialKey || !generatorPkg) {
|
|
68351
|
+
throw new Error("load generator failed");
|
|
68352
|
+
}
|
|
68353
|
+
this.addMaterial(materialKey, generatorPkg);
|
|
68354
|
+
this.setConfig(config || {});
|
|
68355
|
+
this.setCurrent({
|
|
68253
68356
|
material: generatorPkg
|
|
68254
|
-
}
|
|
68357
|
+
});
|
|
68358
|
+
spinner.stop();
|
|
68359
|
+
yield generatorScript(this._context, this);
|
|
68360
|
+
this.setCurrent(null);
|
|
68361
|
+
});
|
|
68362
|
+
}
|
|
68363
|
+
runSubGenerator(subGenerator, relativePwdPath = "", config) {
|
|
68364
|
+
return __async(this, null, function* () {
|
|
68365
|
+
const spinner = (0, _utils.ora)({
|
|
68366
|
+
text: "Load Generator...",
|
|
68367
|
+
spinner: "runner"
|
|
68368
|
+
}).start();
|
|
68369
|
+
const {
|
|
68370
|
+
materialKey,
|
|
68371
|
+
generatorPkg,
|
|
68372
|
+
generatorScript
|
|
68373
|
+
} = yield this.loadGenerator(subGenerator);
|
|
68374
|
+
if (!materialKey || !generatorPkg) {
|
|
68375
|
+
throw new Error("load generator failed");
|
|
68376
|
+
}
|
|
68377
|
+
this.addMaterial(materialKey, generatorPkg);
|
|
68378
|
+
const subContext = _objectSpread(_objectSpread({}, this._context), {}, {
|
|
68379
|
+
config: _objectSpread(_objectSpread({}, this._context.config), config),
|
|
68380
|
+
materials: _objectSpread(_objectSpread({}, this._context.materials), {}, {
|
|
68381
|
+
default: new _FsMaterial.FsMaterial(_path.default.resolve(this.outputPath, relativePwdPath))
|
|
68382
|
+
}),
|
|
68383
|
+
current: {
|
|
68384
|
+
material: generatorPkg
|
|
68385
|
+
}
|
|
68386
|
+
});
|
|
68387
|
+
this.logger.debug("subContext", subContext);
|
|
68388
|
+
const preOutputPath = this.outputPath;
|
|
68389
|
+
this.setOutputPath(_path.default.resolve(this.outputPath, relativePwdPath || ""));
|
|
68390
|
+
spinner.stop();
|
|
68391
|
+
yield generatorScript(subContext, this);
|
|
68392
|
+
this.setOutputPath(preOutputPath);
|
|
68255
68393
|
});
|
|
68256
|
-
this.logger.debug("subContext", subContext);
|
|
68257
|
-
const preOutputPath = this.outputPath;
|
|
68258
|
-
this.setOutputPath(_path.default.resolve(this.outputPath, relativePwdPath || ""));
|
|
68259
|
-
spinner.stop();
|
|
68260
|
-
await generatorScript(subContext, this);
|
|
68261
|
-
this.setOutputPath(preOutputPath);
|
|
68262
68394
|
}
|
|
68263
68395
|
};
|
|
68264
68396
|
exports.GeneratorCore = GeneratorCore;
|
|
@@ -68280,61 +68412,67 @@ var require_packageManager = __commonJS({
|
|
|
68280
68412
|
function _interopRequireDefault(obj) {
|
|
68281
68413
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
68282
68414
|
}
|
|
68283
|
-
|
|
68284
|
-
|
|
68285
|
-
|
|
68286
|
-
|
|
68287
|
-
|
|
68288
|
-
|
|
68289
|
-
|
|
68290
|
-
|
|
68291
|
-
|
|
68292
|
-
|
|
68293
|
-
|
|
68294
|
-
try {
|
|
68295
|
-
await (0, _utils.execa)("pnpm", ["--version"], {
|
|
68296
|
-
env: process.env
|
|
68297
|
-
});
|
|
68298
|
-
return true;
|
|
68299
|
-
} catch (e) {
|
|
68300
|
-
return false;
|
|
68301
|
-
}
|
|
68415
|
+
function canUseYarn() {
|
|
68416
|
+
return __async(this, null, function* () {
|
|
68417
|
+
try {
|
|
68418
|
+
yield (0, _utils.execa)("yarn", ["--version"], {
|
|
68419
|
+
env: process.env
|
|
68420
|
+
});
|
|
68421
|
+
return true;
|
|
68422
|
+
} catch (e) {
|
|
68423
|
+
return false;
|
|
68424
|
+
}
|
|
68425
|
+
});
|
|
68302
68426
|
}
|
|
68303
|
-
|
|
68304
|
-
|
|
68305
|
-
|
|
68306
|
-
|
|
68307
|
-
|
|
68308
|
-
|
|
68309
|
-
|
|
68310
|
-
|
|
68311
|
-
|
|
68312
|
-
}));
|
|
68313
|
-
delete pkgJSON.devDependencies;
|
|
68314
|
-
_utils.fs.writeFileSync(pkgPath, JSON.stringify(pkgJSON, null, 2), {
|
|
68315
|
-
encoding: "utf-8"
|
|
68316
|
-
});
|
|
68317
|
-
} catch (e) {
|
|
68318
|
-
}
|
|
68319
|
-
if (await canUsePnpm()) {
|
|
68320
|
-
const params = ["install", "--prod", "--reporter=silent", "--prefer-offline", "--ignore-scripts"];
|
|
68321
|
-
if (registryUrl) {
|
|
68322
|
-
params.push(`--registry=${registryUrl}`);
|
|
68427
|
+
function canUsePnpm() {
|
|
68428
|
+
return __async(this, null, function* () {
|
|
68429
|
+
try {
|
|
68430
|
+
yield (0, _utils.execa)("pnpm", ["--version"], {
|
|
68431
|
+
env: process.env
|
|
68432
|
+
});
|
|
68433
|
+
return true;
|
|
68434
|
+
} catch (e) {
|
|
68435
|
+
return false;
|
|
68323
68436
|
}
|
|
68324
|
-
|
|
68325
|
-
|
|
68326
|
-
|
|
68327
|
-
|
|
68328
|
-
|
|
68437
|
+
});
|
|
68438
|
+
}
|
|
68439
|
+
function runInstall(targetDir, registryUrl) {
|
|
68440
|
+
return __async(this, null, function* () {
|
|
68441
|
+
const options = {
|
|
68442
|
+
cwd: targetDir,
|
|
68443
|
+
env: process.env
|
|
68444
|
+
};
|
|
68445
|
+
try {
|
|
68446
|
+
const pkgPath = _path.default.join(targetDir, "package.json");
|
|
68447
|
+
const pkgJSON = JSON.parse(_utils.fs.readFileSync(pkgPath, {
|
|
68448
|
+
encoding: "utf-8"
|
|
68449
|
+
}));
|
|
68450
|
+
delete pkgJSON.devDependencies;
|
|
68451
|
+
_utils.fs.writeFileSync(pkgPath, JSON.stringify(pkgJSON, null, 2), {
|
|
68452
|
+
encoding: "utf-8"
|
|
68453
|
+
});
|
|
68454
|
+
} catch (e) {
|
|
68329
68455
|
}
|
|
68330
|
-
|
|
68331
|
-
|
|
68332
|
-
|
|
68333
|
-
|
|
68334
|
-
|
|
68456
|
+
if (yield canUsePnpm()) {
|
|
68457
|
+
const params = ["install", "--prod", "--reporter=silent", "--prefer-offline", "--ignore-scripts"];
|
|
68458
|
+
if (registryUrl) {
|
|
68459
|
+
params.push(`--registry=${registryUrl}`);
|
|
68460
|
+
}
|
|
68461
|
+
yield (0, _utils.execa)("pnpm", params, options);
|
|
68462
|
+
} else if (yield canUseYarn()) {
|
|
68463
|
+
const params = ["install", "--production", "--silent", "--ignore-scripts"];
|
|
68464
|
+
if (registryUrl) {
|
|
68465
|
+
params.push(`--registry=${registryUrl}`);
|
|
68466
|
+
}
|
|
68467
|
+
yield (0, _utils.execa)("yarn", params, options);
|
|
68468
|
+
} else {
|
|
68469
|
+
const params = ["install", "--production", "--loglevel=error", "--prefer-offline", "--ignore-scripts"];
|
|
68470
|
+
if (registryUrl) {
|
|
68471
|
+
params.push(`--registry=${registryUrl}`);
|
|
68472
|
+
}
|
|
68473
|
+
yield (0, _utils.execa)("npm", params, options);
|
|
68335
68474
|
}
|
|
68336
|
-
|
|
68337
|
-
}
|
|
68475
|
+
});
|
|
68338
68476
|
}
|
|
68339
68477
|
}
|
|
68340
68478
|
});
|
|
@@ -68347,22 +68485,24 @@ var require_timeoutPromise = __commonJS({
|
|
|
68347
68485
|
value: true
|
|
68348
68486
|
});
|
|
68349
68487
|
exports.timeoutPromise = timeoutPromise;
|
|
68350
|
-
|
|
68351
|
-
|
|
68352
|
-
|
|
68353
|
-
|
|
68354
|
-
|
|
68355
|
-
|
|
68356
|
-
|
|
68357
|
-
|
|
68358
|
-
|
|
68359
|
-
|
|
68360
|
-
|
|
68361
|
-
|
|
68362
|
-
|
|
68363
|
-
|
|
68488
|
+
function timeoutPromise(promise, ms, reason = "Operation") {
|
|
68489
|
+
return __async(this, null, function* () {
|
|
68490
|
+
let timeoutId = null;
|
|
68491
|
+
const delayPromise = (ms2) => new Promise((resolve) => {
|
|
68492
|
+
timeoutId = setTimeout(resolve, ms2);
|
|
68493
|
+
});
|
|
68494
|
+
const timeout = delayPromise(ms).then(() => {
|
|
68495
|
+
throw new Error(`${reason} timed out after ${ms}ms`);
|
|
68496
|
+
});
|
|
68497
|
+
try {
|
|
68498
|
+
const result = yield Promise.race([promise, timeout]);
|
|
68499
|
+
return result;
|
|
68500
|
+
} finally {
|
|
68501
|
+
if (timeoutId) {
|
|
68502
|
+
clearTimeout(timeoutId);
|
|
68503
|
+
}
|
|
68364
68504
|
}
|
|
68365
|
-
}
|
|
68505
|
+
});
|
|
68366
68506
|
}
|
|
68367
68507
|
}
|
|
68368
68508
|
});
|
|
@@ -74682,7 +74822,7 @@ var require_opts_arg = __commonJS({
|
|
|
74682
74822
|
if (!opts)
|
|
74683
74823
|
opts = { mode: 511, fs: fs3 };
|
|
74684
74824
|
else if (typeof opts === "object")
|
|
74685
|
-
opts = { mode: 511, fs: fs3,
|
|
74825
|
+
opts = __spreadValues({ mode: 511, fs: fs3 }, opts);
|
|
74686
74826
|
else if (typeof opts === "number")
|
|
74687
74827
|
opts = { mode: opts, fs: fs3 };
|
|
74688
74828
|
else if (typeof opts === "string")
|
|
@@ -76109,25 +76249,27 @@ var require_getNpmTarballUrl = __commonJS({
|
|
|
76109
76249
|
var _utils = require_dist2();
|
|
76110
76250
|
var _timeoutPromise = require_timeoutPromise();
|
|
76111
76251
|
var _constants = require_constants6();
|
|
76112
|
-
|
|
76113
|
-
|
|
76114
|
-
|
|
76115
|
-
|
|
76116
|
-
|
|
76117
|
-
|
|
76118
|
-
|
|
76119
|
-
|
|
76120
|
-
|
|
76121
|
-
|
|
76122
|
-
|
|
76123
|
-
|
|
76124
|
-
|
|
76125
|
-
|
|
76126
|
-
|
|
76127
|
-
|
|
76128
|
-
|
|
76129
|
-
|
|
76130
|
-
|
|
76252
|
+
function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
76253
|
+
return __async(this, null, function* () {
|
|
76254
|
+
const {
|
|
76255
|
+
registryUrl
|
|
76256
|
+
} = options || {};
|
|
76257
|
+
const params = ["view", `${pkgName}@${pkgVersion}`, "dist", "--json"];
|
|
76258
|
+
if (registryUrl) {
|
|
76259
|
+
params.push("--registry");
|
|
76260
|
+
params.push(registryUrl);
|
|
76261
|
+
}
|
|
76262
|
+
const getPkgInfoPromise = (0, _utils.execa)("npm", params);
|
|
76263
|
+
const {
|
|
76264
|
+
stdout
|
|
76265
|
+
} = yield (0, _timeoutPromise.timeoutPromise)(getPkgInfoPromise, _constants.NPM_API_TIMEOUT, `Get npm tarball of '${pkgName}'`);
|
|
76266
|
+
try {
|
|
76267
|
+
const pkgDistInfo = JSON.parse(stdout);
|
|
76268
|
+
return pkgDistInfo.tarball;
|
|
76269
|
+
} catch (e) {
|
|
76270
|
+
throw new Error(`Version \`${pkgVersion}\` for package \`${pkgName}\` could not be found`);
|
|
76271
|
+
}
|
|
76272
|
+
});
|
|
76131
76273
|
}
|
|
76132
76274
|
}
|
|
76133
76275
|
});
|
|
@@ -76143,27 +76285,29 @@ var require_getNpmVersion = __commonJS({
|
|
|
76143
76285
|
var _utils = require_dist2();
|
|
76144
76286
|
var _timeoutPromise = require_timeoutPromise();
|
|
76145
76287
|
var _constants = require_constants6();
|
|
76146
|
-
|
|
76147
|
-
|
|
76148
|
-
|
|
76149
|
-
|
|
76150
|
-
|
|
76151
|
-
|
|
76152
|
-
|
|
76153
|
-
|
|
76154
|
-
|
|
76155
|
-
|
|
76156
|
-
|
|
76157
|
-
|
|
76158
|
-
|
|
76159
|
-
|
|
76160
|
-
|
|
76161
|
-
|
|
76162
|
-
|
|
76163
|
-
|
|
76164
|
-
|
|
76165
|
-
|
|
76166
|
-
|
|
76288
|
+
function getNpmVersion(packageName, options) {
|
|
76289
|
+
return __async(this, null, function* () {
|
|
76290
|
+
const {
|
|
76291
|
+
version: version2,
|
|
76292
|
+
registryUrl
|
|
76293
|
+
} = options || {};
|
|
76294
|
+
const params = ["view"];
|
|
76295
|
+
if (version2) {
|
|
76296
|
+
params.push(`${packageName}@${version2}`);
|
|
76297
|
+
} else {
|
|
76298
|
+
params.push(packageName);
|
|
76299
|
+
}
|
|
76300
|
+
params.push("version");
|
|
76301
|
+
if (registryUrl) {
|
|
76302
|
+
params.push("--registry");
|
|
76303
|
+
params.push(registryUrl);
|
|
76304
|
+
}
|
|
76305
|
+
const getPkgInfoPromise = (0, _utils.execa)("npm", params);
|
|
76306
|
+
const {
|
|
76307
|
+
stdout
|
|
76308
|
+
} = yield (0, _timeoutPromise.timeoutPromise)(getPkgInfoPromise, _constants.NPM_API_TIMEOUT, `Get npm version of '${packageName}'`);
|
|
76309
|
+
return stdout;
|
|
76310
|
+
});
|
|
76167
76311
|
}
|
|
76168
76312
|
}
|
|
76169
76313
|
});
|
|
@@ -76188,84 +76332,90 @@ var require_downloadPackage = __commonJS({
|
|
|
76188
76332
|
function _interopRequireDefault(obj) {
|
|
76189
76333
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
76190
76334
|
}
|
|
76191
|
-
|
|
76192
|
-
|
|
76193
|
-
|
|
76194
|
-
|
|
76195
|
-
|
|
76196
|
-
|
|
76197
|
-
|
|
76198
|
-
|
|
76335
|
+
function isValidCache(cacheDir) {
|
|
76336
|
+
return __async(this, null, function* () {
|
|
76337
|
+
if (yield (0, _fsExists.fsExists)(`${cacheDir}/.codesmith.completed`)) {
|
|
76338
|
+
const preCacheTimeStr = yield _utils.fs.readFile(`${cacheDir}/.codesmith.completed`, {
|
|
76339
|
+
encoding: "utf-8"
|
|
76340
|
+
});
|
|
76341
|
+
const preCacheTime = preCacheTimeStr ? new Date(preCacheTimeStr) : new Date(0);
|
|
76342
|
+
if (Number(new Date()) - Number(preCacheTime) < _constants.CATCHE_VALIDITY_PREIOD) {
|
|
76343
|
+
return true;
|
|
76344
|
+
}
|
|
76345
|
+
return false;
|
|
76199
76346
|
}
|
|
76200
76347
|
return false;
|
|
76201
|
-
}
|
|
76202
|
-
return false;
|
|
76203
|
-
}
|
|
76204
|
-
async function downloadAndDecompressTargz(tarballPkg, targetDir) {
|
|
76205
|
-
const response = await (0, _axios.default)({
|
|
76206
|
-
method: "get",
|
|
76207
|
-
url: tarballPkg,
|
|
76208
|
-
responseType: "stream"
|
|
76209
76348
|
});
|
|
76210
|
-
|
|
76211
|
-
|
|
76212
|
-
|
|
76213
|
-
|
|
76214
|
-
|
|
76215
|
-
|
|
76216
|
-
|
|
76217
|
-
await new Promise((resolve, reject) => {
|
|
76218
|
-
response.data.pipe(dest);
|
|
76219
|
-
response.data.on("error", (err) => {
|
|
76220
|
-
reject(err);
|
|
76349
|
+
}
|
|
76350
|
+
function downloadAndDecompressTargz(tarballPkg, targetDir) {
|
|
76351
|
+
return __async(this, null, function* () {
|
|
76352
|
+
const response = yield (0, _axios.default)({
|
|
76353
|
+
method: "get",
|
|
76354
|
+
url: tarballPkg,
|
|
76355
|
+
responseType: "stream"
|
|
76221
76356
|
});
|
|
76222
|
-
|
|
76223
|
-
|
|
76357
|
+
if (response.status !== 200) {
|
|
76358
|
+
throw new Error(`download tar package get bad status code: ${response.status}`);
|
|
76359
|
+
}
|
|
76360
|
+
const contentLength = Number(response.headers["content-length"]);
|
|
76361
|
+
const randomId = Math.floor(Math.random() * 1e4);
|
|
76362
|
+
const tempTgzFilePath = `${_os.default.tmpdir()}/temp-${randomId}.tgz`;
|
|
76363
|
+
const dest = _utils.fs.createWriteStream(tempTgzFilePath);
|
|
76364
|
+
yield new Promise((resolve, reject) => {
|
|
76365
|
+
response.data.pipe(dest);
|
|
76366
|
+
response.data.on("error", (err) => {
|
|
76367
|
+
reject(err);
|
|
76368
|
+
});
|
|
76369
|
+
dest.on("finish", () => {
|
|
76370
|
+
resolve();
|
|
76371
|
+
});
|
|
76224
76372
|
});
|
|
76225
|
-
|
|
76226
|
-
|
|
76227
|
-
|
|
76228
|
-
|
|
76229
|
-
|
|
76230
|
-
|
|
76231
|
-
|
|
76232
|
-
|
|
76233
|
-
|
|
76234
|
-
|
|
76235
|
-
|
|
76236
|
-
|
|
76373
|
+
if ((yield _utils.fs.stat(tempTgzFilePath)).size !== contentLength) {
|
|
76374
|
+
throw new Error("download tar package get bad content length");
|
|
76375
|
+
}
|
|
76376
|
+
yield new Promise((resolve, reject) => {
|
|
76377
|
+
_utils.fs.createReadStream(tempTgzFilePath).pipe(_tar.default.x({
|
|
76378
|
+
strip: 1,
|
|
76379
|
+
C: `${targetDir}`
|
|
76380
|
+
})).on("finish", () => {
|
|
76381
|
+
resolve();
|
|
76382
|
+
}).on("error", (err) => {
|
|
76383
|
+
reject(err);
|
|
76384
|
+
});
|
|
76237
76385
|
});
|
|
76238
76386
|
});
|
|
76239
76387
|
}
|
|
76240
|
-
|
|
76241
|
-
|
|
76242
|
-
|
|
76243
|
-
|
|
76244
|
-
|
|
76245
|
-
|
|
76246
|
-
|
|
76247
|
-
|
|
76248
|
-
|
|
76249
|
-
|
|
76250
|
-
|
|
76251
|
-
|
|
76252
|
-
|
|
76253
|
-
|
|
76388
|
+
function downloadPackage(_0) {
|
|
76389
|
+
return __async(this, arguments, function* (pkgName, pkgVersion = "latest", options = {}) {
|
|
76390
|
+
const {
|
|
76391
|
+
registryUrl,
|
|
76392
|
+
install
|
|
76393
|
+
} = options;
|
|
76394
|
+
const version2 = yield (0, _getNpmVersion.getNpmVersion)(pkgName, {
|
|
76395
|
+
registryUrl,
|
|
76396
|
+
version: pkgVersion
|
|
76397
|
+
});
|
|
76398
|
+
if (version2 === void 0) {
|
|
76399
|
+
throw new Error(`package ${pkgName}@${pkgVersion} not found in registry`);
|
|
76400
|
+
}
|
|
76401
|
+
const targetDir = `${_os.default.tmpdir()}/csmith-generator/${pkgName}@${version2}`;
|
|
76402
|
+
if ((yield (0, _fsExists.fsExists)(targetDir)) && (yield isValidCache(targetDir))) {
|
|
76403
|
+
return targetDir;
|
|
76404
|
+
}
|
|
76405
|
+
yield _utils.fs.remove(targetDir);
|
|
76406
|
+
yield _utils.fs.mkdirp(targetDir);
|
|
76407
|
+
const tarballPkg = yield (0, _getNpmTarballUrl.getNpmTarballUrl)(pkgName, version2, {
|
|
76408
|
+
registryUrl
|
|
76409
|
+
});
|
|
76410
|
+
yield downloadAndDecompressTargz(tarballPkg, targetDir);
|
|
76411
|
+
if (install) {
|
|
76412
|
+
yield (0, _packageManager.runInstall)(targetDir, registryUrl);
|
|
76413
|
+
}
|
|
76414
|
+
yield _utils.fs.writeFile(`${targetDir}/.codesmith.completed`, new Date().toISOString(), {
|
|
76415
|
+
encoding: "utf-8"
|
|
76416
|
+
});
|
|
76254
76417
|
return targetDir;
|
|
76255
|
-
}
|
|
76256
|
-
await _utils.fs.remove(targetDir);
|
|
76257
|
-
await _utils.fs.mkdirp(targetDir);
|
|
76258
|
-
const tarballPkg = await (0, _getNpmTarballUrl.getNpmTarballUrl)(pkgName, version2, {
|
|
76259
|
-
registryUrl
|
|
76260
76418
|
});
|
|
76261
|
-
await downloadAndDecompressTargz(tarballPkg, targetDir);
|
|
76262
|
-
if (install) {
|
|
76263
|
-
await (0, _packageManager.runInstall)(targetDir, registryUrl);
|
|
76264
|
-
}
|
|
76265
|
-
await _utils.fs.writeFile(`${targetDir}/.codesmith.completed`, new Date().toISOString(), {
|
|
76266
|
-
encoding: "utf-8"
|
|
76267
|
-
});
|
|
76268
|
-
return targetDir;
|
|
76269
76419
|
}
|
|
76270
76420
|
}
|
|
76271
76421
|
});
|
|
@@ -76421,19 +76571,21 @@ var require_materials = __commonJS({
|
|
|
76421
76571
|
this.materialMap[generator] = fsMaterial;
|
|
76422
76572
|
return Promise.resolve(fsMaterial);
|
|
76423
76573
|
}
|
|
76424
|
-
|
|
76425
|
-
|
|
76426
|
-
|
|
76427
|
-
|
|
76428
|
-
|
|
76429
|
-
|
|
76430
|
-
|
|
76431
|
-
|
|
76574
|
+
loadRemoteGenerator(generator) {
|
|
76575
|
+
return __async(this, null, function* () {
|
|
76576
|
+
const {
|
|
76577
|
+
name,
|
|
76578
|
+
version: version2
|
|
76579
|
+
} = (0, _utils.getPackageInfo)(generator);
|
|
76580
|
+
const localPath = yield (0, _utils.downloadPackage)(name, version2, {
|
|
76581
|
+
registryUrl: this.registryUrl,
|
|
76582
|
+
install: true
|
|
76583
|
+
});
|
|
76584
|
+
const pkgJson = (0, _utils.nodeRequire)(`${localPath}/package.json`);
|
|
76585
|
+
const materialKey = `${pkgJson.name}@${pkgJson.version}`;
|
|
76586
|
+
this.materialMap[materialKey] = new _FsMaterial.FsMaterial(localPath);
|
|
76587
|
+
return Promise.resolve(this.materialMap[materialKey]);
|
|
76432
76588
|
});
|
|
76433
|
-
const pkgJson = (0, _utils.nodeRequire)(`${localPath}/package.json`);
|
|
76434
|
-
const materialKey = `${pkgJson.name}@${pkgJson.version}`;
|
|
76435
|
-
this.materialMap[materialKey] = new _FsMaterial.FsMaterial(localPath);
|
|
76436
|
-
return Promise.resolve(this.materialMap[materialKey]);
|
|
76437
76589
|
}
|
|
76438
76590
|
};
|
|
76439
76591
|
exports.MaterialsManager = MaterialsManager;
|
|
@@ -76479,34 +76631,38 @@ var require_codesmith = __commonJS({
|
|
|
76479
76631
|
this.logger = logger || new _logger.Logger(debug ? _constants.LoggerLevel.Debug : _constants.LoggerLevel.Info);
|
|
76480
76632
|
this.materialsManager = new _materials.MaterialsManager(this.logger, registryUrl);
|
|
76481
76633
|
}
|
|
76482
|
-
|
|
76483
|
-
|
|
76484
|
-
|
|
76485
|
-
|
|
76486
|
-
|
|
76487
|
-
|
|
76488
|
-
|
|
76489
|
-
|
|
76490
|
-
|
|
76491
|
-
|
|
76492
|
-
|
|
76493
|
-
|
|
76494
|
-
|
|
76634
|
+
forge(_0) {
|
|
76635
|
+
return __async(this, arguments, function* ({
|
|
76636
|
+
tasks,
|
|
76637
|
+
pwd
|
|
76638
|
+
}) {
|
|
76639
|
+
this.core = new _generator.GeneratorCore({
|
|
76640
|
+
logger: this.logger,
|
|
76641
|
+
materialsManager: this.materialsManager,
|
|
76642
|
+
outputPath: pwd || process.cwd()
|
|
76643
|
+
});
|
|
76644
|
+
this.core.addMaterial("default", new _FsMaterial.FsMaterial(_path.default.resolve(pwd || process.cwd())));
|
|
76645
|
+
try {
|
|
76646
|
+
for (const task of tasks) {
|
|
76647
|
+
yield this.runTask(task);
|
|
76648
|
+
}
|
|
76649
|
+
} catch (e) {
|
|
76650
|
+
this.logger.error("run task error:", e);
|
|
76651
|
+
throw new Error("run task error");
|
|
76495
76652
|
}
|
|
76496
|
-
}
|
|
76497
|
-
this.logger.error("run task error:", e);
|
|
76498
|
-
throw new Error("run task error");
|
|
76499
|
-
}
|
|
76653
|
+
});
|
|
76500
76654
|
}
|
|
76501
|
-
|
|
76502
|
-
|
|
76503
|
-
|
|
76504
|
-
|
|
76505
|
-
|
|
76506
|
-
|
|
76507
|
-
|
|
76508
|
-
|
|
76509
|
-
|
|
76655
|
+
runTask(task) {
|
|
76656
|
+
return __async(this, null, function* () {
|
|
76657
|
+
if (!this.core) {
|
|
76658
|
+
throw new Error("no core in 'runTask'");
|
|
76659
|
+
}
|
|
76660
|
+
const {
|
|
76661
|
+
generator,
|
|
76662
|
+
config
|
|
76663
|
+
} = task;
|
|
76664
|
+
yield this.core.runGenerator(generator, config);
|
|
76665
|
+
});
|
|
76510
76666
|
}
|
|
76511
76667
|
};
|
|
76512
76668
|
exports.CodeSmith = CodeSmith2;
|
|
@@ -76623,7 +76779,7 @@ var import_path2 = __toESM(require("path"));
|
|
|
76623
76779
|
var import_codesmith = __toESM(require_node());
|
|
76624
76780
|
|
|
76625
76781
|
// package.json
|
|
76626
|
-
var version = "2.0
|
|
76782
|
+
var version = "2.2.0";
|
|
76627
76783
|
|
|
76628
76784
|
// ../../cli/plugin-i18n/dist/js/modern/index.js
|
|
76629
76785
|
var import_lodash2 = __toESM(require_lodash2());
|
|
@@ -76864,81 +77020,85 @@ function getDefaultConfig(projectDir = import_path2.default.basename(process.cwd
|
|
|
76864
77020
|
}
|
|
76865
77021
|
return initialConfig;
|
|
76866
77022
|
}
|
|
76867
|
-
|
|
76868
|
-
|
|
76869
|
-
|
|
76870
|
-
|
|
76871
|
-
|
|
76872
|
-
|
|
76873
|
-
|
|
76874
|
-
|
|
76875
|
-
|
|
76876
|
-
|
|
76877
|
-
|
|
76878
|
-
|
|
76879
|
-
|
|
76880
|
-
if (lang) {
|
|
76881
|
-
i18n.changeLanguage({ locale: lang });
|
|
76882
|
-
}
|
|
76883
|
-
if (version2) {
|
|
76884
|
-
smith.logger.info("@modern-js/create", `v${version}`);
|
|
76885
|
-
return;
|
|
76886
|
-
}
|
|
76887
|
-
smith.logger.debug("@modern-js/create", projectDir || "", options);
|
|
76888
|
-
let pwd = process.cwd();
|
|
76889
|
-
try {
|
|
76890
|
-
pwd = projectDir ? createDir(projectDir, pwd) : pwd;
|
|
76891
|
-
} catch (e) {
|
|
76892
|
-
smith.logger.error(
|
|
76893
|
-
i18n.t(localeKeys.tooltip.dir_exists, { dirName: projectDir })
|
|
76894
|
-
);
|
|
76895
|
-
process.exit(1);
|
|
76896
|
-
}
|
|
76897
|
-
const config = getDefaultConfig(projectDir, options, smith.logger);
|
|
76898
|
-
let generator = customGenerator || REPO_GENERATOR;
|
|
76899
|
-
if (process.env.CODESMITH_ENV === "development" && generator === REPO_GENERATOR) {
|
|
76900
|
-
generator = require.resolve(REPO_GENERATOR);
|
|
76901
|
-
} else if (!import_path2.default.isAbsolute(generator) && distTag) {
|
|
76902
|
-
generator = `${generator}@${distTag}`;
|
|
76903
|
-
}
|
|
76904
|
-
const task = [
|
|
76905
|
-
{
|
|
76906
|
-
name: generator,
|
|
76907
|
-
config
|
|
76908
|
-
}
|
|
76909
|
-
];
|
|
76910
|
-
try {
|
|
76911
|
-
await smith.forge({
|
|
76912
|
-
tasks: task.map((runner) => ({
|
|
76913
|
-
generator: runner.name,
|
|
76914
|
-
config: runner.config
|
|
76915
|
-
})),
|
|
76916
|
-
pwd
|
|
77023
|
+
function createAction(projectDir, options) {
|
|
77024
|
+
return __async(this, null, function* () {
|
|
77025
|
+
const {
|
|
77026
|
+
lang,
|
|
77027
|
+
version: version2,
|
|
77028
|
+
debug,
|
|
77029
|
+
registry,
|
|
77030
|
+
distTag,
|
|
77031
|
+
generator: customGenerator
|
|
77032
|
+
} = options;
|
|
77033
|
+
const smith = new import_codesmith.CodeSmith({
|
|
77034
|
+
debug,
|
|
77035
|
+
registryUrl: registry
|
|
76917
77036
|
});
|
|
76918
|
-
|
|
76919
|
-
|
|
76920
|
-
|
|
76921
|
-
|
|
76922
|
-
|
|
76923
|
-
|
|
76924
|
-
|
|
76925
|
-
|
|
77037
|
+
if (lang) {
|
|
77038
|
+
i18n.changeLanguage({ locale: lang });
|
|
77039
|
+
}
|
|
77040
|
+
if (version2) {
|
|
77041
|
+
smith.logger.info("@modern-js/create", `v${version}`);
|
|
77042
|
+
return;
|
|
77043
|
+
}
|
|
77044
|
+
smith.logger.debug("@modern-js/create", projectDir || "", options);
|
|
77045
|
+
let pwd = process.cwd();
|
|
77046
|
+
try {
|
|
77047
|
+
pwd = projectDir ? createDir(projectDir, pwd) : pwd;
|
|
77048
|
+
} catch (e) {
|
|
77049
|
+
smith.logger.error(
|
|
77050
|
+
i18n.t(localeKeys.tooltip.dir_exists, { dirName: projectDir })
|
|
77051
|
+
);
|
|
77052
|
+
process.exit(1);
|
|
77053
|
+
}
|
|
77054
|
+
const config = getDefaultConfig(projectDir, options, smith.logger);
|
|
77055
|
+
let generator = customGenerator || REPO_GENERATOR;
|
|
77056
|
+
if (process.env.CODESMITH_ENV === "development" && generator === REPO_GENERATOR) {
|
|
77057
|
+
generator = require.resolve(REPO_GENERATOR);
|
|
77058
|
+
} else if (!import_path2.default.isAbsolute(generator) && distTag) {
|
|
77059
|
+
generator = `${generator}@${distTag}`;
|
|
77060
|
+
}
|
|
77061
|
+
const task = [
|
|
77062
|
+
{
|
|
77063
|
+
name: generator,
|
|
77064
|
+
config
|
|
77065
|
+
}
|
|
77066
|
+
];
|
|
77067
|
+
try {
|
|
77068
|
+
yield smith.forge({
|
|
77069
|
+
tasks: task.map((runner) => ({
|
|
77070
|
+
generator: runner.name,
|
|
77071
|
+
config: runner.config
|
|
77072
|
+
})),
|
|
77073
|
+
pwd
|
|
77074
|
+
});
|
|
77075
|
+
} catch (e) {
|
|
77076
|
+
process.exit(1);
|
|
77077
|
+
}
|
|
77078
|
+
if (projectDir) {
|
|
77079
|
+
smith.logger.info(
|
|
77080
|
+
i18n.t(localeKeys.tooltip.dir_entry, { dirName: projectDir })
|
|
77081
|
+
);
|
|
77082
|
+
}
|
|
77083
|
+
});
|
|
76926
77084
|
}
|
|
76927
77085
|
|
|
76928
77086
|
// src/cleanCacheAction.ts
|
|
76929
77087
|
var import_os = __toESM(require("os"));
|
|
76930
77088
|
var import_path3 = __toESM(require("path"));
|
|
76931
77089
|
var import_utils4 = __toESM(require_dist());
|
|
76932
|
-
|
|
76933
|
-
|
|
76934
|
-
|
|
76935
|
-
|
|
76936
|
-
|
|
76937
|
-
|
|
76938
|
-
|
|
76939
|
-
|
|
76940
|
-
|
|
76941
|
-
|
|
77090
|
+
function cleanCacheAction() {
|
|
77091
|
+
return __async(this, null, function* () {
|
|
77092
|
+
const tmpDir = import_os.default.tmpdir();
|
|
77093
|
+
const spinner = (0, import_utils4.ora)({
|
|
77094
|
+
text: "Load Generator...",
|
|
77095
|
+
spinner: "runner"
|
|
77096
|
+
}).start();
|
|
77097
|
+
const cacheDir = import_path3.default.join(tmpDir, "csmith-generator");
|
|
77098
|
+
import_utils4.fs.emptyDirSync(cacheDir);
|
|
77099
|
+
spinner.stop();
|
|
77100
|
+
console.info(`[INFO] ${i18n.t(localeKeys.tooltip.clean_cache_success)}`);
|
|
77101
|
+
});
|
|
76942
77102
|
}
|
|
76943
77103
|
|
|
76944
77104
|
// src/index.ts
|