@slidev/cli 0.33.1 → 0.34.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/README.md +2 -3
- package/dist/build-GQNLL4B2.js +113 -0
- package/dist/build-Y3ZVSXFT.mjs +113 -0
- package/dist/{chunk-LIMOCTLS.js → chunk-5GSPMDNU.js} +160 -159
- package/dist/chunk-FROLEDLC.js +10916 -0
- package/dist/chunk-OGKTSZVU.mjs +10917 -0
- package/dist/{chunk-MVE4F2AE.mjs → chunk-QE663OGO.mjs} +7 -6
- package/dist/{chunk-IP7ZGKHI.js → chunk-SO7T6GEW.js} +5 -1
- package/dist/cli.js +28 -25
- package/dist/cli.mjs +7 -4
- package/dist/{export-JHIU6OQI.js → export-URR4VZNO.js} +4 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -6
- package/dist/index.mjs +2 -2
- package/package.json +18 -15
- package/dist/build-JAORN7ES.mjs +0 -744
- package/dist/build-OWDFSW6Q.js +0 -744
- package/dist/chunk-DGFMEJWT.mjs +0 -1572
- package/dist/chunk-WGEHDK3K.js +0 -1571
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkFROLEDLCjs = require('./chunk-FROLEDLC.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -15,12 +15,12 @@ var _chunkWGEHDK3Kjs = require('./chunk-WGEHDK3K.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkSO7T6GEWjs = require('./chunk-SO7T6GEW.js');
|
|
19
19
|
|
|
20
20
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js
|
|
21
|
-
var require_constants =
|
|
21
|
+
var require_constants = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
22
22
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js"(exports, module) {
|
|
23
|
-
|
|
23
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
24
24
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
25
25
|
var MAX_LENGTH = 256;
|
|
26
26
|
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -35,9 +35,9 @@ var require_constants = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js
|
|
38
|
-
var require_debug =
|
|
38
|
+
var require_debug = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
39
39
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js"(exports, module) {
|
|
40
|
-
|
|
40
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
41
41
|
var debug2 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
42
42
|
};
|
|
43
43
|
module.exports = debug2;
|
|
@@ -45,9 +45,9 @@ var require_debug = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
45
45
|
});
|
|
46
46
|
|
|
47
47
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js
|
|
48
|
-
var require_re =
|
|
48
|
+
var require_re = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
49
49
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js"(exports, module) {
|
|
50
|
-
|
|
50
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
51
51
|
var { MAX_SAFE_COMPONENT_LENGTH } = require_constants();
|
|
52
52
|
var debug2 = require_debug();
|
|
53
53
|
exports = module.exports = {};
|
|
@@ -109,9 +109,9 @@ var require_re = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
109
109
|
});
|
|
110
110
|
|
|
111
111
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js
|
|
112
|
-
var require_parse_options =
|
|
112
|
+
var require_parse_options = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
113
113
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
114
|
-
|
|
114
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
115
115
|
var opts = ["includePrerelease", "loose", "rtl"];
|
|
116
116
|
var parseOptions = (options) => !options ? {} : typeof options !== "object" ? { loose: true } : opts.filter((k) => options[k]).reduce((o, k) => {
|
|
117
117
|
o[k] = true;
|
|
@@ -122,9 +122,9 @@ var require_parse_options = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
122
122
|
});
|
|
123
123
|
|
|
124
124
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js
|
|
125
|
-
var require_identifiers =
|
|
125
|
+
var require_identifiers = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
126
126
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
127
|
-
|
|
127
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
128
128
|
var numeric = /^[0-9]+$/;
|
|
129
129
|
var compareIdentifiers = (a, b) => {
|
|
130
130
|
const anum = numeric.test(a);
|
|
@@ -144,9 +144,9 @@ var require_identifiers = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
144
144
|
});
|
|
145
145
|
|
|
146
146
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js
|
|
147
|
-
var require_semver =
|
|
147
|
+
var require_semver = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
148
148
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js"(exports, module) {
|
|
149
|
-
|
|
149
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
150
150
|
var debug2 = require_debug();
|
|
151
151
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
152
152
|
var { re, t } = require_re();
|
|
@@ -369,9 +369,9 @@ var require_semver = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
369
369
|
});
|
|
370
370
|
|
|
371
371
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js
|
|
372
|
-
var require_parse =
|
|
372
|
+
var require_parse = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
373
373
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js"(exports, module) {
|
|
374
|
-
|
|
374
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
375
375
|
var { MAX_LENGTH } = require_constants();
|
|
376
376
|
var { re, t } = require_re();
|
|
377
377
|
var SemVer = require_semver();
|
|
@@ -402,9 +402,9 @@ var require_parse = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
402
402
|
});
|
|
403
403
|
|
|
404
404
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/valid.js
|
|
405
|
-
var require_valid =
|
|
405
|
+
var require_valid = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
406
406
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/valid.js"(exports, module) {
|
|
407
|
-
|
|
407
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
408
408
|
var parse2 = require_parse();
|
|
409
409
|
var valid = (version3, options) => {
|
|
410
410
|
const v = parse2(version3, options);
|
|
@@ -415,9 +415,9 @@ var require_valid = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
415
415
|
});
|
|
416
416
|
|
|
417
417
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/clean.js
|
|
418
|
-
var require_clean =
|
|
418
|
+
var require_clean = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
419
419
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/clean.js"(exports, module) {
|
|
420
|
-
|
|
420
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
421
421
|
var parse2 = require_parse();
|
|
422
422
|
var clean = (version3, options) => {
|
|
423
423
|
const s = parse2(version3.trim().replace(/^[=v]+/, ""), options);
|
|
@@ -428,9 +428,9 @@ var require_clean = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
428
428
|
});
|
|
429
429
|
|
|
430
430
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/inc.js
|
|
431
|
-
var require_inc =
|
|
431
|
+
var require_inc = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
432
432
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/inc.js"(exports, module) {
|
|
433
|
-
|
|
433
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
434
434
|
var SemVer = require_semver();
|
|
435
435
|
var inc = (version3, release, options, identifier) => {
|
|
436
436
|
if (typeof options === "string") {
|
|
@@ -448,9 +448,9 @@ var require_inc = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
448
448
|
});
|
|
449
449
|
|
|
450
450
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js
|
|
451
|
-
var require_compare =
|
|
451
|
+
var require_compare = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
452
452
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js"(exports, module) {
|
|
453
|
-
|
|
453
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
454
454
|
var SemVer = require_semver();
|
|
455
455
|
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
456
456
|
module.exports = compare;
|
|
@@ -458,9 +458,9 @@ var require_compare = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
458
458
|
});
|
|
459
459
|
|
|
460
460
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js
|
|
461
|
-
var require_eq =
|
|
461
|
+
var require_eq = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
462
462
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js"(exports, module) {
|
|
463
|
-
|
|
463
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
464
464
|
var compare = require_compare();
|
|
465
465
|
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
466
466
|
module.exports = eq;
|
|
@@ -468,9 +468,9 @@ var require_eq = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
468
468
|
});
|
|
469
469
|
|
|
470
470
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/diff.js
|
|
471
|
-
var require_diff =
|
|
471
|
+
var require_diff = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
472
472
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/diff.js"(exports, module) {
|
|
473
|
-
|
|
473
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
474
474
|
var parse2 = require_parse();
|
|
475
475
|
var eq = require_eq();
|
|
476
476
|
var diff = (version1, version22) => {
|
|
@@ -497,9 +497,9 @@ var require_diff = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
497
497
|
});
|
|
498
498
|
|
|
499
499
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/major.js
|
|
500
|
-
var require_major =
|
|
500
|
+
var require_major = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
501
501
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/major.js"(exports, module) {
|
|
502
|
-
|
|
502
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
503
503
|
var SemVer = require_semver();
|
|
504
504
|
var major = (a, loose) => new SemVer(a, loose).major;
|
|
505
505
|
module.exports = major;
|
|
@@ -507,9 +507,9 @@ var require_major = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
507
507
|
});
|
|
508
508
|
|
|
509
509
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/minor.js
|
|
510
|
-
var require_minor =
|
|
510
|
+
var require_minor = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
511
511
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/minor.js"(exports, module) {
|
|
512
|
-
|
|
512
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
513
513
|
var SemVer = require_semver();
|
|
514
514
|
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
515
515
|
module.exports = minor;
|
|
@@ -517,9 +517,9 @@ var require_minor = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
517
517
|
});
|
|
518
518
|
|
|
519
519
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/patch.js
|
|
520
|
-
var require_patch =
|
|
520
|
+
var require_patch = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
521
521
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/patch.js"(exports, module) {
|
|
522
|
-
|
|
522
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
523
523
|
var SemVer = require_semver();
|
|
524
524
|
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
525
525
|
module.exports = patch;
|
|
@@ -527,9 +527,9 @@ var require_patch = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
527
527
|
});
|
|
528
528
|
|
|
529
529
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/prerelease.js
|
|
530
|
-
var require_prerelease =
|
|
530
|
+
var require_prerelease = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
531
531
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
532
|
-
|
|
532
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
533
533
|
var parse2 = require_parse();
|
|
534
534
|
var prerelease = (version3, options) => {
|
|
535
535
|
const parsed = parse2(version3, options);
|
|
@@ -540,9 +540,9 @@ var require_prerelease = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
540
540
|
});
|
|
541
541
|
|
|
542
542
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rcompare.js
|
|
543
|
-
var require_rcompare =
|
|
543
|
+
var require_rcompare = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
544
544
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
545
|
-
|
|
545
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
546
546
|
var compare = require_compare();
|
|
547
547
|
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
548
548
|
module.exports = rcompare;
|
|
@@ -550,9 +550,9 @@ var require_rcompare = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
550
550
|
});
|
|
551
551
|
|
|
552
552
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-loose.js
|
|
553
|
-
var require_compare_loose =
|
|
553
|
+
var require_compare_loose = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
554
554
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
555
|
-
|
|
555
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
556
556
|
var compare = require_compare();
|
|
557
557
|
var compareLoose = (a, b) => compare(a, b, true);
|
|
558
558
|
module.exports = compareLoose;
|
|
@@ -560,9 +560,9 @@ var require_compare_loose = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
560
560
|
});
|
|
561
561
|
|
|
562
562
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js
|
|
563
|
-
var require_compare_build =
|
|
563
|
+
var require_compare_build = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
564
564
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
565
|
-
|
|
565
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
566
566
|
var SemVer = require_semver();
|
|
567
567
|
var compareBuild = (a, b, loose) => {
|
|
568
568
|
const versionA = new SemVer(a, loose);
|
|
@@ -574,9 +574,9 @@ var require_compare_build = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
574
574
|
});
|
|
575
575
|
|
|
576
576
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/sort.js
|
|
577
|
-
var require_sort =
|
|
577
|
+
var require_sort = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
578
578
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/sort.js"(exports, module) {
|
|
579
|
-
|
|
579
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
580
580
|
var compareBuild = require_compare_build();
|
|
581
581
|
var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
582
582
|
module.exports = sort;
|
|
@@ -584,9 +584,9 @@ var require_sort = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
584
584
|
});
|
|
585
585
|
|
|
586
586
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rsort.js
|
|
587
|
-
var require_rsort =
|
|
587
|
+
var require_rsort = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
588
588
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
589
|
-
|
|
589
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
590
590
|
var compareBuild = require_compare_build();
|
|
591
591
|
var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
592
592
|
module.exports = rsort;
|
|
@@ -594,9 +594,9 @@ var require_rsort = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
594
594
|
});
|
|
595
595
|
|
|
596
596
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js
|
|
597
|
-
var require_gt =
|
|
597
|
+
var require_gt = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
598
598
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js"(exports, module) {
|
|
599
|
-
|
|
599
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
600
600
|
var compare = require_compare();
|
|
601
601
|
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
602
602
|
module.exports = gt;
|
|
@@ -604,9 +604,9 @@ var require_gt = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
604
604
|
});
|
|
605
605
|
|
|
606
606
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js
|
|
607
|
-
var require_lt =
|
|
607
|
+
var require_lt = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
608
608
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js"(exports, module) {
|
|
609
|
-
|
|
609
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
610
610
|
var compare = require_compare();
|
|
611
611
|
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
612
612
|
module.exports = lt;
|
|
@@ -614,9 +614,9 @@ var require_lt = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
614
614
|
});
|
|
615
615
|
|
|
616
616
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/neq.js
|
|
617
|
-
var require_neq =
|
|
617
|
+
var require_neq = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
618
618
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/neq.js"(exports, module) {
|
|
619
|
-
|
|
619
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
620
620
|
var compare = require_compare();
|
|
621
621
|
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
622
622
|
module.exports = neq;
|
|
@@ -624,9 +624,9 @@ var require_neq = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
624
624
|
});
|
|
625
625
|
|
|
626
626
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js
|
|
627
|
-
var require_gte =
|
|
627
|
+
var require_gte = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
628
628
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js"(exports, module) {
|
|
629
|
-
|
|
629
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
630
630
|
var compare = require_compare();
|
|
631
631
|
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
632
632
|
module.exports = gte;
|
|
@@ -634,9 +634,9 @@ var require_gte = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
634
634
|
});
|
|
635
635
|
|
|
636
636
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js
|
|
637
|
-
var require_lte =
|
|
637
|
+
var require_lte = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
638
638
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js"(exports, module) {
|
|
639
|
-
|
|
639
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
640
640
|
var compare = require_compare();
|
|
641
641
|
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
642
642
|
module.exports = lte;
|
|
@@ -644,9 +644,9 @@ var require_lte = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
644
644
|
});
|
|
645
645
|
|
|
646
646
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/cmp.js
|
|
647
|
-
var require_cmp =
|
|
647
|
+
var require_cmp = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
648
648
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
649
|
-
|
|
649
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
650
650
|
var eq = require_eq();
|
|
651
651
|
var neq = require_neq();
|
|
652
652
|
var gt = require_gt();
|
|
@@ -694,9 +694,9 @@ var require_cmp = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
694
694
|
});
|
|
695
695
|
|
|
696
696
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/coerce.js
|
|
697
|
-
var require_coerce =
|
|
697
|
+
var require_coerce = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
698
698
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
699
|
-
|
|
699
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
700
700
|
var SemVer = require_semver();
|
|
701
701
|
var parse2 = require_parse();
|
|
702
702
|
var { re, t } = require_re();
|
|
@@ -734,10 +734,10 @@ var require_coerce = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
734
734
|
});
|
|
735
735
|
|
|
736
736
|
// ../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/iterator.js
|
|
737
|
-
var require_iterator =
|
|
737
|
+
var require_iterator = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
738
738
|
"../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/iterator.js"(exports, module) {
|
|
739
739
|
"use strict";
|
|
740
|
-
|
|
740
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
741
741
|
module.exports = function(Yallist) {
|
|
742
742
|
Yallist.prototype[Symbol.iterator] = function* () {
|
|
743
743
|
for (let walker = this.head; walker; walker = walker.next) {
|
|
@@ -749,10 +749,10 @@ var require_iterator = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
749
749
|
});
|
|
750
750
|
|
|
751
751
|
// ../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js
|
|
752
|
-
var require_yallist =
|
|
752
|
+
var require_yallist = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
753
753
|
"../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js"(exports, module) {
|
|
754
754
|
"use strict";
|
|
755
|
-
|
|
755
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
756
756
|
module.exports = Yallist;
|
|
757
757
|
Yallist.Node = Node2;
|
|
758
758
|
Yallist.create = Yallist;
|
|
@@ -1119,10 +1119,10 @@ var require_yallist = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
1119
1119
|
});
|
|
1120
1120
|
|
|
1121
1121
|
// ../../node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js
|
|
1122
|
-
var require_lru_cache =
|
|
1122
|
+
var require_lru_cache = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1123
1123
|
"../../node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js"(exports, module) {
|
|
1124
1124
|
"use strict";
|
|
1125
|
-
|
|
1125
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1126
1126
|
var Yallist = require_yallist();
|
|
1127
1127
|
var MAX = Symbol("max");
|
|
1128
1128
|
var LENGTH = Symbol("length");
|
|
@@ -1388,9 +1388,9 @@ var require_lru_cache = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
1388
1388
|
});
|
|
1389
1389
|
|
|
1390
1390
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js
|
|
1391
|
-
var require_range =
|
|
1391
|
+
var require_range = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1392
1392
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js"(exports, module) {
|
|
1393
|
-
|
|
1393
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1394
1394
|
var Range = class {
|
|
1395
1395
|
constructor(range, options) {
|
|
1396
1396
|
options = parseOptions(options);
|
|
@@ -1748,9 +1748,9 @@ var require_range = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
1748
1748
|
});
|
|
1749
1749
|
|
|
1750
1750
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js
|
|
1751
|
-
var require_comparator =
|
|
1751
|
+
var require_comparator = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1752
1752
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
1753
|
-
|
|
1753
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1754
1754
|
var ANY = Symbol("SemVer ANY");
|
|
1755
1755
|
var Comparator = class {
|
|
1756
1756
|
static get ANY() {
|
|
@@ -1850,9 +1850,9 @@ var require_comparator = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
1850
1850
|
});
|
|
1851
1851
|
|
|
1852
1852
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js
|
|
1853
|
-
var require_satisfies =
|
|
1853
|
+
var require_satisfies = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1854
1854
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
1855
|
-
|
|
1855
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1856
1856
|
var Range = require_range();
|
|
1857
1857
|
var satisfies3 = (version3, range, options) => {
|
|
1858
1858
|
try {
|
|
@@ -1867,9 +1867,9 @@ var require_satisfies = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
1867
1867
|
});
|
|
1868
1868
|
|
|
1869
1869
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/to-comparators.js
|
|
1870
|
-
var require_to_comparators =
|
|
1870
|
+
var require_to_comparators = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1871
1871
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
1872
|
-
|
|
1872
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1873
1873
|
var Range = require_range();
|
|
1874
1874
|
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c2) => c2.value).join(" ").trim().split(" "));
|
|
1875
1875
|
module.exports = toComparators;
|
|
@@ -1877,9 +1877,9 @@ var require_to_comparators = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
1877
1877
|
});
|
|
1878
1878
|
|
|
1879
1879
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/max-satisfying.js
|
|
1880
|
-
var require_max_satisfying =
|
|
1880
|
+
var require_max_satisfying = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1881
1881
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
1882
|
-
|
|
1882
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1883
1883
|
var SemVer = require_semver();
|
|
1884
1884
|
var Range = require_range();
|
|
1885
1885
|
var maxSatisfying = (versions, range, options) => {
|
|
@@ -1906,9 +1906,9 @@ var require_max_satisfying = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
1906
1906
|
});
|
|
1907
1907
|
|
|
1908
1908
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-satisfying.js
|
|
1909
|
-
var require_min_satisfying =
|
|
1909
|
+
var require_min_satisfying = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1910
1910
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
1911
|
-
|
|
1911
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1912
1912
|
var SemVer = require_semver();
|
|
1913
1913
|
var Range = require_range();
|
|
1914
1914
|
var minSatisfying = (versions, range, options) => {
|
|
@@ -1935,9 +1935,9 @@ var require_min_satisfying = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
1935
1935
|
});
|
|
1936
1936
|
|
|
1937
1937
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-version.js
|
|
1938
|
-
var require_min_version =
|
|
1938
|
+
var require_min_version = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1939
1939
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
1940
|
-
|
|
1940
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1941
1941
|
var SemVer = require_semver();
|
|
1942
1942
|
var Range = require_range();
|
|
1943
1943
|
var gt = require_gt();
|
|
@@ -1992,9 +1992,9 @@ var require_min_version = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
1992
1992
|
});
|
|
1993
1993
|
|
|
1994
1994
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/valid.js
|
|
1995
|
-
var require_valid2 =
|
|
1995
|
+
var require_valid2 = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1996
1996
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
1997
|
-
|
|
1997
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1998
1998
|
var Range = require_range();
|
|
1999
1999
|
var validRange = (range, options) => {
|
|
2000
2000
|
try {
|
|
@@ -2008,9 +2008,9 @@ var require_valid2 = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
2008
2008
|
});
|
|
2009
2009
|
|
|
2010
2010
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js
|
|
2011
|
-
var require_outside =
|
|
2011
|
+
var require_outside = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2012
2012
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
2013
|
-
|
|
2013
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2014
2014
|
var SemVer = require_semver();
|
|
2015
2015
|
var Comparator = require_comparator();
|
|
2016
2016
|
var { ANY } = Comparator;
|
|
@@ -2077,9 +2077,9 @@ var require_outside = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
2077
2077
|
});
|
|
2078
2078
|
|
|
2079
2079
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/gtr.js
|
|
2080
|
-
var require_gtr =
|
|
2080
|
+
var require_gtr = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2081
2081
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
2082
|
-
|
|
2082
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2083
2083
|
var outside = require_outside();
|
|
2084
2084
|
var gtr = (version3, range, options) => outside(version3, range, ">", options);
|
|
2085
2085
|
module.exports = gtr;
|
|
@@ -2087,9 +2087,9 @@ var require_gtr = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
2087
2087
|
});
|
|
2088
2088
|
|
|
2089
2089
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/ltr.js
|
|
2090
|
-
var require_ltr =
|
|
2090
|
+
var require_ltr = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2091
2091
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
2092
|
-
|
|
2092
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2093
2093
|
var outside = require_outside();
|
|
2094
2094
|
var ltr = (version3, range, options) => outside(version3, range, "<", options);
|
|
2095
2095
|
module.exports = ltr;
|
|
@@ -2097,9 +2097,9 @@ var require_ltr = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
2097
2097
|
});
|
|
2098
2098
|
|
|
2099
2099
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/intersects.js
|
|
2100
|
-
var require_intersects =
|
|
2100
|
+
var require_intersects = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2101
2101
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
2102
|
-
|
|
2102
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2103
2103
|
var Range = require_range();
|
|
2104
2104
|
var intersects = (r1, r2, options) => {
|
|
2105
2105
|
r1 = new Range(r1, options);
|
|
@@ -2111,9 +2111,9 @@ var require_intersects = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
2111
2111
|
});
|
|
2112
2112
|
|
|
2113
2113
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/simplify.js
|
|
2114
|
-
var require_simplify =
|
|
2114
|
+
var require_simplify = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2115
2115
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
2116
|
-
|
|
2116
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2117
2117
|
var satisfies3 = require_satisfies();
|
|
2118
2118
|
var compare = require_compare();
|
|
2119
2119
|
module.exports = (versions, range, options) => {
|
|
@@ -2161,9 +2161,9 @@ var require_simplify = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
2161
2161
|
});
|
|
2162
2162
|
|
|
2163
2163
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/subset.js
|
|
2164
|
-
var require_subset =
|
|
2164
|
+
var require_subset = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2165
2165
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
2166
|
-
|
|
2166
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2167
2167
|
var Range = require_range();
|
|
2168
2168
|
var Comparator = require_comparator();
|
|
2169
2169
|
var { ANY } = Comparator;
|
|
@@ -2322,9 +2322,9 @@ var require_subset = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
2322
2322
|
});
|
|
2323
2323
|
|
|
2324
2324
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/index.js
|
|
2325
|
-
var require_semver2 =
|
|
2325
|
+
var require_semver2 = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2326
2326
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/index.js"(exports, module) {
|
|
2327
|
-
|
|
2327
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2328
2328
|
var internalRe = require_re();
|
|
2329
2329
|
module.exports = {
|
|
2330
2330
|
re: internalRe.re,
|
|
@@ -2376,42 +2376,42 @@ var require_semver2 = _chunkIP7ZGKHIjs.__commonJS.call(void 0, {
|
|
|
2376
2376
|
});
|
|
2377
2377
|
|
|
2378
2378
|
// node/server.ts
|
|
2379
|
-
|
|
2379
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2380
2380
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
2381
2381
|
var _vite = require('vite');
|
|
2382
2382
|
async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
2383
2383
|
const rawConfig = await _vite.resolveConfig.call(void 0, {}, "serve");
|
|
2384
2384
|
const pluginOptions = rawConfig.slidev || {};
|
|
2385
2385
|
process.env.EDITOR = process.env.EDITOR || "code";
|
|
2386
|
-
const server = await _vite.createServer.call(void 0, await
|
|
2386
|
+
const server = await _vite.createServer.call(void 0, await _chunkFROLEDLCjs.mergeViteConfigs.call(void 0, options, viteConfig, {
|
|
2387
2387
|
optimizeDeps: {
|
|
2388
2388
|
entries: [
|
|
2389
2389
|
_path.join.call(void 0, options.clientRoot, "main.ts")
|
|
2390
2390
|
]
|
|
2391
2391
|
},
|
|
2392
2392
|
plugins: [
|
|
2393
|
-
await
|
|
2393
|
+
await _chunkFROLEDLCjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
|
|
2394
2394
|
]
|
|
2395
2395
|
}, "serve"));
|
|
2396
2396
|
return server;
|
|
2397
2397
|
}
|
|
2398
2398
|
|
|
2399
2399
|
// node/parser.ts
|
|
2400
|
-
|
|
2400
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2401
2401
|
var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs);
|
|
2402
2402
|
|
|
2403
2403
|
// package.json
|
|
2404
|
-
var version = "0.
|
|
2404
|
+
var version = "0.34.0";
|
|
2405
2405
|
|
|
2406
2406
|
// node/themes.ts
|
|
2407
|
-
|
|
2407
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2408
2408
|
var _prompts = require('prompts'); var _prompts2 = _interopRequireDefault(_prompts);
|
|
2409
2409
|
|
|
2410
|
-
// ../../node_modules/.pnpm/@antfu+ni@0.16.
|
|
2411
|
-
|
|
2410
|
+
// ../../node_modules/.pnpm/@antfu+ni@0.16.3/node_modules/@antfu/ni/dist/index.mjs
|
|
2411
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2412
2412
|
|
|
2413
|
-
// ../../node_modules/.pnpm/@antfu+ni@0.16.
|
|
2414
|
-
|
|
2413
|
+
// ../../node_modules/.pnpm/@antfu+ni@0.16.3/node_modules/@antfu/ni/dist/chunks/runner.mjs
|
|
2414
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2415
2415
|
|
|
2416
2416
|
var _readline = require('readline'); var _readline2 = _interopRequireDefault(_readline);
|
|
2417
2417
|
var _events = require('events'); var _events2 = _interopRequireDefault(_events);
|
|
@@ -2430,7 +2430,7 @@ var _stream = require('stream'); var _stream2 = _interopRequireDefault(_stream);
|
|
|
2430
2430
|
var _util = require('util'); var _util2 = _interopRequireDefault(_util);
|
|
2431
2431
|
|
|
2432
2432
|
var _tty = require('tty'); var _tty2 = _interopRequireDefault(_tty);
|
|
2433
|
-
var version2 = "0.16.
|
|
2433
|
+
var version2 = "0.16.3";
|
|
2434
2434
|
var npmRun = (agent) => (args) => {
|
|
2435
2435
|
if (args.length > 1)
|
|
2436
2436
|
return `${agent} run ${args[0]} -- ${args.slice(1).join(" ")}`;
|
|
@@ -2478,7 +2478,7 @@ var AGENTS = {
|
|
|
2478
2478
|
"global_uninstall": "npm uninstall -g {0}"
|
|
2479
2479
|
},
|
|
2480
2480
|
"yarn": yarn,
|
|
2481
|
-
"yarn@berry":
|
|
2481
|
+
"yarn@berry": _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, yarn), {
|
|
2482
2482
|
"frozen": "yarn install --immutable",
|
|
2483
2483
|
"upgrade": "yarn up {0}",
|
|
2484
2484
|
"upgrade-interactive": "yarn up -i {0}",
|
|
@@ -2486,7 +2486,7 @@ var AGENTS = {
|
|
|
2486
2486
|
"global_uninstall": "npm uninstall -g {0}"
|
|
2487
2487
|
}),
|
|
2488
2488
|
"pnpm": pnpm,
|
|
2489
|
-
"pnpm@6":
|
|
2489
|
+
"pnpm@6": _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, pnpm), {
|
|
2490
2490
|
run: npmRun("pnpm")
|
|
2491
2491
|
})
|
|
2492
2492
|
};
|
|
@@ -2494,7 +2494,8 @@ var agents = Object.keys(AGENTS);
|
|
|
2494
2494
|
var LOCKS = {
|
|
2495
2495
|
"pnpm-lock.yaml": "pnpm",
|
|
2496
2496
|
"yarn.lock": "yarn",
|
|
2497
|
-
"package-lock.json": "npm"
|
|
2497
|
+
"package-lock.json": "npm",
|
|
2498
|
+
"npm-shrinkwrap.json": "npm"
|
|
2498
2499
|
};
|
|
2499
2500
|
var INSTALL_PAGE = {
|
|
2500
2501
|
"pnpm": "https://pnpm.js.org/en/installation",
|
|
@@ -2933,41 +2934,41 @@ var Node = class {
|
|
|
2933
2934
|
var _head, _tail, _size;
|
|
2934
2935
|
var Queue = class {
|
|
2935
2936
|
constructor() {
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2937
|
+
_chunkSO7T6GEWjs.__privateAdd.call(void 0, this, _head, void 0);
|
|
2938
|
+
_chunkSO7T6GEWjs.__privateAdd.call(void 0, this, _tail, void 0);
|
|
2939
|
+
_chunkSO7T6GEWjs.__privateAdd.call(void 0, this, _size, void 0);
|
|
2939
2940
|
this.clear();
|
|
2940
2941
|
}
|
|
2941
2942
|
enqueue(value) {
|
|
2942
2943
|
const node = new Node(value);
|
|
2943
|
-
if (
|
|
2944
|
-
|
|
2945
|
-
|
|
2944
|
+
if (_chunkSO7T6GEWjs.__privateGet.call(void 0, this, _head)) {
|
|
2945
|
+
_chunkSO7T6GEWjs.__privateGet.call(void 0, this, _tail).next = node;
|
|
2946
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _tail, node);
|
|
2946
2947
|
} else {
|
|
2947
|
-
|
|
2948
|
-
|
|
2948
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _head, node);
|
|
2949
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _tail, node);
|
|
2949
2950
|
}
|
|
2950
|
-
|
|
2951
|
+
_chunkSO7T6GEWjs.__privateWrapper.call(void 0, this, _size)._++;
|
|
2951
2952
|
}
|
|
2952
2953
|
dequeue() {
|
|
2953
|
-
const current =
|
|
2954
|
+
const current = _chunkSO7T6GEWjs.__privateGet.call(void 0, this, _head);
|
|
2954
2955
|
if (!current) {
|
|
2955
2956
|
return;
|
|
2956
2957
|
}
|
|
2957
|
-
|
|
2958
|
-
|
|
2958
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _head, _chunkSO7T6GEWjs.__privateGet.call(void 0, this, _head).next);
|
|
2959
|
+
_chunkSO7T6GEWjs.__privateWrapper.call(void 0, this, _size)._--;
|
|
2959
2960
|
return current.value;
|
|
2960
2961
|
}
|
|
2961
2962
|
clear() {
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2963
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _head, void 0);
|
|
2964
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _tail, void 0);
|
|
2965
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _size, 0);
|
|
2965
2966
|
}
|
|
2966
2967
|
get size() {
|
|
2967
|
-
return
|
|
2968
|
+
return _chunkSO7T6GEWjs.__privateGet.call(void 0, this, _size);
|
|
2968
2969
|
}
|
|
2969
2970
|
*[Symbol.iterator]() {
|
|
2970
|
-
let current =
|
|
2971
|
+
let current = _chunkSO7T6GEWjs.__privateGet.call(void 0, this, _head);
|
|
2971
2972
|
while (current) {
|
|
2972
2973
|
yield current.value;
|
|
2973
2974
|
current = current.next;
|
|
@@ -3107,7 +3108,7 @@ async function findUpMultiple(name, options = {}) {
|
|
|
3107
3108
|
};
|
|
3108
3109
|
const matches = [];
|
|
3109
3110
|
while (true) {
|
|
3110
|
-
const foundPath = await runMatcher(
|
|
3111
|
+
const foundPath = await runMatcher(_chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, options), { cwd: directory }));
|
|
3111
3112
|
if (foundPath === findUpStop) {
|
|
3112
3113
|
break;
|
|
3113
3114
|
}
|
|
@@ -3122,7 +3123,7 @@ async function findUpMultiple(name, options = {}) {
|
|
|
3122
3123
|
return matches;
|
|
3123
3124
|
}
|
|
3124
3125
|
async function findUp(name, options = {}) {
|
|
3125
|
-
const matches = await findUpMultiple(name,
|
|
3126
|
+
const matches = await findUpMultiple(name, _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, options), { limit: 1 }));
|
|
3126
3127
|
return matches[0];
|
|
3127
3128
|
}
|
|
3128
3129
|
var customRcPath = process.env.NI_CONFIG_FILE;
|
|
@@ -3415,8 +3416,8 @@ function npmRunPath(options = {}) {
|
|
|
3415
3416
|
return [...result, path_].join(_path2.default.delimiter);
|
|
3416
3417
|
}
|
|
3417
3418
|
function npmRunPathEnv(_a = {}) {
|
|
3418
|
-
var _b = _a, { env: env2 = _process2.default.env } = _b, options =
|
|
3419
|
-
env2 =
|
|
3419
|
+
var _b = _a, { env: env2 = _process2.default.env } = _b, options = _chunkSO7T6GEWjs.__objRest.call(void 0, _b, ["env"]);
|
|
3420
|
+
env2 = _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, env2);
|
|
3420
3421
|
const path2 = pathKey({ env: env2 });
|
|
3421
3422
|
options.path = env2[path2];
|
|
3422
3423
|
env2[path2] = npmRunPath(options);
|
|
@@ -3454,7 +3455,7 @@ var changeToString = (to, from, name) => {
|
|
|
3454
3455
|
const withName = name === "" ? "" : `with ${name.trim()}() `;
|
|
3455
3456
|
const newToString = wrappedToString.bind(null, withName, from.toString());
|
|
3456
3457
|
Object.defineProperty(newToString, "name", toStringName);
|
|
3457
|
-
Object.defineProperty(to, "toString",
|
|
3458
|
+
Object.defineProperty(to, "toString", _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, toStringDescriptor), { value: newToString }));
|
|
3458
3459
|
};
|
|
3459
3460
|
function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
3460
3461
|
const { name } = to;
|
|
@@ -3804,7 +3805,7 @@ var getSignalsByName = function() {
|
|
|
3804
3805
|
return signals.reduce(getSignalByName, {});
|
|
3805
3806
|
};
|
|
3806
3807
|
var getSignalByName = function(signalByNameMemo, { name, number: number2, description, supported, action: action2, forced, standard }) {
|
|
3807
|
-
return
|
|
3808
|
+
return _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, signalByNameMemo), {
|
|
3808
3809
|
[name]: { name, number: number2, description, supported, action: action2, forced, standard }
|
|
3809
3810
|
});
|
|
3810
3811
|
};
|
|
@@ -4177,7 +4178,7 @@ function isStream(stream2) {
|
|
|
4177
4178
|
var getStream$2 = { exports: {} };
|
|
4178
4179
|
var { PassThrough: PassThroughStream } = _stream2.default;
|
|
4179
4180
|
var bufferStream$1 = (options) => {
|
|
4180
|
-
options =
|
|
4181
|
+
options = _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, options);
|
|
4181
4182
|
const { array } = options;
|
|
4182
4183
|
let { encoding } = options;
|
|
4183
4184
|
const isBuffer = encoding === "buffer";
|
|
@@ -4228,7 +4229,7 @@ async function getStream(inputStream, options) {
|
|
|
4228
4229
|
if (!inputStream) {
|
|
4229
4230
|
throw new Error("Expected a stream");
|
|
4230
4231
|
}
|
|
4231
|
-
options =
|
|
4232
|
+
options = _chunkSO7T6GEWjs.__spreadValues.call(void 0, {
|
|
4232
4233
|
maxBuffer: Infinity
|
|
4233
4234
|
}, options);
|
|
4234
4235
|
const { maxBuffer } = options;
|
|
@@ -4257,8 +4258,8 @@ async function getStream(inputStream, options) {
|
|
|
4257
4258
|
return stream2.getBufferedValue();
|
|
4258
4259
|
}
|
|
4259
4260
|
getStream$2.exports = getStream;
|
|
4260
|
-
getStream$2.exports.buffer = (stream2, options) => getStream(stream2,
|
|
4261
|
-
getStream$2.exports.array = (stream2, options) => getStream(stream2,
|
|
4261
|
+
getStream$2.exports.buffer = (stream2, options) => getStream(stream2, _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, options), { encoding: "buffer" }));
|
|
4262
|
+
getStream$2.exports.array = (stream2, options) => getStream(stream2, _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, options), { array: true }));
|
|
4262
4263
|
getStream$2.exports.MaxBufferError = MaxBufferError;
|
|
4263
4264
|
var getStream$1 = getStream$2.exports;
|
|
4264
4265
|
var { PassThrough } = _stream2.default;
|
|
@@ -4361,7 +4362,7 @@ var descriptors = ["then", "catch", "finally"].map((property) => [
|
|
|
4361
4362
|
var mergePromise = (spawned, promise) => {
|
|
4362
4363
|
for (const [property, descriptor] of descriptors) {
|
|
4363
4364
|
const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
|
|
4364
|
-
Reflect.defineProperty(spawned, property,
|
|
4365
|
+
Reflect.defineProperty(spawned, property, _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, descriptor), { value }));
|
|
4365
4366
|
}
|
|
4366
4367
|
return spawned;
|
|
4367
4368
|
};
|
|
@@ -4409,7 +4410,7 @@ var parseCommand = (command) => {
|
|
|
4409
4410
|
};
|
|
4410
4411
|
var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
4411
4412
|
var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
4412
|
-
const env2 = extendEnv ?
|
|
4413
|
+
const env2 = extendEnv ? _chunkSO7T6GEWjs.__spreadValues.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, _process2.default.env), envOption) : envOption;
|
|
4413
4414
|
if (preferLocal) {
|
|
4414
4415
|
return npmRunPathEnv({ env: env2, cwd: localDir, execPath });
|
|
4415
4416
|
}
|
|
@@ -4420,7 +4421,7 @@ var handleArguments = (file, args, options = {}) => {
|
|
|
4420
4421
|
file = parsed.command;
|
|
4421
4422
|
args = parsed.args;
|
|
4422
4423
|
options = parsed.options;
|
|
4423
|
-
options =
|
|
4424
|
+
options = _chunkSO7T6GEWjs.__spreadValues.call(void 0, {
|
|
4424
4425
|
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
4425
4426
|
buffer: true,
|
|
4426
4427
|
stripFinalNewline: true,
|
|
@@ -4813,7 +4814,7 @@ var supportsHyperlinks = {
|
|
|
4813
4814
|
stderr: supportsHyperlink(process.stderr)
|
|
4814
4815
|
};
|
|
4815
4816
|
function terminalLink(text2, url2, _a = {}) {
|
|
4816
|
-
var _b = _a, { target = "stdout" } = _b, options =
|
|
4817
|
+
var _b = _a, { target = "stdout" } = _b, options = _chunkSO7T6GEWjs.__objRest.call(void 0, _b, ["target"]);
|
|
4817
4818
|
if (!supportsHyperlinks[target]) {
|
|
4818
4819
|
if (options.fallback === false) {
|
|
4819
4820
|
return text2;
|
|
@@ -4823,7 +4824,7 @@ function terminalLink(text2, url2, _a = {}) {
|
|
|
4823
4824
|
return ansiEscapes.link(text2, url2);
|
|
4824
4825
|
}
|
|
4825
4826
|
terminalLink.isSupported = supportsHyperlinks.stdout;
|
|
4826
|
-
terminalLink.stderr = (text2, url2, options = {}) => terminalLink(text2, url2,
|
|
4827
|
+
terminalLink.stderr = (text2, url2, options = {}) => terminalLink(text2, url2, _chunkSO7T6GEWjs.__spreadValues.call(void 0, { target: "stderr" }, options));
|
|
4827
4828
|
terminalLink.stderr.isSupported = supportsHyperlinks.stderr;
|
|
4828
4829
|
var prompts$4 = {};
|
|
4829
4830
|
var { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env;
|
|
@@ -9334,7 +9335,7 @@ async function prompt(questions = [], { onSubmit = noop, onCancel = noop } = {})
|
|
|
9334
9335
|
for (question of questions) {
|
|
9335
9336
|
({ name, type } = question);
|
|
9336
9337
|
if (typeof type === "function") {
|
|
9337
|
-
type = await type(answer,
|
|
9338
|
+
type = await type(answer, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, answers), question);
|
|
9338
9339
|
question["type"] = type;
|
|
9339
9340
|
}
|
|
9340
9341
|
if (!type)
|
|
@@ -9343,7 +9344,7 @@ async function prompt(questions = [], { onSubmit = noop, onCancel = noop } = {})
|
|
|
9343
9344
|
if (passOn.includes(key))
|
|
9344
9345
|
continue;
|
|
9345
9346
|
let value = question[key];
|
|
9346
|
-
question[key] = typeof value === "function" ? await value(answer,
|
|
9347
|
+
question[key] = typeof value === "function" ? await value(answer, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, answers), lastPrompt) : value;
|
|
9347
9348
|
}
|
|
9348
9349
|
lastPrompt = question;
|
|
9349
9350
|
if (typeof question.message !== "string") {
|
|
@@ -9459,7 +9460,7 @@ async function run(fn, args, options = {}) {
|
|
|
9459
9460
|
if (isGlobal) {
|
|
9460
9461
|
command = await fn(await getGlobalAgent(), args);
|
|
9461
9462
|
} else {
|
|
9462
|
-
let agent = await detect(
|
|
9463
|
+
let agent = await detect(_chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, options), { cwd })) || await getDefaultAgent();
|
|
9463
9464
|
if (agent === "prompt") {
|
|
9464
9465
|
agent = (await prompts({
|
|
9465
9466
|
name: "agent",
|
|
@@ -9487,7 +9488,7 @@ async function run(fn, args, options = {}) {
|
|
|
9487
9488
|
await execaCommand(command, { stdio: "inherit", encoding: "utf-8", cwd });
|
|
9488
9489
|
}
|
|
9489
9490
|
|
|
9490
|
-
// ../../node_modules/.pnpm/@antfu+ni@0.16.
|
|
9491
|
+
// ../../node_modules/.pnpm/@antfu+ni@0.16.3/node_modules/@antfu/ni/dist/index.mjs
|
|
9491
9492
|
|
|
9492
9493
|
|
|
9493
9494
|
|
|
@@ -9497,23 +9498,23 @@ async function run(fn, args, options = {}) {
|
|
|
9497
9498
|
|
|
9498
9499
|
|
|
9499
9500
|
// node/themes.ts
|
|
9500
|
-
var import_semver2 =
|
|
9501
|
+
var import_semver2 = _chunkSO7T6GEWjs.__toESM.call(void 0, require_semver2());
|
|
9501
9502
|
var _isinstalledglobally = require('is-installed-globally'); var _isinstalledglobally2 = _interopRequireDefault(_isinstalledglobally);
|
|
9502
9503
|
var _kolorist = require('kolorist');
|
|
9503
9504
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
9504
9505
|
|
|
9505
9506
|
// node/options.ts
|
|
9506
|
-
|
|
9507
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
9507
9508
|
|
|
9508
9509
|
var _utils = require('@antfu/utils');
|
|
9509
9510
|
var _debug2 = require('debug'); var _debug3 = _interopRequireDefault(_debug2);
|
|
9510
9511
|
|
|
9511
9512
|
// node/addons.ts
|
|
9512
|
-
|
|
9513
|
-
var import_semver =
|
|
9513
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
9514
|
+
var import_semver = _chunkSO7T6GEWjs.__toESM.call(void 0, require_semver2());
|
|
9514
9515
|
|
|
9515
9516
|
function getPackageJson(root) {
|
|
9516
|
-
const file =
|
|
9517
|
+
const file = _chunkSO7T6GEWjs.resolveImportPath.call(void 0, `${root}/package.json`, true);
|
|
9517
9518
|
if (file && _fsextra2.default.existsSync(file))
|
|
9518
9519
|
return _fsextra2.default.readJSON(file);
|
|
9519
9520
|
return {};
|
|
@@ -9545,7 +9546,7 @@ function resolvePluginName(name) {
|
|
|
9545
9546
|
return "";
|
|
9546
9547
|
if (isPath(name))
|
|
9547
9548
|
return name;
|
|
9548
|
-
if (
|
|
9549
|
+
if (_chunkSO7T6GEWjs.packageExists.call(void 0, `slidev-addon-${name}`))
|
|
9549
9550
|
return `slidev-addon-${name}`;
|
|
9550
9551
|
return name;
|
|
9551
9552
|
}
|
|
@@ -9553,7 +9554,7 @@ function resolvePluginName(name) {
|
|
|
9553
9554
|
// node/options.ts
|
|
9554
9555
|
var debug = _debug3.default.call(void 0, "slidev:options");
|
|
9555
9556
|
function getClientRoot() {
|
|
9556
|
-
return _path.dirname.call(void 0,
|
|
9557
|
+
return _path.dirname.call(void 0, _chunkSO7T6GEWjs.resolveImportPath.call(void 0, "@slidev/client/package.json", true));
|
|
9557
9558
|
}
|
|
9558
9559
|
function getCLIRoot() {
|
|
9559
9560
|
return _path.resolve.call(void 0, __dirname, "..");
|
|
@@ -9574,7 +9575,7 @@ function getAddonRoots(addons, entry) {
|
|
|
9574
9575
|
function getRoot(name, entry) {
|
|
9575
9576
|
if (isPath(name))
|
|
9576
9577
|
return _path.resolve.call(void 0, _path.dirname.call(void 0, entry), name);
|
|
9577
|
-
return _path.dirname.call(void 0,
|
|
9578
|
+
return _path.dirname.call(void 0, _chunkSO7T6GEWjs.resolveImportPath.call(void 0, `${name}/package.json`, true));
|
|
9578
9579
|
}
|
|
9579
9580
|
function getUserRoot(options) {
|
|
9580
9581
|
const { entry: rawEntry = "slides.md", userRoot = process.cwd() } = options;
|
|
@@ -9593,7 +9594,7 @@ async function resolveOptions(options, mode2, promptForInstallation = true) {
|
|
|
9593
9594
|
if (await promptForThemeInstallation(theme) === false)
|
|
9594
9595
|
process.exit(1);
|
|
9595
9596
|
} else {
|
|
9596
|
-
if (!
|
|
9597
|
+
if (!_chunkSO7T6GEWjs.packageExists.call(void 0, theme)) {
|
|
9597
9598
|
console.error(`Theme "${theme}" not found, have you installed it?`);
|
|
9598
9599
|
process.exit(1);
|
|
9599
9600
|
}
|
|
@@ -9665,11 +9666,11 @@ function resolveThemeName(name) {
|
|
|
9665
9666
|
return name;
|
|
9666
9667
|
if (isPath(name))
|
|
9667
9668
|
return name;
|
|
9668
|
-
if (
|
|
9669
|
+
if (_chunkSO7T6GEWjs.packageExists.call(void 0, `@slidev/theme-${name}`))
|
|
9669
9670
|
return `@slidev/theme-${name}`;
|
|
9670
|
-
if (
|
|
9671
|
+
if (_chunkSO7T6GEWjs.packageExists.call(void 0, `slidev-theme-${name}`))
|
|
9671
9672
|
return `slidev-theme-${name}`;
|
|
9672
|
-
if (
|
|
9673
|
+
if (_chunkSO7T6GEWjs.packageExists.call(void 0, name))
|
|
9673
9674
|
return name;
|
|
9674
9675
|
if (officialThemes[name] != null)
|
|
9675
9676
|
return officialThemes[name];
|
|
@@ -9681,7 +9682,7 @@ async function promptForThemeInstallation(name) {
|
|
|
9681
9682
|
name = resolveThemeName(name);
|
|
9682
9683
|
if (!name)
|
|
9683
9684
|
return name;
|
|
9684
|
-
if (isPath(name) ||
|
|
9685
|
+
if (isPath(name) || _chunkSO7T6GEWjs.packageExists.call(void 0, name))
|
|
9685
9686
|
return name;
|
|
9686
9687
|
const { confirm: confirm2 } = await _prompts2.default.call(void 0, {
|
|
9687
9688
|
name: "confirm",
|