@slidev/cli 0.49.11 → 0.49.12
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/{build-2HGCTOR5.mjs → build-U63KCQIF.mjs} +2 -2
- package/dist/{chunk-4LA667A3.mjs → chunk-KNG6PIQ7.mjs} +253 -211
- package/dist/{chunk-G75DCGK3.mjs → chunk-Z7QBEIOP.mjs} +1 -1
- package/dist/cli.mjs +9 -5
- package/dist/{export-BSOHDR2A.mjs → export-IRR3JZOI.mjs} +13 -6
- package/dist/index.mjs +2 -2
- package/package.json +20 -21
|
@@ -15,9 +15,9 @@ import {
|
|
|
15
15
|
__toESM
|
|
16
16
|
} from "./chunk-BXO7ZPPU.mjs";
|
|
17
17
|
|
|
18
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
18
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/identity.js
|
|
19
19
|
var require_identity = __commonJS({
|
|
20
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
20
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/identity.js"(exports) {
|
|
21
21
|
"use strict";
|
|
22
22
|
var ALIAS = Symbol.for("yaml.alias");
|
|
23
23
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -72,9 +72,9 @@ var require_identity = __commonJS({
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
|
|
75
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
75
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/visit.js
|
|
76
76
|
var require_visit = __commonJS({
|
|
77
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
77
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/visit.js"(exports) {
|
|
78
78
|
"use strict";
|
|
79
79
|
var identity = require_identity();
|
|
80
80
|
var BREAK = Symbol("break visit");
|
|
@@ -230,9 +230,9 @@ var require_visit = __commonJS({
|
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
|
|
233
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
233
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/directives.js
|
|
234
234
|
var require_directives = __commonJS({
|
|
235
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
235
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/directives.js"(exports) {
|
|
236
236
|
"use strict";
|
|
237
237
|
var identity = require_identity();
|
|
238
238
|
var visit = require_visit();
|
|
@@ -401,9 +401,9 @@ var require_directives = __commonJS({
|
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
|
|
404
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
404
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/anchors.js
|
|
405
405
|
var require_anchors = __commonJS({
|
|
406
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
406
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/anchors.js"(exports) {
|
|
407
407
|
"use strict";
|
|
408
408
|
var identity = require_identity();
|
|
409
409
|
var visit = require_visit();
|
|
@@ -472,9 +472,9 @@ var require_anchors = __commonJS({
|
|
|
472
472
|
}
|
|
473
473
|
});
|
|
474
474
|
|
|
475
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
475
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/applyReviver.js
|
|
476
476
|
var require_applyReviver = __commonJS({
|
|
477
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
477
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
|
|
478
478
|
"use strict";
|
|
479
479
|
function applyReviver(reviver, obj, key, val) {
|
|
480
480
|
if (val && typeof val === "object") {
|
|
@@ -522,9 +522,9 @@ var require_applyReviver = __commonJS({
|
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
524
|
|
|
525
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
525
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/toJS.js
|
|
526
526
|
var require_toJS = __commonJS({
|
|
527
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
527
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/toJS.js"(exports) {
|
|
528
528
|
"use strict";
|
|
529
529
|
var identity = require_identity();
|
|
530
530
|
function toJS(value, arg, ctx) {
|
|
@@ -552,9 +552,9 @@ var require_toJS = __commonJS({
|
|
|
552
552
|
}
|
|
553
553
|
});
|
|
554
554
|
|
|
555
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
555
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Node.js
|
|
556
556
|
var require_Node = __commonJS({
|
|
557
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
557
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Node.js"(exports) {
|
|
558
558
|
"use strict";
|
|
559
559
|
var applyReviver = require_applyReviver();
|
|
560
560
|
var identity = require_identity();
|
|
@@ -593,9 +593,9 @@ var require_Node = __commonJS({
|
|
|
593
593
|
}
|
|
594
594
|
});
|
|
595
595
|
|
|
596
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
596
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Alias.js
|
|
597
597
|
var require_Alias = __commonJS({
|
|
598
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
598
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Alias.js"(exports) {
|
|
599
599
|
"use strict";
|
|
600
600
|
var anchors = require_anchors();
|
|
601
601
|
var visit = require_visit();
|
|
@@ -695,9 +695,9 @@ var require_Alias = __commonJS({
|
|
|
695
695
|
}
|
|
696
696
|
});
|
|
697
697
|
|
|
698
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
698
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Scalar.js
|
|
699
699
|
var require_Scalar = __commonJS({
|
|
700
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
700
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
|
|
701
701
|
"use strict";
|
|
702
702
|
var identity = require_identity();
|
|
703
703
|
var Node = require_Node();
|
|
@@ -725,9 +725,9 @@ var require_Scalar = __commonJS({
|
|
|
725
725
|
}
|
|
726
726
|
});
|
|
727
727
|
|
|
728
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
728
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/createNode.js
|
|
729
729
|
var require_createNode = __commonJS({
|
|
730
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
730
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/createNode.js"(exports) {
|
|
731
731
|
"use strict";
|
|
732
732
|
var Alias = require_Alias();
|
|
733
733
|
var identity = require_identity();
|
|
@@ -801,9 +801,9 @@ var require_createNode = __commonJS({
|
|
|
801
801
|
}
|
|
802
802
|
});
|
|
803
803
|
|
|
804
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
804
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Collection.js
|
|
805
805
|
var require_Collection = __commonJS({
|
|
806
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
806
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Collection.js"(exports) {
|
|
807
807
|
"use strict";
|
|
808
808
|
var createNode = require_createNode();
|
|
809
809
|
var identity = require_identity();
|
|
@@ -945,9 +945,9 @@ var require_Collection = __commonJS({
|
|
|
945
945
|
}
|
|
946
946
|
});
|
|
947
947
|
|
|
948
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
948
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
949
949
|
var require_stringifyComment = __commonJS({
|
|
950
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
950
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
|
|
951
951
|
"use strict";
|
|
952
952
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
953
953
|
function indentComment(comment, indent) {
|
|
@@ -962,9 +962,9 @@ var require_stringifyComment = __commonJS({
|
|
|
962
962
|
}
|
|
963
963
|
});
|
|
964
964
|
|
|
965
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
965
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
966
966
|
var require_foldFlowLines = __commonJS({
|
|
967
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
967
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
|
|
968
968
|
"use strict";
|
|
969
969
|
var FOLD_FLOW = "flow";
|
|
970
970
|
var FOLD_BLOCK = "block";
|
|
@@ -1096,9 +1096,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
1096
1096
|
}
|
|
1097
1097
|
});
|
|
1098
1098
|
|
|
1099
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1099
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1100
1100
|
var require_stringifyString = __commonJS({
|
|
1101
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1101
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
|
|
1102
1102
|
"use strict";
|
|
1103
1103
|
var Scalar = require_Scalar();
|
|
1104
1104
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1371,9 +1371,9 @@ ${indent}`);
|
|
|
1371
1371
|
}
|
|
1372
1372
|
});
|
|
1373
1373
|
|
|
1374
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1374
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringify.js
|
|
1375
1375
|
var require_stringify = __commonJS({
|
|
1376
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1376
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringify.js"(exports) {
|
|
1377
1377
|
"use strict";
|
|
1378
1378
|
var anchors = require_anchors();
|
|
1379
1379
|
var identity = require_identity();
|
|
@@ -1490,9 +1490,9 @@ ${ctx.indent}${str}`;
|
|
|
1490
1490
|
}
|
|
1491
1491
|
});
|
|
1492
1492
|
|
|
1493
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1493
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1494
1494
|
var require_stringifyPair = __commonJS({
|
|
1495
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1495
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
|
|
1496
1496
|
"use strict";
|
|
1497
1497
|
var identity = require_identity();
|
|
1498
1498
|
var Scalar = require_Scalar();
|
|
@@ -1505,7 +1505,7 @@ var require_stringifyPair = __commonJS({
|
|
|
1505
1505
|
if (keyComment) {
|
|
1506
1506
|
throw new Error("With simple keys, key nodes cannot have comments");
|
|
1507
1507
|
}
|
|
1508
|
-
if (identity.isCollection(key)) {
|
|
1508
|
+
if (identity.isCollection(key) || !identity.isNode(key) && typeof key === "object") {
|
|
1509
1509
|
const msg = "With simple keys, collection cannot be used as a key value";
|
|
1510
1510
|
throw new Error(msg);
|
|
1511
1511
|
}
|
|
@@ -1623,9 +1623,9 @@ ${ctx.indent}`;
|
|
|
1623
1623
|
}
|
|
1624
1624
|
});
|
|
1625
1625
|
|
|
1626
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1626
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/log.js
|
|
1627
1627
|
var require_log = __commonJS({
|
|
1628
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1628
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/log.js"(exports) {
|
|
1629
1629
|
"use strict";
|
|
1630
1630
|
function debug2(logLevel, ...messages) {
|
|
1631
1631
|
if (logLevel === "debug")
|
|
@@ -1644,9 +1644,9 @@ var require_log = __commonJS({
|
|
|
1644
1644
|
}
|
|
1645
1645
|
});
|
|
1646
1646
|
|
|
1647
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1647
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1648
1648
|
var require_addPairToJSMap = __commonJS({
|
|
1649
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1649
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
|
|
1650
1650
|
"use strict";
|
|
1651
1651
|
var log = require_log();
|
|
1652
1652
|
var stringify = require_stringify();
|
|
@@ -1738,9 +1738,9 @@ var require_addPairToJSMap = __commonJS({
|
|
|
1738
1738
|
}
|
|
1739
1739
|
});
|
|
1740
1740
|
|
|
1741
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1741
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Pair.js
|
|
1742
1742
|
var require_Pair = __commonJS({
|
|
1743
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1743
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Pair.js"(exports) {
|
|
1744
1744
|
"use strict";
|
|
1745
1745
|
var createNode = require_createNode();
|
|
1746
1746
|
var stringifyPair = require_stringifyPair();
|
|
@@ -1778,9 +1778,9 @@ var require_Pair = __commonJS({
|
|
|
1778
1778
|
}
|
|
1779
1779
|
});
|
|
1780
1780
|
|
|
1781
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1781
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1782
1782
|
var require_stringifyCollection = __commonJS({
|
|
1783
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1783
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
|
|
1784
1784
|
"use strict";
|
|
1785
1785
|
var identity = require_identity();
|
|
1786
1786
|
var stringify = require_stringify();
|
|
@@ -1922,9 +1922,9 @@ ${indent}${end}`;
|
|
|
1922
1922
|
}
|
|
1923
1923
|
});
|
|
1924
1924
|
|
|
1925
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1925
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
1926
1926
|
var require_YAMLMap = __commonJS({
|
|
1927
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1927
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
|
|
1928
1928
|
"use strict";
|
|
1929
1929
|
var stringifyCollection = require_stringifyCollection();
|
|
1930
1930
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2066,9 +2066,9 @@ var require_YAMLMap = __commonJS({
|
|
|
2066
2066
|
}
|
|
2067
2067
|
});
|
|
2068
2068
|
|
|
2069
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2069
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/map.js
|
|
2070
2070
|
var require_map = __commonJS({
|
|
2071
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2071
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/map.js"(exports) {
|
|
2072
2072
|
"use strict";
|
|
2073
2073
|
var identity = require_identity();
|
|
2074
2074
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2088,9 +2088,9 @@ var require_map = __commonJS({
|
|
|
2088
2088
|
}
|
|
2089
2089
|
});
|
|
2090
2090
|
|
|
2091
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2091
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2092
2092
|
var require_YAMLSeq = __commonJS({
|
|
2093
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2093
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
|
|
2094
2094
|
"use strict";
|
|
2095
2095
|
var createNode = require_createNode();
|
|
2096
2096
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2204,9 +2204,9 @@ var require_YAMLSeq = __commonJS({
|
|
|
2204
2204
|
}
|
|
2205
2205
|
});
|
|
2206
2206
|
|
|
2207
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2207
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/seq.js
|
|
2208
2208
|
var require_seq = __commonJS({
|
|
2209
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2209
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/seq.js"(exports) {
|
|
2210
2210
|
"use strict";
|
|
2211
2211
|
var identity = require_identity();
|
|
2212
2212
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2226,9 +2226,9 @@ var require_seq = __commonJS({
|
|
|
2226
2226
|
}
|
|
2227
2227
|
});
|
|
2228
2228
|
|
|
2229
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2229
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/string.js
|
|
2230
2230
|
var require_string = __commonJS({
|
|
2231
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2231
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/string.js"(exports) {
|
|
2232
2232
|
"use strict";
|
|
2233
2233
|
var stringifyString = require_stringifyString();
|
|
2234
2234
|
var string = {
|
|
@@ -2245,9 +2245,9 @@ var require_string = __commonJS({
|
|
|
2245
2245
|
}
|
|
2246
2246
|
});
|
|
2247
2247
|
|
|
2248
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2248
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/null.js
|
|
2249
2249
|
var require_null = __commonJS({
|
|
2250
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2250
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/null.js"(exports) {
|
|
2251
2251
|
"use strict";
|
|
2252
2252
|
var Scalar = require_Scalar();
|
|
2253
2253
|
var nullTag = {
|
|
@@ -2263,9 +2263,9 @@ var require_null = __commonJS({
|
|
|
2263
2263
|
}
|
|
2264
2264
|
});
|
|
2265
2265
|
|
|
2266
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2266
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/bool.js
|
|
2267
2267
|
var require_bool = __commonJS({
|
|
2268
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2268
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/bool.js"(exports) {
|
|
2269
2269
|
"use strict";
|
|
2270
2270
|
var Scalar = require_Scalar();
|
|
2271
2271
|
var boolTag = {
|
|
@@ -2287,9 +2287,9 @@ var require_bool = __commonJS({
|
|
|
2287
2287
|
}
|
|
2288
2288
|
});
|
|
2289
2289
|
|
|
2290
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2290
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2291
2291
|
var require_stringifyNumber = __commonJS({
|
|
2292
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2292
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
|
|
2293
2293
|
"use strict";
|
|
2294
2294
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2295
2295
|
if (typeof value === "bigint")
|
|
@@ -2314,9 +2314,9 @@ var require_stringifyNumber = __commonJS({
|
|
|
2314
2314
|
}
|
|
2315
2315
|
});
|
|
2316
2316
|
|
|
2317
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2317
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/float.js
|
|
2318
2318
|
var require_float = __commonJS({
|
|
2319
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2319
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/float.js"(exports) {
|
|
2320
2320
|
"use strict";
|
|
2321
2321
|
var Scalar = require_Scalar();
|
|
2322
2322
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2324,7 +2324,7 @@ var require_float = __commonJS({
|
|
|
2324
2324
|
identify: (value) => typeof value === "number",
|
|
2325
2325
|
default: true,
|
|
2326
2326
|
tag: "tag:yaml.org,2002:float",
|
|
2327
|
-
test: /^(?:[-+]?\.(?:inf|Inf|INF
|
|
2327
|
+
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
2328
2328
|
resolve: (str) => str.slice(-3).toLowerCase() === "nan" ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
2329
2329
|
stringify: stringifyNumber.stringifyNumber
|
|
2330
2330
|
};
|
|
@@ -2360,9 +2360,9 @@ var require_float = __commonJS({
|
|
|
2360
2360
|
}
|
|
2361
2361
|
});
|
|
2362
2362
|
|
|
2363
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2363
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/int.js
|
|
2364
2364
|
var require_int = __commonJS({
|
|
2365
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2365
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/int.js"(exports) {
|
|
2366
2366
|
"use strict";
|
|
2367
2367
|
var stringifyNumber = require_stringifyNumber();
|
|
2368
2368
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2405,9 +2405,9 @@ var require_int = __commonJS({
|
|
|
2405
2405
|
}
|
|
2406
2406
|
});
|
|
2407
2407
|
|
|
2408
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2408
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/schema.js
|
|
2409
2409
|
var require_schema = __commonJS({
|
|
2410
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2410
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/schema.js"(exports) {
|
|
2411
2411
|
"use strict";
|
|
2412
2412
|
var map = require_map();
|
|
2413
2413
|
var _null = require_null();
|
|
@@ -2433,9 +2433,9 @@ var require_schema = __commonJS({
|
|
|
2433
2433
|
}
|
|
2434
2434
|
});
|
|
2435
2435
|
|
|
2436
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2436
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/json/schema.js
|
|
2437
2437
|
var require_schema2 = __commonJS({
|
|
2438
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2438
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/json/schema.js"(exports) {
|
|
2439
2439
|
"use strict";
|
|
2440
2440
|
var Scalar = require_Scalar();
|
|
2441
2441
|
var map = require_map();
|
|
@@ -2500,9 +2500,9 @@ var require_schema2 = __commonJS({
|
|
|
2500
2500
|
}
|
|
2501
2501
|
});
|
|
2502
2502
|
|
|
2503
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2503
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2504
2504
|
var require_binary = __commonJS({
|
|
2505
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2505
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
|
|
2506
2506
|
"use strict";
|
|
2507
2507
|
var Scalar = require_Scalar();
|
|
2508
2508
|
var stringifyString = require_stringifyString();
|
|
@@ -2564,9 +2564,9 @@ var require_binary = __commonJS({
|
|
|
2564
2564
|
}
|
|
2565
2565
|
});
|
|
2566
2566
|
|
|
2567
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2567
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2568
2568
|
var require_pairs = __commonJS({
|
|
2569
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2569
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
|
|
2570
2570
|
"use strict";
|
|
2571
2571
|
var identity = require_identity();
|
|
2572
2572
|
var Pair = require_Pair();
|
|
@@ -2642,9 +2642,9 @@ ${cn.comment}` : item.comment;
|
|
|
2642
2642
|
}
|
|
2643
2643
|
});
|
|
2644
2644
|
|
|
2645
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2645
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2646
2646
|
var require_omap = __commonJS({
|
|
2647
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2647
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
|
|
2648
2648
|
"use strict";
|
|
2649
2649
|
var identity = require_identity();
|
|
2650
2650
|
var toJS = require_toJS();
|
|
@@ -2720,9 +2720,9 @@ var require_omap = __commonJS({
|
|
|
2720
2720
|
}
|
|
2721
2721
|
});
|
|
2722
2722
|
|
|
2723
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2723
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2724
2724
|
var require_bool2 = __commonJS({
|
|
2725
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2725
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
|
|
2726
2726
|
"use strict";
|
|
2727
2727
|
var Scalar = require_Scalar();
|
|
2728
2728
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -2752,9 +2752,9 @@ var require_bool2 = __commonJS({
|
|
|
2752
2752
|
}
|
|
2753
2753
|
});
|
|
2754
2754
|
|
|
2755
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2755
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2756
2756
|
var require_float2 = __commonJS({
|
|
2757
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2757
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
|
|
2758
2758
|
"use strict";
|
|
2759
2759
|
var Scalar = require_Scalar();
|
|
2760
2760
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2762,7 +2762,7 @@ var require_float2 = __commonJS({
|
|
|
2762
2762
|
identify: (value) => typeof value === "number",
|
|
2763
2763
|
default: true,
|
|
2764
2764
|
tag: "tag:yaml.org,2002:float",
|
|
2765
|
-
test: /^[-+]?\.(?:inf|Inf|INF
|
|
2765
|
+
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
2766
2766
|
resolve: (str) => str.slice(-3).toLowerCase() === "nan" ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
2767
2767
|
stringify: stringifyNumber.stringifyNumber
|
|
2768
2768
|
};
|
|
@@ -2801,9 +2801,9 @@ var require_float2 = __commonJS({
|
|
|
2801
2801
|
}
|
|
2802
2802
|
});
|
|
2803
2803
|
|
|
2804
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2804
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2805
2805
|
var require_int2 = __commonJS({
|
|
2806
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2806
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
|
|
2807
2807
|
"use strict";
|
|
2808
2808
|
var stringifyNumber = require_stringifyNumber();
|
|
2809
2809
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2880,9 +2880,9 @@ var require_int2 = __commonJS({
|
|
|
2880
2880
|
}
|
|
2881
2881
|
});
|
|
2882
2882
|
|
|
2883
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2883
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2884
2884
|
var require_set = __commonJS({
|
|
2885
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2885
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
|
|
2886
2886
|
"use strict";
|
|
2887
2887
|
var identity = require_identity();
|
|
2888
2888
|
var Pair = require_Pair();
|
|
@@ -2969,9 +2969,9 @@ var require_set = __commonJS({
|
|
|
2969
2969
|
}
|
|
2970
2970
|
});
|
|
2971
2971
|
|
|
2972
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2972
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
2973
2973
|
var require_timestamp = __commonJS({
|
|
2974
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2974
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
|
|
2975
2975
|
"use strict";
|
|
2976
2976
|
var stringifyNumber = require_stringifyNumber();
|
|
2977
2977
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3057,9 +3057,9 @@ var require_timestamp = __commonJS({
|
|
|
3057
3057
|
}
|
|
3058
3058
|
});
|
|
3059
3059
|
|
|
3060
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3060
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3061
3061
|
var require_schema3 = __commonJS({
|
|
3062
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3062
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
|
|
3063
3063
|
"use strict";
|
|
3064
3064
|
var map = require_map();
|
|
3065
3065
|
var _null = require_null();
|
|
@@ -3099,9 +3099,9 @@ var require_schema3 = __commonJS({
|
|
|
3099
3099
|
}
|
|
3100
3100
|
});
|
|
3101
3101
|
|
|
3102
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3102
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/tags.js
|
|
3103
3103
|
var require_tags = __commonJS({
|
|
3104
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3104
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/tags.js"(exports) {
|
|
3105
3105
|
"use strict";
|
|
3106
3106
|
var map = require_map();
|
|
3107
3107
|
var _null = require_null();
|
|
@@ -3182,9 +3182,9 @@ var require_tags = __commonJS({
|
|
|
3182
3182
|
}
|
|
3183
3183
|
});
|
|
3184
3184
|
|
|
3185
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3185
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/Schema.js
|
|
3186
3186
|
var require_Schema = __commonJS({
|
|
3187
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3187
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/Schema.js"(exports) {
|
|
3188
3188
|
"use strict";
|
|
3189
3189
|
var identity = require_identity();
|
|
3190
3190
|
var map = require_map();
|
|
@@ -3215,9 +3215,9 @@ var require_Schema = __commonJS({
|
|
|
3215
3215
|
}
|
|
3216
3216
|
});
|
|
3217
3217
|
|
|
3218
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3218
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3219
3219
|
var require_stringifyDocument = __commonJS({
|
|
3220
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3220
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
|
|
3221
3221
|
"use strict";
|
|
3222
3222
|
var identity = require_identity();
|
|
3223
3223
|
var stringify = require_stringify();
|
|
@@ -3295,9 +3295,9 @@ var require_stringifyDocument = __commonJS({
|
|
|
3295
3295
|
}
|
|
3296
3296
|
});
|
|
3297
3297
|
|
|
3298
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3298
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/Document.js
|
|
3299
3299
|
var require_Document = __commonJS({
|
|
3300
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3300
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/Document.js"(exports) {
|
|
3301
3301
|
"use strict";
|
|
3302
3302
|
var Alias = require_Alias();
|
|
3303
3303
|
var Collection = require_Collection();
|
|
@@ -3603,9 +3603,9 @@ var require_Document = __commonJS({
|
|
|
3603
3603
|
}
|
|
3604
3604
|
});
|
|
3605
3605
|
|
|
3606
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3606
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/errors.js
|
|
3607
3607
|
var require_errors = __commonJS({
|
|
3608
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3608
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/errors.js"(exports) {
|
|
3609
3609
|
"use strict";
|
|
3610
3610
|
var YAMLError = class extends Error {
|
|
3611
3611
|
constructor(name, pos, code, message) {
|
|
@@ -3668,11 +3668,11 @@ ${pointer}
|
|
|
3668
3668
|
}
|
|
3669
3669
|
});
|
|
3670
3670
|
|
|
3671
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3671
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-props.js
|
|
3672
3672
|
var require_resolve_props = __commonJS({
|
|
3673
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3673
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
|
|
3674
3674
|
"use strict";
|
|
3675
|
-
function resolveProps(tokens, { flow, indicator, next, offset, onError, startOnNewline }) {
|
|
3675
|
+
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3676
3676
|
let spaceBefore = false;
|
|
3677
3677
|
let atNewline = startOnNewline;
|
|
3678
3678
|
let hasSpace = startOnNewline;
|
|
@@ -3681,6 +3681,7 @@ var require_resolve_props = __commonJS({
|
|
|
3681
3681
|
let hasNewline = false;
|
|
3682
3682
|
let hasNewlineAfterProp = false;
|
|
3683
3683
|
let reqSpace = false;
|
|
3684
|
+
let tab = null;
|
|
3684
3685
|
let anchor = null;
|
|
3685
3686
|
let tag = null;
|
|
3686
3687
|
let comma = null;
|
|
@@ -3692,10 +3693,17 @@ var require_resolve_props = __commonJS({
|
|
|
3692
3693
|
onError(token.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space");
|
|
3693
3694
|
reqSpace = false;
|
|
3694
3695
|
}
|
|
3696
|
+
if (tab) {
|
|
3697
|
+
if (atNewline && token.type !== "comment" && token.type !== "newline") {
|
|
3698
|
+
onError(tab, "TAB_AS_INDENT", "Tabs are not allowed as indentation");
|
|
3699
|
+
}
|
|
3700
|
+
tab = null;
|
|
3701
|
+
}
|
|
3695
3702
|
switch (token.type) {
|
|
3696
3703
|
case "space":
|
|
3697
|
-
if (!flow &&
|
|
3698
|
-
|
|
3704
|
+
if (!flow && (indicator !== "doc-start" || next?.type !== "flow-collection") && token.source.includes(" ")) {
|
|
3705
|
+
tab = token;
|
|
3706
|
+
}
|
|
3699
3707
|
hasSpace = true;
|
|
3700
3708
|
break;
|
|
3701
3709
|
case "comment": {
|
|
@@ -3753,7 +3761,7 @@ var require_resolve_props = __commonJS({
|
|
|
3753
3761
|
if (found)
|
|
3754
3762
|
onError(token, "UNEXPECTED_TOKEN", `Unexpected ${token.source} in ${flow ?? "collection"}`);
|
|
3755
3763
|
found = token;
|
|
3756
|
-
atNewline =
|
|
3764
|
+
atNewline = indicator === "seq-item-ind" || indicator === "explicit-key-ind";
|
|
3757
3765
|
hasSpace = false;
|
|
3758
3766
|
break;
|
|
3759
3767
|
case "comma":
|
|
@@ -3773,8 +3781,11 @@ var require_resolve_props = __commonJS({
|
|
|
3773
3781
|
}
|
|
3774
3782
|
const last = tokens[tokens.length - 1];
|
|
3775
3783
|
const end = last ? last.offset + last.source.length : offset;
|
|
3776
|
-
if (reqSpace && next && next.type !== "space" && next.type !== "newline" && next.type !== "comma" && (next.type !== "scalar" || next.source !== ""))
|
|
3784
|
+
if (reqSpace && next && next.type !== "space" && next.type !== "newline" && next.type !== "comma" && (next.type !== "scalar" || next.source !== "")) {
|
|
3777
3785
|
onError(next.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space");
|
|
3786
|
+
}
|
|
3787
|
+
if (tab && (atNewline && tab.indent <= parentIndent || next?.type === "block-map" || next?.type === "block-seq"))
|
|
3788
|
+
onError(tab, "TAB_AS_INDENT", "Tabs are not allowed as indentation");
|
|
3778
3789
|
return {
|
|
3779
3790
|
comma,
|
|
3780
3791
|
found,
|
|
@@ -3792,9 +3803,9 @@ var require_resolve_props = __commonJS({
|
|
|
3792
3803
|
}
|
|
3793
3804
|
});
|
|
3794
3805
|
|
|
3795
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3806
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3796
3807
|
var require_util_contains_newline = __commonJS({
|
|
3797
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3808
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
|
|
3798
3809
|
"use strict";
|
|
3799
3810
|
function containsNewline(key) {
|
|
3800
3811
|
if (!key)
|
|
@@ -3834,9 +3845,9 @@ var require_util_contains_newline = __commonJS({
|
|
|
3834
3845
|
}
|
|
3835
3846
|
});
|
|
3836
3847
|
|
|
3837
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3848
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3838
3849
|
var require_util_flow_indent_check = __commonJS({
|
|
3839
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3850
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
|
|
3840
3851
|
"use strict";
|
|
3841
3852
|
var utilContainsNewline = require_util_contains_newline();
|
|
3842
3853
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -3852,9 +3863,9 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
3852
3863
|
}
|
|
3853
3864
|
});
|
|
3854
3865
|
|
|
3855
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3866
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3856
3867
|
var require_util_map_includes = __commonJS({
|
|
3857
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3868
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
|
|
3858
3869
|
"use strict";
|
|
3859
3870
|
var identity = require_identity();
|
|
3860
3871
|
function mapIncludes(ctx, items, search) {
|
|
@@ -3868,9 +3879,9 @@ var require_util_map_includes = __commonJS({
|
|
|
3868
3879
|
}
|
|
3869
3880
|
});
|
|
3870
3881
|
|
|
3871
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3882
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3872
3883
|
var require_resolve_block_map = __commonJS({
|
|
3873
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3884
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
|
|
3874
3885
|
"use strict";
|
|
3875
3886
|
var Pair = require_Pair();
|
|
3876
3887
|
var YAMLMap = require_YAMLMap();
|
|
@@ -3893,6 +3904,7 @@ var require_resolve_block_map = __commonJS({
|
|
|
3893
3904
|
next: key ?? sep?.[0],
|
|
3894
3905
|
offset,
|
|
3895
3906
|
onError,
|
|
3907
|
+
parentIndent: bm.indent,
|
|
3896
3908
|
startOnNewline: true
|
|
3897
3909
|
});
|
|
3898
3910
|
const implicitKey = !keyProps.found;
|
|
@@ -3930,6 +3942,7 @@ var require_resolve_block_map = __commonJS({
|
|
|
3930
3942
|
next: value,
|
|
3931
3943
|
offset: keyNode.range[2],
|
|
3932
3944
|
onError,
|
|
3945
|
+
parentIndent: bm.indent,
|
|
3933
3946
|
startOnNewline: !key || key.type === "block-scalar"
|
|
3934
3947
|
});
|
|
3935
3948
|
offset = valueProps.end;
|
|
@@ -3972,9 +3985,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
3972
3985
|
}
|
|
3973
3986
|
});
|
|
3974
3987
|
|
|
3975
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3988
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
3976
3989
|
var require_resolve_block_seq = __commonJS({
|
|
3977
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3990
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
|
|
3978
3991
|
"use strict";
|
|
3979
3992
|
var YAMLSeq = require_YAMLSeq();
|
|
3980
3993
|
var resolveProps = require_resolve_props();
|
|
@@ -3992,6 +4005,7 @@ var require_resolve_block_seq = __commonJS({
|
|
|
3992
4005
|
next: value,
|
|
3993
4006
|
offset,
|
|
3994
4007
|
onError,
|
|
4008
|
+
parentIndent: bs.indent,
|
|
3995
4009
|
startOnNewline: true
|
|
3996
4010
|
});
|
|
3997
4011
|
if (!props.found) {
|
|
@@ -4020,9 +4034,9 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4020
4034
|
}
|
|
4021
4035
|
});
|
|
4022
4036
|
|
|
4023
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4037
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-end.js
|
|
4024
4038
|
var require_resolve_end = __commonJS({
|
|
4025
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4039
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
|
|
4026
4040
|
"use strict";
|
|
4027
4041
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4028
4042
|
let comment = "";
|
|
@@ -4063,9 +4077,9 @@ var require_resolve_end = __commonJS({
|
|
|
4063
4077
|
}
|
|
4064
4078
|
});
|
|
4065
4079
|
|
|
4066
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4080
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4067
4081
|
var require_resolve_flow_collection = __commonJS({
|
|
4068
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4082
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
|
|
4069
4083
|
"use strict";
|
|
4070
4084
|
var identity = require_identity();
|
|
4071
4085
|
var Pair = require_Pair();
|
|
@@ -4096,6 +4110,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4096
4110
|
next: key ?? sep?.[0],
|
|
4097
4111
|
offset,
|
|
4098
4112
|
onError,
|
|
4113
|
+
parentIndent: fc.indent,
|
|
4099
4114
|
startOnNewline: false
|
|
4100
4115
|
});
|
|
4101
4116
|
if (!props.found) {
|
|
@@ -4171,6 +4186,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4171
4186
|
next: value,
|
|
4172
4187
|
offset: keyNode.range[2],
|
|
4173
4188
|
onError,
|
|
4189
|
+
parentIndent: fc.indent,
|
|
4174
4190
|
startOnNewline: false
|
|
4175
4191
|
});
|
|
4176
4192
|
if (valueProps.found) {
|
|
@@ -4250,9 +4266,9 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4250
4266
|
}
|
|
4251
4267
|
});
|
|
4252
4268
|
|
|
4253
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4269
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-collection.js
|
|
4254
4270
|
var require_compose_collection = __commonJS({
|
|
4255
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4271
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
|
|
4256
4272
|
"use strict";
|
|
4257
4273
|
var identity = require_identity();
|
|
4258
4274
|
var Scalar = require_Scalar();
|
|
@@ -4306,14 +4322,14 @@ var require_compose_collection = __commonJS({
|
|
|
4306
4322
|
}
|
|
4307
4323
|
});
|
|
4308
4324
|
|
|
4309
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4325
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4310
4326
|
var require_resolve_block_scalar = __commonJS({
|
|
4311
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4327
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
|
|
4312
4328
|
"use strict";
|
|
4313
4329
|
var Scalar = require_Scalar();
|
|
4314
|
-
function resolveBlockScalar(
|
|
4330
|
+
function resolveBlockScalar(ctx, scalar, onError) {
|
|
4315
4331
|
const start = scalar.offset;
|
|
4316
|
-
const header = parseBlockScalarHeader(scalar, strict, onError);
|
|
4332
|
+
const header = parseBlockScalarHeader(scalar, ctx.options.strict, onError);
|
|
4317
4333
|
if (!header)
|
|
4318
4334
|
return { value: "", type: null, comment: "", range: [start, start, start] };
|
|
4319
4335
|
const type = header.mode === ">" ? Scalar.Scalar.BLOCK_FOLDED : Scalar.Scalar.BLOCK_LITERAL;
|
|
@@ -4349,6 +4365,10 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4349
4365
|
if (header.indent === 0)
|
|
4350
4366
|
trimIndent = indent.length;
|
|
4351
4367
|
contentStart = i;
|
|
4368
|
+
if (trimIndent === 0 && !ctx.atRoot) {
|
|
4369
|
+
const message = "Block scalar values in collections must be indented";
|
|
4370
|
+
onError(offset, "BAD_INDENT", message);
|
|
4371
|
+
}
|
|
4352
4372
|
break;
|
|
4353
4373
|
}
|
|
4354
4374
|
offset += indent.length + content.length + 1;
|
|
@@ -4483,9 +4503,9 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4483
4503
|
}
|
|
4484
4504
|
});
|
|
4485
4505
|
|
|
4486
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4506
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4487
4507
|
var require_resolve_flow_scalar = __commonJS({
|
|
4488
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4508
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
|
|
4489
4509
|
"use strict";
|
|
4490
4510
|
var Scalar = require_Scalar();
|
|
4491
4511
|
var resolveEnd = require_resolve_end();
|
|
@@ -4700,16 +4720,16 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
4700
4720
|
}
|
|
4701
4721
|
});
|
|
4702
4722
|
|
|
4703
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4723
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4704
4724
|
var require_compose_scalar = __commonJS({
|
|
4705
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4725
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
|
|
4706
4726
|
"use strict";
|
|
4707
4727
|
var identity = require_identity();
|
|
4708
4728
|
var Scalar = require_Scalar();
|
|
4709
4729
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
4710
4730
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
4711
4731
|
function composeScalar(ctx, token, tagToken, onError) {
|
|
4712
|
-
const { value, type, comment, range: range2 } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(
|
|
4732
|
+
const { value, type, comment, range: range2 } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
|
|
4713
4733
|
const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
|
|
4714
4734
|
const tag = tagToken && tagName ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError) : token.type === "scalar" ? findScalarTagByTest(ctx, value, token, onError) : ctx.schema[identity.SCALAR];
|
|
4715
4735
|
let scalar;
|
|
@@ -4773,9 +4793,9 @@ var require_compose_scalar = __commonJS({
|
|
|
4773
4793
|
}
|
|
4774
4794
|
});
|
|
4775
4795
|
|
|
4776
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4796
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4777
4797
|
var require_util_empty_scalar_position = __commonJS({
|
|
4778
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4798
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
|
|
4779
4799
|
"use strict";
|
|
4780
4800
|
function emptyScalarPosition(offset, before, pos) {
|
|
4781
4801
|
if (before) {
|
|
@@ -4804,9 +4824,9 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
4804
4824
|
}
|
|
4805
4825
|
});
|
|
4806
4826
|
|
|
4807
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4827
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-node.js
|
|
4808
4828
|
var require_compose_node = __commonJS({
|
|
4809
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4829
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-node.js"(exports) {
|
|
4810
4830
|
"use strict";
|
|
4811
4831
|
var Alias = require_Alias();
|
|
4812
4832
|
var composeCollection = require_compose_collection();
|
|
@@ -4899,9 +4919,9 @@ var require_compose_node = __commonJS({
|
|
|
4899
4919
|
}
|
|
4900
4920
|
});
|
|
4901
4921
|
|
|
4902
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4922
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-doc.js
|
|
4903
4923
|
var require_compose_doc = __commonJS({
|
|
4904
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4924
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
|
|
4905
4925
|
"use strict";
|
|
4906
4926
|
var Document = require_Document();
|
|
4907
4927
|
var composeNode = require_compose_node();
|
|
@@ -4921,6 +4941,7 @@ var require_compose_doc = __commonJS({
|
|
|
4921
4941
|
next: value ?? end?.[0],
|
|
4922
4942
|
offset,
|
|
4923
4943
|
onError,
|
|
4944
|
+
parentIndent: 0,
|
|
4924
4945
|
startOnNewline: true
|
|
4925
4946
|
});
|
|
4926
4947
|
if (props.found) {
|
|
@@ -4940,9 +4961,9 @@ var require_compose_doc = __commonJS({
|
|
|
4940
4961
|
}
|
|
4941
4962
|
});
|
|
4942
4963
|
|
|
4943
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4964
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/composer.js
|
|
4944
4965
|
var require_composer = __commonJS({
|
|
4945
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4966
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/composer.js"(exports) {
|
|
4946
4967
|
"use strict";
|
|
4947
4968
|
var directives = require_directives();
|
|
4948
4969
|
var Document = require_Document();
|
|
@@ -5145,9 +5166,9 @@ ${end.comment}` : end.comment;
|
|
|
5145
5166
|
}
|
|
5146
5167
|
});
|
|
5147
5168
|
|
|
5148
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5169
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5149
5170
|
var require_cst_scalar = __commonJS({
|
|
5150
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5171
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
|
|
5151
5172
|
"use strict";
|
|
5152
5173
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5153
5174
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5168,7 +5189,7 @@ var require_cst_scalar = __commonJS({
|
|
|
5168
5189
|
case "double-quoted-scalar":
|
|
5169
5190
|
return resolveFlowScalar.resolveFlowScalar(token, strict, _onError);
|
|
5170
5191
|
case "block-scalar":
|
|
5171
|
-
return resolveBlockScalar.resolveBlockScalar(
|
|
5192
|
+
return resolveBlockScalar.resolveBlockScalar({ options: { strict } }, token, _onError);
|
|
5172
5193
|
}
|
|
5173
5194
|
}
|
|
5174
5195
|
return null;
|
|
@@ -5330,9 +5351,9 @@ var require_cst_scalar = __commonJS({
|
|
|
5330
5351
|
}
|
|
5331
5352
|
});
|
|
5332
5353
|
|
|
5333
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5354
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5334
5355
|
var require_cst_stringify = __commonJS({
|
|
5335
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5356
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
|
|
5336
5357
|
"use strict";
|
|
5337
5358
|
var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
5338
5359
|
function stringifyToken(token) {
|
|
@@ -5391,9 +5412,9 @@ var require_cst_stringify = __commonJS({
|
|
|
5391
5412
|
}
|
|
5392
5413
|
});
|
|
5393
5414
|
|
|
5394
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5415
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-visit.js
|
|
5395
5416
|
var require_cst_visit = __commonJS({
|
|
5396
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5417
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
|
|
5397
5418
|
"use strict";
|
|
5398
5419
|
var BREAK = Symbol("break visit");
|
|
5399
5420
|
var SKIP = Symbol("skip children");
|
|
@@ -5453,9 +5474,9 @@ var require_cst_visit = __commonJS({
|
|
|
5453
5474
|
}
|
|
5454
5475
|
});
|
|
5455
5476
|
|
|
5456
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5477
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst.js
|
|
5457
5478
|
var require_cst = __commonJS({
|
|
5458
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5479
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst.js"(exports) {
|
|
5459
5480
|
"use strict";
|
|
5460
5481
|
var cstScalar = require_cst_scalar();
|
|
5461
5482
|
var cstStringify = require_cst_stringify();
|
|
@@ -5555,9 +5576,9 @@ var require_cst = __commonJS({
|
|
|
5555
5576
|
}
|
|
5556
5577
|
});
|
|
5557
5578
|
|
|
5558
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5579
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/lexer.js
|
|
5559
5580
|
var require_lexer = __commonJS({
|
|
5560
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5581
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/lexer.js"(exports) {
|
|
5561
5582
|
"use strict";
|
|
5562
5583
|
var cst = require_cst();
|
|
5563
5584
|
function isEmpty(ch) {
|
|
@@ -5572,11 +5593,11 @@ var require_lexer = __commonJS({
|
|
|
5572
5593
|
return false;
|
|
5573
5594
|
}
|
|
5574
5595
|
}
|
|
5575
|
-
var hexDigits = "0123456789ABCDEFabcdef"
|
|
5576
|
-
var tagChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"
|
|
5577
|
-
var
|
|
5578
|
-
var invalidAnchorChars = " ,[]{}\n\r "
|
|
5579
|
-
var isNotAnchorChar = (ch) => !ch || invalidAnchorChars.
|
|
5596
|
+
var hexDigits = new Set("0123456789ABCDEFabcdef");
|
|
5597
|
+
var tagChars = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
|
|
5598
|
+
var flowIndicatorChars = new Set(",[]{}");
|
|
5599
|
+
var invalidAnchorChars = new Set(" ,[]{}\n\r ");
|
|
5600
|
+
var isNotAnchorChar = (ch) => !ch || invalidAnchorChars.has(ch);
|
|
5580
5601
|
var Lexer = class {
|
|
5581
5602
|
constructor() {
|
|
5582
5603
|
this.atEnd = false;
|
|
@@ -5599,6 +5620,8 @@ var require_lexer = __commonJS({
|
|
|
5599
5620
|
*/
|
|
5600
5621
|
*lex(source, incomplete = false) {
|
|
5601
5622
|
if (source) {
|
|
5623
|
+
if (typeof source !== "string")
|
|
5624
|
+
throw TypeError("source is not a string");
|
|
5602
5625
|
this.buffer = this.buffer ? this.buffer + source : source;
|
|
5603
5626
|
this.lineEndPos = null;
|
|
5604
5627
|
}
|
|
@@ -5696,11 +5719,15 @@ var require_lexer = __commonJS({
|
|
|
5696
5719
|
}
|
|
5697
5720
|
if (line[0] === "%") {
|
|
5698
5721
|
let dirEnd = line.length;
|
|
5699
|
-
|
|
5700
|
-
|
|
5722
|
+
let cs = line.indexOf("#");
|
|
5723
|
+
while (cs !== -1) {
|
|
5701
5724
|
const ch = line[cs - 1];
|
|
5702
|
-
if (ch === " " || ch === " ")
|
|
5725
|
+
if (ch === " " || ch === " ") {
|
|
5703
5726
|
dirEnd = cs - 1;
|
|
5727
|
+
break;
|
|
5728
|
+
} else {
|
|
5729
|
+
cs = line.indexOf("#", cs + 1);
|
|
5730
|
+
}
|
|
5704
5731
|
}
|
|
5705
5732
|
while (true) {
|
|
5706
5733
|
const ch = line[dirEnd - 1];
|
|
@@ -5924,17 +5951,17 @@ var require_lexer = __commonJS({
|
|
|
5924
5951
|
let indent = 0;
|
|
5925
5952
|
let ch;
|
|
5926
5953
|
loop:
|
|
5927
|
-
for (let
|
|
5954
|
+
for (let i2 = this.pos; ch = this.buffer[i2]; ++i2) {
|
|
5928
5955
|
switch (ch) {
|
|
5929
5956
|
case " ":
|
|
5930
5957
|
indent += 1;
|
|
5931
5958
|
break;
|
|
5932
5959
|
case "\n":
|
|
5933
|
-
nl =
|
|
5960
|
+
nl = i2;
|
|
5934
5961
|
indent = 0;
|
|
5935
5962
|
break;
|
|
5936
5963
|
case "\r": {
|
|
5937
|
-
const next = this.buffer[
|
|
5964
|
+
const next = this.buffer[i2 + 1];
|
|
5938
5965
|
if (!next && !this.atEnd)
|
|
5939
5966
|
return this.setNext("block-scalar");
|
|
5940
5967
|
if (next === "\n")
|
|
@@ -5949,8 +5976,9 @@ var require_lexer = __commonJS({
|
|
|
5949
5976
|
if (indent >= this.indentNext) {
|
|
5950
5977
|
if (this.blockScalarIndent === -1)
|
|
5951
5978
|
this.indentNext = indent;
|
|
5952
|
-
else
|
|
5953
|
-
this.indentNext
|
|
5979
|
+
else {
|
|
5980
|
+
this.indentNext = this.blockScalarIndent + (this.indentNext === 0 ? 1 : this.indentNext);
|
|
5981
|
+
}
|
|
5954
5982
|
do {
|
|
5955
5983
|
const cs = this.continueScalar(nl + 1);
|
|
5956
5984
|
if (cs === -1)
|
|
@@ -5963,17 +5991,25 @@ var require_lexer = __commonJS({
|
|
|
5963
5991
|
nl = this.buffer.length;
|
|
5964
5992
|
}
|
|
5965
5993
|
}
|
|
5966
|
-
|
|
5994
|
+
let i = nl + 1;
|
|
5995
|
+
ch = this.buffer[i];
|
|
5996
|
+
while (ch === " ")
|
|
5997
|
+
ch = this.buffer[++i];
|
|
5998
|
+
if (ch === " ") {
|
|
5999
|
+
while (ch === " " || ch === " " || ch === "\r" || ch === "\n")
|
|
6000
|
+
ch = this.buffer[++i];
|
|
6001
|
+
nl = i - 1;
|
|
6002
|
+
} else if (!this.blockScalarKeep) {
|
|
5967
6003
|
do {
|
|
5968
|
-
let
|
|
5969
|
-
let ch2 = this.buffer[
|
|
6004
|
+
let i2 = nl - 1;
|
|
6005
|
+
let ch2 = this.buffer[i2];
|
|
5970
6006
|
if (ch2 === "\r")
|
|
5971
|
-
ch2 = this.buffer[--
|
|
5972
|
-
const lastChar =
|
|
5973
|
-
while (ch2 === " "
|
|
5974
|
-
ch2 = this.buffer[--
|
|
5975
|
-
if (ch2 === "\n" &&
|
|
5976
|
-
nl =
|
|
6007
|
+
ch2 = this.buffer[--i2];
|
|
6008
|
+
const lastChar = i2;
|
|
6009
|
+
while (ch2 === " ")
|
|
6010
|
+
ch2 = this.buffer[--i2];
|
|
6011
|
+
if (ch2 === "\n" && i2 >= this.pos && i2 + 1 + indent > lastChar)
|
|
6012
|
+
nl = i2;
|
|
5977
6013
|
else
|
|
5978
6014
|
break;
|
|
5979
6015
|
} while (true);
|
|
@@ -5990,7 +6026,7 @@ var require_lexer = __commonJS({
|
|
|
5990
6026
|
while (ch = this.buffer[++i]) {
|
|
5991
6027
|
if (ch === ":") {
|
|
5992
6028
|
const next = this.buffer[i + 1];
|
|
5993
|
-
if (isEmpty(next) || inFlow && next
|
|
6029
|
+
if (isEmpty(next) || inFlow && flowIndicatorChars.has(next))
|
|
5994
6030
|
break;
|
|
5995
6031
|
end = i;
|
|
5996
6032
|
} else if (isEmpty(ch)) {
|
|
@@ -6003,7 +6039,7 @@ var require_lexer = __commonJS({
|
|
|
6003
6039
|
} else
|
|
6004
6040
|
end = i;
|
|
6005
6041
|
}
|
|
6006
|
-
if (next === "#" || inFlow &&
|
|
6042
|
+
if (next === "#" || inFlow && flowIndicatorChars.has(next))
|
|
6007
6043
|
break;
|
|
6008
6044
|
if (ch === "\n") {
|
|
6009
6045
|
const cs = this.continueScalar(i + 1);
|
|
@@ -6012,7 +6048,7 @@ var require_lexer = __commonJS({
|
|
|
6012
6048
|
i = Math.max(i, cs - 2);
|
|
6013
6049
|
}
|
|
6014
6050
|
} else {
|
|
6015
|
-
if (inFlow &&
|
|
6051
|
+
if (inFlow && flowIndicatorChars.has(ch))
|
|
6016
6052
|
break;
|
|
6017
6053
|
end = i;
|
|
6018
6054
|
}
|
|
@@ -6052,7 +6088,7 @@ var require_lexer = __commonJS({
|
|
|
6052
6088
|
case ":": {
|
|
6053
6089
|
const inFlow = this.flowLevel > 0;
|
|
6054
6090
|
const ch1 = this.charAt(1);
|
|
6055
|
-
if (isEmpty(ch1) || inFlow &&
|
|
6091
|
+
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
|
|
6056
6092
|
if (!inFlow)
|
|
6057
6093
|
this.indentNext = this.indentValue + 1;
|
|
6058
6094
|
else if (this.flowKey)
|
|
@@ -6074,9 +6110,9 @@ var require_lexer = __commonJS({
|
|
|
6074
6110
|
let i = this.pos + 1;
|
|
6075
6111
|
let ch = this.buffer[i];
|
|
6076
6112
|
while (ch) {
|
|
6077
|
-
if (tagChars.
|
|
6113
|
+
if (tagChars.has(ch))
|
|
6078
6114
|
ch = this.buffer[++i];
|
|
6079
|
-
else if (ch === "%" && hexDigits.
|
|
6115
|
+
else if (ch === "%" && hexDigits.has(this.buffer[i + 1]) && hexDigits.has(this.buffer[i + 2])) {
|
|
6080
6116
|
ch = this.buffer[i += 3];
|
|
6081
6117
|
} else
|
|
6082
6118
|
break;
|
|
@@ -6118,9 +6154,9 @@ var require_lexer = __commonJS({
|
|
|
6118
6154
|
}
|
|
6119
6155
|
});
|
|
6120
6156
|
|
|
6121
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
6157
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/line-counter.js
|
|
6122
6158
|
var require_line_counter = __commonJS({
|
|
6123
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
6159
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/line-counter.js"(exports) {
|
|
6124
6160
|
"use strict";
|
|
6125
6161
|
var LineCounter = class {
|
|
6126
6162
|
constructor() {
|
|
@@ -6149,9 +6185,9 @@ var require_line_counter = __commonJS({
|
|
|
6149
6185
|
}
|
|
6150
6186
|
});
|
|
6151
6187
|
|
|
6152
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
6188
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/parser.js
|
|
6153
6189
|
var require_parser = __commonJS({
|
|
6154
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
6190
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/parser.js"(exports) {
|
|
6155
6191
|
"use strict";
|
|
6156
6192
|
var cst = require_cst();
|
|
6157
6193
|
var lexer = require_lexer();
|
|
@@ -6407,7 +6443,7 @@ var require_parser = __commonJS({
|
|
|
6407
6443
|
it.value = token;
|
|
6408
6444
|
} else {
|
|
6409
6445
|
Object.assign(it, { key: token, sep: [] });
|
|
6410
|
-
this.onKeyLine = !
|
|
6446
|
+
this.onKeyLine = !it.explicitKey;
|
|
6411
6447
|
return;
|
|
6412
6448
|
}
|
|
6413
6449
|
break;
|
|
@@ -6596,7 +6632,8 @@ var require_parser = __commonJS({
|
|
|
6596
6632
|
return;
|
|
6597
6633
|
}
|
|
6598
6634
|
if (this.indent >= map.indent) {
|
|
6599
|
-
const
|
|
6635
|
+
const atMapIndent = !this.onKeyLine && this.indent === map.indent;
|
|
6636
|
+
const atNextItem = atMapIndent && (it.sep || it.explicitKey) && this.type !== "seq-item-ind";
|
|
6600
6637
|
let start = [];
|
|
6601
6638
|
if (atNextItem && it.sep && !it.value) {
|
|
6602
6639
|
const nl = [];
|
|
@@ -6633,23 +6670,24 @@ var require_parser = __commonJS({
|
|
|
6633
6670
|
}
|
|
6634
6671
|
return;
|
|
6635
6672
|
case "explicit-key-ind":
|
|
6636
|
-
if (!it.sep && !
|
|
6673
|
+
if (!it.sep && !it.explicitKey) {
|
|
6637
6674
|
it.start.push(this.sourceToken);
|
|
6675
|
+
it.explicitKey = true;
|
|
6638
6676
|
} else if (atNextItem || it.value) {
|
|
6639
6677
|
start.push(this.sourceToken);
|
|
6640
|
-
map.items.push({ start });
|
|
6678
|
+
map.items.push({ start, explicitKey: true });
|
|
6641
6679
|
} else {
|
|
6642
6680
|
this.stack.push({
|
|
6643
6681
|
type: "block-map",
|
|
6644
6682
|
offset: this.offset,
|
|
6645
6683
|
indent: this.indent,
|
|
6646
|
-
items: [{ start: [this.sourceToken] }]
|
|
6684
|
+
items: [{ start: [this.sourceToken], explicitKey: true }]
|
|
6647
6685
|
});
|
|
6648
6686
|
}
|
|
6649
6687
|
this.onKeyLine = true;
|
|
6650
6688
|
return;
|
|
6651
6689
|
case "map-value-ind":
|
|
6652
|
-
if (
|
|
6690
|
+
if (it.explicitKey) {
|
|
6653
6691
|
if (!it.sep) {
|
|
6654
6692
|
if (includesToken(it.start, "newline")) {
|
|
6655
6693
|
Object.assign(it, { key: null, sep: [this.sourceToken] });
|
|
@@ -6725,7 +6763,7 @@ var require_parser = __commonJS({
|
|
|
6725
6763
|
default: {
|
|
6726
6764
|
const bv = this.startBlockValue(map);
|
|
6727
6765
|
if (bv) {
|
|
6728
|
-
if (
|
|
6766
|
+
if (atMapIndent && bv.type !== "block-seq") {
|
|
6729
6767
|
map.items.push({ start });
|
|
6730
6768
|
}
|
|
6731
6769
|
this.stack.push(bv);
|
|
@@ -6936,7 +6974,7 @@ var require_parser = __commonJS({
|
|
|
6936
6974
|
type: "block-map",
|
|
6937
6975
|
offset: this.offset,
|
|
6938
6976
|
indent: this.indent,
|
|
6939
|
-
items: [{ start }]
|
|
6977
|
+
items: [{ start, explicitKey: true }]
|
|
6940
6978
|
};
|
|
6941
6979
|
}
|
|
6942
6980
|
case "map-value-ind": {
|
|
@@ -6999,9 +7037,9 @@ var require_parser = __commonJS({
|
|
|
6999
7037
|
}
|
|
7000
7038
|
});
|
|
7001
7039
|
|
|
7002
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
7040
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/public-api.js
|
|
7003
7041
|
var require_public_api = __commonJS({
|
|
7004
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
7042
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/public-api.js"(exports) {
|
|
7005
7043
|
"use strict";
|
|
7006
7044
|
var composer = require_composer();
|
|
7007
7045
|
var Document = require_Document();
|
|
@@ -7093,9 +7131,9 @@ var require_public_api = __commonJS({
|
|
|
7093
7131
|
}
|
|
7094
7132
|
});
|
|
7095
7133
|
|
|
7096
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
7134
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/index.js
|
|
7097
7135
|
var require_dist = __commonJS({
|
|
7098
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
7136
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/index.js"(exports) {
|
|
7099
7137
|
"use strict";
|
|
7100
7138
|
var composer = require_composer();
|
|
7101
7139
|
var Document = require_Document();
|
|
@@ -7146,7 +7184,7 @@ var require_dist = __commonJS({
|
|
|
7146
7184
|
});
|
|
7147
7185
|
|
|
7148
7186
|
// package.json
|
|
7149
|
-
var version = "0.49.
|
|
7187
|
+
var version = "0.49.12";
|
|
7150
7188
|
|
|
7151
7189
|
// node/commands/shared.ts
|
|
7152
7190
|
import { existsSync as existsSync6, promises as fs8 } from "node:fs";
|
|
@@ -7300,16 +7338,7 @@ var INCLUDE_GLOBAL = [
|
|
|
7300
7338
|
"typescript",
|
|
7301
7339
|
"yaml"
|
|
7302
7340
|
];
|
|
7303
|
-
var INCLUDE_LOCAL =
|
|
7304
|
-
...INCLUDE_GLOBAL,
|
|
7305
|
-
"codemirror",
|
|
7306
|
-
"codemirror/mode/javascript/javascript",
|
|
7307
|
-
"codemirror/mode/css/css",
|
|
7308
|
-
"codemirror/mode/markdown/markdown",
|
|
7309
|
-
"codemirror/mode/xml/xml",
|
|
7310
|
-
"codemirror/mode/htmlmixed/htmlmixed",
|
|
7311
|
-
"codemirror/addon/display/placeholder"
|
|
7312
|
-
].map((i) => `@slidev/cli > @slidev/client > ${i}`);
|
|
7341
|
+
var INCLUDE_LOCAL = INCLUDE_GLOBAL.map((i) => `@slidev/cli > @slidev/client > ${i}`);
|
|
7313
7342
|
var EXCLUDE_GLOBAL = [
|
|
7314
7343
|
"@antfu/utils",
|
|
7315
7344
|
"@shikijs/monaco",
|
|
@@ -7738,7 +7767,7 @@ var templateShiki = {
|
|
|
7738
7767
|
id: "/@slidev/shiki",
|
|
7739
7768
|
getContent: async ({ clientRoot, roots }) => {
|
|
7740
7769
|
const options = await loadShikiSetups(clientRoot, roots);
|
|
7741
|
-
const langs = await resolveLangs(options.langs || ["javascript", "typescript", "html", "css"]);
|
|
7770
|
+
const langs = await resolveLangs(options.langs || ["markdown", "vue", "javascript", "typescript", "html", "css"]);
|
|
7742
7771
|
const resolvedThemeOptions = "themes" in options ? {
|
|
7743
7772
|
themes: Object.fromEntries(await Promise.all(
|
|
7744
7773
|
Object.entries(options.themes).map(async ([name, value]) => [name, await resolveTheme2(value)])
|
|
@@ -7766,15 +7795,28 @@ var templateShiki = {
|
|
|
7766
7795
|
const langNames = langs.flatMap((lang) => typeof lang === "string" ? lang : lang.name);
|
|
7767
7796
|
const lines = [];
|
|
7768
7797
|
lines.push(
|
|
7769
|
-
`import {
|
|
7798
|
+
`import { createHighlighterCore } from "${await resolveImportUrl("shiki/core")}"`,
|
|
7770
7799
|
`export { shikiToMonaco } from "${await resolveImportUrl("@shikijs/monaco")}"`,
|
|
7771
7800
|
`export const languages = ${JSON.stringify(langNames)}`,
|
|
7772
7801
|
`export const themes = ${JSON.stringify(themeOptionsNames.themes || themeOptionsNames.theme)}`,
|
|
7773
|
-
"export const shiki =
|
|
7802
|
+
"export const shiki = createHighlighterCore({",
|
|
7774
7803
|
` themes: [${themesInit.join(",")}],`,
|
|
7775
7804
|
` langs: [${langsInit.join(",")}],`,
|
|
7776
7805
|
` loadWasm: import('${await resolveImportUrl("shiki/wasm")}'),`,
|
|
7777
|
-
"})"
|
|
7806
|
+
"})",
|
|
7807
|
+
"let highlight",
|
|
7808
|
+
"export async function getHighlighter() {",
|
|
7809
|
+
" if (highlight) return highlight",
|
|
7810
|
+
" const highlighter = await shiki",
|
|
7811
|
+
" highlight = (code, lang, options) => highlighter.codeToHtml(code, {",
|
|
7812
|
+
" lang,",
|
|
7813
|
+
` theme: ${JSON.stringify(themeOptionsNames.theme)},`,
|
|
7814
|
+
` themes: ${JSON.stringify(themeOptionsNames.themes)},`,
|
|
7815
|
+
" defaultColor: false,",
|
|
7816
|
+
" ...options,",
|
|
7817
|
+
" })",
|
|
7818
|
+
" return highlight",
|
|
7819
|
+
"}"
|
|
7778
7820
|
);
|
|
7779
7821
|
return lines.join("\n");
|
|
7780
7822
|
}
|
|
@@ -8280,7 +8322,7 @@ function createSlidesLoader(options, pluginOptions, serverOptions) {
|
|
|
8280
8322
|
slide: {
|
|
8281
8323
|
...(${JSON.stringify(slideBase)}),
|
|
8282
8324
|
frontmatter,
|
|
8283
|
-
filepath: ${JSON.stringify(slide.source.filepath)},
|
|
8325
|
+
filepath: ${JSON.stringify(mode === "dev" ? slide.source.filepath : "")},
|
|
8284
8326
|
start: ${JSON.stringify(slide.source.start)},
|
|
8285
8327
|
id: ${pageNo},
|
|
8286
8328
|
no: ${no},
|
|
@@ -9289,16 +9331,16 @@ async function createMarkdownPlugin(options, { markdown: mdOptions }) {
|
|
|
9289
9331
|
async function createMarkdownItShiki(clientRoot, roots, config, mode) {
|
|
9290
9332
|
const [
|
|
9291
9333
|
shikiOptions,
|
|
9292
|
-
{
|
|
9334
|
+
{ createHighlighter, bundledLanguages },
|
|
9293
9335
|
markdownItShiki,
|
|
9294
9336
|
transformerTwoslash
|
|
9295
9337
|
] = await Promise.all([
|
|
9296
9338
|
loadShikiSetups(clientRoot, roots),
|
|
9297
|
-
import("shiki").then(({
|
|
9339
|
+
import("shiki").then(({ createHighlighter: createHighlighter2, bundledLanguages: bundledLanguages2 }) => ({ bundledLanguages: bundledLanguages2, createHighlighter: createHighlighter2 })),
|
|
9298
9340
|
import("@shikijs/markdown-it/core").then(({ fromHighlighter }) => fromHighlighter),
|
|
9299
9341
|
import("@shikijs/vitepress-twoslash").then(({ transformerTwoslash: transformerTwoslash2 }) => transformerTwoslash2)
|
|
9300
9342
|
]);
|
|
9301
|
-
const shiki = await
|
|
9343
|
+
const shiki = await createHighlighter({
|
|
9302
9344
|
...shikiOptions,
|
|
9303
9345
|
langs: shikiOptions.langs ?? Object.keys(bundledLanguages),
|
|
9304
9346
|
themes: "themes" in shikiOptions ? Object.values(shikiOptions.themes) : [shikiOptions.theme]
|
|
@@ -9617,14 +9659,14 @@ function escapeHtml(unsafe) {
|
|
|
9617
9659
|
String(unsafe).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'")
|
|
9618
9660
|
);
|
|
9619
9661
|
}
|
|
9620
|
-
async function getIndexHtml({ entry, clientRoot, roots, data }) {
|
|
9662
|
+
async function getIndexHtml({ mode, entry, clientRoot, roots, data }) {
|
|
9621
9663
|
let main = await fs8.readFile(join10(clientRoot, "index.html"), "utf-8");
|
|
9622
9664
|
let head = "";
|
|
9623
9665
|
let body = "";
|
|
9624
9666
|
const { info, author, keywords } = data.headmatter;
|
|
9625
9667
|
head += [
|
|
9626
9668
|
`<meta name="slidev:version" content="${version}">`,
|
|
9627
|
-
`<meta charset="slidev:entry" content="${slash5(entry)}">`,
|
|
9669
|
+
mode === "dev" && `<meta charset="slidev:entry" content="${slash5(entry)}">`,
|
|
9628
9670
|
`<link rel="icon" href="${data.config.favicon}">`,
|
|
9629
9671
|
`<title>${getSlideTitle(data)}</title>`,
|
|
9630
9672
|
info && `<meta name="description" content=${escapeHtml(info)}>`,
|